Class BatchGetEffectiveIamPoliciesResponse.Builder (3.4.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy>
Returns
TypeDescription
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
NameDescription
valueBatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
Returns
TypeDescription
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
NameDescription
builderForValueBatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchGetEffectiveIamPoliciesResponse build()
Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse

buildPartial()

public BatchGetEffectiveIamPoliciesResponse buildPartial()
Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BatchGetEffectiveIamPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchGetEffectiveIamPoliciesResponse other)

public BatchGetEffectiveIamPoliciesResponse.Builder mergeFrom(BatchGetEffectiveIamPoliciesResponse other)
Parameter
NameDescription
otherBatchGetEffectiveIamPoliciesResponse
Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BatchGetEffectiveIamPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueBatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder
Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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