Class BatchCreateMessagesResponse.Builder (4.52.0)

public static final class BatchCreateMessagesResponse.Builder extends GeneratedMessageV3.Builder<BatchCreateMessagesResponse.Builder> implements BatchCreateMessagesResponseOrBuilder

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

Protobuf type google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse

Static Methods

getDescriptor()

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

Methods

addAllMessages(Iterable<? extends Message> values)

public BatchCreateMessagesResponse.Builder addAllMessages(Iterable<? extends Message> values)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

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

addMessages(Message value)

public BatchCreateMessagesResponse.Builder addMessages(Message value)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
value Message
Returns
Type Description
BatchCreateMessagesResponse.Builder

addMessages(Message.Builder builderForValue)

public BatchCreateMessagesResponse.Builder addMessages(Message.Builder builderForValue)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
builderForValue Message.Builder
Returns
Type Description
BatchCreateMessagesResponse.Builder

addMessages(int index, Message value)

public BatchCreateMessagesResponse.Builder addMessages(int index, Message value)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameters
Name Description
index int
value Message
Returns
Type Description
BatchCreateMessagesResponse.Builder

addMessages(int index, Message.Builder builderForValue)

public BatchCreateMessagesResponse.Builder addMessages(int index, Message.Builder builderForValue)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameters
Name Description
index int
builderForValue Message.Builder
Returns
Type Description
BatchCreateMessagesResponse.Builder

addMessagesBuilder()

public Message.Builder addMessagesBuilder()

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Returns
Type Description
Message.Builder

addMessagesBuilder(int index)

public Message.Builder addMessagesBuilder(int index)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
Message.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchCreateMessagesResponse build()
Returns
Type Description
BatchCreateMessagesResponse

buildPartial()

public BatchCreateMessagesResponse buildPartial()
Returns
Type Description
BatchCreateMessagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public BatchCreateMessagesResponse.Builder clearMessages()

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Returns
Type Description
BatchCreateMessagesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BatchCreateMessagesResponse getDefaultInstanceForType()
Returns
Type Description
BatchCreateMessagesResponse

getDescriptorForType()

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

getMessages(int index)

public Message getMessages(int index)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
Message

getMessagesBuilder(int index)

public Message.Builder getMessagesBuilder(int index)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
Message.Builder

getMessagesBuilderList()

public List<Message.Builder> getMessagesBuilderList()

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Returns
Type Description
int

getMessagesList()

public List<Message> getMessagesList()

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Returns
Type Description
List<Message>

getMessagesOrBuilder(int index)

public MessageOrBuilder getMessagesOrBuilder(int index)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageOrBuilder> getMessagesOrBuilderList()

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateMessagesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public BatchCreateMessagesResponse.Builder removeMessages(int index)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchCreateMessagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessages(int index, Message value)

public BatchCreateMessagesResponse.Builder setMessages(int index, Message value)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameters
Name Description
index int
value Message
Returns
Type Description
BatchCreateMessagesResponse.Builder

setMessages(int index, Message.Builder builderForValue)

public BatchCreateMessagesResponse.Builder setMessages(int index, Message.Builder builderForValue)

Messages created.

repeated .google.cloud.dialogflow.v2beta1.Message messages = 1;

Parameters
Name Description
index int
builderForValue Message.Builder
Returns
Type Description
BatchCreateMessagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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