Class ListSpacesResponse.Builder (0.5.0)

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

Protobuf type google.chat.v1.ListSpacesResponse

Static Methods

getDescriptor()

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSpacesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSpace
Returns
TypeDescription
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
NameDescription
builderForValueSpace.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSpace
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpace.Builder
Returns
TypeDescription
ListSpacesResponse.Builder

addSpacesBuilder()

public Space.Builder addSpacesBuilder()

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

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Space.Builder

build()

public ListSpacesResponse build()
Returns
TypeDescription
ListSpacesResponse

buildPartial()

public ListSpacesResponse buildPartial()
Returns
TypeDescription
ListSpacesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSpacesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListSpacesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListSpacesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListSpacesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSpacesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSpacesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getSpacesCount()

public int getSpacesCount()

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

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

Returns
TypeDescription
int

getSpacesList()

public List<Space> getSpacesList()

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

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SpaceOrBuilder

getSpacesOrBuilderList()

public List<? extends SpaceOrBuilder> getSpacesOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSpacesResponse other)

public ListSpacesResponse.Builder mergeFrom(ListSpacesResponse other)
Parameter
NameDescription
otherListSpacesResponse
Returns
TypeDescription
ListSpacesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSpacesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListSpacesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSpace
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSpace.Builder
Returns
TypeDescription
ListSpacesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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