Class SerDeInfo.Builder (3.9.1)

public static final class SerDeInfo.Builder extends GeneratedMessageV3.Builder<SerDeInfo.Builder> implements SerDeInfoOrBuilder

Serializer and deserializer information.

Protobuf type google.cloud.bigquery.storage.v1alpha.SerDeInfo

Implements

SerDeInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SerDeInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SerDeInfo.Builder
Overrides

build()

public SerDeInfo build()
Returns
Type Description
SerDeInfo

buildPartial()

public SerDeInfo buildPartial()
Returns
Type Description
SerDeInfo

clear()

public SerDeInfo.Builder clear()
Returns
Type Description
SerDeInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SerDeInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SerDeInfo.Builder
Overrides

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
Type Description
SerDeInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SerDeInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SerDeInfo.Builder
Overrides

clearParameters()

public SerDeInfo.Builder clearParameters()
Returns
Type Description
SerDeInfo.Builder

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
Type Description
SerDeInfo.Builder

This builder for chaining.

clone()

public SerDeInfo.Builder clone()
Returns
Type Description
SerDeInfo.Builder
Overrides

containsParameters(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public SerDeInfo getDefaultInstanceForType()
Returns
Type Description
SerDeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableParameters() (deprecated)

public Map<String,String> getMutableParameters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Optional. Name of the SerDe. The maximum length is 256 characters.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the SerDe. The maximum length is 256 characters.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getParameters() (deprecated)

public Map<String,String> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,String>

getParametersCount()

public int getParametersCount()

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];

Returns
Type Description
int

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];

Returns
Type Description
Map<String,String>

getParametersOrDefault(String key, String defaultValue)

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];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getParametersOrThrow(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
String

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];

Returns
Type Description
String

The serializationLibrary.

getSerializationLibraryBytes()

public 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];

Returns
Type Description
ByteString

The bytes for serializationLibrary.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SerDeInfo other)

public SerDeInfo.Builder mergeFrom(SerDeInfo other)
Parameter
Name Description
other SerDeInfo
Returns
Type Description
SerDeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SerDeInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SerDeInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SerDeInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SerDeInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SerDeInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SerDeInfo.Builder
Overrides

putAllParameters(Map<String,String> values)

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];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
SerDeInfo.Builder

putParameters(String key, String value)

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];

Parameters
Name Description
key String
value String
Returns
Type Description
SerDeInfo.Builder

removeParameters(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
SerDeInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SerDeInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SerDeInfo.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SerDeInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SerDeInfo.Builder setNameBytes(ByteString value)

Optional. Name of the SerDe. The maximum length is 256 characters.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SerDeInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SerDeInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SerDeInfo.Builder
Overrides

setSerializationLibrary(String value)

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];

Parameter
Name Description
value String

The serializationLibrary to set.

Returns
Type Description
SerDeInfo.Builder

This builder for chaining.

setSerializationLibraryBytes(ByteString value)

public SerDeInfo.Builder setSerializationLibraryBytes(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];

Parameter
Name Description
value ByteString

The bytes for serializationLibrary to set.

Returns
Type Description
SerDeInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SerDeInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SerDeInfo.Builder
Overrides