# Interface ColumnOrBuilder (0.1.0)

    public interface ColumnOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getColumns(int index)

    public abstract Column getColumns(int index)

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

`repeated .google.cloud.appoptimize.v1beta.Column columns = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/com.google.cloud.appoptimize.v1beta.Column` |   |

### getColumnsCount()

    public abstract int getColumnsCount()

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

`repeated .google.cloud.appoptimize.v1beta.Column columns = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getColumnsList()

    public abstract List<Column> getColumnsList()

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

`repeated .google.cloud.appoptimize.v1beta.Column columns = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/com.google.cloud.appoptimize.v1beta.Column>` |   |

### getColumnsOrBuilder(int index)

    public abstract ColumnOrBuilder getColumnsOrBuilder(int index)

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

`repeated .google.cloud.appoptimize.v1beta.Column columns = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/com.google.cloud.appoptimize.v1beta.ColumnOrBuilder` |   |

### getColumnsOrBuilderList()

    public abstract List<? extends ColumnOrBuilder> getColumnsOrBuilderList()

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

`repeated .google.cloud.appoptimize.v1beta.Column columns = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.appoptimize.v1beta.ColumnOrBuilder>` |   |

### getMode()

    public abstract String 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.

`string mode = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The mode. |

### getModeBytes()

    public abstract ByteString getModeBytes()

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.

`string mode = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for mode. |

### getName()

    public abstract String 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.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getType()

    public abstract String 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`.

`string type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The type. |

### getTypeBytes()

    public abstract ByteString getTypeBytes()

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`.

`string type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for type. |