Class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset (3.50.0)

public static final class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset extends GeneratedMessageV3 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<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

Static Fields

CONSOLIDATED_POLICY_FIELD_NUMBER

public static final int CONSOLIDATED_POLICY_FIELD_NUMBER
Field Value
Type Description
int

GOVERNED_IAM_POLICY_FIELD_NUMBER

public static final int GOVERNED_IAM_POLICY_FIELD_NUMBER
Field Value
Type Description
int

GOVERNED_RESOURCE_FIELD_NUMBER

public static final int GOVERNED_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

POLICY_BUNDLE_FIELD_NUMBER

public static final int POLICY_BUNDLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset getDefaultInstance()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

getDescriptor()

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

newBuilder()

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilder()
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

newBuilder(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset prototype)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilder(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset prototype)
Parameter
Name Description
prototype AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

parseDelimitedFrom(InputStream input)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> parser()
Returns
Type Description
Parser<GovernedAsset>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

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.

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

getParserForType()

public Parser<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> getParserForType()
Returns
Type Description
Parser<GovernedAsset>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException