# Google Cloud Config V1 Client - Class PreviewOperationMetadata (1.8.0)

1.8.0 (latest) 1.7.2 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.5.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Config V1 Client class PreviewOperationMetadata.

Ephemeral metadata content describing the state of a preview operation.

Generated from protobuf message `google.cloud.config.v1.PreviewOperationMetadata`

## Namespace

Google \\ Cloud \\ Config \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ step` | `int` The current step the preview operation is running. |
| `↳ preview_artifacts` | `https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.PreviewArtifacts` Artifacts from preview. |
| `↳ logs` | `string` Output only. Location of preview logs in `gs://{bucket}/{object}` format. |
| `↳ build` | `string` Output only. Cloud Build instance UUID associated with this preview. |

### getStep

The current step the preview operation is running.

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

### setStep

The current step the preview operation is running.

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

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

### getPreviewArtifacts

Artifacts from preview.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.PreviewArtifacts|null` |   |

### hasPreviewArtifacts

### clearPreviewArtifacts

### setPreviewArtifacts

Artifacts from preview.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.PreviewArtifacts` |

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

### getLogs

Output only. Location of preview logs in `gs://{bucket}/{object}` format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLogs

Output only. Location of preview logs in `gs://{bucket}/{object}` format.

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

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

### getBuild

Output only. Cloud Build instance UUID associated with this preview.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBuild

Output only. Cloud Build instance UUID associated with this preview.

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

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