# Google Cloud Optimization V1 Client - Class OutputConfig (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.0 0.6.5 0.5.1 0.4.0 0.3.4 0.2.0 0.1.9 Reference documentation and code samples for the Google Cloud Optimization V1 Client class OutputConfig.

The desired output location.

Generated from protobuf message `google.cloud.optimization.v1.OutputConfig`

## Namespace

Google \\ Cloud \\ Optimization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.GcsDestination` The Google Cloud Storage location to write the output to. |
| `↳ data_format` | `int` The output data format that used to store the results in Cloud Storage. |

### getGcsDestination

The Google Cloud Storage location to write the output to.

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

### hasGcsDestination

### setGcsDestination

The Google Cloud Storage location to write the output to.

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

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

### getDataFormat

The output data format that used to store the results in Cloud Storage.

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

### setDataFormat

The output data format that used to store the results in Cloud Storage.

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

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

### getDestination

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