Class Explanations.ExplainedPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Explanations.ExplainedPolicy.Builder>
-
- google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Explanations.ExplainedPolicyOrBuilder
,Cloneable
- Enclosing class:
- Explanations.ExplainedPolicy
public static final class Explanations.ExplainedPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Explanations.ExplainedPolicy.Builder> implements Explanations.ExplainedPolicyOrBuilder
Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed to the access check.
Protobuf typegoogle.cloud.policytroubleshooter.v1.ExplainedPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Explanations.ExplainedPolicy.Builder
addAllBindingExplanations(Iterable<? extends Explanations.BindingExplanation> values)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Explanations.ExplainedPolicy.Builder
addBindingExplanations(int index, Explanations.BindingExplanation value)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Explanations.ExplainedPolicy.Builder
addBindingExplanations(int index, Explanations.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.Explanations.ExplainedPolicy.Builder
addBindingExplanations(Explanations.BindingExplanation value)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Explanations.ExplainedPolicy.Builder
addBindingExplanations(Explanations.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.Explanations.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.Explanations.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.Explanations.ExplainedPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Explanations.ExplainedPolicy
build()
Explanations.ExplainedPolicy
buildPartial()
Explanations.ExplainedPolicy.Builder
clear()
Explanations.ExplainedPolicy.Builder
clearAccess()
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.Explanations.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.Explanations.ExplainedPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Explanations.ExplainedPolicy.Builder
clearFullResourceName()
The full resource name that identifies the resource.Explanations.ExplainedPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Explanations.ExplainedPolicy.Builder
clearPolicy()
The IAM policy attached to the resource.Explanations.ExplainedPolicy.Builder
clearRelevance()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].Explanations.ExplainedPolicy.Builder
clone()
Explanations.AccessState
getAccess()
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.int
getAccessValue()
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.Explanations.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.Explanations.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.List<Explanations.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.int
getBindingExplanationsCount()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.List<Explanations.BindingExplanation>
getBindingExplanationsList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Explanations.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.List<? extends Explanations.BindingExplanationOrBuilder>
getBindingExplanationsOrBuilderList()
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Explanations.ExplainedPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFullResourceName()
The full resource name that identifies the resource.com.google.protobuf.ByteString
getFullResourceNameBytes()
The full resource name that identifies the resource.com.google.iam.v1.Policy
getPolicy()
The IAM policy attached to the resource.com.google.iam.v1.Policy.Builder
getPolicyBuilder()
The IAM policy attached to the resource.com.google.iam.v1.PolicyOrBuilder
getPolicyOrBuilder()
The IAM policy attached to the resource.Explanations.HeuristicRelevance
getRelevance()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].int
getRelevanceValue()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].boolean
hasPolicy()
The IAM policy attached to the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Explanations.ExplainedPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Explanations.ExplainedPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
Explanations.ExplainedPolicy.Builder
mergeFrom(Explanations.ExplainedPolicy other)
Explanations.ExplainedPolicy.Builder
mergePolicy(com.google.iam.v1.Policy value)
The IAM policy attached to the resource.Explanations.ExplainedPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Explanations.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.Explanations.ExplainedPolicy.Builder
setAccess(Explanations.AccessState value)
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.Explanations.ExplainedPolicy.Builder
setAccessValue(int value)
Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource.Explanations.ExplainedPolicy.Builder
setBindingExplanations(int index, Explanations.BindingExplanation value)
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource.Explanations.ExplainedPolicy.Builder
setBindingExplanations(int index, Explanations.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.Explanations.ExplainedPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Explanations.ExplainedPolicy.Builder
setFullResourceName(String value)
The full resource name that identifies the resource.Explanations.ExplainedPolicy.Builder
setFullResourceNameBytes(com.google.protobuf.ByteString value)
The full resource name that identifies the resource.Explanations.ExplainedPolicy.Builder
setPolicy(com.google.iam.v1.Policy value)
The IAM policy attached to the resource.Explanations.ExplainedPolicy.Builder
setPolicy(com.google.iam.v1.Policy.Builder builderForValue)
The IAM policy attached to the resource.Explanations.ExplainedPolicy.Builder
setRelevance(Explanations.HeuristicRelevance value)
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].Explanations.ExplainedPolicy.Builder
setRelevanceValue(int value)
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].Explanations.ExplainedPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Explanations.ExplainedPolicy.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, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.ExplainedPolicy.Builder>
-
clear
public Explanations.ExplainedPolicy.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.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
getDefaultInstanceForType
public Explanations.ExplainedPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Explanations.ExplainedPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Explanations.ExplainedPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
setField
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
clearField
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
clearOneof
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
setRepeatedField
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
addRepeatedField
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
mergeFrom
public Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
mergeFrom
public Explanations.ExplainedPolicy.Builder mergeFrom(Explanations.ExplainedPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Explanations.ExplainedPolicy.Builder>
-
mergeFrom
public Explanations.ExplainedPolicy.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.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.policytroubleshooter.v1.AccessState access = 1;
- Specified by:
getAccessValue
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- The enum numeric value on the wire for access.
-
setAccessValue
public Explanations.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.policytroubleshooter.v1.AccessState access = 1;
- Parameters:
value
- The enum numeric value on the wire for access to set.- Returns:
- This builder for chaining.
-
getAccess
public Explanations.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.policytroubleshooter.v1.AccessState access = 1;
- Specified by:
getAccess
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- The access.
-
setAccess
public Explanations.ExplainedPolicy.Builder setAccess(Explanations.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.policytroubleshooter.v1.AccessState access = 1;
- Parameters:
value
- The access to set.- Returns:
- This builder for chaining.
-
clearAccess
public Explanations.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.policytroubleshooter.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 sender of the request 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:
getFullResourceName
in interfaceExplanations.ExplainedPolicyOrBuilder
- 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 sender of the request 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:
getFullResourceNameBytes
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- The bytes for fullResourceName.
-
setFullResourceName
public Explanations.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 sender of the request 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 Explanations.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 sender of the request 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 Explanations.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 sender of the request 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 sender of the request does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
- Specified by:
hasPolicy
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- Whether the policy field is set.
-
getPolicy
public com.google.iam.v1.Policy getPolicy()
The IAM policy attached to the resource. If the sender of the request does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
- Specified by:
getPolicy
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- The policy.
-
setPolicy
public Explanations.ExplainedPolicy.Builder setPolicy(com.google.iam.v1.Policy value)
The IAM policy attached to the resource. If the sender of the request does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
setPolicy
public Explanations.ExplainedPolicy.Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue)
The IAM policy attached to the resource. If the sender of the request does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
mergePolicy
public Explanations.ExplainedPolicy.Builder mergePolicy(com.google.iam.v1.Policy value)
The IAM policy attached to the resource. If the sender of the request does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
-
clearPolicy
public Explanations.ExplainedPolicy.Builder clearPolicy()
The IAM policy attached to the resource. If the sender of the request 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 sender of the request 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 sender of the request does not have access to the policy, this field is empty.
.google.iam.v1.Policy policy = 3;
- Specified by:
getPolicyOrBuilder
in interfaceExplanations.ExplainedPolicyOrBuilder
-
getBindingExplanationsList
public List<Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
- Specified by:
getBindingExplanationsList
in interfaceExplanations.ExplainedPolicyOrBuilder
-
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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
- Specified by:
getBindingExplanationsCount
in interfaceExplanations.ExplainedPolicyOrBuilder
-
getBindingExplanations
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
- Specified by:
getBindingExplanations
in interfaceExplanations.ExplainedPolicyOrBuilder
-
setBindingExplanations
public Explanations.ExplainedPolicy.Builder setBindingExplanations(int index, Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
setBindingExplanations
public Explanations.ExplainedPolicy.Builder setBindingExplanations(int index, Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public Explanations.ExplainedPolicy.Builder addBindingExplanations(Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public Explanations.ExplainedPolicy.Builder addBindingExplanations(int index, Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public Explanations.ExplainedPolicy.Builder addBindingExplanations(Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanations
public Explanations.ExplainedPolicy.Builder addBindingExplanations(int index, Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
addAllBindingExplanations
public Explanations.ExplainedPolicy.Builder addAllBindingExplanations(Iterable<? extends Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
clearBindingExplanations
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
removeBindingExplanations
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
getBindingExplanationsBuilder
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
getBindingExplanationsOrBuilder
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
- Specified by:
getBindingExplanationsOrBuilder
in interfaceExplanations.ExplainedPolicyOrBuilder
-
getBindingExplanationsOrBuilderList
public List<? extends Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
- Specified by:
getBindingExplanationsOrBuilderList
in interfaceExplanations.ExplainedPolicyOrBuilder
-
addBindingExplanationsBuilder
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
addBindingExplanationsBuilder
public Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
-
getBindingExplanationsBuilderList
public List<Explanations.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 sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.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 sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
- Specified by:
getRelevanceValue
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
public Explanations.ExplainedPolicy.Builder setRelevanceValue(int value)
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
- 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 policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
- Specified by:
getRelevance
in interfaceExplanations.ExplainedPolicyOrBuilder
- Returns:
- The relevance.
-
setRelevance
public Explanations.ExplainedPolicy.Builder setRelevance(Explanations.HeuristicRelevance value)
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
- Parameters:
value
- The relevance to set.- Returns:
- This builder for chaining.
-
clearRelevance
public Explanations.ExplainedPolicy.Builder clearRelevance()
The relevance of this policy to the overall determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
mergeUnknownFields
public final Explanations.ExplainedPolicy.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.ExplainedPolicy.Builder>
-
-