Class AvroSerializationOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AvroSerializationOptions.Builder>
com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder
All Implemented Interfaces:
AvroSerializationOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AvroSerializationOptions

public static final class AvroSerializationOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<AvroSerializationOptions.Builder> implements AvroSerializationOptionsOrBuilder
 Contains options specific to Avro Serialization.
 
Protobuf type google.cloud.bigquery.storage.v1.AvroSerializationOptions
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AvroSerializationOptions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AvroSerializationOptions.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AvroSerializationOptions.Builder>
    • getDefaultInstanceForType

      public AvroSerializationOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AvroSerializationOptions build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AvroSerializationOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AvroSerializationOptions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AvroSerializationOptions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AvroSerializationOptions.Builder>
    • mergeFrom

      public AvroSerializationOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AvroSerializationOptions.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getEnableDisplayNameAttribute in interface AvroSerializationOptionsOrBuilder
      Returns:
      The enableDisplayNameAttribute.
    • setEnableDisplayNameAttribute

      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;
      Parameters:
      value - The enableDisplayNameAttribute to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      getPicosTimestampPrecisionValue in interface AvroSerializationOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for picosTimestampPrecision.
    • setPicosTimestampPrecisionValue

      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;
      Parameters:
      value - The enum numeric value on the wire for picosTimestampPrecision to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getPicosTimestampPrecision in interface AvroSerializationOptionsOrBuilder
      Returns:
      The picosTimestampPrecision.
    • setPicosTimestampPrecision

       Optional. Set timestamp precision option. If not set, the default precision
       is microseconds.
       
      .google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 2;
      Parameters:
      value - The picosTimestampPrecision to set.
      Returns:
      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:
      This builder for chaining.