# Google Cloud Policy Simulator V1 Client - Class PreviewState (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 PreviewState.

The current state of an
[OrgPolicyViolationsPreview](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolationsPreview).

Protobuf type `google.cloud.policysimulator.v1.PreviewState`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### PREVIEW_STATE_UNSPECIFIED

    Value: 0

The state is unspecified.

Generated from protobuf enum `PREVIEW_STATE_UNSPECIFIED = 0;`

### PREVIEW_PENDING

    Value: 1

The
[OrgPolicyViolationsPreview](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolationsPreview)
has not been created yet.

Generated from protobuf enum `PREVIEW_PENDING = 1;`

### PREVIEW_RUNNING

    Value: 2

The
[OrgPolicyViolationsPreview](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolationsPreview)
is currently being created.

Generated from protobuf enum `PREVIEW_RUNNING = 2;`

### PREVIEW_SUCCEEDED

    Value: 3

The
[OrgPolicyViolationsPreview](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolationsPreview)
creation finished successfully.

Generated from protobuf enum `PREVIEW_SUCCEEDED = 3;`

### PREVIEW_FAILED

    Value: 4

The
[OrgPolicyViolationsPreview](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.OrgPolicyViolationsPreview)
creation failed with an error.

Generated from protobuf enum `PREVIEW_FAILED = 4;`