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
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
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.CreateMessageRequest>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateMessagesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Name |
Description |
index |
int
|
Returns
build()
public BatchCreateMessagesRequest build()
Returns
buildPartial()
public BatchCreateMessagesRequest buildPartial()
Returns
clear()
public BatchCreateMessagesRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchCreateMessagesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchCreateMessagesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public BatchCreateMessagesRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BatchCreateMessagesRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Name |
Description |
index |
int
|
Returns
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
Name |
Description |
index |
int
|
Returns
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
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
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
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
Name |
Description |
index |
int
|
Returns
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
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.CreateMessageRequestOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BatchCreateMessagesRequest other)
public BatchCreateMessagesRequest.Builder mergeFrom(BatchCreateMessagesRequest other)
Parameter
Returns
public BatchCreateMessagesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BatchCreateMessagesRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateMessagesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name |
Description |
index |
int
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateMessagesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchCreateMessagesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateMessagesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides