Class BindingExplanation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BindingExplanation.Builder>
com.google.cloud.policysimulator.v1.BindingExplanation.Builder
All Implemented Interfaces:
BindingExplanationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BindingExplanation

public static final class BindingExplanation.Builder extends com.google.protobuf.GeneratedMessage.Builder<BindingExplanation.Builder> implements BindingExplanationOrBuilder
 Details about how a binding in a policy affects a principal's ability to use
 a permission.
 
Protobuf type google.cloud.policysimulator.v1.BindingExplanation
  • 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<BindingExplanation.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public int getAccessValue()
       Required. Indicates whether _this binding_ provides the specified
       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 binding that overrides
       this binding. To determine whether the principal actually has the
       permission, use the `access` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccessValue in interface BindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for access.
    • setAccessValue

      public BindingExplanation.Builder setAccessValue(int value)
       Required. Indicates whether _this binding_ provides the specified
       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 binding that overrides
       this binding. To determine whether the principal actually has the
       permission, use the `access` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for access to set.
      Returns:
      This builder for chaining.
    • getAccess

      public AccessState getAccess()
       Required. Indicates whether _this binding_ provides the specified
       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 binding that overrides
       this binding. To determine whether the principal actually has the
       permission, use the `access` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccess in interface BindingExplanationOrBuilder
      Returns:
      The access.
    • setAccess

      public BindingExplanation.Builder setAccess(AccessState value)
       Required. Indicates whether _this binding_ provides the specified
       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 binding that overrides
       this binding. To determine whether the principal actually has the
       permission, use the `access` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The access to set.
      Returns:
      This builder for chaining.
    • clearAccess

      public BindingExplanation.Builder clearAccess()
       Required. Indicates whether _this binding_ provides the specified
       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 binding that overrides
       this binding. To determine whether the principal actually has the
       permission, use the `access` field in the
       [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
       
      .google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getRole

      public String getRole()
       The role that this binding grants. For example,
       `roles/compute.serviceAgent`.
      
       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 BindingExplanationOrBuilder
      Returns:
      The role.
    • getRoleBytes

      public com.google.protobuf.ByteString getRoleBytes()
       The role that this binding grants. For example,
       `roles/compute.serviceAgent`.
      
       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 BindingExplanationOrBuilder
      Returns:
      The bytes for role.
    • setRole

      public BindingExplanation.Builder setRole(String value)
       The role that this binding grants. For example,
       `roles/compute.serviceAgent`.
      
       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 BindingExplanation.Builder clearRole()
       The role that this binding grants. For example,
       `roles/compute.serviceAgent`.
      
       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 BindingExplanation.Builder setRoleBytes(com.google.protobuf.ByteString value)
       The role that this binding grants. For example,
       `roles/compute.serviceAgent`.
      
       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 binding contains the specified
       permission.
       
      .google.cloud.policysimulator.v1.BindingExplanation.RolePermission role_permission = 3;
      Specified by:
      getRolePermissionValue in interface BindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for rolePermission.
    • setRolePermissionValue

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

      public BindingExplanation.RolePermission getRolePermission()
       Indicates whether the role granted by this binding contains the specified
       permission.
       
      .google.cloud.policysimulator.v1.BindingExplanation.RolePermission role_permission = 3;
      Specified by:
      getRolePermission in interface BindingExplanationOrBuilder
      Returns:
      The rolePermission.
    • setRolePermission

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

      public BindingExplanation.Builder clearRolePermission()
       Indicates whether the role granted by this binding contains the specified
       permission.
       
      .google.cloud.policysimulator.v1.BindingExplanation.RolePermission 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.policysimulator.v1.HeuristicRelevance role_permission_relevance = 4;
      Specified by:
      getRolePermissionRelevanceValue in interface BindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for rolePermissionRelevance.
    • setRolePermissionRelevanceValue

      public BindingExplanation.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.policysimulator.v1.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.policysimulator.v1.HeuristicRelevance role_permission_relevance = 4;
      Specified by:
      getRolePermissionRelevance in interface BindingExplanationOrBuilder
      Returns:
      The rolePermissionRelevance.
    • setRolePermissionRelevance

      public BindingExplanation.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.policysimulator.v1.HeuristicRelevance role_permission_relevance = 4;
      Parameters:
      value - The rolePermissionRelevance to set.
      Returns:
      This builder for chaining.
    • clearRolePermissionRelevance

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

      public int getMembershipsCount()
      Description copied from interface: BindingExplanationOrBuilder
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
      Specified by:
      getMembershipsCount in interface BindingExplanationOrBuilder
    • containsMemberships

      public boolean containsMemberships(String key)
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
      Specified by:
      containsMemberships in interface BindingExplanationOrBuilder
    • getMemberships

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

      public Map<String,BindingExplanation.AnnotatedMembership> getMembershipsMap()
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
      Specified by:
      getMembershipsMap in interface BindingExplanationOrBuilder
    • getMembershipsOrDefault

      public BindingExplanation.AnnotatedMembership getMembershipsOrDefault(String key, BindingExplanation.AnnotatedMembership defaultValue)
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
      Specified by:
      getMembershipsOrDefault in interface BindingExplanationOrBuilder
    • getMembershipsOrThrow

      public BindingExplanation.AnnotatedMembership getMembershipsOrThrow(String key)
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
      Specified by:
      getMembershipsOrThrow in interface BindingExplanationOrBuilder
    • clearMemberships

      public BindingExplanation.Builder clearMemberships()
    • removeMemberships

      public BindingExplanation.Builder removeMemberships(String key)
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
    • getMutableMemberships

      Deprecated.
      Use alternate mutation accessors instead.
    • putMemberships

       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
    • putAllMemberships

       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
    • putMembershipsBuilderIfAbsent

      public BindingExplanation.AnnotatedMembership.Builder putMembershipsBuilderIfAbsent(String key)
       Indicates whether each principal in the binding includes the principal
       specified in the request, either directly or indirectly. Each key
       identifies a principal in the binding, and each value indicates whether the
       principal in the binding includes the principal in the request.
      
       For example, suppose that a binding includes the following principals:
      
       * `user:alice@example.com`
       * `group:product-eng@example.com`
      
       The principal in the replayed access tuple is `user:bob@example.com`. This
       user is a principal of the group `group:product-eng@example.com`.
      
       For the first principal in the binding, the key is
       `user:alice@example.com`, and the `membership` field in the value is set to
       `MEMBERSHIP_NOT_INCLUDED`.
      
       For the second principal in the binding, the key is
       `group:product-eng@example.com`, and the `membership` field in the value is
       set to `MEMBERSHIP_INCLUDED`.
       
      map<string, .google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
    • getRelevanceValue

      public int getRelevanceValue()
       The relevance of this binding to the overall determination for the entire
       policy.
       
      .google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;
      Specified by:
      getRelevanceValue in interface BindingExplanationOrBuilder
      Returns:
      The enum numeric value on the wire for relevance.
    • setRelevanceValue

      public BindingExplanation.Builder setRelevanceValue(int value)
       The relevance of this binding to the overall determination for the entire
       policy.
       
      .google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;
      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 binding to the overall determination for the entire
       policy.
       
      .google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;
      Specified by:
      getRelevance in interface BindingExplanationOrBuilder
      Returns:
      The relevance.
    • setRelevance

      public BindingExplanation.Builder setRelevance(HeuristicRelevance value)
       The relevance of this binding to the overall determination for the entire
       policy.
       
      .google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;
      Parameters:
      value - The relevance to set.
      Returns:
      This builder for chaining.
    • clearRelevance

      public BindingExplanation.Builder clearRelevance()
       The relevance of this binding to the overall determination for the entire
       policy.
       
      .google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;
      Returns:
      This builder for chaining.
    • hasCondition

      public boolean hasCondition()
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
      Specified by:
      hasCondition in interface BindingExplanationOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public Expr getCondition()
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
      Specified by:
      getCondition in interface BindingExplanationOrBuilder
      Returns:
      The condition.
    • setCondition

      public BindingExplanation.Builder setCondition(Expr value)
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
    • setCondition

      public BindingExplanation.Builder setCondition(Expr.Builder builderForValue)
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
    • mergeCondition

      public BindingExplanation.Builder mergeCondition(Expr value)
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
    • clearCondition

      public BindingExplanation.Builder clearCondition()
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
    • getConditionBuilder

      public Expr.Builder getConditionBuilder()
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
    • getConditionOrBuilder

      public ExprOrBuilder getConditionOrBuilder()
       A condition expression that prevents this binding from granting access
       unless the expression evaluates to `true`.
      
       To learn about IAM Conditions, see
       https://cloud.google.com/iam/docs/conditions-overview.
       
      .google.type.Expr condition = 7;
      Specified by:
      getConditionOrBuilder in interface BindingExplanationOrBuilder