Class BatchGetEffectiveIamPoliciesResponse.Builder (3.34.0)

public static final class BatchGetEffectiveIamPoliciesResponse.Builder extends GeneratedMessageV3.Builder<BatchGetEffectiveIamPoliciesResponse.Builder> implements BatchGetEffectiveIamPoliciesResponseOrBuilder

A response message for AssetService.BatchGetEffectiveIamPolicies.

Protobuf type google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllPolicyResults(Iterable<? extends BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> values)

public BatchGetEffectiveIamPoliciesResponse.Builder addAllPolicyResults(Iterable<? extends BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> values)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

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

addPolicyResults(BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value)

public BatchGetEffectiveIamPoliciesResponse.Builder addPolicyResults(BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
value BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

addPolicyResults(BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue)

public BatchGetEffectiveIamPoliciesResponse.Builder addPolicyResults(BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
builderForValue BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

addPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value)

public BatchGetEffectiveIamPoliciesResponse.Builder addPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameters
Name Description
index int
value BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

addPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue)

public BatchGetEffectiveIamPoliciesResponse.Builder addPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameters
Name Description
index int
builderForValue BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

addPolicyResultsBuilder()

public BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder addPolicyResultsBuilder()

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder

addPolicyResultsBuilder(int index)

public BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder addPolicyResultsBuilder(int index)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchGetEffectiveIamPoliciesResponse build()
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse

buildPartial()

public BatchGetEffectiveIamPoliciesResponse buildPartial()
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyResults()

public BatchGetEffectiveIamPoliciesResponse.Builder clearPolicyResults()

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

clone()

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

getDefaultInstanceForType()

public BatchGetEffectiveIamPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse

getDescriptorForType()

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

getPolicyResults(int index)

public BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy

getPolicyResultsBuilder(int index)

public BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder getPolicyResultsBuilder(int index)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder

getPolicyResultsBuilderList()

public List<BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder> getPolicyResultsBuilderList()

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Returns
Type Description
List<Builder>

getPolicyResultsCount()

public int getPolicyResultsCount()

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Returns
Type Description
int

getPolicyResultsList()

public List<BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> getPolicyResultsList()

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Returns
Type Description
List<EffectiveIamPolicy>

getPolicyResultsOrBuilder(int index)

public BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder(int index)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder

getPolicyResultsOrBuilderList()

public List<? extends BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder> getPolicyResultsOrBuilderList()

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchGetEffectiveIamPoliciesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePolicyResults(int index)

public BatchGetEffectiveIamPoliciesResponse.Builder removePolicyResults(int index)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value)

public BatchGetEffectiveIamPoliciesResponse.Builder setPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameters
Name Description
index int
value BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

setPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue)

public BatchGetEffectiveIamPoliciesResponse.Builder setPolicyResults(int index, BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue)

The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.

repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;

Parameters
Name Description
index int
builderForValue BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder
Returns
Type Description
BatchGetEffectiveIamPoliciesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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