Class ListMessagesResponse.Builder (4.38.0)

public static final class ListMessagesResponse.Builder extends GeneratedMessageV3.Builder<ListMessagesResponse.Builder> implements ListMessagesResponseOrBuilder

The response message for Conversations.ListMessages.

Protobuf type google.cloud.dialogflow.v2.ListMessagesResponse

Static Methods

getDescriptor()

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

Methods

addAllMessages(Iterable<? extends Message> values)

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

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

addMessages(Message value)

public ListMessagesResponse.Builder addMessages(Message value)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Parameter
Name Description
value Message
Returns
Type Description
ListMessagesResponse.Builder

addMessages(Message.Builder builderForValue)

public ListMessagesResponse.Builder addMessages(Message.Builder builderForValue)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

addMessages(int index, Message value)

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

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

addMessages(int index, Message.Builder builderForValue)

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

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

addMessagesBuilder()

public Message.Builder addMessagesBuilder()

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Returns
Type Description
Message.Builder

addMessagesBuilder(int index)

public Message.Builder addMessagesBuilder(int index)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Parameter
Name Description
index int
Returns
Type Description
Message.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMessagesResponse build()
Returns
Type Description
ListMessagesResponse

buildPartial()

public ListMessagesResponse buildPartial()
Returns
Type Description
ListMessagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public ListMessagesResponse.Builder clearMessages()

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Returns
Type Description
ListMessagesResponse.Builder

clearNextPageToken()

public ListMessagesResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListMessagesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMessagesResponse getDefaultInstanceForType()
Returns
Type Description
ListMessagesResponse

getDescriptorForType()

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

getMessages(int index)

public Message getMessages(int index)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Parameter
Name Description
index int
Returns
Type Description
Message

getMessagesBuilder(int index)

public Message.Builder getMessagesBuilder(int index)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Parameter
Name Description
index int
Returns
Type Description
Message.Builder

getMessagesBuilderList()

public List<Message.Builder> getMessagesBuilderList()

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Returns
Type Description
int

getMessagesList()

public List<Message> getMessagesList()

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Returns
Type Description
List<Message>

getMessagesOrBuilder(int index)

public MessageOrBuilder getMessagesOrBuilder(int index)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Parameter
Name Description
index int
Returns
Type Description
MessageOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageOrBuilder> getMessagesOrBuilderList()

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMessagesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public ListMessagesResponse.Builder removeMessages(int index)

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

Parameter
Name Description
index int
Returns
Type Description
ListMessagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessages(int index, Message value)

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

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

setMessages(int index, Message.Builder builderForValue)

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

The list of messages. There will be a maximum number of items returned based on the page_size field in the request. messages is sorted by create_time in descending order.

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

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

setNextPageToken(String value)

public ListMessagesResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListMessagesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMessagesResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListMessagesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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