Class BatchCreateMessagesResponse.Builder (4.4.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

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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Message>
Returns
TypeDescription
BatchCreateMessagesResponse.Builder

addMessages(Message value)

public BatchCreateMessagesResponse.Builder addMessages(Message value)

Messages created.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
BatchCreateMessagesResponse.Builder

addMessages(Message.Builder builderForValue)

public BatchCreateMessagesResponse.Builder addMessages(Message.Builder builderForValue)

Messages created.

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

Parameter
NameDescription
builderForValueMessage.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMessage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMessage.Builder
Returns
TypeDescription
BatchCreateMessagesResponse.Builder

addMessagesBuilder()

public Message.Builder addMessagesBuilder()

Messages created.

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

Returns
TypeDescription
Message.Builder

addMessagesBuilder(int index)

public Message.Builder addMessagesBuilder(int index)

Messages created.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Message.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchCreateMessagesResponse build()
Returns
TypeDescription
BatchCreateMessagesResponse

buildPartial()

public BatchCreateMessagesResponse buildPartial()
Returns
TypeDescription
BatchCreateMessagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public BatchCreateMessagesResponse.Builder clearMessages()

Messages created.

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

Returns
TypeDescription
BatchCreateMessagesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateMessagesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchCreateMessagesResponse.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public BatchCreateMessagesResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateMessagesResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessages(int index)

public Message getMessages(int index)

Messages created.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Message

getMessagesBuilder(int index)

public Message.Builder getMessagesBuilder(int index)

Messages created.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Message.Builder

getMessagesBuilderList()

public List<Message.Builder> getMessagesBuilderList()

Messages created.

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

Returns
TypeDescription
List<Builder>

getMessagesCount()

public int getMessagesCount()

Messages created.

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

Returns
TypeDescription
int

getMessagesList()

public List<Message> getMessagesList()

Messages created.

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

Returns
TypeDescription
List<Message>

getMessagesOrBuilder(int index)

public MessageOrBuilder getMessagesOrBuilder(int index)

Messages created.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MessageOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageOrBuilder> getMessagesOrBuilderList()

Messages created.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateMessagesResponse other)

public BatchCreateMessagesResponse.Builder mergeFrom(BatchCreateMessagesResponse other)
Parameter
NameDescription
otherBatchCreateMessagesResponse
Returns
TypeDescription
BatchCreateMessagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public BatchCreateMessagesResponse.Builder removeMessages(int index)

Messages created.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchCreateMessagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchCreateMessagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateMessagesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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