Class SearchAllResourcesResponse.Builder (3.2.17)

public static final class SearchAllResourcesResponse.Builder extends GeneratedMessageV3.Builder<SearchAllResourcesResponse.Builder> implements SearchAllResourcesResponseOrBuilder

Search all resources response.

Protobuf type google.cloud.asset.v1.SearchAllResourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResults(Iterable<? extends ResourceSearchResult> values)

public SearchAllResourcesResponse.Builder addAllResults(Iterable<? extends ResourceSearchResult> values)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.asset.v1.ResourceSearchResult>
Returns
Type Description
SearchAllResourcesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchAllResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

addResults(ResourceSearchResult value)

public SearchAllResourcesResponse.Builder addResults(ResourceSearchResult value)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
value ResourceSearchResult
Returns
Type Description
SearchAllResourcesResponse.Builder

addResults(ResourceSearchResult.Builder builderForValue)

public SearchAllResourcesResponse.Builder addResults(ResourceSearchResult.Builder builderForValue)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
builderForValue ResourceSearchResult.Builder
Returns
Type Description
SearchAllResourcesResponse.Builder

addResults(int index, ResourceSearchResult value)

public SearchAllResourcesResponse.Builder addResults(int index, ResourceSearchResult value)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameters
Name Description
index int
value ResourceSearchResult
Returns
Type Description
SearchAllResourcesResponse.Builder

addResults(int index, ResourceSearchResult.Builder builderForValue)

public SearchAllResourcesResponse.Builder addResults(int index, ResourceSearchResult.Builder builderForValue)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameters
Name Description
index int
builderForValue ResourceSearchResult.Builder
Returns
Type Description
SearchAllResourcesResponse.Builder

addResultsBuilder()

public ResourceSearchResult.Builder addResultsBuilder()

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Returns
Type Description
ResourceSearchResult.Builder

addResultsBuilder(int index)

public ResourceSearchResult.Builder addResultsBuilder(int index)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceSearchResult.Builder

build()

public SearchAllResourcesResponse build()
Returns
Type Description
SearchAllResourcesResponse

buildPartial()

public SearchAllResourcesResponse buildPartial()
Returns
Type Description
SearchAllResourcesResponse

clear()

public SearchAllResourcesResponse.Builder clear()
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchAllResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

clearNextPageToken()

public SearchAllResourcesResponse.Builder clearNextPageToken()

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
SearchAllResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchAllResourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

clearResults()

public SearchAllResourcesResponse.Builder clearResults()

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Returns
Type Description
SearchAllResourcesResponse.Builder

clone()

public SearchAllResourcesResponse.Builder clone()
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchAllResourcesResponse getDefaultInstanceForType()
Returns
Type Description
SearchAllResourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResults(int index)

public ResourceSearchResult getResults(int index)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceSearchResult

getResultsBuilder(int index)

public ResourceSearchResult.Builder getResultsBuilder(int index)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceSearchResult.Builder

getResultsBuilderList()

public List<ResourceSearchResult.Builder> getResultsBuilderList()

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Returns
Type Description
List<Builder>

getResultsCount()

public int getResultsCount()

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Returns
Type Description
int

getResultsList()

public List<ResourceSearchResult> getResultsList()

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Returns
Type Description
List<ResourceSearchResult>

getResultsOrBuilder(int index)

public ResourceSearchResultOrBuilder getResultsOrBuilder(int index)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceSearchResultOrBuilder

getResultsOrBuilderList()

public List<? extends ResourceSearchResultOrBuilder> getResultsOrBuilderList()

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Returns
Type Description
List<? extends com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchAllResourcesResponse other)

public SearchAllResourcesResponse.Builder mergeFrom(SearchAllResourcesResponse other)
Parameter
Name Description
other SearchAllResourcesResponse
Returns
Type Description
SearchAllResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchAllResourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchAllResourcesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchAllResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

removeResults(int index)

public SearchAllResourcesResponse.Builder removeResults(int index)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchAllResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchAllResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

setNextPageToken(String value)

public SearchAllResourcesResponse.Builder setNextPageToken(String value)

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchAllResourcesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchAllResourcesResponse.Builder setNextPageTokenBytes(ByteString value)

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchAllResourcesResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchAllResourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides

setResults(int index, ResourceSearchResult value)

public SearchAllResourcesResponse.Builder setResults(int index, ResourceSearchResult value)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameters
Name Description
index int
value ResourceSearchResult
Returns
Type Description
SearchAllResourcesResponse.Builder

setResults(int index, ResourceSearchResult.Builder builderForValue)

public SearchAllResourcesResponse.Builder setResults(int index, ResourceSearchResult.Builder builderForValue)

A list of Resources that match the search query. It contains the resource standard metadata information.

repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;

Parameters
Name Description
index int
builderForValue ResourceSearchResult.Builder
Returns
Type Description
SearchAllResourcesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchAllResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchAllResourcesResponse.Builder
Overrides