Class AllowBindingExplanation.Builder

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

public static final class AllowBindingExplanation.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder> implements AllowBindingExplanationOrBuilder
 Details about how a role binding in an allow policy affects a principal's
 ability to use a permission.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.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<AllowBindingExplanation.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<AllowBindingExplanation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AllowBindingExplanation.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<AllowBindingExplanation.Builder>
      Throws:
      IOException
    • getAllowAccessStateValue

      public int getAllowAccessStateValue()
       Required. Indicates whether _this role binding_ gives the specified
       permission to the specified principal on the specified resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission on the resource. There might be another role binding that
       overrides this role binding. 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.AllowAccessState allow_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAllowAccessStateValue in interface AllowBindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for allowAccessState.
    • setAllowAccessStateValue

      public AllowBindingExplanation.Builder setAllowAccessStateValue(int value)
       Required. Indicates whether _this role binding_ gives the specified
       permission to the specified principal on the specified resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission on the resource. There might be another role binding that
       overrides this role binding. 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.AllowAccessState allow_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for allowAccessState to set.
      Returns:
      This builder for chaining.
    • getAllowAccessState

      public AllowAccessState getAllowAccessState()
       Required. Indicates whether _this role binding_ gives the specified
       permission to the specified principal on the specified resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission on the resource. There might be another role binding that
       overrides this role binding. 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.AllowAccessState allow_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAllowAccessState in interface AllowBindingExplanationOrBuilder
      Returns:
      The allowAccessState.
    • setAllowAccessState

      public AllowBindingExplanation.Builder setAllowAccessState(AllowAccessState value)
       Required. Indicates whether _this role binding_ gives the specified
       permission to the specified principal on the specified resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission on the resource. There might be another role binding that
       overrides this role binding. 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.AllowAccessState allow_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The allowAccessState to set.
      Returns:
      This builder for chaining.
    • clearAllowAccessState

      public AllowBindingExplanation.Builder clearAllowAccessState()
       Required. Indicates whether _this role binding_ gives the specified
       permission to the specified principal on the specified resource.
      
       This field does _not_ indicate whether the principal actually has the
       permission on the resource. There might be another role binding that
       overrides this role binding. 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.AllowAccessState allow_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getRole

      public String getRole()
       The role that this role binding grants. For example,
       `roles/compute.admin`.
      
       For a complete list of predefined IAM roles, as well as the permissions in
       each role, see https://cloud.google.com/iam/help/roles/reference.
       
      string role = 2;
      Specified by:
      getRole in interface AllowBindingExplanationOrBuilder
      Returns:
      The role.
    • getRoleBytes

      public com.google.protobuf.ByteString getRoleBytes()
       The role that this role binding grants. For example,
       `roles/compute.admin`.
      
       For a complete list of predefined IAM roles, as well as the permissions in
       each role, see https://cloud.google.com/iam/help/roles/reference.
       
      string role = 2;
      Specified by:
      getRoleBytes in interface AllowBindingExplanationOrBuilder
      Returns:
      The bytes for role.
    • setRole

      public AllowBindingExplanation.Builder setRole(String value)
       The role that this role binding grants. For example,
       `roles/compute.admin`.
      
       For a complete list of predefined IAM roles, as well as the permissions in
       each role, see https://cloud.google.com/iam/help/roles/reference.
       
      string role = 2;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

      public AllowBindingExplanation.Builder clearRole()
       The role that this role binding grants. For example,
       `roles/compute.admin`.
      
       For a complete list of predefined IAM roles, as well as the permissions in
       each role, see https://cloud.google.com/iam/help/roles/reference.
       
      string role = 2;
      Returns:
      This builder for chaining.
    • setRoleBytes

      public AllowBindingExplanation.Builder setRoleBytes(com.google.protobuf.ByteString value)
       The role that this role binding grants. For example,
       `roles/compute.admin`.
      
       For a complete list of predefined IAM roles, as well as the permissions in
       each role, see https://cloud.google.com/iam/help/roles/reference.
       
      string role = 2;
      Parameters:
      value - The bytes for role to set.
      Returns:
      This builder for chaining.
    • getRolePermissionValue

      public int getRolePermissionValue()
       Indicates whether the role granted by this role binding contains the
       specified permission.
       
      .google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;
      Specified by:
      getRolePermissionValue in interface AllowBindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for rolePermission.
    • setRolePermissionValue

      public AllowBindingExplanation.Builder setRolePermissionValue(int value)
       Indicates whether the role granted by this role binding contains the
       specified permission.
       
      .google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;
      Parameters:
      value - The enum numeric value on the wire for rolePermission to set.
      Returns:
      This builder for chaining.
    • getRolePermission

      public RolePermissionInclusionState getRolePermission()
       Indicates whether the role granted by this role binding contains the
       specified permission.
       
      .google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;
      Specified by:
      getRolePermission in interface AllowBindingExplanationOrBuilder
      Returns:
      The rolePermission.
    • setRolePermission

       Indicates whether the role granted by this role binding contains the
       specified permission.
       
      .google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;
      Parameters:
      value - The rolePermission to set.
      Returns:
      This builder for chaining.
    • clearRolePermission

      public AllowBindingExplanation.Builder clearRolePermission()
       Indicates whether the role granted by this role binding contains the
       specified permission.
       
      .google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;
      Returns:
      This builder for chaining.
    • getRolePermissionRelevanceValue

      public int getRolePermissionRelevanceValue()
       The relevance of the permission's existence, or nonexistence, in the role
       to the overall determination for the entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance role_permission_relevance = 4;
      Specified by:
      getRolePermissionRelevanceValue in interface AllowBindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for rolePermissionRelevance.
    • setRolePermissionRelevanceValue

      public AllowBindingExplanation.Builder setRolePermissionRelevanceValue(int value)
       The relevance of the permission's existence, or nonexistence, in the role
       to the overall determination for the entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance role_permission_relevance = 4;
      Parameters:
      value - The enum numeric value on the wire for rolePermissionRelevance to set.
      Returns:
      This builder for chaining.
    • getRolePermissionRelevance

      public HeuristicRelevance getRolePermissionRelevance()
       The relevance of the permission's existence, or nonexistence, in the role
       to the overall determination for the entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance role_permission_relevance = 4;
      Specified by:
      getRolePermissionRelevance in interface AllowBindingExplanationOrBuilder
      Returns:
      The rolePermissionRelevance.
    • setRolePermissionRelevance

      public AllowBindingExplanation.Builder setRolePermissionRelevance(HeuristicRelevance value)
       The relevance of the permission's existence, or nonexistence, in the role
       to the overall determination for the entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance role_permission_relevance = 4;
      Parameters:
      value - The rolePermissionRelevance to set.
      Returns:
      This builder for chaining.
    • clearRolePermissionRelevance

      public AllowBindingExplanation.Builder clearRolePermissionRelevance()
       The relevance of the permission's existence, or nonexistence, in the role
       to the overall determination for the entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance role_permission_relevance = 4;
      Returns:
      This builder for chaining.
    • hasCombinedMembership

      public boolean hasCombinedMembership()
       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
      Specified by:
      hasCombinedMembership in interface AllowBindingExplanationOrBuilder
      Returns:
      Whether the combinedMembership field is set.
    • getCombinedMembership

      public AllowBindingExplanation.AnnotatedAllowMembership getCombinedMembership()
       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
      Specified by:
      getCombinedMembership in interface AllowBindingExplanationOrBuilder
      Returns:
      The combinedMembership.
    • setCombinedMembership

       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
    • setCombinedMembership

       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
    • mergeCombinedMembership

       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
    • clearCombinedMembership

      public AllowBindingExplanation.Builder clearCombinedMembership()
       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
    • getCombinedMembershipBuilder

      public AllowBindingExplanation.AnnotatedAllowMembership.Builder getCombinedMembershipBuilder()
       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
    • getCombinedMembershipOrBuilder

      public AllowBindingExplanation.AnnotatedAllowMembershipOrBuilder getCombinedMembershipOrBuilder()
       The combined result of all memberships. Indicates if the principal is
       included in any role binding, either directly or indirectly.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership combined_membership = 5;
      Specified by:
      getCombinedMembershipOrBuilder in interface AllowBindingExplanationOrBuilder
    • getMembershipsCount

      public int getMembershipsCount()
      Description copied from interface: AllowBindingExplanationOrBuilder
       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
      Specified by:
      getMembershipsCount in interface AllowBindingExplanationOrBuilder
    • containsMemberships

      public boolean containsMemberships(String key)
       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
      Specified by:
      containsMemberships in interface AllowBindingExplanationOrBuilder
    • getMemberships

      Deprecated.
      Use getMembershipsMap() instead.
      Specified by:
      getMemberships in interface AllowBindingExplanationOrBuilder
    • getMembershipsMap

       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
      Specified by:
      getMembershipsMap in interface AllowBindingExplanationOrBuilder
    • getMembershipsOrDefault

       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
      Specified by:
      getMembershipsOrDefault in interface AllowBindingExplanationOrBuilder
    • getMembershipsOrThrow

      public AllowBindingExplanation.AnnotatedAllowMembership getMembershipsOrThrow(String key)
       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
      Specified by:
      getMembershipsOrThrow in interface AllowBindingExplanationOrBuilder
    • clearMemberships

      public AllowBindingExplanation.Builder clearMemberships()
    • removeMemberships

      public AllowBindingExplanation.Builder removeMemberships(String key)
       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
    • getMutableMemberships

      Deprecated.
      Use alternate mutation accessors instead.
    • putMemberships

       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
    • putAllMemberships

       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
    • putMembershipsBuilderIfAbsent

      public AllowBindingExplanation.AnnotatedAllowMembership.Builder putMembershipsBuilderIfAbsent(String key)
       Indicates whether each role binding includes the principal specified in the
       request, either directly or indirectly. Each key identifies a principal in
       the role binding, and each value indicates whether the principal in the
       role binding includes the principal in the request.
      
       For example, suppose that a role binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       You want to troubleshoot access for `user:bob@example.com`. This user is a
       member of the group `group:product-eng@example.com`.
      
       For the first principal in the role binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `NOT_INCLUDED`.
      
       For the second principal in the role binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `INCLUDED`.
       
      map<string, .google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation.AnnotatedAllowMembership> memberships = 6;
    • getRelevanceValue

      public int getRelevanceValue()
       The relevance of this role binding to the overall determination for the
       entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;
      Specified by:
      getRelevanceValue in interface AllowBindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for relevance.
    • setRelevanceValue

      public AllowBindingExplanation.Builder setRelevanceValue(int value)
       The relevance of this role binding to the overall determination for the
       entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;
      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 role binding to the overall determination for the
       entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;
      Specified by:
      getRelevance in interface AllowBindingExplanationOrBuilder
      Returns:
      The relevance.
    • setRelevance

       The relevance of this role binding to the overall determination for the
       entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;
      Parameters:
      value - The relevance to set.
      Returns:
      This builder for chaining.
    • clearRelevance

      public AllowBindingExplanation.Builder clearRelevance()
       The relevance of this role binding to the overall determination for the
       entire policy.
       
      .google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;
      Returns:
      This builder for chaining.
    • hasCondition

      public boolean hasCondition()
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
      Specified by:
      hasCondition in interface AllowBindingExplanationOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public Expr getCondition()
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
      Specified by:
      getCondition in interface AllowBindingExplanationOrBuilder
      Returns:
      The condition.
    • setCondition

      public AllowBindingExplanation.Builder setCondition(Expr value)
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
    • setCondition

      public AllowBindingExplanation.Builder setCondition(Expr.Builder builderForValue)
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
    • mergeCondition

      public AllowBindingExplanation.Builder mergeCondition(Expr value)
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
    • clearCondition

      public AllowBindingExplanation.Builder clearCondition()
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
    • getConditionBuilder

      public Expr.Builder getConditionBuilder()
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
    • getConditionOrBuilder

      public ExprOrBuilder getConditionOrBuilder()
       A condition expression that specifies when the role binding grants access.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/help/conditions/overview.
       
      .google.type.Expr condition = 8;
      Specified by:
      getConditionOrBuilder in interface AllowBindingExplanationOrBuilder
    • hasConditionExplanation

      public boolean hasConditionExplanation()
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
      Specified by:
      hasConditionExplanation in interface AllowBindingExplanationOrBuilder
      Returns:
      Whether the conditionExplanation field is set.
    • getConditionExplanation

      public ConditionExplanation getConditionExplanation()
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
      Specified by:
      getConditionExplanation in interface AllowBindingExplanationOrBuilder
      Returns:
      The conditionExplanation.
    • setConditionExplanation

      public AllowBindingExplanation.Builder setConditionExplanation(ConditionExplanation value)
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
    • setConditionExplanation

      public AllowBindingExplanation.Builder setConditionExplanation(ConditionExplanation.Builder builderForValue)
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
    • mergeConditionExplanation

      public AllowBindingExplanation.Builder mergeConditionExplanation(ConditionExplanation value)
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
    • clearConditionExplanation

      public AllowBindingExplanation.Builder clearConditionExplanation()
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
    • getConditionExplanationBuilder

      public ConditionExplanation.Builder getConditionExplanationBuilder()
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
    • getConditionExplanationOrBuilder

      public ConditionExplanationOrBuilder getConditionExplanationOrBuilder()
       Condition evaluation state for this role binding.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
      Specified by:
      getConditionExplanationOrBuilder in interface AllowBindingExplanationOrBuilder