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

CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
OrgPolicyViolationsPreview generations operation.

Generated from protobuf message `google.cloud.policysimulator.v1.CreateOrgPolicyViolationsPreviewOperationMetadata`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ request_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time when the request was received. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time when the request started processing, i.e., when the state was set to RUNNING. |
| `↳ state` | `int` Output only. The current state of the operation. |
| `↳ resources_found` | `int` Total number of resources that need scanning. Should equal resource_scanned + resources_pending |
| `↳ resources_scanned` | `int` Number of resources already scanned. |
| `↳ resources_pending` | `int` Number of resources still to scan. |

### getRequestTime

Time when the request was received.

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

### hasRequestTime

### clearRequestTime

### setRequestTime

Time when the request was received.

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

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

### getStartTime

Time when the request started processing, i.e., when the state was set to
RUNNING.

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

### hasStartTime

### clearStartTime

### setStartTime

Time when the request started processing, i.e., when the state was set to
RUNNING.

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

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

### getState

Output only. The current state of the operation.

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

### setState

Output only. The current state of the operation.

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

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

### getResourcesFound

Total number of resources that need scanning.

Should equal resource_scanned + resources_pending

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setResourcesFound

Total number of resources that need scanning.

Should equal resource_scanned + resources_pending

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getResourcesScanned

Number of resources already scanned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setResourcesScanned

Number of resources already scanned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getResourcesPending

Number of resources still to scan.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setResourcesPending

Number of resources still to scan.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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