Class AvroProto.AvroSchema.Builder (3.20.0)

public static final class AvroProto.AvroSchema.Builder extends GeneratedMessage.Builder<AvroProto.AvroSchema.Builder> implements AvroProto.AvroSchemaOrBuilder

Avro schema.

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

Static Methods

getDescriptor()

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

Methods

build()

public AvroProto.AvroSchema build()
Returns
Type Description
AvroProto.AvroSchema

buildPartial()

public AvroProto.AvroSchema buildPartial()
Returns
Type Description
AvroProto.AvroSchema

clear()

public AvroProto.AvroSchema.Builder clear()
Returns
Type Description
AvroProto.AvroSchema.Builder
Overrides

clearSchema()

public AvroProto.AvroSchema.Builder clearSchema()

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

string schema = 1;

Returns
Type Description
AvroProto.AvroSchema.Builder

This builder for chaining.

getDefaultInstanceForType()

public AvroProto.AvroSchema getDefaultInstanceForType()
Returns
Type Description
AvroProto.AvroSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
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;

Returns
Type Description
ByteString

The bytes for schema.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AvroProto.AvroSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSchema(String value)

public AvroProto.AvroSchema.Builder setSchema(String value)

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

string schema = 1;

Parameter
Name Description
value String

The schema to set.

Returns
Type Description
AvroProto.AvroSchema.Builder

This builder for chaining.

setSchemaBytes(ByteString value)

public AvroProto.AvroSchema.Builder setSchemaBytes(ByteString value)

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

string schema = 1;

Parameter
Name Description
value ByteString

The bytes for schema to set.

Returns
Type Description
AvroProto.AvroSchema.Builder

This builder for chaining.