# Google Cloud Policy Troubleshooter Iam V3 Client - Class ConditionExplanation (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 ConditionExplanation.

Explanation for how a condition affects a principal's access

Generated from protobuf message `google.cloud.policytroubleshooter.iam.v3.ConditionExplanation`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ value` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` Value of the condition. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Any errors that prevented complete evaluation of the condition expression. |
| `↳ evaluation_states` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionExplanation.EvaluationState>` The value of each statement of the condition expression. The value can be `true`, `false`, or `null`. The value is `null` if the statement can't be evaluated. |

### getValue

Value of the condition.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value|null` |   |

### hasValue

### clearValue

### setValue

Value of the condition.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` |

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

### getErrors

Any errors that prevented complete evaluation of the condition expression.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setErrors

Any errors that prevented complete evaluation of the condition expression.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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

### getEvaluationStates

The value of each statement of the condition expression. The value can be
`true`, `false`, or `null`. The value is `null` if the statement can't be
evaluated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionExplanation.EvaluationState>` |   |

### setEvaluationStates

The value of each statement of the condition expression. The value can be
`true`, `false`, or `null`. The value is `null` if the statement can't be
evaluated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionExplanation.EvaluationState>` |

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