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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.The combined result of all memberships.A condition expression that specifies when the role binding grants access.Condition evaluation state for this role binding.The relevance of this role binding to the overall determination for the entire policy.The 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.booleanIndicates 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.The combined result of all memberships.A condition expression that specifies when the role binding grants access.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.Condition evaluation state for this role binding.A condition expression that specifies when the role binding grants access.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.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.Deprecated.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThe combined result of all memberships.mergeCondition(Expr value) A condition expression that specifies when the role binding grants access.Condition evaluation state for this role binding.mergeFrom(AllowBindingExplanation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.Indicates whether each role binding includes the principal specified in the request, either directly or indirectly.removeMemberships(String key) Indicates whether each role binding includes the principal specified in the request, either directly or indirectly.Required.setAllowAccessStateValue(int value) Required.The combined result of all memberships.The combined result of all memberships.setCondition(Expr value) A condition expression that specifies when the role binding grants access.setCondition(Expr.Builder builderForValue) A condition expression that specifies when the role binding grants access.Condition evaluation state for this role binding.setConditionExplanation(ConditionExplanation.Builder builderForValue) Condition evaluation state for this role binding.setRelevance(HeuristicRelevance value) The relevance of this role binding to the overall determination for the entire policy.setRelevanceValue(int value) The relevance of this role binding to the overall determination for the entire policy.The role that this role binding grants.setRoleBytes(com.google.protobuf.ByteString value) The 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.setRolePermissionRelevanceValue(int value) The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.setRolePermissionValue(int value) Indicates whether the role granted by this role binding contains the specified permission.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AllowBindingExplanation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllowBindingExplanation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getAllowAccessStateValuein interfaceAllowBindingExplanationOrBuilder- Returns:
- The enum numeric value on the wire for allowAccessState.
-
setAllowAccessStateValue
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
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:
getAllowAccessStatein interfaceAllowBindingExplanationOrBuilder- Returns:
- The allowAccessState.
-
setAllowAccessState
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
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
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:
getRolein interfaceAllowBindingExplanationOrBuilder- 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:
getRoleBytesin interfaceAllowBindingExplanationOrBuilder- Returns:
- The bytes for role.
-
setRole
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
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
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:
getRolePermissionValuein interfaceAllowBindingExplanationOrBuilder- Returns:
- The enum numeric value on the wire for rolePermission.
-
setRolePermissionValue
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
Indicates whether the role granted by this role binding contains the specified permission.
.google.cloud.policytroubleshooter.iam.v3.RolePermissionInclusionState role_permission = 3;- Specified by:
getRolePermissionin interfaceAllowBindingExplanationOrBuilder- 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
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:
getRolePermissionRelevanceValuein interfaceAllowBindingExplanationOrBuilder- Returns:
- The enum numeric value on the wire for rolePermissionRelevance.
-
setRolePermissionRelevanceValue
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
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:
getRolePermissionRelevancein interfaceAllowBindingExplanationOrBuilder- Returns:
- The rolePermissionRelevance.
-
setRolePermissionRelevance
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
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:
hasCombinedMembershipin interfaceAllowBindingExplanationOrBuilder- Returns:
- Whether the combinedMembership field is set.
-
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:
getCombinedMembershipin interfaceAllowBindingExplanationOrBuilder- Returns:
- The combinedMembership.
-
setCombinedMembership
public AllowBindingExplanation.Builder setCombinedMembership(AllowBindingExplanation.AnnotatedAllowMembership value) 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
public AllowBindingExplanation.Builder setCombinedMembership(AllowBindingExplanation.AnnotatedAllowMembership.Builder builderForValue) 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
public AllowBindingExplanation.Builder mergeCombinedMembership(AllowBindingExplanation.AnnotatedAllowMembership value) 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
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
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
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:
getCombinedMembershipOrBuilderin interfaceAllowBindingExplanationOrBuilder
-
getMembershipsCount
public int getMembershipsCount()Description copied from interface:AllowBindingExplanationOrBuilderIndicates 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:
getMembershipsCountin interfaceAllowBindingExplanationOrBuilder
-
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;- Specified by:
containsMembershipsin interfaceAllowBindingExplanationOrBuilder
-
getMemberships
Deprecated.UsegetMembershipsMap()instead.- Specified by:
getMembershipsin interfaceAllowBindingExplanationOrBuilder
-
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:
getMembershipsMapin interfaceAllowBindingExplanationOrBuilder
-
getMembershipsOrDefault
public 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;- Specified by:
getMembershipsOrDefaultin interfaceAllowBindingExplanationOrBuilder
-
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;- Specified by:
getMembershipsOrThrowin interfaceAllowBindingExplanationOrBuilder
-
clearMemberships
-
removeMemberships
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 public Map<String,AllowBindingExplanation.AnnotatedAllowMembership> getMutableMemberships()Deprecated.Use alternate mutation accessors instead. -
putMemberships
public AllowBindingExplanation.Builder putMemberships(String key, AllowBindingExplanation.AnnotatedAllowMembership value) 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
public AllowBindingExplanation.Builder putAllMemberships(Map<String, AllowBindingExplanation.AnnotatedAllowMembership> values) 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:
getRelevanceValuein interfaceAllowBindingExplanationOrBuilder- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
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
The relevance of this role binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 7;- Specified by:
getRelevancein interfaceAllowBindingExplanationOrBuilder- 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
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:
hasConditionin interfaceAllowBindingExplanationOrBuilder- Returns:
- Whether the condition field is set.
-
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:
getConditionin interfaceAllowBindingExplanationOrBuilder- Returns:
- The condition.
-
setCondition
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
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
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
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
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
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:
getConditionOrBuilderin interfaceAllowBindingExplanationOrBuilder
-
hasConditionExplanation
public boolean hasConditionExplanation()Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;- Specified by:
hasConditionExplanationin interfaceAllowBindingExplanationOrBuilder- Returns:
- Whether the conditionExplanation field is set.
-
getConditionExplanation
Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;- Specified by:
getConditionExplanationin interfaceAllowBindingExplanationOrBuilder- Returns:
- The conditionExplanation.
-
setConditionExplanation
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
Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9; -
clearConditionExplanation
Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9; -
getConditionExplanationBuilder
Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9; -
getConditionExplanationOrBuilder
Condition evaluation state for this role binding.
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 9;- Specified by:
getConditionExplanationOrBuilderin interfaceAllowBindingExplanationOrBuilder
-