Class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder (3.33.0)

public static final class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder extends GeneratedMessageV3.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder> implements AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetOrBuilder

Represents a Google Cloud asset(resource or IAM policy) governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Protobuf type google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

Static Methods

getDescriptor()

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

Methods

addAllPolicyBundle(Iterable<? extends AnalyzerOrgPolicy> values)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder addAllPolicyBundle(Iterable<? extends AnalyzerOrgPolicy> values)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicy>
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

addPolicyBundle(AnalyzerOrgPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder addPolicyBundle(AnalyzerOrgPolicy value)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
value AnalyzerOrgPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

addPolicyBundle(AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder addPolicyBundle(AnalyzerOrgPolicy.Builder builderForValue)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
builderForValue AnalyzerOrgPolicy.Builder
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

addPolicyBundle(int index, AnalyzerOrgPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder addPolicyBundle(int index, AnalyzerOrgPolicy value)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameters
Name Description
index int
value AnalyzerOrgPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

addPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder addPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameters
Name Description
index int
builderForValue AnalyzerOrgPolicy.Builder
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

addPolicyBundleBuilder()

public AnalyzerOrgPolicy.Builder addPolicyBundleBuilder()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Returns
Type Description
AnalyzerOrgPolicy.Builder

addPolicyBundleBuilder(int index)

public AnalyzerOrgPolicy.Builder addPolicyBundleBuilder(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
index int
Returns
Type Description
AnalyzerOrgPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset build()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

buildPartial()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset buildPartial()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

clear()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clear()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
Overrides

clearConsolidatedPolicy()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clearConsolidatedPolicy()

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGovernedAsset()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clearGovernedAsset()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

clearGovernedIamPolicy()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clearGovernedIamPolicy()

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

clearGovernedResource()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clearGovernedResource()

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyBundle()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clearPolicyBundle()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

clone()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder clone()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
Overrides

getConsolidatedPolicy()

public AnalyzerOrgPolicy getConsolidatedPolicy()

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Returns
Type Description
AnalyzerOrgPolicy

The consolidatedPolicy.

getConsolidatedPolicyBuilder()

public AnalyzerOrgPolicy.Builder getConsolidatedPolicyBuilder()

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Returns
Type Description
AnalyzerOrgPolicy.Builder

getConsolidatedPolicyOrBuilder()

public AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder()

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Returns
Type Description
AnalyzerOrgPolicyOrBuilder

getDefaultInstanceForType()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset getDefaultInstanceForType()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

getDescriptorForType()

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

getGovernedAssetCase()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.GovernedAssetCase getGovernedAssetCase()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.GovernedAssetCase

getGovernedIamPolicy()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy getGovernedIamPolicy()

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy

The governedIamPolicy.

getGovernedIamPolicyBuilder()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder getGovernedIamPolicyBuilder()

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

getGovernedIamPolicyOrBuilder()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder getGovernedIamPolicyOrBuilder()

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder

getGovernedResource()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource getGovernedResource()

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource

The governedResource.

getGovernedResourceBuilder()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder getGovernedResourceBuilder()

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder

getGovernedResourceOrBuilder()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceOrBuilder getGovernedResourceOrBuilder()

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceOrBuilder

getPolicyBundle(int index)

public AnalyzerOrgPolicy getPolicyBundle(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
index int
Returns
Type Description
AnalyzerOrgPolicy

getPolicyBundleBuilder(int index)

public AnalyzerOrgPolicy.Builder getPolicyBundleBuilder(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
index int
Returns
Type Description
AnalyzerOrgPolicy.Builder

getPolicyBundleBuilderList()

public List<AnalyzerOrgPolicy.Builder> getPolicyBundleBuilderList()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Returns
Type Description
List<Builder>

getPolicyBundleCount()

public int getPolicyBundleCount()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Returns
Type Description
int

getPolicyBundleList()

public List<AnalyzerOrgPolicy> getPolicyBundleList()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Returns
Type Description
List<AnalyzerOrgPolicy>

getPolicyBundleOrBuilder(int index)

public AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
index int
Returns
Type Description
AnalyzerOrgPolicyOrBuilder

getPolicyBundleOrBuilderList()

public List<? extends AnalyzerOrgPolicyOrBuilder> getPolicyBundleOrBuilderList()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

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

hasConsolidatedPolicy()

public boolean hasConsolidatedPolicy()

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Returns
Type Description
boolean

Whether the consolidatedPolicy field is set.

hasGovernedIamPolicy()

public boolean hasGovernedIamPolicy()

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Returns
Type Description
boolean

Whether the governedIamPolicy field is set.

hasGovernedResource()

public boolean hasGovernedResource()

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Returns
Type Description
boolean

Whether the governedResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConsolidatedPolicy(AnalyzerOrgPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder mergeConsolidatedPolicy(AnalyzerOrgPolicy value)

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Parameter
Name Description
value AnalyzerOrgPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

mergeFrom(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGovernedIamPolicy(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder mergeGovernedIamPolicy(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy value)

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Parameter
Name Description
value AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

mergeGovernedResource(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder mergeGovernedResource(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource value)

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Parameter
Name Description
value AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePolicyBundle(int index)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder removePolicyBundle(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameter
Name Description
index int
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setConsolidatedPolicy(AnalyzerOrgPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setConsolidatedPolicy(AnalyzerOrgPolicy value)

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Parameter
Name Description
value AnalyzerOrgPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setConsolidatedPolicy(AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setConsolidatedPolicy(AnalyzerOrgPolicy.Builder builderForValue)

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;

Parameter
Name Description
builderForValue AnalyzerOrgPolicy.Builder
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGovernedIamPolicy(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setGovernedIamPolicy(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy value)

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Parameter
Name Description
value AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setGovernedIamPolicy(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setGovernedIamPolicy(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder builderForValue)

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;

Parameter
Name Description
builderForValue AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setGovernedResource(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setGovernedResource(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource value)

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Parameter
Name Description
value AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setGovernedResource(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setGovernedResource(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder builderForValue)

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;

Parameter
Name Description
builderForValue AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setPolicyBundle(int index, AnalyzerOrgPolicy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setPolicyBundle(int index, AnalyzerOrgPolicy value)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameters
Name Description
index int
value AnalyzerOrgPolicy
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

setPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder setPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;

Parameters
Name Description
index int
builderForValue AnalyzerOrgPolicy.Builder
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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