Class AvroSchema.Builder (3.9.1)

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

Avro schema.

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

Implements

AvroSchemaOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AvroSchema build()
Returns
Type Description
AvroSchema

buildPartial()

public AvroSchema buildPartial()
Returns
Type Description
AvroSchema

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchema()

public 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
AvroSchema.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AvroSchema getDefaultInstanceForType()
Returns
Type Description
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AvroSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSchema(String value)

public 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
AvroSchema.Builder

This builder for chaining.

setSchemaBytes(ByteString value)

public 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
AvroSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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