Class AvroSchema (2.35.0)

public final class AvroSchema extends GeneratedMessageV3 implements AvroSchemaOrBuilder

Avro schema.

Protobuf type google.cloud.bigquery.storage.v1beta2.AvroSchema

Implements

AvroSchemaOrBuilder

Static Fields

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AvroSchema getDefaultInstance()
Returns
TypeDescription
AvroSchema

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AvroSchema.Builder newBuilder()
Returns
TypeDescription
AvroSchema.Builder

newBuilder(AvroSchema prototype)

public static AvroSchema.Builder newBuilder(AvroSchema prototype)
Parameter
NameDescription
prototypeAvroSchema
Returns
TypeDescription
AvroSchema.Builder

parseDelimitedFrom(InputStream input)

public static AvroSchema parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AvroSchema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AvroSchema parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AvroSchema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AvroSchema parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AvroSchema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AvroSchema parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AvroSchema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AvroSchema parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AvroSchema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AvroSchema parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AvroSchema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AvroSchema> parser()
Returns
TypeDescription
Parser<AvroSchema>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AvroSchema getDefaultInstanceForType()
Returns
TypeDescription
AvroSchema

getParserForType()

public Parser<AvroSchema> getParserForType()
Returns
TypeDescription
Parser<AvroSchema>
Overrides

getSchema()

public String getSchema()

Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html.

string schema = 1;

Returns
TypeDescription
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html.

string schema = 1;

Returns
TypeDescription
ByteString

The bytes for schema.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AvroSchema.Builder newBuilderForType()
Returns
TypeDescription
AvroSchema.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AvroSchema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AvroSchema.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AvroSchema.Builder toBuilder()
Returns
TypeDescription
AvroSchema.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException