Class AnalyzeOrgPoliciesResponse.OrgPolicyResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult
All Implemented Interfaces:
AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AnalyzeOrgPoliciesResponse

public static final class AnalyzeOrgPoliciesResponse.OrgPolicyResult extends com.google.protobuf.GeneratedMessage implements AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
 The organization policy result to the query.
 
Protobuf type google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult
See Also:
  • Field Details

    • CONSOLIDATED_POLICY_FIELD_NUMBER

      public static final int CONSOLIDATED_POLICY_FIELD_NUMBER
      See Also:
    • POLICY_BUNDLE_FIELD_NUMBER

      public static final int POLICY_BUNDLE_FIELD_NUMBER
      See Also:
    • PROJECT_FIELD_NUMBER

      public static final int PROJECT_FIELD_NUMBER
      See Also:
    • FOLDERS_FIELD_NUMBER

      public static final int FOLDERS_FIELD_NUMBER
      See Also:
    • ORGANIZATION_FIELD_NUMBER

      public static final int ORGANIZATION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasConsolidatedPolicy

      public boolean hasConsolidatedPolicy()
       The consolidated organization policy for the analyzed resource. The
       consolidated organization policy is computed by merging and evaluating
       [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle].
       The evaluation will respect the organization policy [hierarchy
       rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       
      .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;
      Specified by:
      hasConsolidatedPolicy in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      Whether the consolidatedPolicy field is set.
    • getConsolidatedPolicy

      public AnalyzerOrgPolicy getConsolidatedPolicy()
       The consolidated organization policy for the analyzed resource. The
       consolidated organization policy is computed by merging and evaluating
       [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle].
       The evaluation will respect the organization policy [hierarchy
       rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       
      .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;
      Specified by:
      getConsolidatedPolicy in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      The consolidatedPolicy.
    • getConsolidatedPolicyOrBuilder

      public AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder()
       The consolidated organization policy for the analyzed resource. The
       consolidated organization policy is computed by merging and evaluating
       [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle].
       The evaluation will respect the organization policy [hierarchy
       rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       
      .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;
      Specified by:
      getConsolidatedPolicyOrBuilder in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
    • getPolicyBundleList

      public List<AnalyzerOrgPolicy> getPolicyBundleList()
       The ordered list of all organization policies from the
       [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.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 = 2;
      Specified by:
      getPolicyBundleList in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
    • getPolicyBundleOrBuilderList

      public List<? extends AnalyzerOrgPolicyOrBuilder> getPolicyBundleOrBuilderList()
       The ordered list of all organization policies from the
       [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.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 = 2;
      Specified by:
      getPolicyBundleOrBuilderList in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
    • getPolicyBundleCount

      public int getPolicyBundleCount()
       The ordered list of all organization policies from the
       [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.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 = 2;
      Specified by:
      getPolicyBundleCount in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
    • getPolicyBundle

      public AnalyzerOrgPolicy getPolicyBundle(int index)
       The ordered list of all organization policies from the
       [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.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 = 2;
      Specified by:
      getPolicyBundle in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
    • getPolicyBundleOrBuilder

      public AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(int index)
       The ordered list of all organization policies from the
       [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.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 = 2;
      Specified by:
      getPolicyBundleOrBuilder in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
    • getProject

      public String getProject()
       The project that this consolidated policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the consolidated
       policy belongs to a project.
       
      string project = 3;
      Specified by:
      getProject in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       The project that this consolidated policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the consolidated
       policy belongs to a project.
       
      string project = 3;
      Specified by:
      getProjectBytes in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      The bytes for project.
    • getFoldersList

      public com.google.protobuf.ProtocolStringList getFoldersList()
       The folder(s) that this consolidated policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the consolidated
       policy belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 4;
      Specified by:
      getFoldersList in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      A list containing the folders.
    • getFoldersCount

      public int getFoldersCount()
       The folder(s) that this consolidated policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the consolidated
       policy belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 4;
      Specified by:
      getFoldersCount in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      The count of folders.
    • getFolders

      public String getFolders(int index)
       The folder(s) that this consolidated policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the consolidated
       policy belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 4;
      Specified by:
      getFolders in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The folders at the given index.
    • getFoldersBytes

      public com.google.protobuf.ByteString getFoldersBytes(int index)
       The folder(s) that this consolidated policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the consolidated
       policy belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 4;
      Specified by:
      getFoldersBytes in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the folders at the given index.
    • getOrganization

      public String getOrganization()
       The organization that this consolidated policy belongs to, in the format
       of organizations/{ORGANIZATION_NUMBER}. This field is available when the
       consolidated policy belongs (directly or cascadingly) to an organization.
       
      string organization = 5;
      Specified by:
      getOrganization in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      The organization.
    • getOrganizationBytes

      public com.google.protobuf.ByteString getOrganizationBytes()
       The organization that this consolidated policy belongs to, in the format
       of organizations/{ORGANIZATION_NUMBER}. This field is available when the
       consolidated policy belongs (directly or cascadingly) to an organization.
       
      string organization = 5;
      Specified by:
      getOrganizationBytes in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      Returns:
      The bytes for organization.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AnalyzeOrgPoliciesResponse.OrgPolicyResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnalyzeOrgPoliciesResponse.OrgPolicyResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<AnalyzeOrgPoliciesResponse.OrgPolicyResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder