Class AvroSchema.Builder (2.6.5)

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

Avro schema.

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

Implements

AvroSchemaOrBuilder

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AvroSchema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AvroSchema.Builder
Overrides

build()

public AvroSchema build()
Returns
TypeDescription
AvroSchema

buildPartial()

public AvroSchema buildPartial()
Returns
TypeDescription
AvroSchema

clear()

public AvroSchema.Builder clear()
Returns
TypeDescription
AvroSchema.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AvroSchema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AvroSchema.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AvroSchema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AvroSchema.Builder

This builder for chaining.

clone()

public AvroSchema.Builder clone()
Returns
TypeDescription
AvroSchema.Builder
Overrides

getDefaultInstanceForType()

public AvroSchema getDefaultInstanceForType()
Returns
TypeDescription
AvroSchema

getDescriptor()

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AvroSchema other)

public AvroSchema.Builder mergeFrom(AvroSchema other)
Parameter
NameDescription
otherAvroSchema
Returns
TypeDescription
AvroSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AvroSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AvroSchema.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AvroSchema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AvroSchema.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AvroSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AvroSchema.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AvroSchema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AvroSchema.Builder
Overrides

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

public AvroSchema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The schema to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for schema to set.

Returns
TypeDescription
AvroSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AvroSchema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AvroSchema.Builder
Overrides