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
Static Fields
CONSOLIDATED_POLICY_FIELD_NUMBER
public static final int CONSOLIDATED_POLICY_FIELD_NUMBER
Field Value
GOVERNED_IAM_POLICY_FIELD_NUMBER
public static final int GOVERNED_IAM_POLICY_FIELD_NUMBER
Field Value
GOVERNED_RESOURCE_FIELD_NUMBER
public static final int GOVERNED_RESOURCE_FIELD_NUMBER
Field Value
POLICY_BUNDLE_FIELD_NUMBER
public static final int POLICY_BUNDLE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilder()
Returns
newBuilder(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset prototype)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilder(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset prototype)
Parameter
Returns
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
getDefaultInstanceForType()
public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset getDefaultInstanceForType()
Returns
getGovernedAssetCase()
public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.GovernedAssetCase getGovernedAssetCase()
Returns
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
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
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
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
getParserForType()
public Parser<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> getParserForType()
Returns
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
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
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
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
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions