# Google Cloud Policy Simulator V1 Client - Class AnnotatedMembership (1.3.4)

1.3.4 (latest) 1.3.3 1.2.0 1.1.1 1.0.3 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class AnnotatedMembership.

Details about whether the binding includes the principal.

Generated from protobuf message `google.cloud.policysimulator.v1.BindingExplanation.AnnotatedMembership`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1 \\ BindingExplanation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ membership` | `int` Indicates whether the binding includes the principal. |
| `↳ relevance` | `int` The relevance of the principal's status to the overall determination for the binding. |

### getMembership

Indicates whether the binding includes the principal.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Membership](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.BindingExplanation.Membership). |

### setMembership

Indicates whether the binding includes the principal.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Membership](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.BindingExplanation.Membership). |

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

### getRelevance

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

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

### setRelevance

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

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

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