public class TableRowToStorageApiProto
extends java.lang.Object
TableRow
objects to dynamic protocol message, for use
with the Storage write API.Constructor and Description |
---|
TableRowToStorageApiProto() |
Modifier and Type | Method and Description |
---|---|
static Descriptors.Descriptor |
getDescriptorFromTableSchema(TableSchema jsonSchema)
Given a BigQuery TableSchema, returns a protocol-buffer Descriptor that can be used to write
data using the BigQuery Storage API.
|
static java.lang.Object |
jsonValueFromMessageValue(Descriptors.FieldDescriptor fieldDescriptor,
java.lang.Object fieldValue,
boolean expandRepeated) |
static DynamicMessage |
messageFromMap(Descriptors.Descriptor descriptor,
java.util.AbstractMap<java.lang.String,java.lang.Object> map) |
static DynamicMessage |
messageFromTableRow(Descriptors.Descriptor descriptor,
TableRow tableRow)
Given a BigQuery TableRow, returns a protocol-buffer message that can be used to write data
using the BigQuery Storage API.
|
static TableRow |
tableRowFromMessage(Message message) |
public static Descriptors.Descriptor getDescriptorFromTableSchema(TableSchema jsonSchema) throws Descriptors.DescriptorValidationException
public static DynamicMessage messageFromMap(Descriptors.Descriptor descriptor, java.util.AbstractMap<java.lang.String,java.lang.Object> map)
public static DynamicMessage messageFromTableRow(Descriptors.Descriptor descriptor, TableRow tableRow)
public static java.lang.Object jsonValueFromMessageValue(Descriptors.FieldDescriptor fieldDescriptor, java.lang.Object fieldValue, boolean expandRepeated)