# Cloud AutoML V1 Client - Class DocumentInputConfig (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class DocumentInputConfig.

Input configuration of a [Document](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Document).

Generated from protobuf message `google.cloud.automl.v1.DocumentInputConfig`

## Namespace

Google \\ Cloud \\ AutoMl \\ 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-automl/latest/V1.GcsSource` The Google Cloud Storage location of the document file. Only a single path should be given. Max supported size: 512MB. Supported extensions: .PDF. |

### getGcsSource

The Google Cloud Storage location of the document file. Only a single path
should be given.

Max supported size: 512MB.
Supported extensions: .PDF.

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

### hasGcsSource

### clearGcsSource

### setGcsSource

The Google Cloud Storage location of the document file. Only a single path
should be given.

Max supported size: 512MB.
Supported extensions: .PDF.

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

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