Class TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.Builder>
      • getDefaultInstanceForType

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

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

        public TroubleshootIamPolicyResponse 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<TroubleshootIamPolicyResponse.Builder>
      • mergeFrom

        public TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.Builder>
        Throws:
        IOException
      • getAccessValue

        public int getAccessValue()
         Indicates whether the principal has the specified permission for the
         specified resource, based on evaluating all of the applicable IAM policies.
         
        .google.cloud.policytroubleshooter.v1.AccessState access = 1;
        Specified by:
        getAccessValue in interface TroubleshootIamPolicyResponseOrBuilder
        Returns:
        The enum numeric value on the wire for access.
      • setAccessValue

        public TroubleshootIamPolicyResponse.Builder setAccessValue​(int value)
         Indicates whether the principal has the specified permission for the
         specified resource, based on evaluating all of the applicable IAM policies.
         
        .google.cloud.policytroubleshooter.v1.AccessState access = 1;
        Parameters:
        value - The enum numeric value on the wire for access to set.
        Returns:
        This builder for chaining.
      • getAccess

        public Explanations.AccessState getAccess()
         Indicates whether the principal has the specified permission for the
         specified resource, based on evaluating all of the applicable IAM policies.
         
        .google.cloud.policytroubleshooter.v1.AccessState access = 1;
        Specified by:
        getAccess in interface TroubleshootIamPolicyResponseOrBuilder
        Returns:
        The access.
      • setAccess

        public TroubleshootIamPolicyResponse.Builder setAccess​(Explanations.AccessState value)
         Indicates whether the principal has the specified permission for the
         specified resource, based on evaluating all of the applicable IAM policies.
         
        .google.cloud.policytroubleshooter.v1.AccessState access = 1;
        Parameters:
        value - The access to set.
        Returns:
        This builder for chaining.
      • clearAccess

        public TroubleshootIamPolicyResponse.Builder clearAccess()
         Indicates whether the principal has the specified permission for the
         specified resource, based on evaluating all of the applicable IAM policies.
         
        .google.cloud.policytroubleshooter.v1.AccessState access = 1;
        Returns:
        This builder for chaining.
      • getExplainedPoliciesList

        public List<Explanations.ExplainedPolicy> getExplainedPoliciesList()
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
        Specified by:
        getExplainedPoliciesList in interface TroubleshootIamPolicyResponseOrBuilder
      • getExplainedPoliciesCount

        public int getExplainedPoliciesCount()
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
        Specified by:
        getExplainedPoliciesCount in interface TroubleshootIamPolicyResponseOrBuilder
      • getExplainedPolicies

        public Explanations.ExplainedPolicy getExplainedPolicies​(int index)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
        Specified by:
        getExplainedPolicies in interface TroubleshootIamPolicyResponseOrBuilder
      • setExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder setExplainedPolicies​(int index,
                                                                          Explanations.ExplainedPolicy value)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • setExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder setExplainedPolicies​(int index,
                                                                          Explanations.ExplainedPolicy.Builder builderForValue)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • addExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder addExplainedPolicies​(Explanations.ExplainedPolicy value)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • addExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder addExplainedPolicies​(int index,
                                                                          Explanations.ExplainedPolicy value)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • addExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder addExplainedPolicies​(Explanations.ExplainedPolicy.Builder builderForValue)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • addExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder addExplainedPolicies​(int index,
                                                                          Explanations.ExplainedPolicy.Builder builderForValue)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • addAllExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder addAllExplainedPolicies​(Iterable<? extends Explanations.ExplainedPolicy> values)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • clearExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder clearExplainedPolicies()
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • removeExplainedPolicies

        public TroubleshootIamPolicyResponse.Builder removeExplainedPolicies​(int index)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • getExplainedPoliciesBuilder

        public Explanations.ExplainedPolicy.Builder getExplainedPoliciesBuilder​(int index)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • getExplainedPoliciesOrBuilder

        public Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder​(int index)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
        Specified by:
        getExplainedPoliciesOrBuilder in interface TroubleshootIamPolicyResponseOrBuilder
      • getExplainedPoliciesOrBuilderList

        public List<? extends Explanations.ExplainedPolicyOrBuilder> getExplainedPoliciesOrBuilderList()
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
        Specified by:
        getExplainedPoliciesOrBuilderList in interface TroubleshootIamPolicyResponseOrBuilder
      • addExplainedPoliciesBuilder

        public Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder()
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • addExplainedPoliciesBuilder

        public Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder​(int index)
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • getExplainedPoliciesBuilderList

        public List<Explanations.ExplainedPolicy.Builder> getExplainedPoliciesBuilderList()
         List of IAM policies that were evaluated to check the principal's
         permissions, with annotations to indicate how each policy contributed to
         the final result.
        
         The list of policies can include the policy for the resource itself. It can
         also include policies that are inherited from higher levels of the resource
         hierarchy, including the organization, the folder, and the project.
        
         To learn more about the resource hierarchy, see
         https://cloud.google.com/iam/help/resource-hierarchy.
         
        repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
      • getErrors

        public com.google.rpc.Status getErrors​(int index)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
        Specified by:
        getErrors in interface TroubleshootIamPolicyResponseOrBuilder
      • setErrors

        public TroubleshootIamPolicyResponse.Builder setErrors​(int index,
                                                               com.google.rpc.Status value)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • setErrors

        public TroubleshootIamPolicyResponse.Builder setErrors​(int index,
                                                               com.google.rpc.Status.Builder builderForValue)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • addErrors

        public TroubleshootIamPolicyResponse.Builder addErrors​(com.google.rpc.Status value)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • addErrors

        public TroubleshootIamPolicyResponse.Builder addErrors​(int index,
                                                               com.google.rpc.Status value)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • addErrors

        public TroubleshootIamPolicyResponse.Builder addErrors​(com.google.rpc.Status.Builder builderForValue)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • addErrors

        public TroubleshootIamPolicyResponse.Builder addErrors​(int index,
                                                               com.google.rpc.Status.Builder builderForValue)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • addAllErrors

        public TroubleshootIamPolicyResponse.Builder addAllErrors​(Iterable<? extends com.google.rpc.Status> values)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • removeErrors

        public TroubleshootIamPolicyResponse.Builder removeErrors​(int index)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • getErrorsBuilder

        public com.google.rpc.Status.Builder getErrorsBuilder​(int index)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • getErrorsOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorsOrBuilder​(int index)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
        Specified by:
        getErrorsOrBuilder in interface TroubleshootIamPolicyResponseOrBuilder
      • addErrorsBuilder

        public com.google.rpc.Status.Builder addErrorsBuilder()
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • addErrorsBuilder

        public com.google.rpc.Status.Builder addErrorsBuilder​(int index)
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;
      • getErrorsBuilderList

        public List<com.google.rpc.Status.Builder> getErrorsBuilderList()
         The general errors contained in the troubleshooting response.
         
        repeated .google.rpc.Status errors = 3;