Class BatchCreateMessagesRequest.Builder (4.7.5)

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
TypeDescription
Descriptor

Methods

addAllRequests(Iterable<? extends CreateMessageRequest> values)

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

Required. A maximum of 1000 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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.CreateMessageRequest>
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(CreateMessageRequest value)

public BatchCreateMessagesRequest.Builder addRequests(CreateMessageRequest value)

Required. A maximum of 1000 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
NameDescription
valueCreateMessageRequest
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

addRequests(CreateMessageRequest.Builder builderForValue)

public BatchCreateMessagesRequest.Builder addRequests(CreateMessageRequest.Builder builderForValue)

Required. A maximum of 1000 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
NameDescription
builderForValueCreateMessageRequest.Builder
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

addRequests(int index, CreateMessageRequest value)

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

Required. A maximum of 1000 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
NameDescription
indexint
valueCreateMessageRequest
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

addRequests(int index, CreateMessageRequest.Builder builderForValue)

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

Required. A maximum of 1000 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
NameDescription
indexint
builderForValueCreateMessageRequest.Builder
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

addRequestsBuilder()

public CreateMessageRequest.Builder addRequestsBuilder()

Required. A maximum of 1000 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
TypeDescription
CreateMessageRequest.Builder

addRequestsBuilder(int index)

public CreateMessageRequest.Builder addRequestsBuilder(int index)

Required. A maximum of 1000 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
NameDescription
indexint
Returns
TypeDescription
CreateMessageRequest.Builder

build()

public BatchCreateMessagesRequest build()
Returns
TypeDescription
BatchCreateMessagesRequest

buildPartial()

public BatchCreateMessagesRequest buildPartial()
Returns
TypeDescription
BatchCreateMessagesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateMessagesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BatchCreateMessagesRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateMessagesRequest.Builder clearRequests()

Required. A maximum of 1000 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
TypeDescription
BatchCreateMessagesRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchCreateMessagesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateMessagesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getRequests(int index)

public CreateMessageRequest getRequests(int index)

Required. A maximum of 1000 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
NameDescription
indexint
Returns
TypeDescription
CreateMessageRequest

getRequestsBuilder(int index)

public CreateMessageRequest.Builder getRequestsBuilder(int index)

Required. A maximum of 1000 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
NameDescription
indexint
Returns
TypeDescription
CreateMessageRequest.Builder

getRequestsBuilderList()

public List<CreateMessageRequest.Builder> getRequestsBuilderList()

Required. A maximum of 1000 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
TypeDescription
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. A maximum of 1000 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
TypeDescription
int

getRequestsList()

public List<CreateMessageRequest> getRequestsList()

Required. A maximum of 1000 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
TypeDescription
List<CreateMessageRequest>

getRequestsOrBuilder(int index)

public CreateMessageRequestOrBuilder getRequestsOrBuilder(int index)

Required. A maximum of 1000 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
NameDescription
indexint
Returns
TypeDescription
CreateMessageRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateMessageRequestOrBuilder> getRequestsOrBuilderList()

Required. A maximum of 1000 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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.CreateMessageRequestOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateMessagesRequest other)

public BatchCreateMessagesRequest.Builder mergeFrom(BatchCreateMessagesRequest other)
Parameter
NameDescription
otherBatchCreateMessagesRequest
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchCreateMessagesRequest.Builder removeRequests(int index)

Required. A maximum of 1000 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
NameDescription
indexint
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateMessagesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateMessagesRequest.Builder
Overrides

setRequests(int index, CreateMessageRequest value)

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

Required. A maximum of 1000 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
NameDescription
indexint
valueCreateMessageRequest
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

setRequests(int index, CreateMessageRequest.Builder builderForValue)

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

Required. A maximum of 1000 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
NameDescription
indexint
builderForValueCreateMessageRequest.Builder
Returns
TypeDescription
BatchCreateMessagesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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