public final class AvroSchema extends GeneratedMessageV3 implements AvroSchemaOrBuilder
Avro schema.
Protobuf type google.cloud.bigquery.storage.v1.AvroSchema
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AvroSchemaImplements
AvroSchemaOrBuilderStatic Fields
SCHEMA_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AvroSchema getDefaultInstance()
Type | Description |
AvroSchema |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AvroSchema.Builder newBuilder()
Type | Description |
AvroSchema.Builder |
newBuilder(AvroSchema prototype)
public static AvroSchema.Builder newBuilder(AvroSchema prototype)
Name | Description |
prototype | AvroSchema |
Type | Description |
AvroSchema.Builder |
parseDelimitedFrom(InputStream input)
public static AvroSchema parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AvroSchema |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AvroSchema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSchema |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AvroSchema parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
AvroSchema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AvroSchema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSchema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AvroSchema parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
AvroSchema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AvroSchema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSchema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AvroSchema parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
AvroSchema |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AvroSchema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSchema |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AvroSchema parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AvroSchema |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AvroSchema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSchema |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AvroSchema parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
AvroSchema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AvroSchema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AvroSchema |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AvroSchema> parser()
Type | Description |
Parser<AvroSchema> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public AvroSchema getDefaultInstanceForType()
Type | Description |
AvroSchema |
getParserForType()
public Parser<AvroSchema> getParserForType()
Type | Description |
Parser<AvroSchema> |
getSchema()
public String getSchema()
Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html.
string schema = 1;
Type | Description |
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;
Type | Description |
ByteString | The bytes for schema. |
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 AvroSchema.Builder newBuilderForType()
Type | Description |
AvroSchema.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AvroSchema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
AvroSchema.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AvroSchema.Builder toBuilder()
Type | Description |
AvroSchema.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |