Class ProtoSchema (2.45.0)

public final class ProtoSchema extends GeneratedMessageV3 implements ProtoSchemaOrBuilder

ProtoSchema describes the schema of the serialized protocol buffer data rows.

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

Static Fields

PROTO_DESCRIPTOR_FIELD_NUMBER

public static final int PROTO_DESCRIPTOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProtoSchema getDefaultInstance()
Returns
TypeDescription
ProtoSchema

getDescriptor()

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

newBuilder()

public static ProtoSchema.Builder newBuilder()
Returns
TypeDescription
ProtoSchema.Builder

newBuilder(ProtoSchema prototype)

public static ProtoSchema.Builder newBuilder(ProtoSchema prototype)
Parameter
NameDescription
prototypeProtoSchema
Returns
TypeDescription
ProtoSchema.Builder

parseDelimitedFrom(InputStream input)

public static ProtoSchema parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtoSchema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ProtoSchema parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProtoSchema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProtoSchema parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProtoSchema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProtoSchema parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtoSchema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ProtoSchema parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtoSchema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ProtoSchema parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProtoSchema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtoSchema
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ProtoSchema> parser()
Returns
TypeDescription
Parser<ProtoSchema>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ProtoSchema getDefaultInstanceForType()
Returns
TypeDescription
ProtoSchema

getParserForType()

public Parser<ProtoSchema> getParserForType()
Returns
TypeDescription
Parser<ProtoSchema>
Overrides

getProtoDescriptor()

public DescriptorProtos.DescriptorProto getProtoDescriptor()

Descriptor for input message. The provided descriptor must be self contained, such that data rows sent can be fully decoded using only the single descriptor. For data rows that are compositions of multiple independent messages, this means the descriptor may need to be transformed to only use nested types: https://developers.google.com/protocol-buffers/docs/proto#nested

For additional information for how proto types and values map onto BigQuery see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions

.google.protobuf.DescriptorProto proto_descriptor = 1;

Returns
TypeDescription
DescriptorProto

The protoDescriptor.

getProtoDescriptorOrBuilder()

public DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder()

Descriptor for input message. The provided descriptor must be self contained, such that data rows sent can be fully decoded using only the single descriptor. For data rows that are compositions of multiple independent messages, this means the descriptor may need to be transformed to only use nested types: https://developers.google.com/protocol-buffers/docs/proto#nested

For additional information for how proto types and values map onto BigQuery see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions

.google.protobuf.DescriptorProto proto_descriptor = 1;

Returns
TypeDescription
DescriptorProtoOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasProtoDescriptor()

public boolean hasProtoDescriptor()

Descriptor for input message. The provided descriptor must be self contained, such that data rows sent can be fully decoded using only the single descriptor. For data rows that are compositions of multiple independent messages, this means the descriptor may need to be transformed to only use nested types: https://developers.google.com/protocol-buffers/docs/proto#nested

For additional information for how proto types and values map onto BigQuery see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions

.google.protobuf.DescriptorProto proto_descriptor = 1;

Returns
TypeDescription
boolean

Whether the protoDescriptor field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ProtoSchema.Builder newBuilderForType()
Returns
TypeDescription
ProtoSchema.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProtoSchema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ProtoSchema.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ProtoSchema.Builder toBuilder()
Returns
TypeDescription
ProtoSchema.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException