Class SearchAllResourcesResponse.Builder (3.4.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.ResourceSearchResult>
Returns
TypeDescription
SearchAllResourcesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchAllResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceSearchResult
Returns
TypeDescription
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
NameDescription
builderForValueResourceSearchResult.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourceSearchResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceSearchResult.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourceSearchResult.Builder

build()

public SearchAllResourcesResponse build()
Returns
TypeDescription
SearchAllResourcesResponse

buildPartial()

public SearchAllResourcesResponse buildPartial()
Returns
TypeDescription
SearchAllResourcesResponse

clear()

public SearchAllResourcesResponse.Builder clear()
Returns
TypeDescription
SearchAllResourcesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchAllResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchAllResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchAllResourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchAllResourcesResponse.Builder

clone()

public SearchAllResourcesResponse.Builder clone()
Returns
TypeDescription
SearchAllResourcesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchAllResourcesResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchAllResourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchAllResourcesResponse other)

public SearchAllResourcesResponse.Builder mergeFrom(SearchAllResourcesResponse other)
Parameter
NameDescription
otherSearchAllResourcesResponse
Returns
TypeDescription
SearchAllResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchAllResourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchAllResourcesResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchAllResourcesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchAllResourcesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchAllResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchAllResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchAllResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueResourceSearchResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceSearchResult.Builder
Returns
TypeDescription
SearchAllResourcesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchAllResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchAllResourcesResponse.Builder
Overrides