Struct googapis::google::cloud::retail::v2beta::ProductLevelConfig [−][src]
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.v2beta.Product]s allowed to be ingested into the catalog. Acceptable values are:
primary
(default): You can ingest [Product][google.cloud.retail.v2beta.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2beta.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] if unset.variant
: You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2beta.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.v2beta.ProductLevelConfig.merchant_center_product_id_field]
is itemGroupId
, an INVALID_ARGUMENT error is returned.
See Using 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.v2beta.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.v2beta.ProductLevelConfig.ingestion_product_type]
is variant
, an INVALID_ARGUMENT error is returned.
See Using product levels for more details.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProductLevelConfig
impl Send for ProductLevelConfig
impl Sync for ProductLevelConfig
impl Unpin for ProductLevelConfig
impl UnwindSafe for ProductLevelConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more