Class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset (3.45.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
TypeDescription
int

GOVERNED_IAM_POLICY_FIELD_NUMBER

public static final int GOVERNED_IAM_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

GOVERNED_RESOURCE_FIELD_NUMBER

public static final int GOVERNED_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_BUNDLE_FIELD_NUMBER

public static final int POLICY_BUNDLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset getDefaultInstance()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

getDescriptor()

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

newBuilder()

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilder()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

newBuilder(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset prototype)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilder(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset prototype)
Parameter
NameDescription
prototypeAnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

parseDelimitedFrom(InputStream input)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AnalyzerOrgPolicyOrBuilder

getDefaultInstanceForType()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset

getGovernedAssetCase()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.GovernedAssetCase getGovernedAssetCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceOrBuilder

getParserForType()

public Parser<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the governedResource field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilderForType()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder toBuilder()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException