public final class BatchCreateMessagesRequest extends GeneratedMessageV3 implements BatchCreateMessagesRequestOrBuilder
The request message for [Conversations.BatchCreateMessagesRequest][].
Protobuf type google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest
Fields
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
REQUESTS_FIELD_NUMBER
public static final int REQUESTS_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static BatchCreateMessagesRequest getDefaultInstance()
Returns
getDefaultInstanceForType()
public BatchCreateMessagesRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
getParserForType()
public Parser<BatchCreateMessagesRequest> getParserForType()
Returns
Overrides
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
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
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> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static BatchCreateMessagesRequest.Builder newBuilder()
Returns
newBuilder(BatchCreateMessagesRequest prototype)
public static BatchCreateMessagesRequest.Builder newBuilder(BatchCreateMessagesRequest prototype)
Parameter
Returns
newBuilderForType()
public BatchCreateMessagesRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BatchCreateMessagesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static BatchCreateMessagesRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchCreateMessagesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BatchCreateMessagesRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BatchCreateMessagesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BatchCreateMessagesRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchCreateMessagesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateMessagesRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BatchCreateMessagesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateMessagesRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchCreateMessagesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BatchCreateMessagesRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BatchCreateMessagesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BatchCreateMessagesRequest> parser()
Returns
toBuilder()
public BatchCreateMessagesRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions