# Google Cloud Document Ai V1 Client - Class GcsOutputConfig (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class GcsOutputConfig.

The configuration used when outputting documents.

Generated from protobuf message `google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ DocumentOutputConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_uri` | `string` The Cloud Storage uri (a directory) of the output. |
| `↳ field_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. |
| `↳ sharding_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig` Specifies the sharding config for the output document. |

### getGcsUri

The Cloud Storage uri (a directory) of the output.

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

### setGcsUri

The Cloud Storage uri (a directory) of the output.

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

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

### getFieldMask

Specifies which fields to include in the output documents.

Only supports top level document and pages field so it must be in the
form of `{document_field_name}` or `pages.{page_field_name}`.

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

### hasFieldMask

### clearFieldMask

### setFieldMask

Specifies which fields to include in the output documents.

Only supports top level document and pages field so it must be in the
form of `{document_field_name}` or `pages.{page_field_name}`.

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

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

### getShardingConfig

Specifies the sharding config for the output document.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig|null` |   |

### hasShardingConfig

### clearShardingConfig

### setShardingConfig

Specifies the sharding config for the output document.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig` |

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