Class AppendRowsRequest.ProtoData (3.5.1)

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
Type Description
int

WRITER_SCHEMA_FIELD_NUMBER

public static final int WRITER_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AppendRowsRequest.ProtoData getDefaultInstance()
Returns
Type Description
AppendRowsRequest.ProtoData

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AppendRowsRequest.ProtoData.Builder newBuilder()
Returns
Type Description
AppendRowsRequest.ProtoData.Builder

newBuilder(AppendRowsRequest.ProtoData prototype)

public static AppendRowsRequest.ProtoData.Builder newBuilder(AppendRowsRequest.ProtoData prototype)
Parameter
Name Description
prototype AppendRowsRequest.ProtoData
Returns
Type Description
AppendRowsRequest.ProtoData.Builder

parseDelimitedFrom(InputStream input)

public static AppendRowsRequest.ProtoData parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AppendRowsRequest.ProtoData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AppendRowsRequest.ProtoData parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AppendRowsRequest.ProtoData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AppendRowsRequest.ProtoData parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AppendRowsRequest.ProtoData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AppendRowsRequest.ProtoData parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AppendRowsRequest.ProtoData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AppendRowsRequest.ProtoData parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AppendRowsRequest.ProtoData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AppendRowsRequest.ProtoData parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AppendRowsRequest.ProtoData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppendRowsRequest.ProtoData
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AppendRowsRequest.ProtoData getDefaultInstanceForType()
Returns
Type Description
AppendRowsRequest.ProtoData

getParserForType()

public Parser<AppendRowsRequest.ProtoData> getParserForType()
Returns
Type Description
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
Type Description
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
Type Description
ProtoRowsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the writerSchema field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AppendRowsRequest.ProtoData.Builder newBuilderForType()
Returns
Type Description
AppendRowsRequest.ProtoData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AppendRowsRequest.ProtoData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AppendRowsRequest.ProtoData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AppendRowsRequest.ProtoData.Builder toBuilder()
Returns
Type Description
AppendRowsRequest.ProtoData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException