Class SearchAllResourcesResponse.Builder (3.7.1)

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

Search all resources response.

Protobuf type google.cloud.asset.v1p1beta1.SearchAllResourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResults(Iterable<? extends StandardResourceMetadata> values)

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

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1p1beta1.StandardResourceMetadata>
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(StandardResourceMetadata value)

public SearchAllResourcesResponse.Builder addResults(StandardResourceMetadata value)

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
valueStandardResourceMetadata
Returns
TypeDescription
SearchAllResourcesResponse.Builder

addResults(StandardResourceMetadata.Builder builderForValue)

public SearchAllResourcesResponse.Builder addResults(StandardResourceMetadata.Builder builderForValue)

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
builderForValueStandardResourceMetadata.Builder
Returns
TypeDescription
SearchAllResourcesResponse.Builder

addResults(int index, StandardResourceMetadata value)

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

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameters
NameDescription
indexint
valueStandardResourceMetadata
Returns
TypeDescription
SearchAllResourcesResponse.Builder

addResults(int index, StandardResourceMetadata.Builder builderForValue)

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

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameters
NameDescription
indexint
builderForValueStandardResourceMetadata.Builder
Returns
TypeDescription
SearchAllResourcesResponse.Builder

addResultsBuilder()

public StandardResourceMetadata.Builder addResultsBuilder()

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Returns
TypeDescription
StandardResourceMetadata.Builder

addResultsBuilder(int index)

public StandardResourceMetadata.Builder addResultsBuilder(int index)

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StandardResourceMetadata.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 resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata 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 StandardResourceMetadata getResults(int index)

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StandardResourceMetadata

getResultsBuilder(int index)

public StandardResourceMetadata.Builder getResultsBuilder(int index)

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StandardResourceMetadata.Builder

getResultsBuilderList()

public List<StandardResourceMetadata.Builder> getResultsBuilderList()

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Returns
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Returns
TypeDescription
int

getResultsList()

public List<StandardResourceMetadata> getResultsList()

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Returns
TypeDescription
List<StandardResourceMetadata>

getResultsOrBuilder(int index)

public StandardResourceMetadataOrBuilder getResultsOrBuilder(int index)

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StandardResourceMetadataOrBuilder

getResultsOrBuilderList()

public List<? extends StandardResourceMetadataOrBuilder> getResultsOrBuilderList()

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Returns
TypeDescription
List<? extends com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder>

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 resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata 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, StandardResourceMetadata value)

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

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameters
NameDescription
indexint
valueStandardResourceMetadata
Returns
TypeDescription
SearchAllResourcesResponse.Builder

setResults(int index, StandardResourceMetadata.Builder builderForValue)

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

A list of resource that match the search query.

repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1;

Parameters
NameDescription
indexint
builderForValueStandardResourceMetadata.Builder
Returns
TypeDescription
SearchAllResourcesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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