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

Whether a principal has a permission for a resource.

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

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### static::name

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

### static::value

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

## Constants

### ACCESS_STATE_UNSPECIFIED

    Value: 0

Default value. This value is unused.

Generated from protobuf enum `ACCESS_STATE_UNSPECIFIED = 0;`

### GRANTED

    Value: 1

The principal has the permission.

Generated from protobuf enum `GRANTED = 1;`

### NOT_GRANTED

    Value: 2

The principal does not have the permission.

Generated from protobuf enum `NOT_GRANTED = 2;`

### UNKNOWN_CONDITIONAL

    Value: 3

The principal has the permission only if a condition expression evaluates
to `true`.

Generated from protobuf enum `UNKNOWN_CONDITIONAL = 3;`

### UNKNOWN_INFO_DENIED

    Value: 4

The user who created the
[Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) does not have
access to all of the policies that Policy Simulator needs to evaluate.

Generated from protobuf enum `UNKNOWN_INFO_DENIED = 4;`