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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportCompletionDataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImportCompletionDataRequest build()
buildPartial()
public ImportCompletionDataRequest buildPartial()
clear()
public ImportCompletionDataRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ImportCompletionDataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportCompletionDataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public ImportCompletionDataRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public ImportCompletionDataRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public CompletionDataInputConfig getInputConfig()
Required. The desired input location of the data.
.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
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];
public CompletionDataInputConfigOrBuilder getInputConfigOrBuilder()
Required. The desired input location of the data.
.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
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.
|
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 |
---|
Type | Description |
boolean | Whether the inputConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ImportCompletionDataRequest other)
public ImportCompletionDataRequest.Builder mergeFrom(ImportCompletionDataRequest other)
public ImportCompletionDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImportCompletionDataRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportCompletionDataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ImportCompletionDataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportCompletionDataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportCompletionDataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides