public static final class ProductLevelConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder> implements ProductLevelConfigOrBuilder
Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.Protobuf type
google.cloud.retail.v2.ProductLevelConfig| Modifier and Type | Method and Description |
|---|---|
ProductLevelConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProductLevelConfig |
build() |
ProductLevelConfig |
buildPartial() |
ProductLevelConfig.Builder |
clear() |
ProductLevelConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ProductLevelConfig.Builder |
clearIngestionProductType()
The type of [Product][google.cloud.retail.v2.Product]s allowed to be
ingested into the catalog.
|
ProductLevelConfig.Builder |
clearMerchantCenterProductIdField()
Which field of [Merchant Center
Product](/bigquery-transfer/docs/merchant-center-products-schema) should be
imported as [Product.id][google.cloud.retail.v2.Product.id].
|
ProductLevelConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ProductLevelConfig.Builder |
clone() |
ProductLevelConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getIngestionProductType()
The type of [Product][google.cloud.retail.v2.Product]s allowed to be
ingested into the catalog.
|
com.google.protobuf.ByteString |
getIngestionProductTypeBytes()
The type of [Product][google.cloud.retail.v2.Product]s allowed to be
ingested into the catalog.
|
String |
getMerchantCenterProductIdField()
Which field of [Merchant Center
Product](/bigquery-transfer/docs/merchant-center-products-schema) should be
imported as [Product.id][google.cloud.retail.v2.Product.id].
|
com.google.protobuf.ByteString |
getMerchantCenterProductIdFieldBytes()
Which field of [Merchant Center
Product](/bigquery-transfer/docs/merchant-center-products-schema) should be
imported as [Product.id][google.cloud.retail.v2.Product.id].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ProductLevelConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ProductLevelConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
ProductLevelConfig.Builder |
mergeFrom(ProductLevelConfig other) |
ProductLevelConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ProductLevelConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProductLevelConfig.Builder |
setIngestionProductType(String value)
The type of [Product][google.cloud.retail.v2.Product]s allowed to be
ingested into the catalog.
|
ProductLevelConfig.Builder |
setIngestionProductTypeBytes(com.google.protobuf.ByteString value)
The type of [Product][google.cloud.retail.v2.Product]s allowed to be
ingested into the catalog.
|
ProductLevelConfig.Builder |
setMerchantCenterProductIdField(String value)
Which field of [Merchant Center
Product](/bigquery-transfer/docs/merchant-center-products-schema) should be
imported as [Product.id][google.cloud.retail.v2.Product.id].
|
ProductLevelConfig.Builder |
setMerchantCenterProductIdFieldBytes(com.google.protobuf.ByteString value)
Which field of [Merchant Center
Product](/bigquery-transfer/docs/merchant-center-products-schema) should be
imported as [Product.id][google.cloud.retail.v2.Product.id].
|
ProductLevelConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ProductLevelConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ProductLevelConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ProductLevelConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ProductLevelConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder mergeFrom(ProductLevelConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public ProductLevelConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProductLevelConfig.Builder>IOExceptionpublic String getIngestionProductType()
The type of [Product][google.cloud.retail.v2.Product]s allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest [Product][google.cloud.retail.v2.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. * `variant` (incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2.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.v2.ProductLevelConfig.merchant_center_product_id_field] is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string ingestion_product_type = 1;getIngestionProductType in interface ProductLevelConfigOrBuilderpublic com.google.protobuf.ByteString getIngestionProductTypeBytes()
The type of [Product][google.cloud.retail.v2.Product]s allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest [Product][google.cloud.retail.v2.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. * `variant` (incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2.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.v2.ProductLevelConfig.merchant_center_product_id_field] is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string ingestion_product_type = 1;getIngestionProductTypeBytes in interface ProductLevelConfigOrBuilderpublic ProductLevelConfig.Builder setIngestionProductType(String value)
The type of [Product][google.cloud.retail.v2.Product]s allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest [Product][google.cloud.retail.v2.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. * `variant` (incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2.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.v2.ProductLevelConfig.merchant_center_product_id_field] is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string ingestion_product_type = 1;value - The ingestionProductType to set.public ProductLevelConfig.Builder clearIngestionProductType()
The type of [Product][google.cloud.retail.v2.Product]s allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest [Product][google.cloud.retail.v2.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. * `variant` (incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2.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.v2.ProductLevelConfig.merchant_center_product_id_field] is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string ingestion_product_type = 1;public ProductLevelConfig.Builder setIngestionProductTypeBytes(com.google.protobuf.ByteString value)
The type of [Product][google.cloud.retail.v2.Product]s allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest [Product][google.cloud.retail.v2.Product]s of all types. When ingesting a [Product][google.cloud.retail.v2.Product], its type will default to [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. * `variant` (incompatible with Retail Search): You can only ingest [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] [Product][google.cloud.retail.v2.Product]s. This means [Product.primary_product_id][google.cloud.retail.v2.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.v2.ProductLevelConfig.merchant_center_product_id_field] is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string ingestion_product_type = 1;value - The bytes for ingestionProductType to set.public String getMerchantCenterProductIdField()
Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, 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.v2.ProductLevelConfig.ingestion_product_type] is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string merchant_center_product_id_field = 2;getMerchantCenterProductIdField in interface ProductLevelConfigOrBuilderpublic com.google.protobuf.ByteString getMerchantCenterProductIdFieldBytes()
Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, 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.v2.ProductLevelConfig.ingestion_product_type] is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string merchant_center_product_id_field = 2;getMerchantCenterProductIdFieldBytes in interface ProductLevelConfigOrBuilderpublic ProductLevelConfig.Builder setMerchantCenterProductIdField(String value)
Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, 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.v2.ProductLevelConfig.ingestion_product_type] is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string merchant_center_product_id_field = 2;value - The merchantCenterProductIdField to set.public ProductLevelConfig.Builder clearMerchantCenterProductIdField()
Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, 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.v2.ProductLevelConfig.ingestion_product_type] is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string merchant_center_product_id_field = 2;public ProductLevelConfig.Builder setMerchantCenterProductIdFieldBytes(com.google.protobuf.ByteString value)
Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, 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.v2.ProductLevelConfig.ingestion_product_type] is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
string merchant_center_product_id_field = 2;value - The bytes for merchantCenterProductIdField to set.public final ProductLevelConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>public final ProductLevelConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProductLevelConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.