Class SearchAllIamPoliciesResponse.Builder (3.4.0)

public static final class SearchAllIamPoliciesResponse.Builder extends GeneratedMessageV3.Builder<SearchAllIamPoliciesResponse.Builder> implements SearchAllIamPoliciesResponseOrBuilder

Search all IAM policies response.

Protobuf type google.cloud.asset.v1.SearchAllIamPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllResults(Iterable<? extends IamPolicySearchResult> values)

public SearchAllIamPoliciesResponse.Builder addAllResults(Iterable<? extends IamPolicySearchResult> values)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.IamPolicySearchResult>
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchAllIamPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder
Overrides

addResults(IamPolicySearchResult value)

public SearchAllIamPoliciesResponse.Builder addResults(IamPolicySearchResult value)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
valueIamPolicySearchResult
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

addResults(IamPolicySearchResult.Builder builderForValue)

public SearchAllIamPoliciesResponse.Builder addResults(IamPolicySearchResult.Builder builderForValue)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
builderForValueIamPolicySearchResult.Builder
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

addResults(int index, IamPolicySearchResult value)

public SearchAllIamPoliciesResponse.Builder addResults(int index, IamPolicySearchResult value)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameters
NameDescription
indexint
valueIamPolicySearchResult
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

addResults(int index, IamPolicySearchResult.Builder builderForValue)

public SearchAllIamPoliciesResponse.Builder addResults(int index, IamPolicySearchResult.Builder builderForValue)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameters
NameDescription
indexint
builderForValueIamPolicySearchResult.Builder
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

addResultsBuilder()

public IamPolicySearchResult.Builder addResultsBuilder()

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Returns
TypeDescription
IamPolicySearchResult.Builder

addResultsBuilder(int index)

public IamPolicySearchResult.Builder addResultsBuilder(int index)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
IamPolicySearchResult.Builder

build()

public SearchAllIamPoliciesResponse build()
Returns
TypeDescription
SearchAllIamPoliciesResponse

buildPartial()

public SearchAllIamPoliciesResponse buildPartial()
Returns
TypeDescription
SearchAllIamPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SearchAllIamPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder
Overrides

clearNextPageToken()

public SearchAllIamPoliciesResponse.Builder clearNextPageToken()

Set if there are more results than those appearing in this response; to get the next set of results, call this method again, using this value as the page_token.

string next_page_token = 2;

Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchAllIamPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder
Overrides

clearResults()

public SearchAllIamPoliciesResponse.Builder clearResults()

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchAllIamPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchAllIamPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Set if there are more results than those appearing in this response; to get the next set of results, call this method again, using this value as the page_token.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Set if there are more results than those appearing in this response; to get the next set of results, call this method again, using this value as the page_token.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getResults(int index)

public IamPolicySearchResult getResults(int index)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
IamPolicySearchResult

getResultsBuilder(int index)

public IamPolicySearchResult.Builder getResultsBuilder(int index)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
IamPolicySearchResult.Builder

getResultsBuilderList()

public List<IamPolicySearchResult.Builder> getResultsBuilderList()

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Returns
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Returns
TypeDescription
int

getResultsList()

public List<IamPolicySearchResult> getResultsList()

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Returns
TypeDescription
List<IamPolicySearchResult>

getResultsOrBuilder(int index)

public IamPolicySearchResultOrBuilder getResultsOrBuilder(int index)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
IamPolicySearchResultOrBuilder

getResultsOrBuilderList()

public List<? extends IamPolicySearchResultOrBuilder> getResultsOrBuilderList()

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Returns
TypeDescription
List<? extends com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchAllIamPoliciesResponse other)

public SearchAllIamPoliciesResponse.Builder mergeFrom(SearchAllIamPoliciesResponse other)
Parameter
NameDescription
otherSearchAllIamPoliciesResponse
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchAllIamPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder
Overrides

removeResults(int index)

public SearchAllIamPoliciesResponse.Builder removeResults(int index)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchAllIamPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder
Overrides

setNextPageToken(String value)

public SearchAllIamPoliciesResponse.Builder setNextPageToken(String value)

Set if there are more results than those appearing in this response; to get the next set of results, call this method again, using this value as the page_token.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchAllIamPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)

Set if there are more results than those appearing in this response; to get the next set of results, call this method again, using this value as the page_token.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

This builder for chaining.

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

public SearchAllIamPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder
Overrides

setResults(int index, IamPolicySearchResult value)

public SearchAllIamPoliciesResponse.Builder setResults(int index, IamPolicySearchResult value)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameters
NameDescription
indexint
valueIamPolicySearchResult
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

setResults(int index, IamPolicySearchResult.Builder builderForValue)

public SearchAllIamPoliciesResponse.Builder setResults(int index, IamPolicySearchResult.Builder builderForValue)

A list of IamPolicy that match the search query. Related information such as the associated resource is returned along with the policy.

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

Parameters
NameDescription
indexint
builderForValueIamPolicySearchResult.Builder
Returns
TypeDescription
SearchAllIamPoliciesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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