Class BatchCreateMessagesRequest.Builder (4.60.0)

public static final class BatchCreateMessagesRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateMessagesRequest.Builder> implements BatchCreateMessagesRequestOrBuilder

The request message for [Conversations.BatchCreateMessagesRequest][].

Protobuf type google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateMessageRequest> values)

public BatchCreateMessagesRequest.Builder addAllRequests(Iterable<? extends CreateMessageRequest> values)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.CreateMessageRequest>
Returns
Type Description
BatchCreateMessagesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(CreateMessageRequest value)

public BatchCreateMessagesRequest.Builder addRequests(CreateMessageRequest value)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CreateMessageRequest
Returns
Type Description
BatchCreateMessagesRequest.Builder

addRequests(CreateMessageRequest.Builder builderForValue)

public BatchCreateMessagesRequest.Builder addRequests(CreateMessageRequest.Builder builderForValue)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CreateMessageRequest.Builder
Returns
Type Description
BatchCreateMessagesRequest.Builder

addRequests(int index, CreateMessageRequest value)

public BatchCreateMessagesRequest.Builder addRequests(int index, CreateMessageRequest value)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateMessageRequest
Returns
Type Description
BatchCreateMessagesRequest.Builder

addRequests(int index, CreateMessageRequest.Builder builderForValue)

public BatchCreateMessagesRequest.Builder addRequests(int index, CreateMessageRequest.Builder builderForValue)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateMessageRequest.Builder
Returns
Type Description
BatchCreateMessagesRequest.Builder

addRequestsBuilder()

public CreateMessageRequest.Builder addRequestsBuilder()

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMessageRequest.Builder

addRequestsBuilder(int index)

public CreateMessageRequest.Builder addRequestsBuilder(int index)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMessageRequest.Builder

build()

public BatchCreateMessagesRequest build()
Returns
Type Description
BatchCreateMessagesRequest

buildPartial()

public BatchCreateMessagesRequest buildPartial()
Returns
Type Description
BatchCreateMessagesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateMessagesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchCreateMessagesRequest.Builder
Overrides

clearParent()

public BatchCreateMessagesRequest.Builder clearParent()

Required. Resource identifier of the conversation to create message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Returns
Type Description
BatchCreateMessagesRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateMessagesRequest.Builder clearRequests()

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreateMessagesRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchCreateMessagesRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateMessagesRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Resource identifier of the conversation to create message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource identifier of the conversation to create message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public CreateMessageRequest getRequests(int index)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMessageRequest

getRequestsBuilder(int index)

public CreateMessageRequest.Builder getRequestsBuilder(int index)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMessageRequest.Builder

getRequestsBuilderList()

public List<CreateMessageRequest.Builder> getRequestsBuilderList()

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<CreateMessageRequest> getRequestsList()

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CreateMessageRequest>

getRequestsOrBuilder(int index)

public CreateMessageRequestOrBuilder getRequestsOrBuilder(int index)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMessageRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateMessageRequestOrBuilder> getRequestsOrBuilderList()

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.CreateMessageRequestOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateMessagesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchCreateMessagesRequest.Builder removeRequests(int index)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreateMessagesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchCreateMessagesRequest.Builder setParent(String value)

Required. Resource identifier of the conversation to create message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchCreateMessagesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateMessagesRequest.Builder setParentBytes(ByteString value)

Required. Resource identifier of the conversation to create message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

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
BatchCreateMessagesRequest.Builder

This builder for chaining.

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

public BatchCreateMessagesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCreateMessagesRequest.Builder
Overrides

setRequests(int index, CreateMessageRequest value)

public BatchCreateMessagesRequest.Builder setRequests(int index, CreateMessageRequest value)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateMessageRequest
Returns
Type Description
BatchCreateMessagesRequest.Builder

setRequests(int index, CreateMessageRequest.Builder builderForValue)

public BatchCreateMessagesRequest.Builder setRequests(int index, CreateMessageRequest.Builder builderForValue)

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

repeated .google.cloud.dialogflow.v2beta1.CreateMessageRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateMessageRequest.Builder
Returns
Type Description
BatchCreateMessagesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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