Class SerDeInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
com.google.cloud.bigquery.storage.v1alpha.SerDeInfo.Builder
All Implemented Interfaces:
SerDeInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SerDeInfo

public static final class SerDeInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder> implements SerDeInfoOrBuilder
 Serializer and deserializer information.
 
Protobuf type google.cloud.bigquery.storage.v1alpha.SerDeInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • internalGetFieldAccessorTable

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

      public SerDeInfo.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.GeneratedMessageV3.Builder<SerDeInfo.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.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public SerDeInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • setField

      public SerDeInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • clearField

      public SerDeInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • clearOneof

      public SerDeInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • setRepeatedField

      public SerDeInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • addRepeatedField

      public SerDeInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • mergeFrom

      public SerDeInfo.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<SerDeInfo.Builder>
    • mergeFrom

      public SerDeInfo.Builder mergeFrom(SerDeInfo other)
    • isInitialized

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

      public SerDeInfo.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<SerDeInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Optional. Name of the SerDe.
       The maximum length is 256 characters.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface SerDeInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Optional. Name of the SerDe.
       The maximum length is 256 characters.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameBytes in interface SerDeInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SerDeInfo.Builder setName(String value)
       Optional. Name of the SerDe.
       The maximum length is 256 characters.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SerDeInfo.Builder clearName()
       Optional. Name of the SerDe.
       The maximum length is 256 characters.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNameBytes

      public SerDeInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Optional. Name of the SerDe.
       The maximum length is 256 characters.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSerializationLibrary

      public String getSerializationLibrary()
       Required. Specifies a fully-qualified class name of the serialization
       library that is responsible for the translation of data between table
       representation and the underlying low-level input and output format
       structures. The maximum length is 256 characters.
       
      string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSerializationLibrary in interface SerDeInfoOrBuilder
      Returns:
      The serializationLibrary.
    • getSerializationLibraryBytes

      public com.google.protobuf.ByteString getSerializationLibraryBytes()
       Required. Specifies a fully-qualified class name of the serialization
       library that is responsible for the translation of data between table
       representation and the underlying low-level input and output format
       structures. The maximum length is 256 characters.
       
      string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSerializationLibraryBytes in interface SerDeInfoOrBuilder
      Returns:
      The bytes for serializationLibrary.
    • setSerializationLibrary

      public SerDeInfo.Builder setSerializationLibrary(String value)
       Required. Specifies a fully-qualified class name of the serialization
       library that is responsible for the translation of data between table
       representation and the underlying low-level input and output format
       structures. The maximum length is 256 characters.
       
      string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The serializationLibrary to set.
      Returns:
      This builder for chaining.
    • clearSerializationLibrary

      public SerDeInfo.Builder clearSerializationLibrary()
       Required. Specifies a fully-qualified class name of the serialization
       library that is responsible for the translation of data between table
       representation and the underlying low-level input and output format
       structures. The maximum length is 256 characters.
       
      string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSerializationLibraryBytes

      public SerDeInfo.Builder setSerializationLibraryBytes(com.google.protobuf.ByteString value)
       Required. Specifies a fully-qualified class name of the serialization
       library that is responsible for the translation of data between table
       representation and the underlying low-level input and output format
       structures. The maximum length is 256 characters.
       
      string serialization_library = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for serializationLibrary to set.
      Returns:
      This builder for chaining.
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: SerDeInfoOrBuilder
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersCount in interface SerDeInfoOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsParameters in interface SerDeInfoOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface SerDeInfoOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersMap in interface SerDeInfoOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrDefault in interface SerDeInfoOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrThrow in interface SerDeInfoOrBuilder
    • clearParameters

      public SerDeInfo.Builder clearParameters()
    • removeParameters

      public SerDeInfo.Builder removeParameters(String key)
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableParameters

      @Deprecated public Map<String,String> getMutableParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

      public SerDeInfo.Builder putParameters(String key, String value)
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • putAllParameters

      public SerDeInfo.Builder putAllParameters(Map<String,String> values)
       Optional. Key-value pairs that define the initialization parameters for the
       serialization library.
       Maximum size 10 Kib.
       
      map<string, string> parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setUnknownFields

      public final SerDeInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>
    • mergeUnknownFields

      public final SerDeInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SerDeInfo.Builder>