# Google Cloud Policy Troubleshooter Iam V3 Client - Class AnnotatedDenyPrincipalMatching (0.4.4)

0.4.4 (latest) 0.4.3 0.3.1 0.2.9 0.1.2 Reference documentation and code samples for the Google Cloud Policy Troubleshooter Iam V3 Client class AnnotatedDenyPrincipalMatching.

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

Generated from protobuf message `google.cloud.policytroubleshooter.iam.v3.DenyRuleExplanation.AnnotatedDenyPrincipalMatching`

## Namespace

Google \\ Cloud \\ PolicyTroubleshooter \\ Iam \\ V3 \\ DenyRuleExplanation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ membership` | `int` Indicates whether the principal is listed as a denied principal in the deny rule, either directly or through membership in a principal set. |
| `↳ relevance` | `int` The relevance of the principal's status to the overall determination for the role binding. |

### getMembership

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MembershipMatchingState](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.MembershipMatchingState). |

### setMembership

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [MembershipMatchingState](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.MembershipMatchingState). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRelevance

The relevance of the principal's status to the overall determination for
the role binding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [HeuristicRelevance](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.HeuristicRelevance). |

### setRelevance

The relevance of the principal's status to the overall determination for
the role binding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [HeuristicRelevance](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.HeuristicRelevance). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |