Class BQTableSchemaToProtoDescriptor (2.45.0)

public class BQTableSchemaToProtoDescriptor

Converts a BQ table schema to protobuf descriptor. All field names will be converted to lowercase when constructing the protobuf descriptor. The mapping between field types and field modes are shown in the ImmutableMaps below.

Inheritance

java.lang.Object > BQTableSchemaToProtoDescriptor

Static Methods

convertBQTableSchemaToProtoDescriptor(TableSchema BQTableSchema)

public static Descriptors.Descriptor convertBQTableSchemaToProtoDescriptor(TableSchema BQTableSchema)

Converts TableFieldSchema to a Descriptors.Descriptor object.

Parameter
NameDescription
BQTableSchemaTableSchema
Returns
TypeDescription
Descriptor
Exceptions
TypeDescription
DescriptorValidationException

Constructors

BQTableSchemaToProtoDescriptor()

public BQTableSchemaToProtoDescriptor()