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 type
google.cloud.policysimulator.v1.BindingExplanation| Modifier and Type | Method and Description |
|---|---|
BindingExplanation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BindingExplanation |
build() |
BindingExplanation |
buildPartial() |
BindingExplanation.Builder |
clear() |
BindingExplanation.Builder |
clearAccess()
Required.
|
BindingExplanation.Builder |
clearCondition()
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
BindingExplanation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BindingExplanation.Builder |
clearMemberships() |
BindingExplanation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BindingExplanation.Builder |
clearRelevance()
The relevance of this binding to the overall determination for the entire
policy.
|
BindingExplanation.Builder |
clearRole()
The role that this binding grants.
|
BindingExplanation.Builder |
clearRolePermission()
Indicates whether the role granted by this binding contains the specified
permission.
|
BindingExplanation.Builder |
clearRolePermissionRelevance()
The relevance of the permission's existence, or nonexistence, in the role
to the overall determination for the entire policy.
|
BindingExplanation.Builder |
clone() |
boolean |
containsMemberships(String key)
Indicates whether each principal in the binding includes the principal
specified in the request, either directly or indirectly.
|
AccessState |
getAccess()
Required.
|
int |
getAccessValue()
Required.
|
com.google.type.Expr |
getCondition()
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
com.google.type.Expr.Builder |
getConditionBuilder()
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
com.google.type.ExprOrBuilder |
getConditionOrBuilder()
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
BindingExplanation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,BindingExplanation.AnnotatedMembership> |
getMemberships()
Deprecated.
|
int |
getMembershipsCount()
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.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.
|
BindingExplanation.AnnotatedMembership |
getMembershipsOrThrow(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.
|
HeuristicRelevance |
getRelevance()
The relevance of this binding to the overall determination for the entire
policy.
|
int |
getRelevanceValue()
The relevance of this binding to the overall determination for the entire
policy.
|
String |
getRole()
The role that this binding grants.
|
com.google.protobuf.ByteString |
getRoleBytes()
The role that this binding grants.
|
BindingExplanation.RolePermission |
getRolePermission()
Indicates whether the role granted by this binding contains the specified
permission.
|
HeuristicRelevance |
getRolePermissionRelevance()
The relevance of the permission's existence, or nonexistence, in the role
to the overall determination for the entire policy.
|
int |
getRolePermissionRelevanceValue()
The relevance of the permission's existence, or nonexistence, in the role
to the overall determination for the entire policy.
|
int |
getRolePermissionValue()
Indicates whether the role granted by this binding contains the specified
permission.
|
boolean |
hasCondition()
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
BindingExplanation.Builder |
mergeCondition(com.google.type.Expr value)
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
BindingExplanation.Builder |
mergeFrom(BindingExplanation other) |
BindingExplanation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BindingExplanation.Builder |
mergeFrom(com.google.protobuf.Message other) |
BindingExplanation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
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.
|
BindingExplanation.Builder |
removeMemberships(String key)
Indicates whether each principal in the binding includes the principal
specified in the request, either directly or indirectly.
|
BindingExplanation.Builder |
setAccess(AccessState value)
Required.
|
BindingExplanation.Builder |
setAccessValue(int value)
Required.
|
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`.
|
BindingExplanation.Builder |
setCondition(com.google.type.Expr value)
A condition expression that prevents this binding from granting access
unless the expression evaluates to `true`.
|
BindingExplanation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BindingExplanation.Builder |
setRelevance(HeuristicRelevance value)
The relevance of this binding to the overall determination for the entire
policy.
|
BindingExplanation.Builder |
setRelevanceValue(int value)
The relevance of this binding to the overall determination for the entire
policy.
|
BindingExplanation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BindingExplanation.Builder |
setRole(String value)
The role that this binding grants.
|
BindingExplanation.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
The role that this binding grants.
|
BindingExplanation.Builder |
setRolePermission(BindingExplanation.RolePermission value)
Indicates whether the role granted by this binding contains the specified
permission.
|
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.
|
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.
|
BindingExplanation.Builder |
setRolePermissionValue(int value)
Indicates whether the role granted by this binding contains the specified
permission.
|
BindingExplanation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BindingExplanation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BindingExplanation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BindingExplanation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BindingExplanation.Builder>public BindingExplanation.Builder mergeFrom(BindingExplanation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public BindingExplanation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BindingExplanation.Builder>IOExceptionpublic 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];
getAccessValue in interface BindingExplanationOrBuilderpublic 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];
value - The enum numeric value on the wire for access to set.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];
getAccess in interface BindingExplanationOrBuilderpublic 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];
value - The access to set.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];
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;getRole in interface BindingExplanationOrBuilderpublic 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;getRoleBytes in interface BindingExplanationOrBuilderpublic 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;value - The role to set.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;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;value - The bytes for role to set.public int getRolePermissionValue()
Indicates whether the role granted by this binding contains the specified permission.
.google.cloud.policysimulator.v1.BindingExplanation.RolePermission role_permission = 3;
getRolePermissionValue in interface BindingExplanationOrBuilderpublic 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;
value - The enum numeric value on the wire for rolePermission to set.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;
getRolePermission in interface BindingExplanationOrBuilderpublic 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;
value - The rolePermission to set.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;
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;
getRolePermissionRelevanceValue in interface BindingExplanationOrBuilderpublic 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;
value - The enum numeric value on the wire for rolePermissionRelevance to set.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;
getRolePermissionRelevance in interface BindingExplanationOrBuilderpublic 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;
value - The rolePermissionRelevance to set.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;
public int getMembershipsCount()
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;
getMembershipsCount in interface BindingExplanationOrBuilderpublic 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;
containsMemberships in interface BindingExplanationOrBuilder@Deprecated public Map<String,BindingExplanation.AnnotatedMembership> getMemberships()
getMembershipsMap() instead.getMemberships in interface BindingExplanationOrBuilderpublic 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;
getMembershipsMap in interface BindingExplanationOrBuilderpublic 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;
getMembershipsOrDefault in interface BindingExplanationOrBuilderpublic 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;
getMembershipsOrThrow in interface BindingExplanationOrBuilderpublic BindingExplanation.Builder clearMemberships()
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;
@Deprecated public Map<String,BindingExplanation.AnnotatedMembership> getMutableMemberships()
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;
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;
public int getRelevanceValue()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;getRelevanceValue in interface BindingExplanationOrBuilderpublic 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;value - The enum numeric value on the wire for relevance to set.public HeuristicRelevance getRelevance()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;getRelevance in interface BindingExplanationOrBuilderpublic 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;value - The relevance to set.public BindingExplanation.Builder clearRelevance()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 6;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;hasCondition in interface BindingExplanationOrBuilderpublic 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;getCondition in interface BindingExplanationOrBuilderpublic 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;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;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;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;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;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;getConditionOrBuilder in interface BindingExplanationOrBuilderpublic final BindingExplanation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>public final BindingExplanation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BindingExplanation.Builder>Copyright © 2024 Google LLC. All rights reserved.