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
addAllResults(Iterable<? extends SearchSpacesResponse.SearchSpaceResult> values)
public SearchSpacesResponse.Builder addAllResults(Iterable<? extends SearchSpacesResponse.SearchSpaceResult> values)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.chat.v1.SearchSpacesResponse.SearchSpaceResult> |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addAllSpaces(Iterable<? extends Space> values) (deprecated)
public SearchSpacesResponse.Builder addAllSpaces(Iterable<? extends Space> values) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.chat.v1.Space> |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addResults(SearchSpacesResponse.SearchSpaceResult value)
public SearchSpacesResponse.Builder addResults(SearchSpacesResponse.SearchSpaceResult value)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchSpacesResponse.SearchSpaceResult |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addResults(SearchSpacesResponse.SearchSpaceResult.Builder builderForValue)
public SearchSpacesResponse.Builder addResults(SearchSpacesResponse.SearchSpaceResult.Builder builderForValue)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SearchSpacesResponse.SearchSpaceResult.Builder |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addResults(int index, SearchSpacesResponse.SearchSpaceResult value)
public SearchSpacesResponse.Builder addResults(int index, SearchSpacesResponse.SearchSpaceResult value)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SearchSpacesResponse.SearchSpaceResult |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addResults(int index, SearchSpacesResponse.SearchSpaceResult.Builder builderForValue)
public SearchSpacesResponse.Builder addResults(int index, SearchSpacesResponse.SearchSpaceResult.Builder builderForValue)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SearchSpacesResponse.SearchSpaceResult.Builder |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addResultsBuilder()
public SearchSpacesResponse.SearchSpaceResult.Builder addResultsBuilder()Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.SearchSpaceResult.Builder |
|
addResultsBuilder(int index)
public SearchSpacesResponse.SearchSpaceResult.Builder addResultsBuilder(int index)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.SearchSpaceResult.Builder |
|
addSpaces(Space value) (deprecated)
public SearchSpacesResponse.Builder addSpaces(Space value) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
Space |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addSpaces(Space.Builder builderForValue) (deprecated)
public SearchSpacesResponse.Builder addSpaces(Space.Builder builderForValue) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Space.Builder |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addSpaces(int index, Space value) (deprecated)
public SearchSpacesResponse.Builder addSpaces(int index, Space value) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Space |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addSpaces(int index, Space.Builder builderForValue) (deprecated)
public SearchSpacesResponse.Builder addSpaces(int index, Space.Builder builderForValue) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Space.Builder |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
addSpacesBuilder() (deprecated)
public Space.Builder addSpacesBuilder() Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
Space.Builder |
|
addSpacesBuilder(int index) (deprecated)
public Space.Builder addSpacesBuilder(int index) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| 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.
Only populated when useAdminAccess is set to true.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
This builder for chaining. |
clearResults()
public SearchSpacesResponse.Builder clearResults()Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
clearSpaces() (deprecated)
public SearchSpacesResponse.Builder clearSpaces() Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| 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.
Only populated when useAdminAccess is set to true.
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.
Only populated when useAdminAccess is set to true.
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.
Only populated when useAdminAccess is set to true.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for nextPageToken. |
getResults(int index)
public SearchSpacesResponse.SearchSpaceResult getResults(int index)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.SearchSpaceResult |
|
getResultsBuilder(int index)
public SearchSpacesResponse.SearchSpaceResult.Builder getResultsBuilder(int index)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.SearchSpaceResult.Builder |
|
getResultsBuilderList()
public List<SearchSpacesResponse.SearchSpaceResult.Builder> getResultsBuilderList()Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getResultsCount()
public int getResultsCount()Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getResultsList()
public List<SearchSpacesResponse.SearchSpaceResult> getResultsList()Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<SearchSpaceResult> |
|
getResultsOrBuilder(int index)
public SearchSpacesResponse.SearchSpaceResultOrBuilder getResultsOrBuilder(int index)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.SearchSpaceResultOrBuilder |
|
getResultsOrBuilderList()
public List<? extends SearchSpacesResponse.SearchSpaceResultOrBuilder> getResultsOrBuilderList()Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.chat.v1.SearchSpacesResponse.SearchSpaceResultOrBuilder> |
|
getSpaces(int index) (deprecated)
public Space getSpaces(int index) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Space |
|
getSpacesBuilder(int index) (deprecated)
public Space.Builder getSpacesBuilder(int index) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Space.Builder |
|
getSpacesBuilderList() (deprecated)
public List<Space.Builder> getSpacesBuilderList() Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSpacesCount() (deprecated)
public int getSpacesCount() Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSpacesList() (deprecated)
public List<Space> getSpacesList() Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
List<Space> |
|
getSpacesOrBuilder(int index) (deprecated)
public SpaceOrBuilder getSpacesOrBuilder(int index) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SpaceOrBuilder |
|
getSpacesOrBuilderList() (deprecated)
public List<? extends SpaceOrBuilder> getSpacesOrBuilderList() Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| 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.
Only populated when useAdminAccess is set to true.
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 |
|
removeResults(int index)
public SearchSpacesResponse.Builder removeResults(int index)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
removeSpaces(int index) (deprecated)
public SearchSpacesResponse.Builder removeSpaces(int index) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| 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.
Only populated when useAdminAccess is set to true.
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.
Only populated when useAdminAccess is set to true.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
This builder for chaining. |
setResults(int index, SearchSpacesResponse.SearchSpaceResult value)
public SearchSpacesResponse.Builder setResults(int index, SearchSpacesResponse.SearchSpaceResult value)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SearchSpacesResponse.SearchSpaceResult |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
setResults(int index, SearchSpacesResponse.SearchSpaceResult.Builder builderForValue)
public SearchSpacesResponse.Builder setResults(int index, SearchSpacesResponse.SearchSpaceResult.Builder builderForValue)Output only. The list of search results that matched the query.
repeated .google.chat.v1.SearchSpacesResponse.SearchSpaceResult results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SearchSpacesResponse.SearchSpaceResult.Builder |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
setSpaces(int index, Space value) (deprecated)
public SearchSpacesResponse.Builder setSpaces(int index, Space value) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Space |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
|
setSpaces(int index, Space.Builder builderForValue) (deprecated)
public SearchSpacesResponse.Builder setSpaces(int index, Space.Builder builderForValue) Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
repeated .google.chat.v1.Space spaces = 1 [deprecated = true];
| 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.
Only populated when useAdminAccess is set to true.
int32 total_size = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe totalSize to set. |
| Returns | |
|---|---|
| Type | Description |
SearchSpacesResponse.Builder |
This builder for chaining. |