Class ListMessagesResponse.Builder (0.3.0)

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

Protobuf type google.chat.v1.ListMessagesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.chat.v1.Message>
Returns
TypeDescription
ListMessagesResponse.Builder

addMessages(Message value)

public ListMessagesResponse.Builder addMessages(Message value)

List of messages.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
ListMessagesResponse.Builder

addMessages(Message.Builder builderForValue)

public ListMessagesResponse.Builder addMessages(Message.Builder builderForValue)

List of messages.

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

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

addMessagesBuilder()

public Message.Builder addMessagesBuilder()

List of messages.

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

Returns
TypeDescription
Message.Builder

addMessagesBuilder(int index)

public Message.Builder addMessagesBuilder(int index)

List of messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Message.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMessagesResponse build()
Returns
TypeDescription
ListMessagesResponse

buildPartial()

public ListMessagesResponse buildPartial()
Returns
TypeDescription
ListMessagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public ListMessagesResponse.Builder clearMessages()

List of messages.

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

Returns
TypeDescription
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
TypeDescription
ListMessagesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMessagesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMessagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessages(int index)

public Message getMessages(int index)

List of messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Message

getMessagesBuilder(int index)

public Message.Builder getMessagesBuilder(int index)

List of messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Message.Builder

getMessagesBuilderList()

public List<Message.Builder> getMessagesBuilderList()

List of messages.

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

Returns
TypeDescription
List<Builder>

getMessagesCount()

public int getMessagesCount()

List of messages.

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

Returns
TypeDescription
int

getMessagesList()

public List<Message> getMessagesList()

List of messages.

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

Returns
TypeDescription
List<Message>

getMessagesOrBuilder(int index)

public MessageOrBuilder getMessagesOrBuilder(int index)

List of messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MessageOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageOrBuilder> getMessagesOrBuilderList()

List of messages.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMessagesResponse other)

public ListMessagesResponse.Builder mergeFrom(ListMessagesResponse other)
Parameter
NameDescription
otherListMessagesResponse
Returns
TypeDescription
ListMessagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public ListMessagesResponse.Builder removeMessages(int index)

List of messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListMessagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListMessagesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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