Class ExplainedDenyResource.Builder

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

public static final class ExplainedDenyResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExplainedDenyResource.Builder> implements ExplainedDenyResourceOrBuilder
 Details about how a specific resource contributed to the deny policy
 evaluation.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource
  • 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<ExplainedDenyResource.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<ExplainedDenyResource.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<ExplainedDenyResource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getDenyAccessStateValue()
       Required. Indicates whether any policies attached to _this resource_ deny
       the specific permission to the specified principal for the specified
       resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission for the resource. There might be another policy that overrides
       this policy. To determine whether the principal actually has the
       permission, use the `overall_access_state` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDenyAccessStateValue in interface ExplainedDenyResourceOrBuilder
      Returns:
      The enum numeric value on the wire for denyAccessState.
    • setDenyAccessStateValue

      public ExplainedDenyResource.Builder setDenyAccessStateValue(int value)
       Required. Indicates whether any policies attached to _this resource_ deny
       the specific permission to the specified principal for the specified
       resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission for the resource. There might be another policy that overrides
       this policy. To determine whether the principal actually has the
       permission, use the `overall_access_state` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for denyAccessState to set.
      Returns:
      This builder for chaining.
    • getDenyAccessState

      public DenyAccessState getDenyAccessState()
       Required. Indicates whether any policies attached to _this resource_ deny
       the specific permission to the specified principal for the specified
       resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission for the resource. There might be another policy that overrides
       this policy. To determine whether the principal actually has the
       permission, use the `overall_access_state` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDenyAccessState in interface ExplainedDenyResourceOrBuilder
      Returns:
      The denyAccessState.
    • setDenyAccessState

      public ExplainedDenyResource.Builder setDenyAccessState(DenyAccessState value)
       Required. Indicates whether any policies attached to _this resource_ deny
       the specific permission to the specified principal for the specified
       resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission for the resource. There might be another policy that overrides
       this policy. To determine whether the principal actually has the
       permission, use the `overall_access_state` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The denyAccessState to set.
      Returns:
      This builder for chaining.
    • clearDenyAccessState

      public ExplainedDenyResource.Builder clearDenyAccessState()
       Required. Indicates whether any policies attached to _this resource_ deny
       the specific permission to the specified principal for the specified
       resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission for the resource. There might be another policy that overrides
       this policy. To determine whether the principal actually has the
       permission, use the `overall_access_state` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getFullResourceName

      public String getFullResourceName()
       The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2;
      Specified by:
      getFullResourceName in interface ExplainedDenyResourceOrBuilder
      Returns:
      The fullResourceName.
    • getFullResourceNameBytes

      public com.google.protobuf.ByteString getFullResourceNameBytes()
       The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2;
      Specified by:
      getFullResourceNameBytes in interface ExplainedDenyResourceOrBuilder
      Returns:
      The bytes for fullResourceName.
    • setFullResourceName

      public ExplainedDenyResource.Builder setFullResourceName(String value)
       The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2;
      Parameters:
      value - The fullResourceName to set.
      Returns:
      This builder for chaining.
    • clearFullResourceName

      public ExplainedDenyResource.Builder clearFullResourceName()
       The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2;
      Returns:
      This builder for chaining.
    • setFullResourceNameBytes

      public ExplainedDenyResource.Builder setFullResourceNameBytes(com.google.protobuf.ByteString value)
       The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2;
      Parameters:
      value - The bytes for fullResourceName to set.
      Returns:
      This builder for chaining.
    • getExplainedPoliciesList

      public List<ExplainedDenyPolicy> getExplainedPoliciesList()
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
      Specified by:
      getExplainedPoliciesList in interface ExplainedDenyResourceOrBuilder
    • getExplainedPoliciesCount

      public int getExplainedPoliciesCount()
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
      Specified by:
      getExplainedPoliciesCount in interface ExplainedDenyResourceOrBuilder
    • getExplainedPolicies

      public ExplainedDenyPolicy getExplainedPolicies(int index)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
      Specified by:
      getExplainedPolicies in interface ExplainedDenyResourceOrBuilder
    • setExplainedPolicies

      public ExplainedDenyResource.Builder setExplainedPolicies(int index, ExplainedDenyPolicy value)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • setExplainedPolicies

      public ExplainedDenyResource.Builder setExplainedPolicies(int index, ExplainedDenyPolicy.Builder builderForValue)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • addExplainedPolicies

      public ExplainedDenyResource.Builder addExplainedPolicies(ExplainedDenyPolicy value)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • addExplainedPolicies

      public ExplainedDenyResource.Builder addExplainedPolicies(int index, ExplainedDenyPolicy value)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • addExplainedPolicies

      public ExplainedDenyResource.Builder addExplainedPolicies(ExplainedDenyPolicy.Builder builderForValue)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • addExplainedPolicies

      public ExplainedDenyResource.Builder addExplainedPolicies(int index, ExplainedDenyPolicy.Builder builderForValue)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • addAllExplainedPolicies

      public ExplainedDenyResource.Builder addAllExplainedPolicies(Iterable<? extends ExplainedDenyPolicy> values)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • clearExplainedPolicies

      public ExplainedDenyResource.Builder clearExplainedPolicies()
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • removeExplainedPolicies

      public ExplainedDenyResource.Builder removeExplainedPolicies(int index)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • getExplainedPoliciesBuilder

      public ExplainedDenyPolicy.Builder getExplainedPoliciesBuilder(int index)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • getExplainedPoliciesOrBuilder

      public ExplainedDenyPolicyOrBuilder getExplainedPoliciesOrBuilder(int index)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
      Specified by:
      getExplainedPoliciesOrBuilder in interface ExplainedDenyResourceOrBuilder
    • getExplainedPoliciesOrBuilderList

      public List<? extends ExplainedDenyPolicyOrBuilder> getExplainedPoliciesOrBuilderList()
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
      Specified by:
      getExplainedPoliciesOrBuilderList in interface ExplainedDenyResourceOrBuilder
    • addExplainedPoliciesBuilder

      public ExplainedDenyPolicy.Builder addExplainedPoliciesBuilder()
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • addExplainedPoliciesBuilder

      public ExplainedDenyPolicy.Builder addExplainedPoliciesBuilder(int index)
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • getExplainedPoliciesBuilderList

      public List<ExplainedDenyPolicy.Builder> getExplainedPoliciesBuilderList()
       List of 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.
       
      repeated .google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy explained_policies = 3;
    • getRelevanceValue

      public int getRelevanceValue()
       The relevance of this policy to the overall access state in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;
      Specified by:
      getRelevanceValue in interface ExplainedDenyResourceOrBuilder
      Returns:
      The enum numeric value on the wire for relevance.
    • setRelevanceValue

      public ExplainedDenyResource.Builder setRelevanceValue(int value)
       The relevance of this policy to the overall access state in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;
      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 this policy to the overall access state in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;
      Specified by:
      getRelevance in interface ExplainedDenyResourceOrBuilder
      Returns:
      The relevance.
    • setRelevance

       The relevance of this policy to the overall access state in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;
      Parameters:
      value - The relevance to set.
      Returns:
      This builder for chaining.
    • clearRelevance

      public ExplainedDenyResource.Builder clearRelevance()
       The relevance of this policy to the overall access state in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
      
       If the sender of the request does not have access to the policy, this field
       is omitted.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;
      Returns:
      This builder for chaining.