public static final class ListMessagesResponse.Builder extends GeneratedMessageV3.Builder<ListMessagesResponse.Builder> implements ListMessagesResponseOrBuilder
The response message for Conversations.ListMessages.
Protobuf type google.cloud.dialogflow.v2beta1.ListMessagesResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllMessages(Iterable<? extends Message> values)
public ListMessagesResponse.Builder addAllMessages(Iterable<? extends Message> values)
Required. 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.v2beta1.Message messages = 1;
Parameter
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.Message>
|
Returns
addMessages(Message value)
public ListMessagesResponse.Builder addMessages(Message value)
Required. 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.v2beta1.Message messages = 1;
Parameter
Returns
addMessages(Message.Builder builderForValue)
public ListMessagesResponse.Builder addMessages(Message.Builder builderForValue)
Required. 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.v2beta1.Message messages = 1;
Parameter
Returns
addMessages(int index, Message value)
public ListMessagesResponse.Builder addMessages(int index, Message value)
Required. 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.v2beta1.Message messages = 1;
Parameters
Returns
addMessages(int index, Message.Builder builderForValue)
public ListMessagesResponse.Builder addMessages(int index, Message.Builder builderForValue)
Required. 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.v2beta1.Message messages = 1;
Parameters
Returns
addMessagesBuilder()
public Message.Builder addMessagesBuilder()
Required. 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.v2beta1.Message messages = 1;
Returns
addMessagesBuilder(int index)
public Message.Builder addMessagesBuilder(int index)
Required. 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.v2beta1.Message messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListMessagesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListMessagesResponse build()
Returns
buildPartial()
public ListMessagesResponse buildPartial()
Returns
clear()
public ListMessagesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListMessagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMessages()
public ListMessagesResponse.Builder clearMessages()
Required. 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.v2beta1.Message messages = 1;
Returns
clearNextPageToken()
public ListMessagesResponse.Builder clearNextPageToken()
Optional. 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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListMessagesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListMessagesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListMessagesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMessages(int index)
public Message getMessages(int index)
Required. 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.v2beta1.Message messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getMessagesBuilder(int index)
public Message.Builder getMessagesBuilder(int index)
Required. 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.v2beta1.Message messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getMessagesBuilderList()
public List<Message.Builder> getMessagesBuilderList()
Required. 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.v2beta1.Message messages = 1;
Returns
getMessagesCount()
public int getMessagesCount()
Required. 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.v2beta1.Message messages = 1;
Returns
getMessagesList()
public List<Message> getMessagesList()
Required. 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.v2beta1.Message messages = 1;
Returns
getMessagesOrBuilder(int index)
public MessageOrBuilder getMessagesOrBuilder(int index)
Required. 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.v2beta1.Message messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getMessagesOrBuilderList()
public List<? extends MessageOrBuilder> getMessagesOrBuilderList()
Required. 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.v2beta1.Message messages = 1;
Returns
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.MessageOrBuilder> |
|
getNextPageToken()
public String getNextPageToken()
Optional. 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()
Optional. 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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListMessagesResponse other)
public ListMessagesResponse.Builder mergeFrom(ListMessagesResponse other)
Parameter
Returns
public ListMessagesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListMessagesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListMessagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMessages(int index)
public ListMessagesResponse.Builder removeMessages(int index)
Required. 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.v2beta1.Message messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListMessagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMessages(int index, Message value)
public ListMessagesResponse.Builder setMessages(int index, Message value)
Required. 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.v2beta1.Message messages = 1;
Parameters
Returns
setMessages(int index, Message.Builder builderForValue)
public ListMessagesResponse.Builder setMessages(int index, Message.Builder builderForValue)
Required. 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.v2beta1.Message messages = 1;
Parameters
Returns
setNextPageToken(String value)
public ListMessagesResponse.Builder setNextPageToken(String value)
Optional. 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
setNextPageTokenBytes(ByteString value)
public ListMessagesResponse.Builder setNextPageTokenBytes(ByteString value)
Optional. 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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListMessagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListMessagesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides