Class AvroProto.AvroSchema.Builder (2.44.1)

public static final class AvroProto.AvroSchema.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AvroProto.AvroSchema build()
Returns
TypeDescription
AvroProto.AvroSchema

buildPartial()

public AvroProto.AvroSchema buildPartial()
Returns
TypeDescription
AvroProto.AvroSchema

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AvroProto.AvroSchema getDefaultInstanceForType()
Returns
TypeDescription
AvroProto.AvroSchema

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(AvroProto.AvroSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The schema to set.

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

The bytes for schema to set.

Returns
TypeDescription
AvroProto.AvroSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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