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
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
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateMessagesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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];
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];
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];
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
|
build()
public BatchCreateMessagesRequest build()
buildPartial()
public BatchCreateMessagesRequest buildPartial()
clear()
public BatchCreateMessagesRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchCreateMessagesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchCreateMessagesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
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];
clone()
public BatchCreateMessagesRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public BatchCreateMessagesRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BatchCreateMessagesRequest other)
public BatchCreateMessagesRequest.Builder mergeFrom(BatchCreateMessagesRequest other)
public BatchCreateMessagesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchCreateMessagesRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateMessagesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateMessagesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchCreateMessagesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateMessagesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides