public static final class ListSpacesResponse.Builder extends GeneratedMessage.Builder<ListSpacesResponse.Builder> implements ListSpacesResponseOrBuilderThe response for a list spaces request.
Protobuf type google.chat.v1.ListSpacesResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListSpacesResponse.BuilderImplements
ListSpacesResponseOrBuilderStatic 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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
repeated .google.chat.v1.Space spaces = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.chat.v1.Space> |
| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse.Builder |
|
addSpaces(Space value)
public ListSpacesResponse.Builder addSpaces(Space value) List of spaces in the requested (or first) page.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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 |
|
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. |
clearSpaces()
public ListSpacesResponse.Builder clearSpaces() List of spaces in the requested (or first) page.
Note: The permissionSettings field is not returned in the Space
object for list requests.
repeated .google.chat.v1.Space spaces = 1;
| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse.Builder |
|
getDefaultInstanceForType()
public ListSpacesResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
repeated .google.chat.v1.Space spaces = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.chat.v1.SpaceOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListSpacesResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse.Builder |
|
removeSpaces(int index)
public ListSpacesResponse.Builder removeSpaces(int index) List of spaces in the requested (or first) page.
Note: The permissionSettings field is not returned in the Space
object for list requests.
repeated .google.chat.v1.Space spaces = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse.Builder |
This builder for chaining. |
setSpaces(int index, Space value)
public ListSpacesResponse.Builder setSpaces(int index, Space value) List of spaces in the requested (or first) page.
Note: The permissionSettings field is not returned in the Space
object for list requests.
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.
Note: The permissionSettings field is not returned in the Space
object for list requests.
repeated .google.chat.v1.Space spaces = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Space.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSpacesResponse.Builder |
|