public static final class Explanations.BindingExplanation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder> implements Explanations.BindingExplanationOrBuilder
Details about how a binding in a policy affects a member's ability to use a permission.Protobuf type
google.cloud.policytroubleshooter.v1.BindingExplanation| Modifier and Type | Method and Description |
|---|---|
Explanations.BindingExplanation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Explanations.BindingExplanation |
build() |
Explanations.BindingExplanation |
buildPartial() |
Explanations.BindingExplanation.Builder |
clear() |
Explanations.BindingExplanation.Builder |
clearAccess()
Required.
|
Explanations.BindingExplanation.Builder |
clearCondition()
A condition expression that prevents access unless the expression evaluates
to `true`.
|
Explanations.BindingExplanation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Explanations.BindingExplanation.Builder |
clearMemberships() |
Explanations.BindingExplanation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Explanations.BindingExplanation.Builder |
clearRelevance()
The relevance of this binding to the overall determination for the entire
policy.
|
Explanations.BindingExplanation.Builder |
clearRole()
The role that this binding grants.
|
Explanations.BindingExplanation.Builder |
clearRolePermission()
Indicates whether the role granted by this binding contains the specified
permission.
|
Explanations.BindingExplanation.Builder |
clearRolePermissionRelevance()
The relevance of the permission's existence, or nonexistence, in the role
to the overall determination for the entire policy.
|
Explanations.BindingExplanation.Builder |
clone() |
boolean |
containsMemberships(String key)
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Explanations.AccessState |
getAccess()
Required.
|
int |
getAccessValue()
Required.
|
com.google.type.Expr |
getCondition()
A condition expression that prevents access unless the expression evaluates
to `true`.
|
com.google.type.Expr.Builder |
getConditionBuilder()
A condition expression that prevents access unless the expression evaluates
to `true`.
|
com.google.type.ExprOrBuilder |
getConditionOrBuilder()
A condition expression that prevents access unless the expression evaluates
to `true`.
|
Explanations.BindingExplanation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Explanations.BindingExplanation.AnnotatedMembership> |
getMemberships()
Deprecated.
|
int |
getMembershipsCount()
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Map<String,Explanations.BindingExplanation.AnnotatedMembership> |
getMembershipsMap()
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Explanations.BindingExplanation.AnnotatedMembership |
getMembershipsOrDefault(String key,
Explanations.BindingExplanation.AnnotatedMembership defaultValue)
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Explanations.BindingExplanation.AnnotatedMembership |
getMembershipsOrThrow(String key)
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Map<String,Explanations.BindingExplanation.AnnotatedMembership> |
getMutableMemberships()
Deprecated.
|
Explanations.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.
|
Explanations.BindingExplanation.RolePermission |
getRolePermission()
Indicates whether the role granted by this binding contains the specified
permission.
|
Explanations.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 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() |
Explanations.BindingExplanation.Builder |
mergeCondition(com.google.type.Expr value)
A condition expression that prevents access unless the expression evaluates
to `true`.
|
Explanations.BindingExplanation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Explanations.BindingExplanation.Builder |
mergeFrom(Explanations.BindingExplanation other) |
Explanations.BindingExplanation.Builder |
mergeFrom(com.google.protobuf.Message other) |
Explanations.BindingExplanation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Explanations.BindingExplanation.Builder |
putAllMemberships(Map<String,Explanations.BindingExplanation.AnnotatedMembership> values)
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Explanations.BindingExplanation.Builder |
putMemberships(String key,
Explanations.BindingExplanation.AnnotatedMembership value)
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Explanations.BindingExplanation.Builder |
removeMemberships(String key)
Indicates whether each member in the binding includes the member specified
in the request, either directly or indirectly.
|
Explanations.BindingExplanation.Builder |
setAccess(Explanations.AccessState value)
Required.
|
Explanations.BindingExplanation.Builder |
setAccessValue(int value)
Required.
|
Explanations.BindingExplanation.Builder |
setCondition(com.google.type.Expr.Builder builderForValue)
A condition expression that prevents access unless the expression evaluates
to `true`.
|
Explanations.BindingExplanation.Builder |
setCondition(com.google.type.Expr value)
A condition expression that prevents access unless the expression evaluates
to `true`.
|
Explanations.BindingExplanation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Explanations.BindingExplanation.Builder |
setRelevance(Explanations.HeuristicRelevance value)
The relevance of this binding to the overall determination for the entire
policy.
|
Explanations.BindingExplanation.Builder |
setRelevanceValue(int value)
The relevance of this binding to the overall determination for the entire
policy.
|
Explanations.BindingExplanation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Explanations.BindingExplanation.Builder |
setRole(String value)
The role that this binding grants.
|
Explanations.BindingExplanation.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
The role that this binding grants.
|
Explanations.BindingExplanation.Builder |
setRolePermission(Explanations.BindingExplanation.RolePermission value)
Indicates whether the role granted by this binding contains the specified
permission.
|
Explanations.BindingExplanation.Builder |
setRolePermissionRelevance(Explanations.HeuristicRelevance value)
The relevance of the permission's existence, or nonexistence, in the role
to the overall determination for the entire policy.
|
Explanations.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.
|
Explanations.BindingExplanation.Builder |
setRolePermissionValue(int value)
Indicates whether the role granted by this binding contains the specified
permission.
|
Explanations.BindingExplanation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>public Explanations.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<Explanations.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<Explanations.BindingExplanation.Builder>public Explanations.BindingExplanation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Explanations.BindingExplanation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Explanations.BindingExplanation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Explanations.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<Explanations.BindingExplanation.Builder>public Explanations.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<Explanations.BindingExplanation.Builder>public Explanations.BindingExplanation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>public Explanations.BindingExplanation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>public Explanations.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<Explanations.BindingExplanation.Builder>public Explanations.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<Explanations.BindingExplanation.Builder>public Explanations.BindingExplanation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Explanations.BindingExplanation.Builder>public Explanations.BindingExplanation.Builder mergeFrom(Explanations.BindingExplanation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>public Explanations.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<Explanations.BindingExplanation.Builder>IOExceptionpublic int getAccessValue()
Required. Indicates whether _this binding_ provides the specified permission to the specified member for the specified resource. This field does _not_ indicate whether the member actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the member actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
getAccessValue in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setAccessValue(int value)
Required. Indicates whether _this binding_ provides the specified permission to the specified member for the specified resource. This field does _not_ indicate whether the member actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the member actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for access to set.public Explanations.AccessState getAccess()
Required. Indicates whether _this binding_ provides the specified permission to the specified member for the specified resource. This field does _not_ indicate whether the member actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the member actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
getAccess in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setAccess(Explanations.AccessState value)
Required. Indicates whether _this binding_ provides the specified permission to the specified member for the specified resource. This field does _not_ indicate whether the member actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the member actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
value - The access to set.public Explanations.BindingExplanation.Builder clearAccess()
Required. Indicates whether _this binding_ provides the specified permission to the specified member for the specified resource. This field does _not_ indicate whether the member actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the member actually has the permission, use the `access` field in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.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 Explanations.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 Explanations.BindingExplanationOrBuilderpublic Explanations.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 Explanations.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 Explanations.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.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3;
getRolePermissionValue in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setRolePermissionValue(int value)
Indicates whether the role granted by this binding contains the specified permission.
.google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3;
value - The enum numeric value on the wire for rolePermission to set.public Explanations.BindingExplanation.RolePermission getRolePermission()
Indicates whether the role granted by this binding contains the specified permission.
.google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3;
getRolePermission in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setRolePermission(Explanations.BindingExplanation.RolePermission value)
Indicates whether the role granted by this binding contains the specified permission.
.google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3;
value - The rolePermission to set.public Explanations.BindingExplanation.Builder clearRolePermission()
Indicates whether the role granted by this binding contains the specified permission.
.google.cloud.policytroubleshooter.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.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4;
getRolePermissionRelevanceValue in interface Explanations.BindingExplanationOrBuilderpublic Explanations.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.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4;
value - The enum numeric value on the wire for rolePermissionRelevance to set.public Explanations.HeuristicRelevance getRolePermissionRelevance()
The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4;
getRolePermissionRelevance in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setRolePermissionRelevance(Explanations.HeuristicRelevance value)
The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4;
value - The rolePermissionRelevance to set.public Explanations.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.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4;
public int getMembershipsCount()
Explanations.BindingExplanationOrBuilderIndicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
getMembershipsCount in interface Explanations.BindingExplanationOrBuilderpublic boolean containsMemberships(String key)
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
containsMemberships in interface Explanations.BindingExplanationOrBuilder@Deprecated public Map<String,Explanations.BindingExplanation.AnnotatedMembership> getMemberships()
getMembershipsMap() instead.getMemberships in interface Explanations.BindingExplanationOrBuilderpublic Map<String,Explanations.BindingExplanation.AnnotatedMembership> getMembershipsMap()
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
getMembershipsMap in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault(String key, Explanations.BindingExplanation.AnnotatedMembership defaultValue)
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
getMembershipsOrDefault in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow(String key)
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
getMembershipsOrThrow in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder clearMemberships()
public Explanations.BindingExplanation.Builder removeMemberships(String key)
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
@Deprecated public Map<String,Explanations.BindingExplanation.AnnotatedMembership> getMutableMemberships()
public Explanations.BindingExplanation.Builder putMemberships(String key, Explanations.BindingExplanation.AnnotatedMembership value)
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
public Explanations.BindingExplanation.Builder putAllMemberships(Map<String,Explanations.BindingExplanation.AnnotatedMembership> values)
Indicates whether each member in the binding includes the member specified in the request, either directly or indirectly. Each key identifies a member in the binding, and each value indicates whether the member in the binding includes the member in the request. For example, suppose that a binding includes the following members: * `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 member 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 member 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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
public int getRelevanceValue()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;getRelevanceValue in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setRelevanceValue(int value)
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;value - The enum numeric value on the wire for relevance to set.public Explanations.HeuristicRelevance getRelevance()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;getRelevance in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setRelevance(Explanations.HeuristicRelevance value)
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;value - The relevance to set.public Explanations.BindingExplanation.Builder clearRelevance()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;public boolean hasCondition()
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;hasCondition in interface Explanations.BindingExplanationOrBuilderpublic com.google.type.Expr getCondition()
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;getCondition in interface Explanations.BindingExplanationOrBuilderpublic Explanations.BindingExplanation.Builder setCondition(com.google.type.Expr value)
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;public Explanations.BindingExplanation.Builder setCondition(com.google.type.Expr.Builder builderForValue)
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;public Explanations.BindingExplanation.Builder mergeCondition(com.google.type.Expr value)
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;public Explanations.BindingExplanation.Builder clearCondition()
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;public com.google.type.Expr.Builder getConditionBuilder()
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;public com.google.type.ExprOrBuilder getConditionOrBuilder()
A condition expression that prevents access unless the expression evaluates to `true`. To learn about IAM Conditions, see http://cloud.google.com/iam/help/conditions/overview.
.google.type.Expr condition = 7;getConditionOrBuilder in interface Explanations.BindingExplanationOrBuilderpublic final Explanations.BindingExplanation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>public final Explanations.BindingExplanation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>Copyright © 2022 Google LLC. All rights reserved.