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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportCompletionDataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ImportCompletionDataRequest build()
Returns
buildPartial()
public ImportCompletionDataRequest buildPartial()
Returns
clear()
public ImportCompletionDataRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ImportCompletionDataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
clearNotificationPubsubTopic()
public ImportCompletionDataRequest.Builder clearNotificationPubsubTopic()
Pub/Sub topic for receiving notification. If this field is set,
when the import is finished, a notification will be sent to
specified Pub/Sub topic. The message data will be JSON string of a
Operation.
Format of the Pub/Sub topic is projects/{project}/topics/{topic}
.
string notification_pubsub_topic = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportCompletionDataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ImportCompletionDataRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ImportCompletionDataRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
getNotificationPubsubTopic()
public String getNotificationPubsubTopic()
Pub/Sub topic for receiving notification. If this field is set,
when the import is finished, a notification will be sent to
specified Pub/Sub topic. The message data will be 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 will be sent to
specified Pub/Sub topic. The message data will be 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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ImportCompletionDataRequest other)
public ImportCompletionDataRequest.Builder mergeFrom(ImportCompletionDataRequest other)
Parameter
Returns
public ImportCompletionDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ImportCompletionDataRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportCompletionDataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ImportCompletionDataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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 will be sent to
specified Pub/Sub topic. The message data will be 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
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 will be sent to
specified Pub/Sub topic. The message data will be 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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportCompletionDataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportCompletionDataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides