Class ExplainedPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ExplainedPolicy.Builder>
implements ExplainedPolicyOrBuilder
Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed to the access check.Protobuf type
google.cloud.policysimulator.v1.ExplainedPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllBindingExplanations(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.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.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.Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.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.Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.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.build()clear()Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.The full resource name that identifies the resource.The IAM policy attached to the resource.The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.intIndicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.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.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.Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.intDetails about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.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.List<? extends BindingExplanationOrBuilder>Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe full resource name that identifies the resource.com.google.protobuf.ByteStringThe full resource name that identifies the resource.The IAM policy attached to the resource.The IAM policy attached to the resource.The IAM policy attached to the resource.The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].intThe relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].booleanThe IAM policy attached to the resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExplainedPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePolicy(Policy value) The IAM policy attached to the resource.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.setAccess(AccessState value) Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.setAccessValue(int value) Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.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.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.setFullResourceName(String value) The full resource name that identifies the resource.setFullResourceNameBytes(com.google.protobuf.ByteString value) The full resource name that identifies the resource.The IAM policy attached to the resource.setPolicy(Policy.Builder builderForValue) The IAM policy attached to the resource.setRelevance(HeuristicRelevance value) The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].setRelevanceValue(int value) The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExplainedPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ExplainedPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExplainedPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1;- Specified by:
getAccessValuein interfaceExplainedPolicyOrBuilder- Returns:
- The enum numeric value on the wire for access.
-
setAccessValue
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][google.cloud.policytroubleshooter.v3.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
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][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1;- Specified by:
getAccessin interfaceExplainedPolicyOrBuilder- Returns:
- The access.
-
setAccess
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][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1;- Parameters:
value- The access to set.- Returns:
- This builder for chaining.
-
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][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
.google.cloud.policysimulator.v1.AccessState access = 1;- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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][google.cloud.policytroubleshooter.v3.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
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.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
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.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
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.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
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.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.
-