Struct google_api_proto::google::cloud::retail::v2alpha::ProductLevelConfig
source · pub struct ProductLevelConfig {
pub ingestion_product_type: String,
pub merchant_center_product_id_field: String,
}
Expand description
Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.
Fields§
§ingestion_product_type: String
The type of [Product][google.cloud.retail.v2alpha.Product]s allowed to be ingested into the catalog. Acceptable values are:
primary
(default): You can ingest [Product][google.cloud.retail.v2alpha.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2alpha.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] if unset.variant
(incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] cannot be empty.
If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
If this field is variant
and
[merchant_center_product_id_field][google.cloud.retail.v2alpha.ProductLevelConfig.merchant_center_product_id_field]
is itemGroupId
, an INVALID_ARGUMENT error is returned.
See Product levels for more details.
merchant_center_product_id_field: String
Which field of Merchant Center Product should be imported as [Product.id][google.cloud.retail.v2alpha.Product.id]. Acceptable values are:
offerId
(default): ImportofferId
as the product ID.itemGroupId
: ImportitemGroupId
as the product ID. Notice that Retail API will choose one item from the ones with the sameitemGroupId
, and use it to represent the item group.
If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
If this field is itemGroupId
and
[ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type]
is variant
, an INVALID_ARGUMENT error is returned.
See Product levels for more details.
Trait Implementations§
source§impl Clone for ProductLevelConfig
impl Clone for ProductLevelConfig
source§fn clone(&self) -> ProductLevelConfig
fn clone(&self) -> ProductLevelConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProductLevelConfig
impl Debug for ProductLevelConfig
source§impl Default for ProductLevelConfig
impl Default for ProductLevelConfig
source§impl Message for ProductLevelConfig
impl Message for ProductLevelConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ProductLevelConfig
impl PartialEq for ProductLevelConfig
source§fn eq(&self, other: &ProductLevelConfig) -> bool
fn eq(&self, other: &ProductLevelConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProductLevelConfig
Auto Trait Implementations§
impl Freeze for ProductLevelConfig
impl RefUnwindSafe for ProductLevelConfig
impl Send for ProductLevelConfig
impl Sync for ProductLevelConfig
impl Unpin for ProductLevelConfig
impl UnwindSafe for ProductLevelConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request