# Class DenyRuleExplanation.Builder (1.92.0)

1.92.0 (latest) 1.90.0 1.87.0 1.86.0 1.84.0 1.82.0 1.81.0 1.79.0 1.77.0 1.75.0 1.74.0 1.73.0 1.72.0 1.71.0 1.69.0 1.67.0 1.66.0 1.63.0 1.62.0 1.61.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.6 1.1.0 1.0.4 0.4.4

    public static final class DenyRuleExplanation.Builder extends GeneratedMessage.Builder<DenyRuleExplanation.Builder> implements DenyRuleExplanationOrBuilder

Details about how a deny rule in a deny policy affects a principal's ability
to use a permission.

Protobuf type `google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation`

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractMessageLite.Builder\<MessageType,BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html) \> [AbstractMessage.Builder\<BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html) \> [GeneratedMessage.Builder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html) \> DenyRuleExplanation.Builder

## Implements

[DenyRuleExplanationOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanationOrBuilder)

## Inherited Members

[AbstractMessage.Builder.findInitializationErrors()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_findInitializationErrors__) [AbstractMessage.Builder.getInitializationErrorString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_getInitializationErrorString__) [AbstractMessage.Builder.internalMergeFrom(AbstractMessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_internalMergeFrom_com_google_protobuf_AbstractMessageLite_) [AbstractMessage.Builder.mergeFrom(byte\[\])](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___) [AbstractMessage.Builder.mergeFrom(byte\[\],ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(ByteString)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_) [AbstractMessage.Builder.mergeFrom(ByteString,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(CodedInputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_) [AbstractMessage.Builder.mergeFrom(CodedInputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_) [AbstractMessage.Builder.mergeFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_) [AbstractMessage.Builder.mergeFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.newUninitializedMessageException(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_newUninitializedMessageException_com_google_protobuf_Message_) [AbstractMessage.Builder.toString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_toString__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,Collection\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_Collection___super_T__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,List\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_List___super_T__) [AbstractMessageLite.Builder.internalMergeFrom(MessageType)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_internalMergeFrom_MessageType_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessageLite.Builder.mergeFrom(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeFrom_com_google_protobuf_MessageLite_) [AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_newUninitializedMessageException_com_google_protobuf_MessageLite_) [GeneratedMessage.Builder.addRepeatedField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__) [GeneratedMessage.Builder.clearField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.clearOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clone__) [GeneratedMessage.Builder.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getAllFields__) [GeneratedMessage.Builder.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__) [GeneratedMessage.Builder.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.getParentForChildren()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getParentForChildren__) [GeneratedMessage.Builder.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldBuilder(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder() [GeneratedMessage.Builder.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getUnknownFields__) [GeneratedMessage.Builder.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__) [GeneratedMessage.Builder.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int) [GeneratedMessage.Builder.internalGetMutableMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMutableMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int) [GeneratedMessage.Builder.isClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isClean__) [GeneratedMessage.Builder.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__) [GeneratedMessage.Builder.markClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_markClean__) [GeneratedMessage.Builder.mergeUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int) [GeneratedMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_newBuilderForField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.onBuilt()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onBuilt__) [GeneratedMessage.Builder.onChanged()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onChanged__) com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessage.Builder.setField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.setRepeatedField(Descriptors.FieldDescriptor,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) [GeneratedMessage.Builder.setUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### getDescriptor()

    public static final Descriptors.Descriptor getDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

## Methods

### build()

    public DenyRuleExplanation build()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation` |   |

### buildPartial()

    public DenyRuleExplanation buildPartial()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation` |   |

### clear()

    public DenyRuleExplanation.Builder clear()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__)

### clearCombinedDeniedPermission()

    public DenyRuleExplanation.Builder clearCombinedDeniedPermission()

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearCombinedDeniedPrincipal()

    public DenyRuleExplanation.Builder clearCombinedDeniedPrincipal()

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearCombinedExceptionPermission()

    public DenyRuleExplanation.Builder clearCombinedExceptionPermission()

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearCombinedExceptionPrincipal()

    public DenyRuleExplanation.Builder clearCombinedExceptionPrincipal()

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearCondition()

    public DenyRuleExplanation.Builder clearCondition()

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearConditionExplanation()

    public DenyRuleExplanation.Builder clearConditionExplanation()

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearDeniedPermissions()

    public DenyRuleExplanation.Builder clearDeniedPermissions()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearDeniedPrincipals()

    public DenyRuleExplanation.Builder clearDeniedPrincipals()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearDenyAccessState()

    public DenyRuleExplanation.Builder clearDenyAccessState()

Required. Indicates whether *this rule* denies the specified permission to
the specified principal for the specified resource.

This field does *not* indicate whether the principal is actually denied on
the permission for the resource. There might be another rule that overrides
this rule. To determine whether the principal actually has the permission,
use the `overall_access_state` field in the
TroubleshootIamPolicyResponse.

`
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` | This builder for chaining. |

### clearExceptionPermissions()

    public DenyRuleExplanation.Builder clearExceptionPermissions()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearExceptionPrincipals()

    public DenyRuleExplanation.Builder clearExceptionPrincipals()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### clearRelevance()

    public DenyRuleExplanation.Builder clearRelevance()

The relevance of this role binding to the overall determination for the
entire policy.

`.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` | This builder for chaining. |

### containsDeniedPermissions(String key)

    public boolean containsDeniedPermissions(String key)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### containsDeniedPrincipals(String key)

    public boolean containsDeniedPrincipals(String key)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### containsExceptionPermissions(String key)

    public boolean containsExceptionPermissions(String key)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### containsExceptionPrincipals(String key)

    public boolean containsExceptionPrincipals(String key)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCombinedDeniedPermission()

    public DenyRuleExplanation.AnnotatedPermissionMatching getCombinedDeniedPermission()

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` | The combinedDeniedPermission. |

### getCombinedDeniedPermissionBuilder()

    public DenyRuleExplanation.AnnotatedPermissionMatching.Builder getCombinedDeniedPermissionBuilder()

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching.Builder` |   |

### getCombinedDeniedPermissionOrBuilder()

    public DenyRuleExplanation.AnnotatedPermissionMatchingOrBuilder getCombinedDeniedPermissionOrBuilder()

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatchingOrBuilder` |   |

### getCombinedDeniedPrincipal()

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching getCombinedDeniedPrincipal()

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` | The combinedDeniedPrincipal. |

### getCombinedDeniedPrincipalBuilder()

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder getCombinedDeniedPrincipalBuilder()

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder` |   |

### getCombinedDeniedPrincipalOrBuilder()

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatchingOrBuilder getCombinedDeniedPrincipalOrBuilder()

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatchingOrBuilder` |   |

### getCombinedExceptionPermission()

    public DenyRuleExplanation.AnnotatedPermissionMatching getCombinedExceptionPermission()

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` | The combinedExceptionPermission. |

### getCombinedExceptionPermissionBuilder()

    public DenyRuleExplanation.AnnotatedPermissionMatching.Builder getCombinedExceptionPermissionBuilder()

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching.Builder` |   |

### getCombinedExceptionPermissionOrBuilder()

    public DenyRuleExplanation.AnnotatedPermissionMatchingOrBuilder getCombinedExceptionPermissionOrBuilder()

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatchingOrBuilder` |   |

### getCombinedExceptionPrincipal()

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching getCombinedExceptionPrincipal()

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` | The combinedExceptionPrincipal. |

### getCombinedExceptionPrincipalBuilder()

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder getCombinedExceptionPrincipalBuilder()

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder` |   |

### getCombinedExceptionPrincipalOrBuilder()

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatchingOrBuilder getCombinedExceptionPrincipalOrBuilder()

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatchingOrBuilder` |   |

### getCondition()

    public Expr getCondition()

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.Expr` | The condition. |

### getConditionBuilder()

    public Expr.Builder getConditionBuilder()

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.Expr.Builder` |   |

### getConditionExplanation()

    public ConditionExplanation getConditionExplanation()

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation` | The conditionExplanation. |

### getConditionExplanationBuilder()

    public ConditionExplanation.Builder getConditionExplanationBuilder()

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation.Builder` |   |

### getConditionExplanationOrBuilder()

    public ConditionExplanationOrBuilder getConditionExplanationOrBuilder()

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.ConditionExplanationOrBuilder` |   |

### getConditionOrBuilder()

    public ExprOrBuilder getConditionOrBuilder()

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.ExprOrBuilder` |   |

### getDefaultInstanceForType()

    public DenyRuleExplanation getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation` |   |

### getDeniedPermissions() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> getDeniedPermissions()

Use [#getDeniedPermissionsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder#com_google_cloud_policytroubleshooter_iam_v3_DenyRuleExplanation_Builder_getDeniedPermissionsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |   |

### getDeniedPermissionsCount()

    public int getDeniedPermissionsCount()

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDeniedPermissionsMap()

    public Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> getDeniedPermissionsMap()

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |   |

### getDeniedPermissionsOrDefault(String key, DenyRuleExplanation.AnnotatedPermissionMatching defaultValue)

    public DenyRuleExplanation.AnnotatedPermissionMatching getDeniedPermissionsOrDefault(String key, DenyRuleExplanation.AnnotatedPermissionMatching defaultValue)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |   |

### getDeniedPermissionsOrThrow(String key)

    public DenyRuleExplanation.AnnotatedPermissionMatching getDeniedPermissionsOrThrow(String key)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |   |

### getDeniedPrincipals() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> getDeniedPrincipals()

Use [#getDeniedPrincipalsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder#com_google_cloud_policytroubleshooter_iam_v3_DenyRuleExplanation_Builder_getDeniedPrincipalsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |   |

### getDeniedPrincipalsCount()

    public int getDeniedPrincipalsCount()

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDeniedPrincipalsMap()

    public Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> getDeniedPrincipalsMap()

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |   |

### getDeniedPrincipalsOrDefault(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching defaultValue)

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching getDeniedPrincipalsOrDefault(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching defaultValue)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |   |

### getDeniedPrincipalsOrThrow(String key)

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching getDeniedPrincipalsOrThrow(String key)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |   |

### getDenyAccessState()

    public DenyAccessState getDenyAccessState()

Required. Indicates whether *this rule* denies the specified permission to
the specified principal for the specified resource.

This field does *not* indicate whether the principal is actually denied on
the permission for the resource. There might be another rule that overrides
this rule. To determine whether the principal actually has the permission,
use the `overall_access_state` field in the
TroubleshootIamPolicyResponse.

`
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyAccessState` | The denyAccessState. |

### getDenyAccessStateValue()

    public int getDenyAccessStateValue()

Required. Indicates whether *this rule* denies the specified permission to
the specified principal for the specified resource.

This field does *not* indicate whether the principal is actually denied on
the permission for the resource. There might be another rule that overrides
this rule. To determine whether the principal actually has the permission,
use the `overall_access_state` field in the
TroubleshootIamPolicyResponse.

`
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for denyAccessState. |

### getDescriptorForType()

    public Descriptors.Descriptor getDescriptorForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__)

### getExceptionPermissions() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> getExceptionPermissions()

Use [#getExceptionPermissionsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder#com_google_cloud_policytroubleshooter_iam_v3_DenyRuleExplanation_Builder_getExceptionPermissionsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |   |

### getExceptionPermissionsCount()

    public int getExceptionPermissionsCount()

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getExceptionPermissionsMap()

    public Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> getExceptionPermissionsMap()

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |   |

### getExceptionPermissionsOrDefault(String key, DenyRuleExplanation.AnnotatedPermissionMatching defaultValue)

    public DenyRuleExplanation.AnnotatedPermissionMatching getExceptionPermissionsOrDefault(String key, DenyRuleExplanation.AnnotatedPermissionMatching defaultValue)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |   |

### getExceptionPermissionsOrThrow(String key)

    public DenyRuleExplanation.AnnotatedPermissionMatching getExceptionPermissionsOrThrow(String key)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |   |

### getExceptionPrincipals() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> getExceptionPrincipals()

Use [#getExceptionPrincipalsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder#com_google_cloud_policytroubleshooter_iam_v3_DenyRuleExplanation_Builder_getExceptionPrincipalsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |   |

### getExceptionPrincipalsCount()

    public int getExceptionPrincipalsCount()

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getExceptionPrincipalsMap()

    public Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> getExceptionPrincipalsMap()

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |   |

### getExceptionPrincipalsOrDefault(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching defaultValue)

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching getExceptionPrincipalsOrDefault(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching defaultValue)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |   |

### getExceptionPrincipalsOrThrow(String key)

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching getExceptionPrincipalsOrThrow(String key)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |   |

### getMutableDeniedPermissions() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> getMutableDeniedPermissions()

Use alternate mutation accessors instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |   |

### getMutableDeniedPrincipals() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> getMutableDeniedPrincipals()

Use alternate mutation accessors instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |   |

### getMutableExceptionPermissions() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> getMutableExceptionPermissions()

Use alternate mutation accessors instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |   |

### getMutableExceptionPrincipals() (deprecated)

    public Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> getMutableExceptionPrincipals()

Use alternate mutation accessors instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |   |

### getRelevance()

    public HeuristicRelevance getRelevance()

The relevance of this role binding to the overall determination for the
entire policy.

`.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance` | The relevance. |

### getRelevanceValue()

    public int getRelevanceValue()

The relevance of this role binding to the overall determination for the
entire policy.

`.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for relevance. |

### hasCombinedDeniedPermission()

    public boolean hasCombinedDeniedPermission()

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the combinedDeniedPermission field is set. |

### hasCombinedDeniedPrincipal()

    public boolean hasCombinedDeniedPrincipal()

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the combinedDeniedPrincipal field is set. |

### hasCombinedExceptionPermission()

    public boolean hasCombinedExceptionPermission()

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the combinedExceptionPermission field is set. |

### hasCombinedExceptionPrincipal()

    public boolean hasCombinedExceptionPrincipal()

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the combinedExceptionPrincipal field is set. |

### hasCondition()

    public boolean hasCondition()

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the condition field is set. |

### hasConditionExplanation()

    public boolean hasConditionExplanation()

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the conditionExplanation field is set. |

### internalGetFieldAccessorTable()

    protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.FieldAccessorTable.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__)

### internalGetMapFieldReflection(int number)

    protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `number` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.MapFieldReflectionAccessor` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

### internalGetMutableMapFieldReflection(int number)

    protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `number` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.MapFieldReflectionAccessor` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

### isInitialized()

    public final boolean isInitialized()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__)

### mergeCombinedDeniedPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

    public DenyRuleExplanation.Builder mergeCombinedDeniedPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeCombinedDeniedPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

    public DenyRuleExplanation.Builder mergeCombinedDeniedPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeCombinedExceptionPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

    public DenyRuleExplanation.Builder mergeCombinedExceptionPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeCombinedExceptionPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

    public DenyRuleExplanation.Builder mergeCombinedExceptionPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeCondition(Expr value)

    public DenyRuleExplanation.Builder mergeCondition(Expr value)

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.type.Expr` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeConditionExplanation(ConditionExplanation value)

    public DenyRuleExplanation.Builder mergeConditionExplanation(ConditionExplanation value)

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeFrom(DenyRuleExplanation other)

    public DenyRuleExplanation.Builder mergeFrom(DenyRuleExplanation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public DenyRuleExplanation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### mergeFrom(Message other)

    public DenyRuleExplanation.Builder mergeFrom(Message other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(Message other)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_)

### putAllDeniedPermissions(Map\<String,DenyRuleExplanation.AnnotatedPermissionMatching\> values)

    public DenyRuleExplanation.Builder putAllDeniedPermissions(Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> values)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putAllDeniedPrincipals(Map\<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching\> values)

    public DenyRuleExplanation.Builder putAllDeniedPrincipals(Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> values)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putAllExceptionPermissions(Map\<String,DenyRuleExplanation.AnnotatedPermissionMatching\> values)

    public DenyRuleExplanation.Builder putAllExceptionPermissions(Map<String,DenyRuleExplanation.AnnotatedPermissionMatching> values)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putAllExceptionPrincipals(Map\<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching\> values)

    public DenyRuleExplanation.Builder putAllExceptionPrincipals(Map<String,DenyRuleExplanation.AnnotatedDenyPrincipalMatching> values)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putDeniedPermissions(String key, DenyRuleExplanation.AnnotatedPermissionMatching value)

    public DenyRuleExplanation.Builder putDeniedPermissions(String key, DenyRuleExplanation.AnnotatedPermissionMatching value)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putDeniedPermissionsBuilderIfAbsent(String key)

    public DenyRuleExplanation.AnnotatedPermissionMatching.Builder putDeniedPermissionsBuilderIfAbsent(String key)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching.Builder` |   |

### putDeniedPrincipals(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

    public DenyRuleExplanation.Builder putDeniedPrincipals(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putDeniedPrincipalsBuilderIfAbsent(String key)

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder putDeniedPrincipalsBuilderIfAbsent(String key)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder` |   |

### putExceptionPermissions(String key, DenyRuleExplanation.AnnotatedPermissionMatching value)

    public DenyRuleExplanation.Builder putExceptionPermissions(String key, DenyRuleExplanation.AnnotatedPermissionMatching value)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putExceptionPermissionsBuilderIfAbsent(String key)

    public DenyRuleExplanation.AnnotatedPermissionMatching.Builder putExceptionPermissionsBuilderIfAbsent(String key)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching.Builder` |   |

### putExceptionPrincipals(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

    public DenyRuleExplanation.Builder putExceptionPrincipals(String key, DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### putExceptionPrincipalsBuilderIfAbsent(String key)

    public DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder putExceptionPrincipalsBuilderIfAbsent(String key)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder` |   |

### removeDeniedPermissions(String key)

    public DenyRuleExplanation.Builder removeDeniedPermissions(String key)

Lists all denied permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a denied permission in the rule, and each value
indicates whether the denied permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> denied_permissions = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### removeDeniedPrincipals(String key)

    public DenyRuleExplanation.Builder removeDeniedPrincipals(String key)

Lists all denied principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a denied principal in the rule, and each value
indicates whether the denied principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> denied_principals = 7;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### removeExceptionPermissions(String key)

    public DenyRuleExplanation.Builder removeExceptionPermissions(String key)

Lists all exception permissions in the deny rule and indicates whether each
permission matches the permission in the request.

Each key identifies a exception permission in the rule, and each value
indicates whether the exception permission matches the permission in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching> exception_permissions = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### removeExceptionPrincipals(String key)

    public DenyRuleExplanation.Builder removeExceptionPrincipals(String key)

Lists all exception principals in the deny rule and indicates whether each
principal matches the principal in the request, either directly or through
membership in a principal set.

Each key identifies a exception principal in the rule, and each value
indicates whether the exception principal matches the principal in the
request.

`
map<string, .google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching> exception_principals = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedDeniedPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

    public DenyRuleExplanation.Builder setCombinedDeniedPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedDeniedPermission(DenyRuleExplanation.AnnotatedPermissionMatching.Builder builderForValue)

    public DenyRuleExplanation.Builder setCombinedDeniedPermission(DenyRuleExplanation.AnnotatedPermissionMatching.Builder builderForValue)

Indicates whether the permission in the request is listed as a denied
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_denied_permission = 2;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedDeniedPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

    public DenyRuleExplanation.Builder setCombinedDeniedPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedDeniedPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder builderForValue)

    public DenyRuleExplanation.Builder setCombinedDeniedPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder builderForValue)

Indicates whether the principal is listed as a denied principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_denied_principal = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedExceptionPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

    public DenyRuleExplanation.Builder setCombinedExceptionPermission(DenyRuleExplanation.AnnotatedPermissionMatching value)

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedExceptionPermission(DenyRuleExplanation.AnnotatedPermissionMatching.Builder builderForValue)

    public DenyRuleExplanation.Builder setCombinedExceptionPermission(DenyRuleExplanation.AnnotatedPermissionMatching.Builder builderForValue)

Indicates whether the permission in the request is listed as an exception
permission in the deny rule.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching combined_exception_permission = 4;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedPermissionMatching.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedExceptionPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

    public DenyRuleExplanation.Builder setCombinedExceptionPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching value)

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCombinedExceptionPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder builderForValue)

    public DenyRuleExplanation.Builder setCombinedExceptionPrincipal(DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder builderForValue)

Indicates whether the principal is listed as an exception principal in the
deny rule, either directly or through membership in a principal set.

`
.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching combined_exception_principal = 8;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCondition(Expr value)

    public DenyRuleExplanation.Builder setCondition(Expr value)

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.type.Expr` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setCondition(Expr.Builder builderForValue)

    public DenyRuleExplanation.Builder setCondition(Expr.Builder builderForValue)

A condition expression that specifies when the deny rule denies the
principal access.

To learn about IAM Conditions, see
<https://cloud.google.com/iam/help/conditions/overview>.

`.google.type.Expr condition = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `com.google.type.Expr.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setConditionExplanation(ConditionExplanation value)

    public DenyRuleExplanation.Builder setConditionExplanation(ConditionExplanation value)

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setConditionExplanation(ConditionExplanation.Builder builderForValue)

    public DenyRuleExplanation.Builder setConditionExplanation(ConditionExplanation.Builder builderForValue)

Condition evaluation state for this role binding.

`
.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation condition_explanation = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.ConditionExplanation.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` |   |

### setDenyAccessState(DenyAccessState value)

    public DenyRuleExplanation.Builder setDenyAccessState(DenyAccessState value)

Required. Indicates whether *this rule* denies the specified permission to
the specified principal for the specified resource.

This field does *not* indicate whether the principal is actually denied on
the permission for the resource. There might be another rule that overrides
this rule. To determine whether the principal actually has the permission,
use the `overall_access_state` field in the
TroubleshootIamPolicyResponse.

`
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyAccessState` The denyAccessState to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` | This builder for chaining. |

### setDenyAccessStateValue(int value)

    public DenyRuleExplanation.Builder setDenyAccessStateValue(int value)

Required. Indicates whether *this rule* denies the specified permission to
the specified principal for the specified resource.

This field does *not* indicate whether the principal is actually denied on
the permission for the resource. There might be another rule that overrides
this rule. To determine whether the principal actually has the permission,
use the `overall_access_state` field in the
TroubleshootIamPolicyResponse.

`
.google.cloud.policytroubleshooter.iam.v3.DenyAccessState deny_access_state = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for denyAccessState to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` | This builder for chaining. |

### setRelevance(HeuristicRelevance value)

    public DenyRuleExplanation.Builder setRelevance(HeuristicRelevance value)

The relevance of this role binding to the overall determination for the
entire policy.

`.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 10;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance` The relevance to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` | This builder for chaining. |

### setRelevanceValue(int value)

    public DenyRuleExplanation.Builder setRelevanceValue(int value)

The relevance of this role binding to the overall determination for the
entire policy.

`.google.cloud.policytroubleshooter.iam.v3.HeuristicRelevance relevance = 10;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for relevance to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/com.google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.Builder` | This builder for chaining. |