3.20.0 (latest) 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0

    public sealed class AvroSerializationOptions : IMessage<AvroSerializationOptions>, IEquatable<AvroSerializationOptions>, IDeepCloneable<AvroSerializationOptions>, IBufferMessage, IMessage

Reference documentation and code samples for the Google BigQuery Storage v1 API class AvroSerializationOptions.

Contains options specific to Avro Serialization.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AvroSerializationOptions

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AvroSerializationOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Storage.V1/latest/Google.Cloud.BigQuery.Storage.V1.AvroSerializationOptions.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AvroSerializationOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Storage.V1/latest/Google.Cloud.BigQuery.Storage.V1.AvroSerializationOptions.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AvroSerializationOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Storage.V1/latest/Google.Cloud.BigQuery.Storage.V1.AvroSerializationOptions.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.Storage.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Storage.V1/latest/Google.Cloud.BigQuery.Storage.V1.md.txt)

## Assembly

Google.Cloud.BigQuery.Storage.V1.dll

## Constructors

### AvroSerializationOptions()

    public AvroSerializationOptions()

### AvroSerializationOptions(AvroSerializationOptions)

    public AvroSerializationOptions(AvroSerializationOptions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AvroSerializationOptions` |

## Properties

### EnableDisplayNameAttribute

    public bool EnableDisplayNameAttribute { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### PicosTimestampPrecision

    public AvroSerializationOptions.Types.PicosTimestampPrecision PicosTimestampPrecision { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AvroSerializationOptionsTypesPicosTimestampPrecision` |   |