Class AllowBindingExplanation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.policytroubleshooter.iam.v3.AllowBindingExplanation
All Implemented Interfaces:
AllowBindingExplanationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AllowBindingExplanation extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • ALLOW_ACCESS_STATE_FIELD_NUMBER

      public static final int ALLOW_ACCESS_STATE_FIELD_NUMBER
      See Also:
    • ROLE_FIELD_NUMBER

      public static final int ROLE_FIELD_NUMBER
      See Also:
    • ROLE_PERMISSION_FIELD_NUMBER

      public static final int ROLE_PERMISSION_FIELD_NUMBER
      See Also:
    • ROLE_PERMISSION_RELEVANCE_FIELD_NUMBER

      public static final int ROLE_PERMISSION_RELEVANCE_FIELD_NUMBER
      See Also:
    • COMBINED_MEMBERSHIP_FIELD_NUMBER

      public static final int COMBINED_MEMBERSHIP_FIELD_NUMBER
      See Also:
    • MEMBERSHIPS_FIELD_NUMBER

      public static final int MEMBERSHIPS_FIELD_NUMBER
      See Also:
    • RELEVANCE_FIELD_NUMBER

      public static final int RELEVANCE_FIELD_NUMBER
      See Also:
    • CONDITION_FIELD_NUMBER

      public static final int CONDITION_FIELD_NUMBER
      See Also:
    • CONDITION_EXPLANATION_FIELD_NUMBER

      public static final int CONDITION_EXPLANATION_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AllowBindingExplanation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllowBindingExplanation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllowBindingExplanation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllowBindingExplanation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllowBindingExplanation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllowBindingExplanation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllowBindingExplanation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllowBindingExplanation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AllowBindingExplanation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AllowBindingExplanation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllowBindingExplanation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllowBindingExplanation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AllowBindingExplanation.Builder newBuilder()
    • newBuilder

      public static AllowBindingExplanation.Builder newBuilder(AllowBindingExplanation prototype)
    • toBuilder

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

      protected AllowBindingExplanation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AllowBindingExplanation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AllowBindingExplanation> parser()
    • getParserForType

      public com.google.protobuf.Parser<AllowBindingExplanation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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