Class AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • 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<AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder>
      • getDefaultInstanceForType

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • setFullResourceName

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder setFullResourceName​(String value)
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         an organization/folder/project resource.
         
        string full_resource_name = 1;
        Parameters:
        value - The fullResourceName to set.
        Returns:
        This builder for chaining.
      • setFullResourceNameBytes

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder setFullResourceNameBytes​(com.google.protobuf.ByteString value)
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         an organization/folder/project resource.
         
        string full_resource_name = 1;
        Parameters:
        value - The bytes for fullResourceName to set.
        Returns:
        This builder for chaining.
      • getParent

        public String getParent()
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         the parent of
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name].
         
        string parent = 2;
        Specified by:
        getParent in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         the parent of
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name].
         
        string parent = 2;
        Specified by:
        getParentBytes in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder setParent​(String value)
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         the parent of
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name].
         
        string parent = 2;
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder clearParent()
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         the parent of
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name].
         
        string parent = 2;
        Returns:
        This builder for chaining.
      • setParentBytes

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder setParentBytes​(com.google.protobuf.ByteString value)
         The [full resource name]
         (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
         the parent of
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name].
         
        string parent = 2;
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasConsolidatedPolicy

        public boolean hasConsolidatedPolicy()
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
        Specified by:
        hasConsolidatedPolicy in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
        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
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
        Specified by:
        getConsolidatedPolicy in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
        Returns:
        The consolidatedPolicy.
      • setConsolidatedPolicy

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder setConsolidatedPolicy​(AnalyzerOrgPolicy value)
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
      • setConsolidatedPolicy

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder setConsolidatedPolicy​(AnalyzerOrgPolicy.Builder builderForValue)
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
      • mergeConsolidatedPolicy

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder mergeConsolidatedPolicy​(AnalyzerOrgPolicy value)
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
      • clearConsolidatedPolicy

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.Builder clearConsolidatedPolicy()
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
      • getConsolidatedPolicyBuilder

        public AnalyzerOrgPolicy.Builder getConsolidatedPolicyBuilder()
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
      • getConsolidatedPolicyOrBuilder

        public AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder()
         The consolidated organization policy for the analyzed resource. The
         consolidated organization policy is computed by merging and evaluating
         [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 3;
        Specified by:
        getConsolidatedPolicyOrBuilder in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
      • 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;
        Specified by:
        getPolicyBundleCount in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
      • 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 = 4;
        Specified by:
        getPolicyBundle in interface AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainerOrBuilder
      • setPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • setPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • addPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • addPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • addPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • addPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • addAllPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • clearPolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • removePolicyBundle

        public AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.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 = 4;
      • 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 = 4;
      • 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 = 4;
      • 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 = 4;
      • 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 = 4;