Package com.google.cloud.retail.v2alpha
Class ImportProductsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
- com.google.cloud.retail.v2alpha.ImportProductsRequest.Builder
-
- All Implemented Interfaces:
ImportProductsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportProductsRequest
public static final class ImportProductsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder> implements ImportProductsRequestOrBuilder
Request message for Import methods.
Protobuf typegoogle.cloud.retail.v2alpha.ImportProductsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImportProductsRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImportProductsRequestbuild()ImportProductsRequestbuildPartial()ImportProductsRequest.Builderclear()ImportProductsRequest.BuilderclearErrorsConfig()The desired location of errors incurred during the Import.ImportProductsRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ImportProductsRequest.BuilderclearInputConfig()Required.ImportProductsRequest.BuilderclearNotificationPubsubTopic()Full Pub/Sub topic name for receiving notification.ImportProductsRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ImportProductsRequest.BuilderclearParent()Required.ImportProductsRequest.BuilderclearReconciliationMode()The mode of reconciliation between existing products and the products to be imported.ImportProductsRequest.BuilderclearRequestId()Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.ImportProductsRequest.BuilderclearSkipDefaultBranchProtection()If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic.ImportProductsRequest.BuilderclearUpdateMask()Indicates which fields in the provided imported `products` to update.ImportProductsRequest.Builderclone()ImportProductsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ImportErrorsConfiggetErrorsConfig()The desired location of errors incurred during the Import.ImportErrorsConfig.BuildergetErrorsConfigBuilder()The desired location of errors incurred during the Import.ImportErrorsConfigOrBuildergetErrorsConfigOrBuilder()The desired location of errors incurred during the Import.ProductInputConfiggetInputConfig()Required.ProductInputConfig.BuildergetInputConfigBuilder()Required.ProductInputConfigOrBuildergetInputConfigOrBuilder()Required.StringgetNotificationPubsubTopic()Full Pub/Sub topic name for receiving notification.com.google.protobuf.ByteStringgetNotificationPubsubTopicBytes()Full Pub/Sub topic name for receiving notification.StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.ImportProductsRequest.ReconciliationModegetReconciliationMode()The mode of reconciliation between existing products and the products to be imported.intgetReconciliationModeValue()The mode of reconciliation between existing products and the products to be imported.StringgetRequestId()Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.com.google.protobuf.ByteStringgetRequestIdBytes()Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.booleangetSkipDefaultBranchProtection()If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic.com.google.protobuf.FieldMaskgetUpdateMask()Indicates which fields in the provided imported `products` to update.com.google.protobuf.FieldMask.BuildergetUpdateMaskBuilder()Indicates which fields in the provided imported `products` to update.com.google.protobuf.FieldMaskOrBuildergetUpdateMaskOrBuilder()Indicates which fields in the provided imported `products` to update.booleanhasErrorsConfig()The desired location of errors incurred during the Import.booleanhasInputConfig()Required.booleanhasUpdateMask()Indicates which fields in the provided imported `products` to update.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ImportProductsRequest.BuildermergeErrorsConfig(ImportErrorsConfig value)The desired location of errors incurred during the Import.ImportProductsRequest.BuildermergeFrom(ImportProductsRequest other)ImportProductsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ImportProductsRequest.BuildermergeFrom(com.google.protobuf.Message other)ImportProductsRequest.BuildermergeInputConfig(ProductInputConfig value)Required.ImportProductsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ImportProductsRequest.BuildermergeUpdateMask(com.google.protobuf.FieldMask value)Indicates which fields in the provided imported `products` to update.ImportProductsRequest.BuildersetErrorsConfig(ImportErrorsConfig value)The desired location of errors incurred during the Import.ImportProductsRequest.BuildersetErrorsConfig(ImportErrorsConfig.Builder builderForValue)The desired location of errors incurred during the Import.ImportProductsRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImportProductsRequest.BuildersetInputConfig(ProductInputConfig value)Required.ImportProductsRequest.BuildersetInputConfig(ProductInputConfig.Builder builderForValue)Required.ImportProductsRequest.BuildersetNotificationPubsubTopic(String value)Full Pub/Sub topic name for receiving notification.ImportProductsRequest.BuildersetNotificationPubsubTopicBytes(com.google.protobuf.ByteString value)Full Pub/Sub topic name for receiving notification.ImportProductsRequest.BuildersetParent(String value)Required.ImportProductsRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Required.ImportProductsRequest.BuildersetReconciliationMode(ImportProductsRequest.ReconciliationMode value)The mode of reconciliation between existing products and the products to be imported.ImportProductsRequest.BuildersetReconciliationModeValue(int value)The mode of reconciliation between existing products and the products to be imported.ImportProductsRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ImportProductsRequest.BuildersetRequestId(String value)Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.ImportProductsRequest.BuildersetRequestIdBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.ImportProductsRequest.BuildersetSkipDefaultBranchProtection(boolean value)If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic.ImportProductsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ImportProductsRequest.BuildersetUpdateMask(com.google.protobuf.FieldMask value)Indicates which fields in the provided imported `products` to update.ImportProductsRequest.BuildersetUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)Indicates which fields in the provided imported `products` to update.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
clear
public ImportProductsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
getDefaultInstanceForType
public ImportProductsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ImportProductsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ImportProductsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ImportProductsRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
setField
public ImportProductsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
clearField
public ImportProductsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
clearOneof
public ImportProductsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
setRepeatedField
public ImportProductsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
addRepeatedField
public ImportProductsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
mergeFrom
public ImportProductsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportProductsRequest.Builder>
-
mergeFrom
public ImportProductsRequest.Builder mergeFrom(ImportProductsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
mergeFrom
public ImportProductsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportProductsRequest.Builder>- Throws:
IOException
-
getParent
public String getParent()
Required. `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceImportProductsRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceImportProductsRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
public ImportProductsRequest.Builder setParent(String value)
Required. `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public ImportProductsRequest.Builder clearParent()
Required. `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
public ImportProductsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getRequestId
@Deprecated public String getRequestId()
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=189Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Specified by:
getRequestIdin interfaceImportProductsRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
@Deprecated public com.google.protobuf.ByteString getRequestIdBytes()
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=189Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Specified by:
getRequestIdBytesin interfaceImportProductsRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
@Deprecated public ImportProductsRequest.Builder setRequestId(String value)
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=189Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
@Deprecated public ImportProductsRequest.Builder clearRequestId()
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=189Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Returns:
- This builder for chaining.
-
setRequestIdBytes
@Deprecated public ImportProductsRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=189Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
hasInputConfig
public boolean hasInputConfig()
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasInputConfigin interfaceImportProductsRequestOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
public ProductInputConfig getInputConfig()
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigin interfaceImportProductsRequestOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
public ImportProductsRequest.Builder setInputConfig(ProductInputConfig value)
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
-
setInputConfig
public ImportProductsRequest.Builder setInputConfig(ProductInputConfig.Builder builderForValue)
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
-
mergeInputConfig
public ImportProductsRequest.Builder mergeInputConfig(ProductInputConfig value)
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearInputConfig
public ImportProductsRequest.Builder clearInputConfig()
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
-
getInputConfigBuilder
public ProductInputConfig.Builder getInputConfigBuilder()
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
-
getInputConfigOrBuilder
public ProductInputConfigOrBuilder getInputConfigOrBuilder()
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigOrBuilderin interfaceImportProductsRequestOrBuilder
-
hasErrorsConfig
public boolean hasErrorsConfig()
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;- Specified by:
hasErrorsConfigin interfaceImportProductsRequestOrBuilder- Returns:
- Whether the errorsConfig field is set.
-
getErrorsConfig
public ImportErrorsConfig getErrorsConfig()
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;- Specified by:
getErrorsConfigin interfaceImportProductsRequestOrBuilder- Returns:
- The errorsConfig.
-
setErrorsConfig
public ImportProductsRequest.Builder setErrorsConfig(ImportErrorsConfig value)
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;
-
setErrorsConfig
public ImportProductsRequest.Builder setErrorsConfig(ImportErrorsConfig.Builder builderForValue)
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;
-
mergeErrorsConfig
public ImportProductsRequest.Builder mergeErrorsConfig(ImportErrorsConfig value)
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;
-
clearErrorsConfig
public ImportProductsRequest.Builder clearErrorsConfig()
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;
-
getErrorsConfigBuilder
public ImportErrorsConfig.Builder getErrorsConfigBuilder()
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;
-
getErrorsConfigOrBuilder
public ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder()
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;- Specified by:
getErrorsConfigOrBuilderin interfaceImportProductsRequestOrBuilder
-
hasUpdateMask
public boolean hasUpdateMask()
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;- Specified by:
hasUpdateMaskin interfaceImportProductsRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;- Specified by:
getUpdateMaskin interfaceImportProductsRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
public ImportProductsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;
-
setUpdateMask
public ImportProductsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;
-
mergeUpdateMask
public ImportProductsRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;
-
clearUpdateMask
public ImportProductsRequest.Builder clearUpdateMask()
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;
-
getUpdateMaskBuilder
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;
-
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated.
.google.protobuf.FieldMask update_mask = 4;- Specified by:
getUpdateMaskOrBuilderin interfaceImportProductsRequestOrBuilder
-
getReconciliationModeValue
public int getReconciliationModeValue()
The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;- Specified by:
getReconciliationModeValuein interfaceImportProductsRequestOrBuilder- Returns:
- The enum numeric value on the wire for reconciliationMode.
-
setReconciliationModeValue
public ImportProductsRequest.Builder setReconciliationModeValue(int value)
The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;- Parameters:
value- The enum numeric value on the wire for reconciliationMode to set.- Returns:
- This builder for chaining.
-
getReconciliationMode
public ImportProductsRequest.ReconciliationMode getReconciliationMode()
The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;- Specified by:
getReconciliationModein interfaceImportProductsRequestOrBuilder- Returns:
- The reconciliationMode.
-
setReconciliationMode
public ImportProductsRequest.Builder setReconciliationMode(ImportProductsRequest.ReconciliationMode value)
The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;- Parameters:
value- The reconciliationMode to set.- Returns:
- This builder for chaining.
-
clearReconciliationMode
public ImportProductsRequest.Builder clearReconciliationMode()
The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
.google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;- Returns:
- This builder for chaining.
-
getNotificationPubsubTopic
public String getNotificationPubsubTopic()
Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a [Operation][google.longrunning.Operation]. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. Make sure that `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.string notification_pubsub_topic = 7;- Specified by:
getNotificationPubsubTopicin interfaceImportProductsRequestOrBuilder- Returns:
- The notificationPubsubTopic.
-
getNotificationPubsubTopicBytes
public com.google.protobuf.ByteString getNotificationPubsubTopicBytes()
Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a [Operation][google.longrunning.Operation]. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. Make sure that `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.string notification_pubsub_topic = 7;- Specified by:
getNotificationPubsubTopicBytesin interfaceImportProductsRequestOrBuilder- Returns:
- The bytes for notificationPubsubTopic.
-
setNotificationPubsubTopic
public ImportProductsRequest.Builder setNotificationPubsubTopic(String value)
Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a [Operation][google.longrunning.Operation]. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. Make sure that `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.string notification_pubsub_topic = 7;- Parameters:
value- The notificationPubsubTopic to set.- Returns:
- This builder for chaining.
-
clearNotificationPubsubTopic
public ImportProductsRequest.Builder clearNotificationPubsubTopic()
Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a [Operation][google.longrunning.Operation]. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. Make sure that `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.string notification_pubsub_topic = 7;- Returns:
- This builder for chaining.
-
setNotificationPubsubTopicBytes
public ImportProductsRequest.Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value)
Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a [Operation][google.longrunning.Operation]. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. Make sure that `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the topic.string notification_pubsub_topic = 7;- Parameters:
value- The bytes for notificationPubsubTopic to set.- Returns:
- This builder for chaining.
-
getSkipDefaultBranchProtection
public boolean getSkipDefaultBranchProtection()
If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.
bool skip_default_branch_protection = 8;- Specified by:
getSkipDefaultBranchProtectionin interfaceImportProductsRequestOrBuilder- Returns:
- The skipDefaultBranchProtection.
-
setSkipDefaultBranchProtection
public ImportProductsRequest.Builder setSkipDefaultBranchProtection(boolean value)
If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.
bool skip_default_branch_protection = 8;- Parameters:
value- The skipDefaultBranchProtection to set.- Returns:
- This builder for chaining.
-
clearSkipDefaultBranchProtection
public ImportProductsRequest.Builder clearSkipDefaultBranchProtection()
If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.
bool skip_default_branch_protection = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ImportProductsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
mergeUnknownFields
public final ImportProductsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImportProductsRequest.Builder>
-
-