Class ListSpacesResponse.Builder (0.10.0)

public static final class ListSpacesResponse.Builder extends GeneratedMessageV3.Builder<ListSpacesResponse.Builder> implements ListSpacesResponseOrBuilder

The response for a list spaces request.

Protobuf type google.chat.v1.ListSpacesResponse

Static Methods

getDescriptor()

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

Methods

addAllSpaces(Iterable<? extends Space> values)

public ListSpacesResponse.Builder addAllSpaces(Iterable<? extends Space> values)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSpaces(Space value)

public ListSpacesResponse.Builder addSpaces(Space value)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
value Space
Returns
Type Description
ListSpacesResponse.Builder

addSpaces(Space.Builder builderForValue)

public ListSpacesResponse.Builder addSpaces(Space.Builder builderForValue)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
builderForValue Space.Builder
Returns
Type Description
ListSpacesResponse.Builder

addSpaces(int index, Space value)

public ListSpacesResponse.Builder addSpaces(int index, Space value)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameters
Name Description
index int
value Space
Returns
Type Description
ListSpacesResponse.Builder

addSpaces(int index, Space.Builder builderForValue)

public ListSpacesResponse.Builder addSpaces(int index, Space.Builder builderForValue)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameters
Name Description
index int
builderForValue Space.Builder
Returns
Type Description
ListSpacesResponse.Builder

addSpacesBuilder()

public Space.Builder addSpacesBuilder()

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Returns
Type Description
Space.Builder

addSpacesBuilder(int index)

public Space.Builder addSpacesBuilder(int index)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
index int
Returns
Type Description
Space.Builder

build()

public ListSpacesResponse build()
Returns
Type Description
ListSpacesResponse

buildPartial()

public ListSpacesResponse buildPartial()
Returns
Type Description
ListSpacesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSpacesResponse.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
ListSpacesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSpaces()

public ListSpacesResponse.Builder clearSpaces()

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Returns
Type Description
ListSpacesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSpacesResponse getDefaultInstanceForType()
Returns
Type Description
ListSpacesResponse

getDescriptorForType()

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

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.

getSpaces(int index)

public Space getSpaces(int index)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
index int
Returns
Type Description
Space

getSpacesBuilder(int index)

public Space.Builder getSpacesBuilder(int index)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
index int
Returns
Type Description
Space.Builder

getSpacesBuilderList()

public List<Space.Builder> getSpacesBuilderList()

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Returns
Type Description
List<Builder>

getSpacesCount()

public int getSpacesCount()

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Returns
Type Description
int

getSpacesList()

public List<Space> getSpacesList()

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Returns
Type Description
List<Space>

getSpacesOrBuilder(int index)

public SpaceOrBuilder getSpacesOrBuilder(int index)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
index int
Returns
Type Description
SpaceOrBuilder

getSpacesOrBuilderList()

public List<? extends SpaceOrBuilder> getSpacesOrBuilderList()

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSpacesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSpaces(int index)

public ListSpacesResponse.Builder removeSpaces(int index)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSpacesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSpacesResponse.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
ListSpacesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSpacesResponse.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
ListSpacesResponse.Builder

This builder for chaining.

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

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

setSpaces(int index, Space value)

public ListSpacesResponse.Builder setSpaces(int index, Space value)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameters
Name Description
index int
value Space
Returns
Type Description
ListSpacesResponse.Builder

setSpaces(int index, Space.Builder builderForValue)

public ListSpacesResponse.Builder setSpaces(int index, Space.Builder builderForValue)

List of spaces in the requested (or first) page.

repeated .google.chat.v1.Space spaces = 1;

Parameters
Name Description
index int
builderForValue Space.Builder
Returns
Type Description
ListSpacesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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