Class BindingExplanation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<BindingExplanation.Builder> implements BindingExplanationOrBuilder
Details about how a binding in a policy affects a principal's ability to use a permission.
Protobuf typegoogle.cloud.policysimulator.v1.BindingExplanation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BindingExplanation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BindingExplanationbuild()BindingExplanationbuildPartial()BindingExplanation.Builderclear()BindingExplanation.BuilderclearAccess()Required.BindingExplanation.BuilderclearCondition()A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.BindingExplanation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BindingExplanation.BuilderclearMemberships()BindingExplanation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BindingExplanation.BuilderclearRelevance()The relevance of this binding to the overall determination for the entire policy.BindingExplanation.BuilderclearRole()The role that this binding grants.BindingExplanation.BuilderclearRolePermission()Indicates whether the role granted by this binding contains the specified permission.BindingExplanation.BuilderclearRolePermissionRelevance()The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.BindingExplanation.Builderclone()booleancontainsMemberships(String key)Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.AccessStategetAccess()Required.intgetAccessValue()Required.com.google.type.ExprgetCondition()A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.com.google.type.Expr.BuildergetConditionBuilder()A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.com.google.type.ExprOrBuildergetConditionOrBuilder()A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.BindingExplanationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,BindingExplanation.AnnotatedMembership>getMemberships()Deprecated.intgetMembershipsCount()Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.Map<String,BindingExplanation.AnnotatedMembership>getMembershipsMap()Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.BindingExplanation.AnnotatedMembershipgetMembershipsOrDefault(String key, BindingExplanation.AnnotatedMembership defaultValue)Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.BindingExplanation.AnnotatedMembershipgetMembershipsOrThrow(String key)Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.Map<String,BindingExplanation.AnnotatedMembership>getMutableMemberships()Deprecated.HeuristicRelevancegetRelevance()The relevance of this binding to the overall determination for the entire policy.intgetRelevanceValue()The relevance of this binding to the overall determination for the entire policy.StringgetRole()The role that this binding grants.com.google.protobuf.ByteStringgetRoleBytes()The role that this binding grants.BindingExplanation.RolePermissiongetRolePermission()Indicates whether the role granted by this binding contains the specified permission.HeuristicRelevancegetRolePermissionRelevance()The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.intgetRolePermissionRelevanceValue()The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.intgetRolePermissionValue()Indicates whether the role granted by this binding contains the specified permission.booleanhasCondition()A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()BindingExplanation.BuildermergeCondition(com.google.type.Expr value)A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.BindingExplanation.BuildermergeFrom(BindingExplanation other)BindingExplanation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BindingExplanation.BuildermergeFrom(com.google.protobuf.Message other)BindingExplanation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BindingExplanation.BuilderputAllMemberships(Map<String,BindingExplanation.AnnotatedMembership> values)Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.BindingExplanation.BuilderputMemberships(String key, BindingExplanation.AnnotatedMembership value)Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.BindingExplanation.BuilderremoveMemberships(String key)Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.BindingExplanation.BuildersetAccess(AccessState value)Required.BindingExplanation.BuildersetAccessValue(int value)Required.BindingExplanation.BuildersetCondition(com.google.type.Expr value)A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.BindingExplanation.BuildersetCondition(com.google.type.Expr.Builder builderForValue)A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.BindingExplanation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BindingExplanation.BuildersetRelevance(HeuristicRelevance value)The relevance of this binding to the overall determination for the entire policy.BindingExplanation.BuildersetRelevanceValue(int value)The relevance of this binding to the overall determination for the entire policy.BindingExplanation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BindingExplanation.BuildersetRole(String value)The role that this binding grants.BindingExplanation.BuildersetRoleBytes(com.google.protobuf.ByteString value)The role that this binding grants.BindingExplanation.BuildersetRolePermission(BindingExplanation.RolePermission value)Indicates whether the role granted by this binding contains the specified permission.BindingExplanation.BuildersetRolePermissionRelevance(HeuristicRelevance value)The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.BindingExplanation.BuildersetRolePermissionRelevanceValue(int value)The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.BindingExplanation.BuildersetRolePermissionValue(int value)Indicates whether the role granted by this binding contains the specified permission.BindingExplanation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
clear
public BindingExplanation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.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.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
getDefaultInstanceForType
public BindingExplanation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BindingExplanation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BindingExplanation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BindingExplanation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
setField
public BindingExplanation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
clearField
public BindingExplanation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
clearOneof
public BindingExplanation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
setRepeatedField
public BindingExplanation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
addRepeatedField
public BindingExplanation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
mergeFrom
public BindingExplanation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BindingExplanation.Builder>
-
mergeFrom
public BindingExplanation.Builder mergeFrom(BindingExplanation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
mergeFrom
public BindingExplanation.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<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][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAccessValuein interfaceBindingExplanationOrBuilder- 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][IamChecker.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][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAccessin interfaceBindingExplanationOrBuilder- 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][IamChecker.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][IamChecker.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:
getRolein interfaceBindingExplanationOrBuilder- 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:
getRoleBytesin interfaceBindingExplanationOrBuilder- 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:
getRolePermissionValuein interfaceBindingExplanationOrBuilder- 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:
getRolePermissionin interfaceBindingExplanationOrBuilder- Returns:
- The rolePermission.
-
setRolePermission
public BindingExplanation.Builder setRolePermission(BindingExplanation.RolePermission 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 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:
getRolePermissionRelevanceValuein interfaceBindingExplanationOrBuilder- 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:
getRolePermissionRelevancein interfaceBindingExplanationOrBuilder- 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:BindingExplanationOrBuilderIndicates 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:
getMembershipsCountin interfaceBindingExplanationOrBuilder
-
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:
containsMembershipsin interfaceBindingExplanationOrBuilder
-
getMemberships
@Deprecated public Map<String,BindingExplanation.AnnotatedMembership> getMemberships()
Deprecated.UsegetMembershipsMap()instead.- Specified by:
getMembershipsin interfaceBindingExplanationOrBuilder
-
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:
getMembershipsMapin interfaceBindingExplanationOrBuilder
-
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:
getMembershipsOrDefaultin interfaceBindingExplanationOrBuilder
-
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:
getMembershipsOrThrowin interfaceBindingExplanationOrBuilder
-
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 public Map<String,BindingExplanation.AnnotatedMembership> getMutableMemberships()
Deprecated.Use alternate mutation accessors instead.
-
putMemberships
public BindingExplanation.Builder putMemberships(String key, BindingExplanation.AnnotatedMembership value)
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
public BindingExplanation.Builder putAllMemberships(Map<String,BindingExplanation.AnnotatedMembership> values)
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:
getRelevanceValuein interfaceBindingExplanationOrBuilder- 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:
getRelevancein interfaceBindingExplanationOrBuilder- 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:
hasConditionin interfaceBindingExplanationOrBuilder- Returns:
- Whether the condition field is set.
-
getCondition
public com.google.type.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:
getConditionin interfaceBindingExplanationOrBuilder- Returns:
- The condition.
-
setCondition
public BindingExplanation.Builder setCondition(com.google.type.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(com.google.type.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(com.google.type.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 com.google.type.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 com.google.type.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:
getConditionOrBuilderin interfaceBindingExplanationOrBuilder
-
setUnknownFields
public final BindingExplanation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
mergeUnknownFields
public final BindingExplanation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>
-
-