Class SearchSpacesResponse.Builder (0.18.0)

public static final class SearchSpacesResponse.Builder extends GeneratedMessageV3.Builder<SearchSpacesResponse.Builder> implements SearchSpacesResponseOrBuilder

Response with a list of spaces corresponding to the search spaces request.

Protobuf type google.chat.v1.SearchSpacesResponse

Static Methods

getDescriptor()

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

Methods

addAllSpaces(Iterable<? extends Space> values)

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

A page of the requested spaces.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSpaces(Space value)

public SearchSpacesResponse.Builder addSpaces(Space value)

A page of the requested spaces.

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

Parameter
Name Description
value Space
Returns
Type Description
SearchSpacesResponse.Builder

addSpaces(Space.Builder builderForValue)

public SearchSpacesResponse.Builder addSpaces(Space.Builder builderForValue)

A page of the requested spaces.

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

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

addSpaces(int index, Space value)

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

A page of the requested spaces.

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

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

addSpaces(int index, Space.Builder builderForValue)

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

A page of the requested spaces.

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

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

addSpacesBuilder()

public Space.Builder addSpacesBuilder()

A page of the requested spaces.

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

Returns
Type Description
Space.Builder

addSpacesBuilder(int index)

public Space.Builder addSpacesBuilder(int index)

A page of the requested spaces.

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

Parameter
Name Description
index int
Returns
Type Description
Space.Builder

build()

public SearchSpacesResponse build()
Returns
Type Description
SearchSpacesResponse

buildPartial()

public SearchSpacesResponse buildPartial()
Returns
Type Description
SearchSpacesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public SearchSpacesResponse.Builder clearNextPageToken()

A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
SearchSpacesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSpaces()

public SearchSpacesResponse.Builder clearSpaces()

A page of the requested spaces.

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

Returns
Type Description
SearchSpacesResponse.Builder

clearTotalSize()

public SearchSpacesResponse.Builder clearTotalSize()

The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate.

int32 total_size = 3;

Returns
Type Description
SearchSpacesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SearchSpacesResponse getDefaultInstanceForType()
Returns
Type Description
SearchSpacesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be used to retrieve the next page. If this field is 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)

A page of the requested spaces.

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)

A page of the requested spaces.

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

Parameter
Name Description
index int
Returns
Type Description
Space.Builder

getSpacesBuilderList()

public List<Space.Builder> getSpacesBuilderList()

A page of the requested spaces.

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

Returns
Type Description
List<Builder>

getSpacesCount()

public int getSpacesCount()

A page of the requested spaces.

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

Returns
Type Description
int

getSpacesList()

public List<Space> getSpacesList()

A page of the requested spaces.

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

Returns
Type Description
List<Space>

getSpacesOrBuilder(int index)

public SpaceOrBuilder getSpacesOrBuilder(int index)

A page of the requested spaces.

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

Parameter
Name Description
index int
Returns
Type Description
SpaceOrBuilder

getSpacesOrBuilderList()

public List<? extends SpaceOrBuilder> getSpacesOrBuilderList()

A page of the requested spaces.

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

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

getTotalSize()

public int getTotalSize()

The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate.

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchSpacesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSpaces(int index)

public SearchSpacesResponse.Builder removeSpaces(int index)

A page of the requested spaces.

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

Parameter
Name Description
index int
Returns
Type Description
SearchSpacesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchSpacesResponse.Builder setNextPageToken(String value)

A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchSpacesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchSpacesResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be used to retrieve the next page. If this field is 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
SearchSpacesResponse.Builder

This builder for chaining.

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

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

setSpaces(int index, Space value)

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

A page of the requested spaces.

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

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

setSpaces(int index, Space.Builder builderForValue)

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

A page of the requested spaces.

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

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

setTotalSize(int value)

public SearchSpacesResponse.Builder setTotalSize(int value)

The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate.

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
SearchSpacesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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