# Google Cloud Gemini Data Analytics V1 Client - Class Field (0.11.0)

0.11.0 (latest) 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 Field.

A field in a schema.

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Optional. The name of the field. |
| `↳ type` | `string` Optional. The type of the field. |
| `↳ description` | `string` Optional. A brief description of the field. |
| `↳ mode` | `string` Optional. The mode of the field (e.g., NULLABLE, REPEATED). |
| `↳ synonyms` | `string[]` Optional. A list of alternative names or synonyms that can be used to refer to this field. For example: \["id", "customerid", "cust_id"\]. Currently only used for BigQuery data sources. |
| `↳ tags` | `string[]` Optional. A list of tags or keywords associated with the field, used for categorization. For example: \["identifier", "customer", "pii"\]. Currently only used for BigQuery data sources. |
| `↳ display_name` | `string` Optional. Field display_name (same as label in |
| `↳ subfields` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.Field>` Optional. Recursive property for nested schema structures. |
| `↳ category` | `string` Optional. Field category, not required, currently only useful for Looker. |
| `↳ value_format` | `string` Optional. Looker only. Value format of the field. Ref: <https://cloud.google.com/looker/docs/reference/param-field-value-format> |

### getName

Optional. The name of the field.

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

### setName

Optional. The name of the field.

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

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

### getType

Optional. The type of the field.

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

### setType

Optional. The type of the field.

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

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

### getDescription

Optional. A brief description of the field.

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

### setDescription

Optional. A brief description of the field.

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

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

### getMode

Optional. The mode of the field (e.g., NULLABLE, REPEATED).

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

### setMode

Optional. The mode of the field (e.g., NULLABLE, REPEATED).

| **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 this field. For example: \["id", "customerid", "cust_id"\]. Currently only
used for BigQuery data sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setSynonyms

Optional. A list of alternative names or synonyms that can be used to refer
to this field. For example: \["id", "customerid", "cust_id"\]. 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 field, used for
categorization. For example: \["identifier", "customer", "pii"\]. Currently
only used for BigQuery data sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTags

Optional. A list of tags or keywords associated with the field, used for
categorization. For example: \["identifier", "customer", "pii"\]. Currently
only used for BigQuery data sources.

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

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

### getDisplayName

Optional. Field display_name (same as label in

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

### setDisplayName

Optional. Field display_name (same as label in

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

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

### getSubfields

Optional. Recursive property for nested schema structures.

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

### setSubfields

Optional. Recursive property for nested schema structures.

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

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

### getCategory

Optional. Field category, not required, currently only useful for Looker.

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

### setCategory

Optional. Field category, not required, currently only useful for Looker.

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

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

### getValueFormat

Optional. Looker only. Value format of the field.

Ref:
<https://cloud.google.com/looker/docs/reference/param-field-value-format>

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

### setValueFormat

Optional. Looker only. Value format of the field.

Ref:
<https://cloud.google.com/looker/docs/reference/param-field-value-format>

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

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