Interface AllowBindingExplanationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AllowBindingExplanation,AllowBindingExplanation.Builder
@Generated
public interface AllowBindingExplanationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether each role binding includes the principal specified in the request, either directly or indirectly.Required.intRequired.The combined result of all memberships.The combined result of all memberships.A condition expression that specifies when the role binding grants access.Condition evaluation state for this role binding.Condition evaluation state for this role binding.A condition expression that specifies when the role binding grants access.Deprecated.intIndicates whether each role binding includes the principal specified in the request, either directly or indirectly.Indicates whether each role binding includes the principal specified in the request, either directly or indirectly.getMembershipsOrDefault(String key, AllowBindingExplanation.AnnotatedAllowMembership defaultValue) Indicates whether each role binding includes the principal specified in the request, either directly or indirectly.Indicates whether each role binding includes the principal specified in the request, either directly or indirectly.The relevance of this role binding to the overall determination for the entire policy.intThe relevance of this role binding to the overall determination for the entire policy.getRole()The role that this role binding grants.com.google.protobuf.ByteStringThe role that this role binding grants.Indicates whether the role granted by this role binding contains the specified permission.The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.intThe relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.intIndicates whether the role granted by this role binding contains the specified permission.booleanThe combined result of all memberships.booleanA condition expression that specifies when the role binding grants access.booleanCondition evaluation state for this role binding.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAllowAccessStateValue
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];- Returns:
- The enum numeric value on the wire for allowAccessState.
-
getAllowAccessState
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];- Returns:
- The allowAccessState.
-
getRole
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;- Returns:
- The role.
-
getRoleBytes
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;- Returns:
- The bytes for role.
-
getRolePermissionValue
int getRolePermissionValue()Indicates whether the role granted by this role binding contains the specified permission.
.google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;- Returns:
- The enum numeric value on the wire for rolePermission.
-
getRolePermission
RolePermissionInclusionState getRolePermission()Indicates whether the role granted by this role binding contains the specified permission.
.google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;- Returns:
- The rolePermission.
-
getRolePermissionRelevanceValue
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;- Returns:
- The enum numeric value on the wire for rolePermissionRelevance.
-
getRolePermissionRelevance
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;- Returns:
- The rolePermissionRelevance.
-
hasCombinedMembership
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;- Returns:
- Whether the combinedMembership field is set.
-
getCombinedMembership
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;- Returns:
- The combinedMembership.
-
getCombinedMembershipOrBuilder
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; -
getMembershipsCount
int getMembershipsCount()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; -
containsMemberships
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; -
getMemberships
Deprecated.UsegetMembershipsMap()instead. -
getMembershipsMap
Map<String,AllowBindingExplanation.AnnotatedAllowMembership> 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; -
getMembershipsOrDefault
AllowBindingExplanation.AnnotatedAllowMembership getMembershipsOrDefault(String key, AllowBindingExplanation.AnnotatedAllowMembership defaultValue) 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; -
getMembershipsOrThrow
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
int getRelevanceValue()The relevance of this role binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;- Returns:
- The enum numeric value on the wire for relevance.
-
getRelevance
HeuristicRelevance getRelevance()The relevance of this role binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;- Returns:
- The relevance.
-
hasCondition
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;- Returns:
- Whether the condition field is set.
-
getCondition
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;- Returns:
- The condition.
-
getConditionOrBuilder
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; -
hasConditionExplanation
boolean hasConditionExplanation()Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;- Returns:
- Whether the conditionExplanation field is set.
-
getConditionExplanation
ConditionExplanation getConditionExplanation()Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;- Returns:
- The conditionExplanation.
-
getConditionExplanationOrBuilder
ConditionExplanationOrBuilder getConditionExplanationOrBuilder()Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;
-