Class ExplainedPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
- com.google.cloud.policysimulator.v1.ExplainedPolicy.Builder
-
- All Implemented Interfaces:
ExplainedPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExplainedPolicy
public static final class ExplainedPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder> implements ExplainedPolicyOrBuilder
Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed to the access check.
Protobuf typegoogle.cloud.policysimulator.v1.ExplainedPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExplainedPolicy.BuilderaddAllBindingExplanations(Iterable<? extends BindingExplanation> values)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuilderaddBindingExplanations(int index, BindingExplanation value)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuilderaddBindingExplanations(int index, BindingExplanation.Builder builderForValue)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuilderaddBindingExplanations(BindingExplanation value)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuilderaddBindingExplanations(BindingExplanation.Builder builderForValue)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.BindingExplanation.BuilderaddBindingExplanationsBuilder()Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.BindingExplanation.BuilderaddBindingExplanationsBuilder(int index)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExplainedPolicybuild()ExplainedPolicybuildPartial()ExplainedPolicy.Builderclear()ExplainedPolicy.BuilderclearAccess()Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.ExplainedPolicy.BuilderclearBindingExplanations()Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExplainedPolicy.BuilderclearFullResourceName()The full resource name that identifies the resource.ExplainedPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExplainedPolicy.BuilderclearPolicy()The IAM policy attached to the resource.ExplainedPolicy.BuilderclearRelevance()The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].ExplainedPolicy.Builderclone()AccessStategetAccess()Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.intgetAccessValue()Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.BindingExplanationgetBindingExplanations(int index)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.BindingExplanation.BuildergetBindingExplanationsBuilder(int index)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.List<BindingExplanation.Builder>getBindingExplanationsBuilderList()Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.intgetBindingExplanationsCount()Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.List<BindingExplanation>getBindingExplanationsList()Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.BindingExplanationOrBuildergetBindingExplanationsOrBuilder(int index)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.List<? extends BindingExplanationOrBuilder>getBindingExplanationsOrBuilderList()Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFullResourceName()The full resource name that identifies the resource.com.google.protobuf.ByteStringgetFullResourceNameBytes()The full resource name that identifies the resource.com.google.iam.v1.PolicygetPolicy()The IAM policy attached to the resource.com.google.iam.v1.Policy.BuildergetPolicyBuilder()The IAM policy attached to the resource.com.google.iam.v1.PolicyOrBuildergetPolicyOrBuilder()The IAM policy attached to the resource.HeuristicRelevancegetRelevance()The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].intgetRelevanceValue()The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].booleanhasPolicy()The IAM policy attached to the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExplainedPolicy.BuildermergeFrom(ExplainedPolicy other)ExplainedPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExplainedPolicy.BuildermergeFrom(com.google.protobuf.Message other)ExplainedPolicy.BuildermergePolicy(com.google.iam.v1.Policy value)The IAM policy attached to the resource.ExplainedPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExplainedPolicy.BuilderremoveBindingExplanations(int index)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuildersetAccess(AccessState value)Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.ExplainedPolicy.BuildersetAccessValue(int value)Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.ExplainedPolicy.BuildersetBindingExplanations(int index, BindingExplanation value)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuildersetBindingExplanations(int index, BindingExplanation.Builder builderForValue)Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.ExplainedPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExplainedPolicy.BuildersetFullResourceName(String value)The full resource name that identifies the resource.ExplainedPolicy.BuildersetFullResourceNameBytes(com.google.protobuf.ByteString value)The full resource name that identifies the resource.ExplainedPolicy.BuildersetPolicy(com.google.iam.v1.Policy value)The IAM policy attached to the resource.ExplainedPolicy.BuildersetPolicy(com.google.iam.v1.Policy.Builder builderForValue)The IAM policy attached to the resource.ExplainedPolicy.BuildersetRelevance(HeuristicRelevance value)The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].ExplainedPolicy.BuildersetRelevanceValue(int value)The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].ExplainedPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExplainedPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
clear
public ExplainedPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
getDefaultInstanceForType
public ExplainedPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExplainedPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExplainedPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExplainedPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
setField
public ExplainedPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
clearField
public ExplainedPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
clearOneof
public ExplainedPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
setRepeatedField
public ExplainedPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
addRepeatedField
public ExplainedPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
mergeFrom
public ExplainedPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExplainedPolicy.Builder>
-
mergeFrom
public ExplainedPolicy.Builder mergeFrom(ExplainedPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
mergeFrom
public ExplainedPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExplainedPolicy.Builder>- Throws:
IOException
-
getAccessValue
public int getAccessValue()
Indicates whether _this policy_ 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 policy that overrides this policy. 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;- Specified by:
getAccessValuein interfaceExplainedPolicyOrBuilder- Returns:
- The enum numeric value on the wire for access.
-
setAccessValue
public ExplainedPolicy.Builder setAccessValue(int value)
Indicates whether _this policy_ 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 policy that overrides this policy. 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;- Parameters:
value- The enum numeric value on the wire for access to set.- Returns:
- This builder for chaining.
-
getAccess
public AccessState getAccess()
Indicates whether _this policy_ 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 policy that overrides this policy. 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;- Specified by:
getAccessin interfaceExplainedPolicyOrBuilder- Returns:
- The access.
-
setAccess
public ExplainedPolicy.Builder setAccess(AccessState value)
Indicates whether _this policy_ 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 policy that overrides this policy. 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;- Parameters:
value- The access to set.- Returns:
- This builder for chaining.
-
clearAccess
public ExplainedPolicy.Builder clearAccess()
Indicates whether _this policy_ 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 policy that overrides this policy. 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;- Returns:
- This builder for chaining.
-
getFullResourceName
public String getFullResourceName()
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;- Specified by:
getFullResourceNamein interfaceExplainedPolicyOrBuilder- Returns:
- The fullResourceName.
-
getFullResourceNameBytes
public com.google.protobuf.ByteString getFullResourceNameBytes()
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;- Specified by:
getFullResourceNameBytesin interfaceExplainedPolicyOrBuilder- Returns:
- The bytes for fullResourceName.
-
setFullResourceName
public ExplainedPolicy.Builder setFullResourceName(String value)
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;- Parameters:
value- The fullResourceName to set.- Returns:
- This builder for chaining.
-
clearFullResourceName
public ExplainedPolicy.Builder clearFullResourceName()
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;- Returns:
- This builder for chaining.
-
setFullResourceNameBytes
public ExplainedPolicy.Builder setFullResourceNameBytes(com.google.protobuf.ByteString value)
The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
string full_resource_name = 2;- Parameters:
value- The bytes for fullResourceName to set.- Returns:
- This builder for chaining.
-
hasPolicy
public boolean hasPolicy()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;- Specified by:
hasPolicyin interfaceExplainedPolicyOrBuilder- Returns:
- Whether the policy field is set.
-
getPolicy
public com.google.iam.v1.Policy getPolicy()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;- Specified by:
getPolicyin interfaceExplainedPolicyOrBuilder- Returns:
- The policy.
-
setPolicy
public ExplainedPolicy.Builder setPolicy(com.google.iam.v1.Policy value)
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
setPolicy
public ExplainedPolicy.Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue)
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
mergePolicy
public ExplainedPolicy.Builder mergePolicy(com.google.iam.v1.Policy value)
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
clearPolicy
public ExplainedPolicy.Builder clearPolicy()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
getPolicyBuilder
public com.google.iam.v1.Policy.Builder getPolicyBuilder()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
getPolicyOrBuilder
public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder()
The IAM policy attached to the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;- Specified by:
getPolicyOrBuilderin interfaceExplainedPolicyOrBuilder
-
getBindingExplanationsList
public List<BindingExplanation> getBindingExplanationsList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;- Specified by:
getBindingExplanationsListin interfaceExplainedPolicyOrBuilder
-
getBindingExplanationsCount
public int getBindingExplanationsCount()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;- Specified by:
getBindingExplanationsCountin interfaceExplainedPolicyOrBuilder
-
getBindingExplanations
public BindingExplanation getBindingExplanations(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;- Specified by:
getBindingExplanationsin interfaceExplainedPolicyOrBuilder
-
setBindingExplanations
public ExplainedPolicy.Builder setBindingExplanations(int index, BindingExplanation value)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
setBindingExplanations
public ExplainedPolicy.Builder setBindingExplanations(int index, BindingExplanation.Builder builderForValue)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public ExplainedPolicy.Builder addBindingExplanations(BindingExplanation value)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public ExplainedPolicy.Builder addBindingExplanations(int index, BindingExplanation value)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public ExplainedPolicy.Builder addBindingExplanations(BindingExplanation.Builder builderForValue)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public ExplainedPolicy.Builder addBindingExplanations(int index, BindingExplanation.Builder builderForValue)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
addAllBindingExplanations
public ExplainedPolicy.Builder addAllBindingExplanations(Iterable<? extends BindingExplanation> values)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
clearBindingExplanations
public ExplainedPolicy.Builder clearBindingExplanations()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
removeBindingExplanations
public ExplainedPolicy.Builder removeBindingExplanations(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
getBindingExplanationsBuilder
public BindingExplanation.Builder getBindingExplanationsBuilder(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
getBindingExplanationsOrBuilder
public BindingExplanationOrBuilder getBindingExplanationsOrBuilder(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;- Specified by:
getBindingExplanationsOrBuilderin interfaceExplainedPolicyOrBuilder
-
getBindingExplanationsOrBuilderList
public List<? extends BindingExplanationOrBuilder> getBindingExplanationsOrBuilderList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;- Specified by:
getBindingExplanationsOrBuilderListin interfaceExplainedPolicyOrBuilder
-
addBindingExplanationsBuilder
public BindingExplanation.Builder addBindingExplanationsBuilder()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanationsBuilder
public BindingExplanation.Builder addBindingExplanationsBuilder(int index)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
getBindingExplanationsBuilderList
public List<BindingExplanation.Builder> getBindingExplanationsBuilderList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
repeated .google.cloud.policysimulator.v1.BindingExplanation binding_explanations = 4;
-
getRelevanceValue
public int getRelevanceValue()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;- Specified by:
getRelevanceValuein interfaceExplainedPolicyOrBuilder- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
public ExplainedPolicy.Builder setRelevanceValue(int value)
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;- Parameters:
value- The enum numeric value on the wire for relevance to set.- Returns:
- This builder for chaining.
-
getRelevance
public HeuristicRelevance getRelevance()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;- Specified by:
getRelevancein interfaceExplainedPolicyOrBuilder- Returns:
- The relevance.
-
setRelevance
public ExplainedPolicy.Builder setRelevance(HeuristicRelevance value)
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;- Parameters:
value- The relevance to set.- Returns:
- This builder for chaining.
-
clearRelevance
public ExplainedPolicy.Builder clearRelevance()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the user who created the [Replay][google.cloud.policysimulator.v1.Replay] does not have access to the policy, this field is omitted.
.google.cloud.policysimulator.v1.HeuristicRelevance relevance = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExplainedPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
mergeUnknownFields
public final ExplainedPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExplainedPolicy.Builder>
-
-