Class ListMessagesResponse.Builder (0.15.0)

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

Response message for listing messages.

Protobuf type google.chat.v1.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)

List of messages.

repeated .google.chat.v1.Message messages = 1;

Parameter
Name Description
values Iterable<? extends com.google.chat.v1.Message>
Returns
Type Description
ListMessagesResponse.Builder

addMessages(Message value)

public ListMessagesResponse.Builder addMessages(Message value)

List of messages.

repeated .google.chat.v1.Message messages = 1;

Parameter
Name Description
value Message
Returns
Type Description
ListMessagesResponse.Builder

addMessages(Message.Builder builderForValue)

public ListMessagesResponse.Builder addMessages(Message.Builder builderForValue)

List of messages.

repeated .google.chat.v1.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)

List of messages.

repeated .google.chat.v1.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)

List of messages.

repeated .google.chat.v1.Message messages = 1;

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

addMessagesBuilder()

public Message.Builder addMessagesBuilder()

List of messages.

repeated .google.chat.v1.Message messages = 1;

Returns
Type Description
Message.Builder

addMessagesBuilder(int index)

public Message.Builder addMessagesBuilder(int index)

List of messages.

repeated .google.chat.v1.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()

List of messages.

repeated .google.chat.v1.Message messages = 1;

Returns
Type Description
ListMessagesResponse.Builder

clearNextPageToken()

public ListMessagesResponse.Builder clearNextPageToken()

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

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)

List of messages.

repeated .google.chat.v1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
Message

getMessagesBuilder(int index)

public Message.Builder getMessagesBuilder(int index)

List of messages.

repeated .google.chat.v1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
Message.Builder

getMessagesBuilderList()

public List<Message.Builder> getMessagesBuilderList()

List of messages.

repeated .google.chat.v1.Message messages = 1;

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

List of messages.

repeated .google.chat.v1.Message messages = 1;

Returns
Type Description
int

getMessagesList()

public List<Message> getMessagesList()

List of messages.

repeated .google.chat.v1.Message messages = 1;

Returns
Type Description
List<Message>

getMessagesOrBuilder(int index)

public MessageOrBuilder getMessagesOrBuilder(int index)

List of messages.

repeated .google.chat.v1.Message messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageOrBuilder> getMessagesOrBuilderList()

List of messages.

repeated .google.chat.v1.Message messages = 1;

Returns
Type Description
List<? extends com.google.chat.v1.MessageOrBuilder>

getNextPageToken()

public String getNextPageToken()

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

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)

List of messages.

repeated .google.chat.v1.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)

List of messages.

repeated .google.chat.v1.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)

List of messages.

repeated .google.chat.v1.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)

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

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)

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

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