Class AppendRowsRequest.ProtoData (3.4.0)

public static final class AppendRowsRequest.ProtoData extends GeneratedMessageV3 implements AppendRowsRequest.ProtoDataOrBuilder

ProtoData contains the data rows and schema when constructing append requests.

Protobuf type google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData

Static Fields

ROWS_FIELD_NUMBER

public static final int ROWS_FIELD_NUMBER
Field Value
TypeDescription
int

WRITER_SCHEMA_FIELD_NUMBER

public static final int WRITER_SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AppendRowsRequest.ProtoData getDefaultInstance()
Returns
TypeDescription
AppendRowsRequest.ProtoData

getDescriptor()

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

newBuilder()

public static AppendRowsRequest.ProtoData.Builder newBuilder()
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

newBuilder(AppendRowsRequest.ProtoData prototype)

public static AppendRowsRequest.ProtoData.Builder newBuilder(AppendRowsRequest.ProtoData prototype)
Parameter
NameDescription
prototypeAppendRowsRequest.ProtoData
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

parseDelimitedFrom(InputStream input)

public static AppendRowsRequest.ProtoData parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AppendRowsRequest.ProtoData
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AppendRowsRequest.ProtoData parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AppendRowsRequest.ProtoData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AppendRowsRequest.ProtoData parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AppendRowsRequest.ProtoData
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AppendRowsRequest.ProtoData parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AppendRowsRequest.ProtoData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AppendRowsRequest.ProtoData parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AppendRowsRequest.ProtoData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AppendRowsRequest.ProtoData> parser()
Returns
TypeDescription
Parser<ProtoData>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AppendRowsRequest.ProtoData getDefaultInstanceForType()
Returns
TypeDescription
AppendRowsRequest.ProtoData

getParserForType()

public Parser<AppendRowsRequest.ProtoData> getParserForType()
Returns
TypeDescription
Parser<ProtoData>
Overrides

getRows()

public ProtoRows getRows()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
ProtoRows

The rows.

getRowsOrBuilder()

public ProtoRowsOrBuilder getRowsOrBuilder()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
ProtoRowsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWriterSchema()

public ProtoSchema getWriterSchema()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
ProtoSchema

The writerSchema.

getWriterSchemaOrBuilder()

public ProtoSchemaOrBuilder getWriterSchemaOrBuilder()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
ProtoSchemaOrBuilder

hasRows()

public boolean hasRows()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
boolean

Whether the rows field is set.

hasWriterSchema()

public boolean hasWriterSchema()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
boolean

Whether the writerSchema 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 AppendRowsRequest.ProtoData.Builder newBuilderForType()
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AppendRowsRequest.ProtoData.Builder toBuilder()
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

writeTo(CodedOutputStream output)

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