Class Explanations.BindingExplanation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
- google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Explanations.BindingExplanationOrBuilder
,Cloneable
- Enclosing class:
- Explanations.BindingExplanation
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 principal's ability to use a permission.
Protobuf typegoogle.cloud.policytroubleshooter.v1.BindingExplanation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 this binding from granting 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 principal in the binding includes the principal 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 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`.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 principal in the binding includes the principal specified in the request, either directly or indirectly.Map<String,Explanations.BindingExplanation.AnnotatedMembership>
getMembershipsMap()
Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.Explanations.BindingExplanation.AnnotatedMembership
getMembershipsOrDefault(String key, Explanations.BindingExplanation.AnnotatedMembership defaultValue)
Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.Explanations.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,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 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()
Explanations.BindingExplanation.Builder
mergeCondition(com.google.type.Expr value)
A condition expression that prevents this binding from granting 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(com.google.protobuf.Message other)
Explanations.BindingExplanation.Builder
mergeFrom(Explanations.BindingExplanation other)
Explanations.BindingExplanation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Explanations.BindingExplanation.Builder
putAllMemberships(Map<String,Explanations.BindingExplanation.AnnotatedMembership> values)
Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.Explanations.BindingExplanation.Builder
putMemberships(String key, Explanations.BindingExplanation.AnnotatedMembership value)
Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly.Explanations.BindingExplanation.Builder
removeMemberships(String key)
Indicates whether each principal in the binding includes the principal 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 value)
A condition expression that prevents this binding from granting access unless the expression evaluates to `true`.Explanations.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`.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)
-
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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
clear
public Explanations.BindingExplanation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
getDefaultInstanceForType
public Explanations.BindingExplanation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Explanations.BindingExplanation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Explanations.BindingExplanation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Explanations.BindingExplanation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
setField
public Explanations.BindingExplanation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
clearField
public Explanations.BindingExplanation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
clearOneof
public Explanations.BindingExplanation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
setRepeatedField
public Explanations.BindingExplanation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
addRepeatedField
public Explanations.BindingExplanation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
mergeFrom
public Explanations.BindingExplanation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Explanations.BindingExplanation.Builder>
-
mergeFrom
public Explanations.BindingExplanation.Builder mergeFrom(Explanations.BindingExplanation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
mergeFrom
public Explanations.BindingExplanation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Explanations.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.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAccessValue
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The enum numeric value on the wire for access.
-
setAccessValue
public Explanations.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.policytroubleshooter.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 Explanations.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.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAccess
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The access.
-
setAccess
public Explanations.BindingExplanation.Builder setAccess(Explanations.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.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The access to set.- Returns:
- This builder for chaining.
-
clearAccess
public Explanations.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.policytroubleshooter.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:
getRole
in interfaceExplanations.BindingExplanationOrBuilder
- 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:
getRoleBytes
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The bytes for role.
-
setRole
public 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;
- Parameters:
value
- The role to set.- Returns:
- This builder for chaining.
-
clearRole
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;
- Returns:
- This builder for chaining.
-
setRoleBytes
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;
- 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.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3;
- Specified by:
getRolePermissionValue
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The enum numeric value on the wire for rolePermission.
-
setRolePermissionValue
public 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;
- Parameters:
value
- The enum numeric value on the wire for rolePermission to set.- Returns:
- This builder for chaining.
-
getRolePermission
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;
- Specified by:
getRolePermission
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The rolePermission.
-
setRolePermission
public 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;
- Parameters:
value
- The rolePermission to set.- Returns:
- This builder for chaining.
-
clearRolePermission
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;
- Returns:
- This builder for chaining.
-
getRolePermissionRelevanceValue
public int getRolePermissionRelevanceValue()
The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4;
- Specified by:
getRolePermissionRelevanceValue
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The enum numeric value on the wire for rolePermissionRelevance.
-
setRolePermissionRelevanceValue
public 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;
- Parameters:
value
- The enum numeric value on the wire for rolePermissionRelevance to set.- Returns:
- This builder for chaining.
-
getRolePermissionRelevance
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;
- Specified by:
getRolePermissionRelevance
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The rolePermissionRelevance.
-
setRolePermissionRelevance
public 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;
- Parameters:
value
- The rolePermissionRelevance to set.- Returns:
- This builder for chaining.
-
clearRolePermissionRelevance
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;
- Returns:
- This builder for chaining.
-
getMembershipsCount
public int getMembershipsCount()
Description copied from interface:Explanations.BindingExplanationOrBuilder
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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
- Specified by:
getMembershipsCount
in interfaceExplanations.BindingExplanationOrBuilder
-
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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
- Specified by:
containsMemberships
in interfaceExplanations.BindingExplanationOrBuilder
-
getMemberships
@Deprecated public Map<String,Explanations.BindingExplanation.AnnotatedMembership> getMemberships()
Deprecated.UsegetMembershipsMap()
instead.- Specified by:
getMemberships
in interfaceExplanations.BindingExplanationOrBuilder
-
getMembershipsMap
public Map<String,Explanations.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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
- Specified by:
getMembershipsMap
in interfaceExplanations.BindingExplanationOrBuilder
-
getMembershipsOrDefault
public Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault(String key, Explanations.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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
- Specified by:
getMembershipsOrDefault
in interfaceExplanations.BindingExplanationOrBuilder
-
getMembershipsOrThrow
public Explanations.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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
- Specified by:
getMembershipsOrThrow
in interfaceExplanations.BindingExplanationOrBuilder
-
clearMemberships
public Explanations.BindingExplanation.Builder clearMemberships()
-
removeMemberships
public Explanations.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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
-
getMutableMemberships
@Deprecated public Map<String,Explanations.BindingExplanation.AnnotatedMembership> getMutableMemberships()
Deprecated.Use alternate mutation accessors instead.
-
putMemberships
public Explanations.BindingExplanation.Builder putMemberships(String key, Explanations.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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
-
putAllMemberships
public Explanations.BindingExplanation.Builder putAllMemberships(Map<String,Explanations.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` You want to troubleshoot access for `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.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
-
getRelevanceValue
public int getRelevanceValue()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;
- Specified by:
getRelevanceValue
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
public 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;
- Parameters:
value
- The enum numeric value on the wire for relevance to set.- Returns:
- This builder for chaining.
-
getRelevance
public Explanations.HeuristicRelevance getRelevance()
The relevance of this binding to the overall determination for the entire policy.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6;
- Specified by:
getRelevance
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The relevance.
-
setRelevance
public 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;
- Parameters:
value
- The relevance to set.- Returns:
- This builder for chaining.
-
clearRelevance
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;
- 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/help/conditions/overview.
.google.type.Expr condition = 7;
- Specified by:
hasCondition
in interfaceExplanations.BindingExplanationOrBuilder
- 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/help/conditions/overview.
.google.type.Expr condition = 7;
- Specified by:
getCondition
in interfaceExplanations.BindingExplanationOrBuilder
- Returns:
- The condition.
-
setCondition
public Explanations.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/help/conditions/overview.
.google.type.Expr condition = 7;
-
setCondition
public Explanations.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/help/conditions/overview.
.google.type.Expr condition = 7;
-
mergeCondition
public Explanations.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/help/conditions/overview.
.google.type.Expr condition = 7;
-
clearCondition
public Explanations.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/help/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/help/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/help/conditions/overview.
.google.type.Expr condition = 7;
- Specified by:
getConditionOrBuilder
in interfaceExplanations.BindingExplanationOrBuilder
-
setUnknownFields
public final Explanations.BindingExplanation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
mergeUnknownFields
public final Explanations.BindingExplanation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.BindingExplanation.Builder>
-
-