public final class AvroSerializationOptions extends GeneratedMessageV3 implements AvroSerializationOptionsOrBuilder
Contains options specific to Avro Serialization.
Protobuf type google.cloud.bigquery.storage.v1.AvroSerializationOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AvroSerializationOptionsImplements
AvroSerializationOptionsOrBuilderStatic Fields
ENABLE_DISPLAY_NAME_ATTRIBUTE_FIELD_NUMBER
public static final int ENABLE_DISPLAY_NAME_ATTRIBUTE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AvroSerializationOptions getDefaultInstance()
Type | Description |
AvroSerializationOptions |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AvroSerializationOptions.Builder newBuilder()
Type | Description |
AvroSerializationOptions.Builder |
newBuilder(AvroSerializationOptions prototype)
public static AvroSerializationOptions.Builder newBuilder(AvroSerializationOptions prototype)
Name | Description |
prototype | AvroSerializationOptions |
Type | Description |
AvroSerializationOptions.Builder |
parseDelimitedFrom(InputStream input)
public static AvroSerializationOptions parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AvroSerializationOptions |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AvroSerializationOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSerializationOptions |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AvroSerializationOptions parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
AvroSerializationOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AvroSerializationOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSerializationOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AvroSerializationOptions parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
AvroSerializationOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AvroSerializationOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSerializationOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AvroSerializationOptions parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
AvroSerializationOptions |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AvroSerializationOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSerializationOptions |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AvroSerializationOptions parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AvroSerializationOptions |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AvroSerializationOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSerializationOptions |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AvroSerializationOptions parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
AvroSerializationOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AvroSerializationOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSerializationOptions |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AvroSerializationOptions> parser()
Type | Description |
Parser<AvroSerializationOptions> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public AvroSerializationOptions getDefaultInstanceForType()
Type | Description |
AvroSerializationOptions |
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;
Type | Description |
boolean | The enableDisplayNameAttribute. |
getParserForType()
public Parser<AvroSerializationOptions> getParserForType()
Type | Description |
Parser<AvroSerializationOptions> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public AvroSerializationOptions.Builder newBuilderForType()
Type | Description |
AvroSerializationOptions.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AvroSerializationOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
AvroSerializationOptions.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AvroSerializationOptions.Builder toBuilder()
Type | Description |
AvroSerializationOptions.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |