Class ImportCompletionDataRequest.Builder (2.51.0)

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

Request message for ImportCompletionData methods.

Protobuf type google.cloud.retail.v2beta.ImportCompletionDataRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportCompletionDataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

build()

public ImportCompletionDataRequest build()
Returns
Type Description
ImportCompletionDataRequest

buildPartial()

public ImportCompletionDataRequest buildPartial()
Returns
Type Description
ImportCompletionDataRequest

clear()

public ImportCompletionDataRequest.Builder clear()
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportCompletionDataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

clearInputConfig()

public ImportCompletionDataRequest.Builder clearInputConfig()

Required. The desired input location of the data.

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

Returns
Type Description
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
Type Description
ImportCompletionDataRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportCompletionDataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
ImportCompletionDataRequest.Builder

This builder for chaining.

clone()

public ImportCompletionDataRequest.Builder clone()
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportCompletionDataRequest getDefaultInstanceForType()
Returns
Type Description
ImportCompletionDataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInputConfig()

public CompletionDataInputConfig getInputConfig()

Required. The desired input location of the data.

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

Returns
Type Description
CompletionDataInputConfig

The inputConfig.

getInputConfigBuilder()

public CompletionDataInputConfig.Builder getInputConfigBuilder()

Required. The desired input location of the data.

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

Returns
Type Description
CompletionDataInputConfig.Builder

getInputConfigOrBuilder()

public CompletionDataInputConfigOrBuilder getInputConfigOrBuilder()

Required. The desired input location of the data.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for parent.

hasInputConfig()

public boolean hasInputConfig()

Required. The desired input location of the data.

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

Returns
Type Description
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportCompletionDataRequest other)

public ImportCompletionDataRequest.Builder mergeFrom(ImportCompletionDataRequest other)
Parameter
Name Description
other ImportCompletionDataRequest
Returns
Type Description
ImportCompletionDataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportCompletionDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportCompletionDataRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

mergeInputConfig(CompletionDataInputConfig value)

public ImportCompletionDataRequest.Builder mergeInputConfig(CompletionDataInputConfig value)

Required. The desired input location of the data.

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

Parameter
Name Description
value CompletionDataInputConfig
Returns
Type Description
ImportCompletionDataRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportCompletionDataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportCompletionDataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

setInputConfig(CompletionDataInputConfig value)

public ImportCompletionDataRequest.Builder setInputConfig(CompletionDataInputConfig value)

Required. The desired input location of the data.

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

Parameter
Name Description
value CompletionDataInputConfig
Returns
Type Description
ImportCompletionDataRequest.Builder

setInputConfig(CompletionDataInputConfig.Builder builderForValue)

public ImportCompletionDataRequest.Builder setInputConfig(CompletionDataInputConfig.Builder builderForValue)

Required. The desired input location of the data.

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

Parameter
Name Description
builderForValue CompletionDataInputConfig.Builder
Returns
Type Description
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
Name Description
value String

The notificationPubsubTopic to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for notificationPubsubTopic to set.

Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportCompletionDataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportCompletionDataRequest.Builder
Overrides