Class AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

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

public static final class AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder> implements AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
 The organization policy result to the query.
 
Protobuf type google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult
  • 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.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder>
    • mergeFrom

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder>
      Throws:
      IOException
    • 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.
    • setConsolidatedPolicy

       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;
    • setConsolidatedPolicy

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setConsolidatedPolicy(AnalyzerOrgPolicy.Builder builderForValue)
       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;
    • mergeConsolidatedPolicy

       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;
    • clearConsolidatedPolicy

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearConsolidatedPolicy()
       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;
    • getConsolidatedPolicyBuilder

      public AnalyzerOrgPolicy.Builder getConsolidatedPolicyBuilder()
       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;
    • 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
    • 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
    • setPolicyBundle

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setPolicyBundle(int index, AnalyzerOrgPolicy value)
       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;
    • setPolicyBundle

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)
       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;
    • addPolicyBundle

       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;
    • addPolicyBundle

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle(int index, AnalyzerOrgPolicy value)
       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;
    • addPolicyBundle

       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;
    • addPolicyBundle

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)
       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;
    • addAllPolicyBundle

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addAllPolicyBundle(Iterable<? extends AnalyzerOrgPolicy> values)
       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;
    • clearPolicyBundle

       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;
    • removePolicyBundle

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder removePolicyBundle(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;
    • getPolicyBundleBuilder

      public AnalyzerOrgPolicy.Builder getPolicyBundleBuilder(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;
    • 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
    • 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
    • addPolicyBundleBuilder

      public AnalyzerOrgPolicy.Builder addPolicyBundleBuilder()
       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;
    • addPolicyBundleBuilder

      public AnalyzerOrgPolicy.Builder addPolicyBundleBuilder(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;
    • getPolicyBundleBuilderList

      public List<AnalyzerOrgPolicy.Builder> getPolicyBundleBuilderList()
       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;
    • 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.
    • setProject

       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;
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       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;
      Returns:
      This builder for chaining.
    • setProjectBytes

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setProjectBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • 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.
    • setFolders

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setFolders(int index, String value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The folders to set.
      Returns:
      This builder for chaining.
    • addFolders

       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;
      Parameters:
      value - The folders to add.
      Returns:
      This builder for chaining.
    • addAllFolders

       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;
      Parameters:
      values - The folders to add.
      Returns:
      This builder for chaining.
    • clearFolders

       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;
      Returns:
      This builder for chaining.
    • addFoldersBytes

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addFoldersBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes of the folders to add.
      Returns:
      This builder for chaining.
    • 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.
    • setOrganization

       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;
      Parameters:
      value - The organization to set.
      Returns:
      This builder for chaining.
    • clearOrganization

       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;
      Returns:
      This builder for chaining.
    • setOrganizationBytes

      public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setOrganizationBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for organization to set.
      Returns:
      This builder for chaining.