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

Contains options specific to Avro Serialization.

Generated from protobuf message `google.cloud.bigquery.storage.v1.AvroSerializationOptions`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enable_display_name_attribute` | `bool` Enable displayName attribute in Avro schema. The Avro specification requires field names to be alphanumeric. By default, in cases when column names do not conform to these requirements (e.g. non-ascii unicode codepoints) and Avro is requested as an output format, the CreateReadSession call will fail. Setting this field to true, populates avro field names with a placeholder value and populates a "displayName" attribute for every avro field with the original column name. |
| `↳ picos_timestamp_precision` | `int` Optional. Set timestamp precision option. If not set, the default precision is microseconds. |

### getEnableDisplayNameAttribute

Enable displayName attribute in Avro schema.

The Avro specification requires field names to be alphanumeric. By
default, in cases when column names do not conform to these requirements
(e.g. non-ascii unicode codepoints) and Avro is requested as an output
format, the CreateReadSession call will fail.
Setting this field to true, populates avro field names with a placeholder
value and populates a "displayName" attribute for every avro field with the
original column name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableDisplayNameAttribute

Enable displayName attribute in Avro schema.

The Avro specification requires field names to be alphanumeric. By
default, in cases when column names do not conform to these requirements
(e.g. non-ascii unicode codepoints) and Avro is requested as an output
format, the CreateReadSession call will fail.
Setting this field to true, populates avro field names with a placeholder
value and populates a "displayName" attribute for every avro field with the
original column name.

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

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

### getPicosTimestampPrecision

Optional. Set timestamp precision option. If not set, the default precision
is microseconds.

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

### setPicosTimestampPrecision

Optional. Set timestamp precision option. If not set, the default precision
is microseconds.

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

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