# Google Cloud Optimization V1 Client - Class InputConfig (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 InputConfig.

The desired input location information.

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

## Namespace

Google \\ Cloud \\ Optimization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.GcsSource` The Google Cloud Storage location to read the input from. This must be a single file. |
| `↳ data_format` | `int` The input data format that used to store the model in Cloud Storage. |

### getGcsSource

The Google Cloud Storage location to read the input from. This must be a
single file.

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

### hasGcsSource

### setGcsSource

The Google Cloud Storage location to read the input from. This must be a
single file.

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

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

### getDataFormat

The input data format that used to store the model 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 input data format that used to store the model 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` |   |

### getSource

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