# Google Cloud Data Catalog V1 Client - Class Schema (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class Schema.

Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema.

Generated from protobuf message `google.cloud.datacatalog.v1.Schema`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ columns` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.ColumnSchema>` The unified GoogleSQL-like schema of columns. The overall maximum number of columns and nested columns is 10,000. The maximum nested depth is 15 levels. |

### getColumns

The unified GoogleSQL-like schema of columns.

The overall maximum number of columns and nested columns is 10,000.
The maximum nested depth is 15 levels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.ColumnSchema>` |   |

### setColumns

The unified GoogleSQL-like schema of columns.

The overall maximum number of columns and nested columns is 10,000.
The maximum nested depth is 15 levels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.ColumnSchema>` |

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