public class BeamRowToStorageApiProto
extends java.lang.Object
Row
objects to dynamic protocol message, for use with
the Storage write API.Constructor and Description |
---|
BeamRowToStorageApiProto() |
Modifier and Type | Method and Description |
---|---|
static Descriptors.Descriptor |
getDescriptorFromSchema(Schema schema)
Given a Beam Schema, returns a protocol-buffer Descriptor that can be used to write data using
the BigQuery Storage API.
|
static DynamicMessage |
messageFromBeamRow(Descriptors.Descriptor descriptor,
Row row)
Given a Beam
Row object, returns a protocol-buffer message that can be used to write
data using the BigQuery Storage streaming API. |
public static Descriptors.Descriptor getDescriptorFromSchema(Schema schema) throws Descriptors.DescriptorValidationException
public static DynamicMessage messageFromBeamRow(Descriptors.Descriptor descriptor, Row row)
Row
object, returns a protocol-buffer message that can be used to write
data using the BigQuery Storage streaming API.