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.GeneratedMessage.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.GeneratedMessage.Builder<ImportProductsRequest.Builder>
implements ImportProductsRequestOrBuilder
Request message for Import methods.Protobuf type
google.cloud.retail.v2alpha.ImportProductsRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The desired location of errors incurred during the Import.Required.Full Pub/Sub topic name for receiving notification.Required.The mode of reconciliation between existing products and the products to be imported.Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.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.Indicates which fields in the provided imported `products` to update.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe desired location of errors incurred during the Import.The desired location of errors incurred during the Import.The desired location of errors incurred during the Import.Required.Required.Required.Full Pub/Sub topic name for receiving notification.com.google.protobuf.ByteStringFull Pub/Sub topic name for receiving notification.Required.com.google.protobuf.ByteStringRequired.The mode of reconciliation between existing products and the products to be imported.intThe mode of reconciliation between existing products and the products to be imported.Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.booleanIf 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.FieldMaskIndicates which fields in the provided imported `products` to update.com.google.protobuf.FieldMask.BuilderIndicates which fields in the provided imported `products` to update.com.google.protobuf.FieldMaskOrBuilderIndicates which fields in the provided imported `products` to update.booleanThe desired location of errors incurred during the Import.booleanRequired.booleanIndicates which fields in the provided imported `products` to update.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe desired location of errors incurred during the Import.mergeFrom(ImportProductsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.mergeUpdateMask(com.google.protobuf.FieldMask value) Indicates which fields in the provided imported `products` to update.The desired location of errors incurred during the Import.setErrorsConfig(ImportErrorsConfig.Builder builderForValue) The desired location of errors incurred during the Import.setInputConfig(ProductInputConfig value) Required.setInputConfig(ProductInputConfig.Builder builderForValue) Required.setNotificationPubsubTopic(String value) Full Pub/Sub topic name for receiving notification.setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) Full Pub/Sub topic name for receiving notification.Required.setParentBytes(com.google.protobuf.ByteString value) Required.The mode of reconciliation between existing products and the products to be imported.setReconciliationModeValue(int value) The mode of reconciliation between existing products and the products to be imported.setRequestId(String value) Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.setRequestIdBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated.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.setUpdateMask(com.google.protobuf.FieldMask value) Indicates which fields in the provided imported `products` to update.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Indicates which fields in the provided imported `products` to update.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportProductsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ImportProductsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportProductsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=186Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Specified by:
getRequestIdin interfaceImportProductsRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=186Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Specified by:
getRequestIdBytesin interfaceImportProductsRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=186Deprecated. This field has no effect.
string request_id = 6 [deprecated = true];- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
Deprecated.google.cloud.retail.v2alpha.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2alpha/import_config.proto;l=186Deprecated. 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=186Deprecated. 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
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
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; -
setInputConfig
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeInputConfig
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearInputConfig
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; -
getInputConfigBuilder
Required. The desired input location of the data.
.google.cloud.retail.v2alpha.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; -
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
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
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3; -
setErrorsConfig
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3; -
mergeErrorsConfig
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3; -
clearErrorsConfig
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3; -
getErrorsConfigBuilder
The desired location of errors incurred during the Import.
.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3; -
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. If provided, only the existing product fields are updated. Missing products will not be created.
.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. If provided, only the existing product fields are updated. Missing products will not be created.
.google.protobuf.FieldMask update_mask = 4;- Specified by:
getUpdateMaskin interfaceImportProductsRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated. If provided, only the existing product fields are updated. Missing products will not be created.
.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. If provided, only the existing product fields are updated. Missing products will not be created.
.google.protobuf.FieldMask update_mask = 4; -
mergeUpdateMask
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated. If provided, only the existing product fields are updated. Missing products will not be created.
.google.protobuf.FieldMask update_mask = 4; -
clearUpdateMask
Indicates which fields in the provided imported `products` to update. If not set, all fields are updated. If provided, only the existing product fields are updated. Missing products will not be created.
.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. If provided, only the existing product fields are updated. Missing products will not be created.
.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. If provided, only the existing product fields are updated. Missing products will not be created.
.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
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
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
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
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 both `cloud-retail-customer-data-access@system.gserviceaccount.com` and `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on the topic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.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 both `cloud-retail-customer-data-access@system.gserviceaccount.com` and `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on the topic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.string notification_pubsub_topic = 7;- Specified by:
getNotificationPubsubTopicBytesin interfaceImportProductsRequestOrBuilder- Returns:
- The bytes for notificationPubsubTopic.
-
setNotificationPubsubTopic
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 both `cloud-retail-customer-data-access@system.gserviceaccount.com` and `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on the topic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.string notification_pubsub_topic = 7;- Parameters:
value- The notificationPubsubTopic to set.- Returns:
- This builder for chaining.
-
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 both `cloud-retail-customer-data-access@system.gserviceaccount.com` and `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on the topic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.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 both `cloud-retail-customer-data-access@system.gserviceaccount.com` and `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on the topic. Only supported when [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] is set to `FULL`.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
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
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.
-