Class AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public boolean hasConsolidatedPolicy()
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPoliciesResponse.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
         [AnalyzeOrgPoliciesResponse.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

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setConsolidatedPolicy​(AnalyzerOrgPolicy value)
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPoliciesResponse.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
         [AnalyzeOrgPoliciesResponse.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

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeConsolidatedPolicy​(AnalyzerOrgPolicy value)
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPoliciesResponse.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
         [AnalyzeOrgPoliciesResponse.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
         [AnalyzeOrgPoliciesResponse.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
         [AnalyzeOrgPoliciesResponse.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
         [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 = 2;
        Specified by:
        getPolicyBundleList in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      • 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 = 2;
        Specified by:
        getPolicyBundleCount in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      • getPolicyBundle

        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 = 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
         [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 = 2;
      • setPolicyBundle

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

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle​(AnalyzerOrgPolicy value)
         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 = 2;
      • addPolicyBundle

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

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle​(AnalyzerOrgPolicy.Builder builderForValue)
         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 = 2;
      • addPolicyBundle

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

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

        public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearPolicyBundle()
         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 = 2;
      • removePolicyBundle

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

        public AnalyzerOrgPolicy.Builder getPolicyBundleBuilder​(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 = 2;
      • getPolicyBundleOrBuilder

        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 = 2;
        Specified by:
        getPolicyBundleOrBuilder in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      • 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 = 2;
        Specified by:
        getPolicyBundleOrBuilderList in interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
      • addPolicyBundleBuilder

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

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

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