public static final class SearchSpacesResponse.Builder extends GeneratedMessage.Builder<SearchSpacesResponse.Builder> implements SearchSpacesResponseOrBuilderResponse with a list of spaces corresponding to the search spaces request.
Protobuf type google.chat.v1.SearchSpacesResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SearchSpacesResponse.BuilderImplements
SearchSpacesResponseOrBuilderStatic 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 |
|
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 |
|
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. |
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. |
getDefaultInstanceForType()
public SearchSpacesResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SearchSpacesResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
This builder for chaining. |
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 |
intThe totalSize to set. |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
This builder for chaining. |