public static final class AvroSerializationOptions.Builder extends GeneratedMessage.Builder<AvroSerializationOptions.Builder> implements AvroSerializationOptionsOrBuilderContains options specific to Avro Serialization.
Protobuf type google.cloud.bigquery.storage.v1.AvroSerializationOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AvroSerializationOptions.BuilderImplements
AvroSerializationOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AvroSerializationOptions build()| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions |
|
buildPartial()
public AvroSerializationOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions |
|
clear()
public AvroSerializationOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
|
clearEnableDisplayNameAttribute()
public AvroSerializationOptions.Builder clearEnableDisplayNameAttribute()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.
bool enable_display_name_attribute = 1;
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
This builder for chaining. |
clearPicosTimestampPrecision()
public AvroSerializationOptions.Builder clearPicosTimestampPrecision()Optional. Set timestamp precision option. If not set, the default precision is microseconds.
.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 2;
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AvroSerializationOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnableDisplayNameAttribute()
public boolean 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.
bool enable_display_name_attribute = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableDisplayNameAttribute. |
getPicosTimestampPrecision()
public AvroSerializationOptions.PicosTimestampPrecision getPicosTimestampPrecision()Optional. Set timestamp precision option. If not set, the default precision is microseconds.
.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 2;
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.PicosTimestampPrecision |
The picosTimestampPrecision. |
getPicosTimestampPrecisionValue()
public int getPicosTimestampPrecisionValue()Optional. Set timestamp precision option. If not set, the default precision is microseconds.
.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for picosTimestampPrecision. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AvroSerializationOptions other)
public AvroSerializationOptions.Builder mergeFrom(AvroSerializationOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
AvroSerializationOptions |
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AvroSerializationOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AvroSerializationOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
|
setEnableDisplayNameAttribute(boolean value)
public AvroSerializationOptions.Builder setEnableDisplayNameAttribute(boolean value)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.
bool enable_display_name_attribute = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableDisplayNameAttribute to set. |
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
This builder for chaining. |
setPicosTimestampPrecision(AvroSerializationOptions.PicosTimestampPrecision value)
public AvroSerializationOptions.Builder setPicosTimestampPrecision(AvroSerializationOptions.PicosTimestampPrecision value)Optional. Set timestamp precision option. If not set, the default precision is microseconds.
.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
AvroSerializationOptions.PicosTimestampPrecisionThe picosTimestampPrecision to set. |
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
This builder for chaining. |
setPicosTimestampPrecisionValue(int value)
public AvroSerializationOptions.Builder setPicosTimestampPrecisionValue(int value)Optional. Set timestamp precision option. If not set, the default precision is microseconds.
.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for picosTimestampPrecision to set. |
| Returns | |
|---|---|
| Type | Description |
AvroSerializationOptions.Builder |
This builder for chaining. |