public static final class SearchSpacesRequest.Builder extends GeneratedMessageV3.Builder<SearchSpacesRequest.Builder> implements SearchSpacesRequestOrBuilder
Request to search for a list of spaces based on a query.
Protobuf type google.chat.v1.SearchSpacesRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchSpacesRequest.BuilderImplements
SearchSpacesRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchSpacesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
build()
public SearchSpacesRequest build()
Returns | |
---|---|
Type | Description |
SearchSpacesRequest |
buildPartial()
public SearchSpacesRequest buildPartial()
Returns | |
---|---|
Type | Description |
SearchSpacesRequest |
clear()
public SearchSpacesRequest.Builder clear()
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public SearchSpacesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchSpacesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
clearOrderBy()
public SearchSpacesRequest.Builder clearOrderBy()
Optional. How the list of spaces is ordered.
Supported attributes to order by are:
membership_count.joined_direct_human_user_count
— Denotes the count of human users that have directly joined a space.last_active_time
— Denotes the time when last eligible item is added to any topic of this space.create_time
— Denotes the time of the space creation.Valid ordering operation values are:
ASC
for ascending. Default value.DESC
for descending.The supported syntax are:
membership_count.joined_direct_human_user_count DESC
membership_count.joined_direct_human_user_count ASC
last_active_time DESC
last_active_time ASC
create_time DESC
create_time ASC
string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
clearPageSize()
public SearchSpacesRequest.Builder clearPageSize()
The maximum number of spaces to return. The service may 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.
int32 page_size = 2;
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
clearPageToken()
public SearchSpacesRequest.Builder clearPageToken()
A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
string page_token = 3;
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
clearQuery()
public SearchSpacesRequest.Builder clearQuery()
Required. A search query.
You can search by using the following parameters:
create_time
customer
display_name
external_user_allowed
last_active_time
space_history_state
space_type
create_time
andlast_active_time
accept a timestamp in RFC-3339 format and the supported comparison operators are:=
,<
,>
,<=
,>=
.customer
is required and is used to indicate which customer to fetch spaces from.customers/my_customer
is the only supported value.display_name
only accepts theHAS
(:
) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space'sdisplay_name
. For example,Fun Eve
matchesFun event
orThe evening was fun
, but notnotFun event
oreven
.external_user_allowed
accepts eithertrue
orfalse
.space_history_state
only accepts values from thehistoryState
field of aspace
resource.space_type
is required and the only valid value isSPACE
.Across different fields, only
AND
operators are supported. A valid example isspace_type = "SPACE" AND display_name:"Hello"
and an invalid example isspace_type = "SPACE" OR display_name:"Hello"
.Among the same field,
space_type
doesn't supportAND
orOR
operators.display_name
, 'space_history_state', and 'external_user_allowed' only supportOR
operators.last_active_time
andcreate_time
support bothAND
andOR
operators.AND
can only be used to represent an interval, such aslast_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"
.The following example queries are valid:
`
customer = "customers/my_customer" AND space_type = "SPACE"
customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World"
customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00")
customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00")
`customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
string query = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
clearUseAdminAccess()
public SearchSpacesRequest.Builder clearUseAdminAccess()
When true
, the method runs using the user's Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires either the chat.admin.spaces.readonly
or chat.admin.spaces
OAuth 2.0
scope.
This method currently only supports admin access, thus only true
is
accepted for this field.
bool use_admin_access = 1;
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
clone()
public SearchSpacesRequest.Builder clone()
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
getDefaultInstanceForType()
public SearchSpacesRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SearchSpacesRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getOrderBy()
public String getOrderBy()
Optional. How the list of spaces is ordered.
Supported attributes to order by are:
membership_count.joined_direct_human_user_count
— Denotes the count of human users that have directly joined a space.last_active_time
— Denotes the time when last eligible item is added to any topic of this space.create_time
— Denotes the time of the space creation.Valid ordering operation values are:
ASC
for ascending. Default value.DESC
for descending.The supported syntax are:
membership_count.joined_direct_human_user_count DESC
membership_count.joined_direct_human_user_count ASC
last_active_time DESC
last_active_time ASC
create_time DESC
create_time ASC
string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The orderBy. |
getOrderByBytes()
public ByteString getOrderByBytes()
Optional. How the list of spaces is ordered.
Supported attributes to order by are:
membership_count.joined_direct_human_user_count
— Denotes the count of human users that have directly joined a space.last_active_time
— Denotes the time when last eligible item is added to any topic of this space.create_time
— Denotes the time of the space creation.Valid ordering operation values are:
ASC
for ascending. Default value.DESC
for descending.The supported syntax are:
membership_count.joined_direct_human_user_count DESC
membership_count.joined_direct_human_user_count ASC
last_active_time DESC
last_active_time ASC
create_time DESC
create_time ASC
string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for orderBy. |
getPageSize()
public int getPageSize()
The maximum number of spaces to return. The service may 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.
int32 page_size = 2;
Returns | |
---|---|
Type | Description |
int |
The pageSize. |
getPageToken()
public String getPageToken()
A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
string page_token = 3;
Returns | |
---|---|
Type | Description |
String |
The pageToken. |
getPageTokenBytes()
public ByteString getPageTokenBytes()
A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
string page_token = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for pageToken. |
getQuery()
public String getQuery()
Required. A search query.
You can search by using the following parameters:
create_time
customer
display_name
external_user_allowed
last_active_time
space_history_state
space_type
create_time
andlast_active_time
accept a timestamp in RFC-3339 format and the supported comparison operators are:=
,<
,>
,<=
,>=
.customer
is required and is used to indicate which customer to fetch spaces from.customers/my_customer
is the only supported value.display_name
only accepts theHAS
(:
) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space'sdisplay_name
. For example,Fun Eve
matchesFun event
orThe evening was fun
, but notnotFun event
oreven
.external_user_allowed
accepts eithertrue
orfalse
.space_history_state
only accepts values from thehistoryState
field of aspace
resource.space_type
is required and the only valid value isSPACE
.Across different fields, only
AND
operators are supported. A valid example isspace_type = "SPACE" AND display_name:"Hello"
and an invalid example isspace_type = "SPACE" OR display_name:"Hello"
.Among the same field,
space_type
doesn't supportAND
orOR
operators.display_name
, 'space_history_state', and 'external_user_allowed' only supportOR
operators.last_active_time
andcreate_time
support bothAND
andOR
operators.AND
can only be used to represent an interval, such aslast_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"
.The following example queries are valid:
`
customer = "customers/my_customer" AND space_type = "SPACE"
customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World"
customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00")
customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00")
`customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
string query = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The query. |
getQueryBytes()
public ByteString getQueryBytes()
Required. A search query.
You can search by using the following parameters:
create_time
customer
display_name
external_user_allowed
last_active_time
space_history_state
space_type
create_time
andlast_active_time
accept a timestamp in RFC-3339 format and the supported comparison operators are:=
,<
,>
,<=
,>=
.customer
is required and is used to indicate which customer to fetch spaces from.customers/my_customer
is the only supported value.display_name
only accepts theHAS
(:
) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space'sdisplay_name
. For example,Fun Eve
matchesFun event
orThe evening was fun
, but notnotFun event
oreven
.external_user_allowed
accepts eithertrue
orfalse
.space_history_state
only accepts values from thehistoryState
field of aspace
resource.space_type
is required and the only valid value isSPACE
.Across different fields, only
AND
operators are supported. A valid example isspace_type = "SPACE" AND display_name:"Hello"
and an invalid example isspace_type = "SPACE" OR display_name:"Hello"
.Among the same field,
space_type
doesn't supportAND
orOR
operators.display_name
, 'space_history_state', and 'external_user_allowed' only supportOR
operators.last_active_time
andcreate_time
support bothAND
andOR
operators.AND
can only be used to represent an interval, such aslast_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"
.The following example queries are valid:
`
customer = "customers/my_customer" AND space_type = "SPACE"
customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World"
customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00")
customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00")
`customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
string query = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for query. |
getUseAdminAccess()
public boolean getUseAdminAccess()
When true
, the method runs using the user's Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires either the chat.admin.spaces.readonly
or chat.admin.spaces
OAuth 2.0
scope.
This method currently only supports admin access, thus only true
is
accepted for this field.
bool use_admin_access = 1;
Returns | |
---|---|
Type | Description |
boolean |
The useAdminAccess. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SearchSpacesRequest other)
public SearchSpacesRequest.Builder mergeFrom(SearchSpacesRequest other)
Parameter | |
---|---|
Name | Description |
other |
SearchSpacesRequest |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchSpacesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SearchSpacesRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchSpacesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SearchSpacesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
setOrderBy(String value)
public SearchSpacesRequest.Builder setOrderBy(String value)
Optional. How the list of spaces is ordered.
Supported attributes to order by are:
membership_count.joined_direct_human_user_count
— Denotes the count of human users that have directly joined a space.last_active_time
— Denotes the time when last eligible item is added to any topic of this space.create_time
— Denotes the time of the space creation.Valid ordering operation values are:
ASC
for ascending. Default value.DESC
for descending.The supported syntax are:
membership_count.joined_direct_human_user_count DESC
membership_count.joined_direct_human_user_count ASC
last_active_time DESC
last_active_time ASC
create_time DESC
create_time ASC
string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The orderBy to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setOrderByBytes(ByteString value)
public SearchSpacesRequest.Builder setOrderByBytes(ByteString value)
Optional. How the list of spaces is ordered.
Supported attributes to order by are:
membership_count.joined_direct_human_user_count
— Denotes the count of human users that have directly joined a space.last_active_time
— Denotes the time when last eligible item is added to any topic of this space.create_time
— Denotes the time of the space creation.Valid ordering operation values are:
ASC
for ascending. Default value.DESC
for descending.The supported syntax are:
membership_count.joined_direct_human_user_count DESC
membership_count.joined_direct_human_user_count ASC
last_active_time DESC
last_active_time ASC
create_time DESC
create_time ASC
string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for orderBy to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setPageSize(int value)
public SearchSpacesRequest.Builder setPageSize(int value)
The maximum number of spaces to return. The service may 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.
int32 page_size = 2;
Parameter | |
---|---|
Name | Description |
value |
int The pageSize to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setPageToken(String value)
public SearchSpacesRequest.Builder setPageToken(String value)
A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
string page_token = 3;
Parameter | |
---|---|
Name | Description |
value |
String The pageToken to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setPageTokenBytes(ByteString value)
public SearchSpacesRequest.Builder setPageTokenBytes(ByteString value)
A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
string page_token = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for pageToken to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setQuery(String value)
public SearchSpacesRequest.Builder setQuery(String value)
Required. A search query.
You can search by using the following parameters:
create_time
customer
display_name
external_user_allowed
last_active_time
space_history_state
space_type
create_time
andlast_active_time
accept a timestamp in RFC-3339 format and the supported comparison operators are:=
,<
,>
,<=
,>=
.customer
is required and is used to indicate which customer to fetch spaces from.customers/my_customer
is the only supported value.display_name
only accepts theHAS
(:
) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space'sdisplay_name
. For example,Fun Eve
matchesFun event
orThe evening was fun
, but notnotFun event
oreven
.external_user_allowed
accepts eithertrue
orfalse
.space_history_state
only accepts values from thehistoryState
field of aspace
resource.space_type
is required and the only valid value isSPACE
.Across different fields, only
AND
operators are supported. A valid example isspace_type = "SPACE" AND display_name:"Hello"
and an invalid example isspace_type = "SPACE" OR display_name:"Hello"
.Among the same field,
space_type
doesn't supportAND
orOR
operators.display_name
, 'space_history_state', and 'external_user_allowed' only supportOR
operators.last_active_time
andcreate_time
support bothAND
andOR
operators.AND
can only be used to represent an interval, such aslast_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"
.The following example queries are valid:
`
customer = "customers/my_customer" AND space_type = "SPACE"
customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World"
customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00")
customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00")
`customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
string query = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The query to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setQueryBytes(ByteString value)
public SearchSpacesRequest.Builder setQueryBytes(ByteString value)
Required. A search query.
You can search by using the following parameters:
create_time
customer
display_name
external_user_allowed
last_active_time
space_history_state
space_type
create_time
andlast_active_time
accept a timestamp in RFC-3339 format and the supported comparison operators are:=
,<
,>
,<=
,>=
.customer
is required and is used to indicate which customer to fetch spaces from.customers/my_customer
is the only supported value.display_name
only accepts theHAS
(:
) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space'sdisplay_name
. For example,Fun Eve
matchesFun event
orThe evening was fun
, but notnotFun event
oreven
.external_user_allowed
accepts eithertrue
orfalse
.space_history_state
only accepts values from thehistoryState
field of aspace
resource.space_type
is required and the only valid value isSPACE
.Across different fields, only
AND
operators are supported. A valid example isspace_type = "SPACE" AND display_name:"Hello"
and an invalid example isspace_type = "SPACE" OR display_name:"Hello"
.Among the same field,
space_type
doesn't supportAND
orOR
operators.display_name
, 'space_history_state', and 'external_user_allowed' only supportOR
operators.last_active_time
andcreate_time
support bothAND
andOR
operators.AND
can only be used to represent an interval, such aslast_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"
.The following example queries are valid:
`
customer = "customers/my_customer" AND space_type = "SPACE"
customer = "customers/my_customer" AND space_type = "SPACE" AND display_name:"Hello World"
customer = "customers/my_customer" AND space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > "2022-01-01T00:00:00+00:00")
customer = "customers/my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < "2022-01-01T00:00:00+00:00")
`customer = "customers/my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
string query = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for query to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchSpacesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchSpacesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
setUseAdminAccess(boolean value)
public SearchSpacesRequest.Builder setUseAdminAccess(boolean value)
When true
, the method runs using the user's Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires either the chat.admin.spaces.readonly
or chat.admin.spaces
OAuth 2.0
scope.
This method currently only supports admin access, thus only true
is
accepted for this field.
bool use_admin_access = 1;
Parameter | |
---|---|
Name | Description |
value |
boolean The useAdminAccess to set. |
Returns | |
---|---|
Type | Description |
SearchSpacesRequest.Builder |
This builder for chaining. |