Class DenyPolicyExplanation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DenyPolicyExplanation.Builder>
com.google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation.Builder
All Implemented Interfaces:
DenyPolicyExplanationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DenyPolicyExplanation

public static final class DenyPolicyExplanation.Builder extends com.google.protobuf.GeneratedMessage.Builder<DenyPolicyExplanation.Builder> implements DenyPolicyExplanationOrBuilder
 Details about how the relevant IAM deny policies affect the final access
 state.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation
  • 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<DenyPolicyExplanation.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<DenyPolicyExplanation.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<DenyPolicyExplanation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DenyPolicyExplanation.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<DenyPolicyExplanation.Builder>
      Throws:
      IOException
    • getDenyAccessStateValue

      public int getDenyAccessStateValue()
       Indicates whether the principal is denied the specified permission for
       the specified resource, based on evaluating all applicable IAM deny
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;
      Specified by:
      getDenyAccessStateValue in interface DenyPolicyExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for denyAccessState.
    • setDenyAccessStateValue

      public DenyPolicyExplanation.Builder setDenyAccessStateValue(int value)
       Indicates whether the principal is denied the specified permission for
       the specified resource, based on evaluating all applicable IAM deny
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;
      Parameters:
      value - The enum numeric value on the wire for denyAccessState to set.
      Returns:
      This builder for chaining.
    • getDenyAccessState

      public DenyAccessState getDenyAccessState()
       Indicates whether the principal is denied the specified permission for
       the specified resource, based on evaluating all applicable IAM deny
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;
      Specified by:
      getDenyAccessState in interface DenyPolicyExplanationOrBuilder
      Returns:
      The denyAccessState.
    • setDenyAccessState

      public DenyPolicyExplanation.Builder setDenyAccessState(DenyAccessState value)
       Indicates whether the principal is denied the specified permission for
       the specified resource, based on evaluating all applicable IAM deny
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;
      Parameters:
      value - The denyAccessState to set.
      Returns:
      This builder for chaining.
    • clearDenyAccessState

      public DenyPolicyExplanation.Builder clearDenyAccessState()
       Indicates whether the principal is denied the specified permission for
       the specified resource, based on evaluating all applicable IAM deny
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1;
      Returns:
      This builder for chaining.
    • getExplainedResourcesList

      public List<ExplainedDenyResource> getExplainedResourcesList()
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
      Specified by:
      getExplainedResourcesList in interface DenyPolicyExplanationOrBuilder
    • getExplainedResourcesCount

      public int getExplainedResourcesCount()
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
      Specified by:
      getExplainedResourcesCount in interface DenyPolicyExplanationOrBuilder
    • getExplainedResources

      public ExplainedDenyResource getExplainedResources(int index)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
      Specified by:
      getExplainedResources in interface DenyPolicyExplanationOrBuilder
    • setExplainedResources

      public DenyPolicyExplanation.Builder setExplainedResources(int index, ExplainedDenyResource value)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • setExplainedResources

      public DenyPolicyExplanation.Builder setExplainedResources(int index, ExplainedDenyResource.Builder builderForValue)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • addExplainedResources

      public DenyPolicyExplanation.Builder addExplainedResources(ExplainedDenyResource value)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • addExplainedResources

      public DenyPolicyExplanation.Builder addExplainedResources(int index, ExplainedDenyResource value)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • addExplainedResources

      public DenyPolicyExplanation.Builder addExplainedResources(ExplainedDenyResource.Builder builderForValue)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • addExplainedResources

      public DenyPolicyExplanation.Builder addExplainedResources(int index, ExplainedDenyResource.Builder builderForValue)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • addAllExplainedResources

      public DenyPolicyExplanation.Builder addAllExplainedResources(Iterable<? extends ExplainedDenyResource> values)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • clearExplainedResources

      public DenyPolicyExplanation.Builder clearExplainedResources()
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • removeExplainedResources

      public DenyPolicyExplanation.Builder removeExplainedResources(int index)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • getExplainedResourcesBuilder

      public ExplainedDenyResource.Builder getExplainedResourcesBuilder(int index)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • getExplainedResourcesOrBuilder

      public ExplainedDenyResourceOrBuilder getExplainedResourcesOrBuilder(int index)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
      Specified by:
      getExplainedResourcesOrBuilder in interface DenyPolicyExplanationOrBuilder
    • getExplainedResourcesOrBuilderList

      public List<? extends ExplainedDenyResourceOrBuilder> getExplainedResourcesOrBuilderList()
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
      Specified by:
      getExplainedResourcesOrBuilderList in interface DenyPolicyExplanationOrBuilder
    • addExplainedResourcesBuilder

      public ExplainedDenyResource.Builder addExplainedResourcesBuilder()
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • addExplainedResourcesBuilder

      public ExplainedDenyResource.Builder addExplainedResourcesBuilder(int index)
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • getExplainedResourcesBuilderList

      public List<ExplainedDenyResource.Builder> getExplainedResourcesBuilderList()
       List of resources with IAM deny policies that were evaluated to check the
       principal's denied permissions, with annotations to indicate how each
       policy contributed to the final result.
      
       The list of resources includes the policy for the resource itself, as well
       as policies that are inherited from higher levels of the resource
       hierarchy, including the organization, the folder, and the project. The
       order of the resources starts from the resource and climbs up the resource
       hierarchy.
      
       To learn more about the resource hierarchy, see
       https://cloud.google.com/iam/help/resource-hierarchy.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource explained_resources = 2;
    • getRelevanceValue

      public int getRelevanceValue()
       The relevance of the deny policy result to the overall access state.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;
      Specified by:
      getRelevanceValue in interface DenyPolicyExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for relevance.
    • setRelevanceValue

      public DenyPolicyExplanation.Builder setRelevanceValue(int value)
       The relevance of the deny policy result to the overall access state.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;
      Parameters:
      value - The enum numeric value on the wire for relevance to set.
      Returns:
      This builder for chaining.
    • getRelevance

      public HeuristicRelevance getRelevance()
       The relevance of the deny policy result to the overall access state.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;
      Specified by:
      getRelevance in interface DenyPolicyExplanationOrBuilder
      Returns:
      The relevance.
    • setRelevance

       The relevance of the deny policy result to the overall access state.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;
      Parameters:
      value - The relevance to set.
      Returns:
      This builder for chaining.
    • clearRelevance

      public DenyPolicyExplanation.Builder clearRelevance()
       The relevance of the deny policy result to the overall access state.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 3;
      Returns:
      This builder for chaining.
    • getPermissionDeniable

      public boolean getPermissionDeniable()
       Indicates whether the permission to troubleshoot is supported in deny
       policies.
       
      bool permission_deniable = 4;
      Specified by:
      getPermissionDeniable in interface DenyPolicyExplanationOrBuilder
      Returns:
      The permissionDeniable.
    • setPermissionDeniable

      public DenyPolicyExplanation.Builder setPermissionDeniable(boolean value)
       Indicates whether the permission to troubleshoot is supported in deny
       policies.
       
      bool permission_deniable = 4;
      Parameters:
      value - The permissionDeniable to set.
      Returns:
      This builder for chaining.
    • clearPermissionDeniable

      public DenyPolicyExplanation.Builder clearPermissionDeniable()
       Indicates whether the permission to troubleshoot is supported in deny
       policies.
       
      bool permission_deniable = 4;
      Returns:
      This builder for chaining.