Class ImportProductsRequest.Builder (2.30.0)

public static final class ImportProductsRequest.Builder extends GeneratedMessageV3.Builder<ImportProductsRequest.Builder> implements ImportProductsRequestOrBuilder

Request message for Import methods.

Protobuf type google.cloud.retail.v2beta.ImportProductsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportProductsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

build()

public ImportProductsRequest build()
Returns
TypeDescription
ImportProductsRequest

buildPartial()

public ImportProductsRequest buildPartial()
Returns
TypeDescription
ImportProductsRequest

clear()

public ImportProductsRequest.Builder clear()
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

clearErrorsConfig()

public ImportProductsRequest.Builder clearErrorsConfig()

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportProductsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ImportProductsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

clearInputConfig()

public ImportProductsRequest.Builder clearInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportProductsRequest.Builder

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.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}. It has to be within the same project as 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
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportProductsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

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
TypeDescription
ImportProductsRequest.Builder

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.v2beta.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

clearRequestId() (deprecated)

public ImportProductsRequest.Builder clearRequestId()

Deprecated. google.cloud.retail.v2beta.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=189

Deprecated. This field has no effect.

string request_id = 6 [deprecated = true];

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

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;

Returns
TypeDescription
ImportProductsRequest.Builder

clone()

public ImportProductsRequest.Builder clone()
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportProductsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportProductsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorsConfig()

public ImportErrorsConfig getErrorsConfig()

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportErrorsConfig

The errorsConfig.

getErrorsConfigBuilder()

public ImportErrorsConfig.Builder getErrorsConfigBuilder()

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportErrorsConfig.Builder

getErrorsConfigOrBuilder()

public ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder()

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportErrorsConfigOrBuilder

getInputConfig()

public ProductInputConfig getInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductInputConfig

The inputConfig.

getInputConfigBuilder()

public ProductInputConfig.Builder getInputConfigBuilder()

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductInputConfig.Builder

getInputConfigOrBuilder()

public ProductInputConfigOrBuilder getInputConfigOrBuilder()

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductInputConfigOrBuilder

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.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}. It has to be within the same project as 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
TypeDescription
String

The notificationPubsubTopic.

getNotificationPubsubTopicBytes()

public 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.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}. It has to be within the same project as 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
TypeDescription
ByteString

The bytes for notificationPubsubTopic.

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) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

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.v2beta.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;

Returns
TypeDescription
ImportProductsRequest.ReconciliationMode

The reconciliationMode.

getReconciliationModeValue()

public int getReconciliationModeValue()

The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.retail.v2beta.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for reconciliationMode.

getRequestId() (deprecated)

public String getRequestId()

Deprecated. google.cloud.retail.v2beta.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=189

Deprecated. This field has no effect.

string request_id = 6 [deprecated = true];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes() (deprecated)

public ByteString getRequestIdBytes()

Deprecated. google.cloud.retail.v2beta.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=189

Deprecated. This field has no effect.

string request_id = 6 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for requestId.

getUpdateMask()

public 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;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public 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;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public 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;

Returns
TypeDescription
FieldMaskOrBuilder

hasErrorsConfig()

public boolean hasErrorsConfig()

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
boolean

Whether the errorsConfig field is set.

hasInputConfig()

public boolean hasInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

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;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeErrorsConfig(ImportErrorsConfig value)

public ImportProductsRequest.Builder mergeErrorsConfig(ImportErrorsConfig value)

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Parameter
NameDescription
valueImportErrorsConfig
Returns
TypeDescription
ImportProductsRequest.Builder

mergeFrom(ImportProductsRequest other)

public ImportProductsRequest.Builder mergeFrom(ImportProductsRequest other)
Parameter
NameDescription
otherImportProductsRequest
Returns
TypeDescription
ImportProductsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportProductsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportProductsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

mergeInputConfig(ProductInputConfig value)

public ImportProductsRequest.Builder mergeInputConfig(ProductInputConfig value)

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProductInputConfig
Returns
TypeDescription
ImportProductsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportProductsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public ImportProductsRequest.Builder mergeUpdateMask(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;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
ImportProductsRequest.Builder

setErrorsConfig(ImportErrorsConfig value)

public ImportProductsRequest.Builder setErrorsConfig(ImportErrorsConfig value)

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Parameter
NameDescription
valueImportErrorsConfig
Returns
TypeDescription
ImportProductsRequest.Builder

setErrorsConfig(ImportErrorsConfig.Builder builderForValue)

public ImportProductsRequest.Builder setErrorsConfig(ImportErrorsConfig.Builder builderForValue)

The desired location of errors incurred during the Import.

.google.cloud.retail.v2beta.ImportErrorsConfig errors_config = 3;

Parameter
NameDescription
builderForValueImportErrorsConfig.Builder
Returns
TypeDescription
ImportProductsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportProductsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

setInputConfig(ProductInputConfig value)

public ImportProductsRequest.Builder setInputConfig(ProductInputConfig value)

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProductInputConfig
Returns
TypeDescription
ImportProductsRequest.Builder

setInputConfig(ProductInputConfig.Builder builderForValue)

public ImportProductsRequest.Builder setInputConfig(ProductInputConfig.Builder builderForValue)

Required. The desired input location of the data.

.google.cloud.retail.v2beta.ProductInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueProductInputConfig.Builder
Returns
TypeDescription
ImportProductsRequest.Builder

setNotificationPubsubTopic(String value)

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.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}. It has to be within the same project as 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;

Parameter
NameDescription
valueString

The notificationPubsubTopic to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setNotificationPubsubTopicBytes(ByteString value)

public ImportProductsRequest.Builder setNotificationPubsubTopicBytes(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.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}. It has to be within the same project as 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;

Parameter
NameDescription
valueByteString

The bytes for notificationPubsubTopic to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setParent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportProductsRequest.Builder setParentBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setReconciliationMode(ImportProductsRequest.ReconciliationMode value)

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.v2beta.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;

Parameter
NameDescription
valueImportProductsRequest.ReconciliationMode

The reconciliationMode to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setReconciliationModeValue(int value)

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.v2beta.ImportProductsRequest.ReconciliationMode reconciliation_mode = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for reconciliationMode to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportProductsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

setRequestId(String value) (deprecated)

public ImportProductsRequest.Builder setRequestId(String value)

Deprecated. google.cloud.retail.v2beta.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=189

Deprecated. This field has no effect.

string request_id = 6 [deprecated = true];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value) (deprecated)

public ImportProductsRequest.Builder setRequestIdBytes(ByteString value)

Deprecated. google.cloud.retail.v2beta.ImportProductsRequest.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=189

Deprecated. This field has no effect.

string request_id = 6 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
ImportProductsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportProductsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportProductsRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public ImportProductsRequest.Builder setUpdateMask(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;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
ImportProductsRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public ImportProductsRequest.Builder setUpdateMask(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ImportProductsRequest.Builder