2.6.0 (latest) 2.5.4 2.3.1 2.2.1 2.1.5 2.0.0 1.10.4 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.2 1.2.12 Reference documentation and code samples for the Google BigQuery Storage V1 Client class FieldElementType.

Represents the type of a field element.

Generated from protobuf message `google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType`

## Namespace

Google \\ Cloud \\ BigQuery \\ Storage \\ V1 \\ TableFieldSchema

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Required. The type of a field element. |

### getType

Required. The type of a field element.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.TableFieldSchema.Type). |

### setType

Required. The type of a field element.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.TableFieldSchema.Type). |

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