public static final class ListSpacesRequest.Builder extends GeneratedMessage.Builder<ListSpacesRequest.Builder> implements ListSpacesRequestOrBuilderA request to list the spaces the caller is a member of.
Protobuf type google.chat.v1.ListSpacesRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListSpacesRequest.BuilderImplements
ListSpacesRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ListSpacesRequest build()| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest |
|
buildPartial()
public ListSpacesRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest |
|
clear()
public ListSpacesRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
|
clearFilter()
public ListSpacesRequest.Builder clearFilter()Optional. A query filter.
You can filter spaces by the space type
(space_type).
To filter by space type, you must specify valid enum value, such as
SPACE or GROUP_CHAT (the space_type can't be
SPACE_TYPE_UNSPECIFIED). To query for multiple space types, use the OR
operator.
For example, the following queries are valid:
`
space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
Invalid queries are rejected by the server with an INVALID_ARGUMENT`
error.
string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
clearPageSize()
public ListSpacesRequest.Builder clearPageSize()Optional. The maximum number of spaces to return. The service might return fewer than this value.
If unspecified, at most 100 spaces are returned.
The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.
Negative values return an INVALID_ARGUMENT error.
int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
clearPageToken()
public ListSpacesRequest.Builder clearPageToken()Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ListSpacesRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFilter()
public String getFilter()Optional. A query filter.
You can filter spaces by the space type
(space_type).
To filter by space type, you must specify valid enum value, such as
SPACE or GROUP_CHAT (the space_type can't be
SPACE_TYPE_UNSPECIFIED). To query for multiple space types, use the OR
operator.
For example, the following queries are valid:
`
space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
Invalid queries are rejected by the server with an INVALID_ARGUMENT`
error.
string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The filter. |
getFilterBytes()
public ByteString getFilterBytes()Optional. A query filter.
You can filter spaces by the space type
(space_type).
To filter by space type, you must specify valid enum value, such as
SPACE or GROUP_CHAT (the space_type can't be
SPACE_TYPE_UNSPECIFIED). To query for multiple space types, use the OR
operator.
For example, the following queries are valid:
`
space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
Invalid queries are rejected by the server with an INVALID_ARGUMENT`
error.
string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for filter. |
getPageSize()
public int getPageSize()Optional. The maximum number of spaces to return. The service might return fewer than this value.
If unspecified, at most 100 spaces are returned.
The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.
Negative values return an INVALID_ARGUMENT error.
int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The pageSize. |
getPageToken()
public String getPageToken()Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The pageToken. |
getPageTokenBytes()
public ByteString getPageTokenBytes()Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pageToken. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListSpacesRequest other)
public ListSpacesRequest.Builder mergeFrom(ListSpacesRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ListSpacesRequest |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListSpacesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListSpacesRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
|
setFilter(String value)
public ListSpacesRequest.Builder setFilter(String value)Optional. A query filter.
You can filter spaces by the space type
(space_type).
To filter by space type, you must specify valid enum value, such as
SPACE or GROUP_CHAT (the space_type can't be
SPACE_TYPE_UNSPECIFIED). To query for multiple space types, use the OR
operator.
For example, the following queries are valid:
`
space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
Invalid queries are rejected by the server with an INVALID_ARGUMENT`
error.
string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe filter to set. |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
setFilterBytes(ByteString value)
public ListSpacesRequest.Builder setFilterBytes(ByteString value)Optional. A query filter.
You can filter spaces by the space type
(space_type).
To filter by space type, you must specify valid enum value, such as
SPACE or GROUP_CHAT (the space_type can't be
SPACE_TYPE_UNSPECIFIED). To query for multiple space types, use the OR
operator.
For example, the following queries are valid:
`
space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
Invalid queries are rejected by the server with an INVALID_ARGUMENT`
error.
string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for filter to set. |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
setPageSize(int value)
public ListSpacesRequest.Builder setPageSize(int value)Optional. The maximum number of spaces to return. The service might return fewer than this value.
If unspecified, at most 100 spaces are returned.
The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.
Negative values return an INVALID_ARGUMENT error.
int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe pageSize to set. |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
setPageToken(String value)
public ListSpacesRequest.Builder setPageToken(String value)Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe pageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |
setPageTokenBytes(ByteString value)
public ListSpacesRequest.Builder setPageTokenBytes(ByteString value)Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for pageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSpacesRequest.Builder |
This builder for chaining. |