Class ImportCompletionDataRequest.Builder (2.30.0)

public static final class ImportCompletionDataRequest.Builder extends GeneratedMessageV3.Builder<ImportCompletionDataRequest.Builder> implements ImportCompletionDataRequestOrBuilder

Request message for ImportCompletionData methods.

Protobuf type google.cloud.retail.v2.ImportCompletionDataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportCompletionDataRequest build()
Returns
TypeDescription
ImportCompletionDataRequest

buildPartial()

public ImportCompletionDataRequest buildPartial()
Returns
TypeDescription
ImportCompletionDataRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInputConfig()

public ImportCompletionDataRequest.Builder clearInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportCompletionDataRequest.Builder

clearNotificationPubsubTopic()

public ImportCompletionDataRequest.Builder clearNotificationPubsubTopic()

Pub/Sub topic 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}.

string notification_pubsub_topic = 3;

Returns
TypeDescription
ImportCompletionDataRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportCompletionDataRequest.Builder clearParent()

Required. The catalog which the suggestions dataset belongs to.

Format: projects/1234/locations/global/catalogs/default_catalog.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ImportCompletionDataRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportCompletionDataRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportCompletionDataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInputConfig()

public CompletionDataInputConfig getInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CompletionDataInputConfig

The inputConfig.

getInputConfigBuilder()

public CompletionDataInputConfig.Builder getInputConfigBuilder()

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CompletionDataInputConfig.Builder

getInputConfigOrBuilder()

public CompletionDataInputConfigOrBuilder getInputConfigOrBuilder()

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CompletionDataInputConfigOrBuilder

getNotificationPubsubTopic()

public String getNotificationPubsubTopic()

Pub/Sub topic 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}.

string notification_pubsub_topic = 3;

Returns
TypeDescription
String

The notificationPubsubTopic.

getNotificationPubsubTopicBytes()

public ByteString getNotificationPubsubTopicBytes()

Pub/Sub topic 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}.

string notification_pubsub_topic = 3;

Returns
TypeDescription
ByteString

The bytes for notificationPubsubTopic.

getParent()

public String getParent()

Required. The catalog which the suggestions dataset belongs to.

Format: projects/1234/locations/global/catalogs/default_catalog.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The catalog which the suggestions dataset belongs to.

Format: projects/1234/locations/global/catalogs/default_catalog.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasInputConfig()

public boolean hasInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportCompletionDataRequest other)

public ImportCompletionDataRequest.Builder mergeFrom(ImportCompletionDataRequest other)
Parameter
NameDescription
otherImportCompletionDataRequest
Returns
TypeDescription
ImportCompletionDataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputConfig(CompletionDataInputConfig value)

public ImportCompletionDataRequest.Builder mergeInputConfig(CompletionDataInputConfig value)

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCompletionDataInputConfig
Returns
TypeDescription
ImportCompletionDataRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputConfig(CompletionDataInputConfig value)

public ImportCompletionDataRequest.Builder setInputConfig(CompletionDataInputConfig value)

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCompletionDataInputConfig
Returns
TypeDescription
ImportCompletionDataRequest.Builder

setInputConfig(CompletionDataInputConfig.Builder builderForValue)

public ImportCompletionDataRequest.Builder setInputConfig(CompletionDataInputConfig.Builder builderForValue)

Required. The desired input location of the data.

.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCompletionDataInputConfig.Builder
Returns
TypeDescription
ImportCompletionDataRequest.Builder

setNotificationPubsubTopic(String value)

public ImportCompletionDataRequest.Builder setNotificationPubsubTopic(String value)

Pub/Sub topic 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}.

string notification_pubsub_topic = 3;

Parameter
NameDescription
valueString

The notificationPubsubTopic to set.

Returns
TypeDescription
ImportCompletionDataRequest.Builder

This builder for chaining.

setNotificationPubsubTopicBytes(ByteString value)

public ImportCompletionDataRequest.Builder setNotificationPubsubTopicBytes(ByteString value)

Pub/Sub topic 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}.

string notification_pubsub_topic = 3;

Parameter
NameDescription
valueByteString

The bytes for notificationPubsubTopic to set.

Returns
TypeDescription
ImportCompletionDataRequest.Builder

This builder for chaining.

setParent(String value)

public ImportCompletionDataRequest.Builder setParent(String value)

Required. The catalog which the suggestions dataset belongs to.

Format: projects/1234/locations/global/catalogs/default_catalog.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportCompletionDataRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportCompletionDataRequest.Builder setParentBytes(ByteString value)

Required. The catalog which the suggestions dataset belongs to.

Format: projects/1234/locations/global/catalogs/default_catalog.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportCompletionDataRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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