0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1 Client class Schema.

The schema of a Datasource or QueryResult instance.

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fields` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.Field>` Optional. The fields in the schema. |
| `↳ description` | `string` Optional. A textual description of the table's content and purpose. For example: "Contains information about customer orders in our e-commerce store." Currently only used for BigQuery data sources. |
| `↳ synonyms` | `string[]` Optional. A list of alternative names or synonyms that can be used to refer to the table. For example: \["sales", "orders", "purchases"\]. Currently only used for BigQuery data sources. |
| `↳ tags` | `string[]` Optional. A list of tags or keywords associated with the table, used for categorization. For example: \["transaction", "revenue", "customer_data"\]. Currently only used for BigQuery data sources. |
| `↳ display_name` | `string` Optional. Table display_name (same as label in cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not required, currently only Looker has this field. |
| `↳ filters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.DataFilter>` Optional. The filters on the datasource's underlying data. Currently only used for Looker data sources. |

### getFields

Optional. The fields in the schema.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.Field>` |   |

### setFields

Optional. The fields in the schema.

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

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

### getDescription

Optional. A textual description of the table's content and purpose.

For example: "Contains information about customer orders in our e-commerce
store." Currently only used for BigQuery data sources.

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

### setDescription

Optional. A textual description of the table's content and purpose.

For example: "Contains information about customer orders in our e-commerce
store." Currently only used for BigQuery data sources.

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

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

### getSynonyms

Optional. A list of alternative names or synonyms that can be used to refer
to the table. For example: \["sales", "orders", "purchases"\]. Currently only
used for BigQuery data sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setSynonyms

Optional. A list of alternative names or synonyms that can be used to refer
to the table. For example: \["sales", "orders", "purchases"\]. Currently only
used for BigQuery data sources.

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

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

### getTags

Optional. A list of tags or keywords associated with the table, used for
categorization. For example: \["transaction", "revenue", "customer_data"\].

Currently only used for BigQuery data sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setTags

Optional. A list of tags or keywords associated with the table, used for
categorization. For example: \["transaction", "revenue", "customer_data"\].

Currently only used for BigQuery data sources.

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

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

### getDisplayName

Optional. Table display_name (same as label in
cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not
required, currently only Looker has this field.

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

### setDisplayName

Optional. Table display_name (same as label in
cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not
required, currently only Looker has this field.

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

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

### getFilters

Optional. The filters on the datasource's underlying data. Currently only
used for Looker data sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.DataFilter>` |   |

### setFilters

Optional. The filters on the datasource's underlying data. Currently only
used for Looker data sources.

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

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