Class ExplainedDenyPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExplainedDenyPolicy.Builder>
com.google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy.Builder
- All Implemented Interfaces:
ExplainedDenyPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExplainedDenyPolicy
public static final class ExplainedDenyPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExplainedDenyPolicy.Builder>
implements ExplainedDenyPolicyOrBuilder
Details about how a specific IAM deny policy [Policy][google.iam.v2.Policy] contributed to the access check.Protobuf type
google.cloud.policytroubleshooter.iam.v3.ExplainedDenyPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllRuleExplanations(Iterable<? extends DenyRuleExplanation> values) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.addRuleExplanations(int index, DenyRuleExplanation value) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.addRuleExplanations(int index, DenyRuleExplanation.Builder builderForValue) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.Details about how each rule in the policy affects the principal's inability to use the permission for the resource.addRuleExplanations(DenyRuleExplanation.Builder builderForValue) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.Details about how each rule in the policy affects the principal's inability to use the permission for the resource.addRuleExplanationsBuilder(int index) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.build()clear()Required.The IAM deny policy attached to the resource.The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].Details about how each rule in the policy affects the principal's inability to use the permission for the resource.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe IAM deny policy attached to the resource.The IAM deny policy attached to the resource.The IAM deny policy attached to the resource.The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].intThe relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].getRuleExplanations(int index) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.getRuleExplanationsBuilder(int index) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.Details about how each rule in the policy affects the principal's inability to use the permission for the resource.intDetails about how each rule in the policy affects the principal's inability to use the permission for the resource.Details about how each rule in the policy affects the principal's inability to use the permission for the resource.getRuleExplanationsOrBuilder(int index) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.List<? extends DenyRuleExplanationOrBuilder>Details about how each rule in the policy affects the principal's inability to use the permission for the resource.booleanThe IAM deny policy attached to the resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExplainedDenyPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePolicy(Policy value) The IAM deny policy attached to the resource.removeRuleExplanations(int index) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.Required.setDenyAccessStateValue(int value) Required.The IAM deny policy attached to the resource.setPolicy(Policy.Builder builderForValue) The IAM deny policy attached to the resource.setRelevance(HeuristicRelevance value) The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].setRelevanceValue(int value) The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].setRuleExplanations(int index, DenyRuleExplanation value) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.setRuleExplanations(int index, DenyRuleExplanation.Builder builderForValue) Details about how each rule in the policy affects the principal's inability to use the permission for the resource.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<ExplainedDenyPolicy.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<ExplainedDenyPolicy.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<ExplainedDenyPolicy.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<ExplainedDenyPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExplainedDenyPolicy.Builder>
-
mergeFrom
public ExplainedDenyPolicy.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<ExplainedDenyPolicy.Builder>- Throws:
IOException
-
getDenyAccessStateValue
public int getDenyAccessStateValue()Required. Indicates whether _this policy_ denies 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 `overall_access_state` field in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDenyAccessStateValuein interfaceExplainedDenyPolicyOrBuilder- Returns:
- The enum numeric value on the wire for denyAccessState.
-
setDenyAccessStateValue
Required. Indicates whether _this policy_ denies 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 `overall_access_state` field in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for denyAccessState to set.- Returns:
- This builder for chaining.
-
getDenyAccessState
Required. Indicates whether _this policy_ denies 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 `overall_access_state` field in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDenyAccessStatein interfaceExplainedDenyPolicyOrBuilder- Returns:
- The denyAccessState.
-
setDenyAccessState
Required. Indicates whether _this policy_ denies 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 `overall_access_state` field in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The denyAccessState to set.- Returns:
- This builder for chaining.
-
clearDenyAccessState
Required. Indicates whether _this policy_ denies 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 `overall_access_state` field in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
hasPolicy
public boolean hasPolicy()The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2;- Specified by:
hasPolicyin interfaceExplainedDenyPolicyOrBuilder- Returns:
- Whether the policy field is set.
-
getPolicy
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2;- Specified by:
getPolicyin interfaceExplainedDenyPolicyOrBuilder- Returns:
- The policy.
-
setPolicy
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2; -
setPolicy
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2; -
mergePolicy
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2; -
clearPolicy
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2; -
getPolicyBuilder
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2; -
getPolicyOrBuilder
The IAM deny policy attached to the resource. If the sender of the request does not have access to the policy, this field is omitted.
.google.iam.v2.Policy policy = 2;- Specified by:
getPolicyOrBuilderin interfaceExplainedDenyPolicyOrBuilder
-
getRuleExplanationsList
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3;- Specified by:
getRuleExplanationsListin interfaceExplainedDenyPolicyOrBuilder
-
getRuleExplanationsCount
public int getRuleExplanationsCount()Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3;- Specified by:
getRuleExplanationsCountin interfaceExplainedDenyPolicyOrBuilder
-
getRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3;- Specified by:
getRuleExplanationsin interfaceExplainedDenyPolicyOrBuilder
-
setRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
setRuleExplanations
public ExplainedDenyPolicy.Builder setRuleExplanations(int index, DenyRuleExplanation.Builder builderForValue) Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
addRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
addRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
addRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
addRuleExplanations
public ExplainedDenyPolicy.Builder addRuleExplanations(int index, DenyRuleExplanation.Builder builderForValue) Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
addAllRuleExplanations
public ExplainedDenyPolicy.Builder addAllRuleExplanations(Iterable<? extends DenyRuleExplanation> values) Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
clearRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
removeRuleExplanations
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
getRuleExplanationsBuilder
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
getRuleExplanationsOrBuilder
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3;- Specified by:
getRuleExplanationsOrBuilderin interfaceExplainedDenyPolicyOrBuilder
-
getRuleExplanationsOrBuilderList
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3;- Specified by:
getRuleExplanationsOrBuilderListin interfaceExplainedDenyPolicyOrBuilder
-
addRuleExplanationsBuilder
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
addRuleExplanationsBuilder
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
getRuleExplanationsBuilderList
Details about how each rule in the policy affects the principal's inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy. If the sender of the request does not have access to the policy, this field is omitted.
repeated .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation rule_explanations = 3; -
getRelevanceValue
public int getRelevanceValue()The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;- Specified by:
getRelevanceValuein interfaceExplainedDenyPolicyOrBuilder- Returns:
- The enum numeric value on the wire for relevance.
-
setRelevanceValue
The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;- 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 access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;- Specified by:
getRelevancein interfaceExplainedDenyPolicyOrBuilder- Returns:
- The relevance.
-
setRelevance
The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;- Parameters:
value- The relevance to set.- Returns:
- This builder for chaining.
-
clearRelevance
The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse]. If the sender of the request does not have access to the policy, this field is omitted.
.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 4;- Returns:
- This builder for chaining.
-