0.2.3 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Appoptimize V1beta Client class Column.

Describes a single column within `Columns`.

Generated from protobuf message `google.cloud.appoptimize.v1beta.Column`

## Namespace

Google \\ Cloud \\ AppOptimize \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the column. This field: \* \* Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_); \* \* Start with a letter or underscore; and \* \* Has a maximum length is 128 characters. |
| `↳ type` | `string` The data type of the column. Supported values include: \* \* `STRING` \* \* `INT64` \* \* `FLOAT64` \* \* `BOOLEAN` \* \* `TIMESTAMP` \* \* `RECORD` `RECORD` indicates that the field contains a nested schema, described in the `columns` property of this `Column`. |
| `↳ mode` | `string` The mode of the column, indicating if it is nullable, required, or repeated. Possible values: \* \* `NULLABLE`: The column allows NULL values. \* \* `REQUIRED`: The column does not allow NULL values. \* \* `REPEATED`: The column contains an array of values. |
| `↳ columns` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-appoptimize/latest/V1beta.Column>` If the `type` of this column is `RECORD`, this sub-field describes the nested structure. |

### getName

The name of the column.

This field:

- Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_);
- Start with a letter or underscore; and
- Has a maximum length is 128 characters.

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

### setName

The name of the column.

This field:

- Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_);
- Start with a letter or underscore; and
- Has a maximum length is 128 characters.

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

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

### getType

The data type of the column.

Supported values include:

- `STRING`
- `INT64`
- `FLOAT64`
- `BOOLEAN`
- `TIMESTAMP`
- `RECORD` `RECORD` indicates that the field contains a nested schema, described in the `columns` property of this `Column`.

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

### setType

The data type of the column.

Supported values include:

- `STRING`
- `INT64`
- `FLOAT64`
- `BOOLEAN`
- `TIMESTAMP`
- `RECORD` `RECORD` indicates that the field contains a nested schema, described in the `columns` property of this `Column`.

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

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

### getMode

The mode of the column, indicating if it is nullable, required, or
repeated.

Possible values:

- `NULLABLE`: The column allows NULL values.
- `REQUIRED`: The column does not allow NULL values.
- `REPEATED`: The column contains an array of values.

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

### setMode

The mode of the column, indicating if it is nullable, required, or
repeated.

Possible values:

- `NULLABLE`: The column allows NULL values.
- `REQUIRED`: The column does not allow NULL values.
- `REPEATED`: The column contains an array of values.

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

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

### getColumns

If the `type` of this column is `RECORD`, this sub-field describes the
nested structure.

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

### setColumns

If the `type` of this column is `RECORD`, this sub-field describes the
nested structure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-appoptimize/latest/V1beta.Column>` |

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