Class ArrowRecordBatch.Builder (2.20.0)

public static final class ArrowRecordBatch.Builder extends GeneratedMessageV3.Builder<ArrowRecordBatch.Builder> implements ArrowRecordBatchOrBuilder

Arrow RecordBatch.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ArrowRecordBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

build()

public ArrowRecordBatch build()
Returns
TypeDescription
ArrowRecordBatch

buildPartial()

public ArrowRecordBatch buildPartial()
Returns
TypeDescription
ArrowRecordBatch

clear()

public ArrowRecordBatch.Builder clear()
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ArrowRecordBatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ArrowRecordBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

clearRowCount() (deprecated)

public ArrowRecordBatch.Builder clearRowCount()

Deprecated. google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See google/cloud/bigquery/storage/v1/arrow.proto;l=43

[Deprecated] The count of rows in serialized_record_batch. Please use the format-independent ReadRowsResponse.row_count instead.

int64 row_count = 2 [deprecated = true];

Returns
TypeDescription
ArrowRecordBatch.Builder

This builder for chaining.

clearSerializedRecordBatch()

public ArrowRecordBatch.Builder clearSerializedRecordBatch()

IPC-serialized Arrow RecordBatch.

bytes serialized_record_batch = 1;

Returns
TypeDescription
ArrowRecordBatch.Builder

This builder for chaining.

clone()

public ArrowRecordBatch.Builder clone()
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

getDefaultInstanceForType()

public ArrowRecordBatch getDefaultInstanceForType()
Returns
TypeDescription
ArrowRecordBatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRowCount() (deprecated)

public long getRowCount()

Deprecated. google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See google/cloud/bigquery/storage/v1/arrow.proto;l=43

[Deprecated] The count of rows in serialized_record_batch. Please use the format-independent ReadRowsResponse.row_count instead.

int64 row_count = 2 [deprecated = true];

Returns
TypeDescription
long

The rowCount.

getSerializedRecordBatch()

public ByteString getSerializedRecordBatch()

IPC-serialized Arrow RecordBatch.

bytes serialized_record_batch = 1;

Returns
TypeDescription
ByteString

The serializedRecordBatch.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ArrowRecordBatch other)

public ArrowRecordBatch.Builder mergeFrom(ArrowRecordBatch other)
Parameter
NameDescription
otherArrowRecordBatch
Returns
TypeDescription
ArrowRecordBatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ArrowRecordBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ArrowRecordBatch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ArrowRecordBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ArrowRecordBatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ArrowRecordBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides

setRowCount(long value) (deprecated)

public ArrowRecordBatch.Builder setRowCount(long value)

Deprecated. google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See google/cloud/bigquery/storage/v1/arrow.proto;l=43

[Deprecated] The count of rows in serialized_record_batch. Please use the format-independent ReadRowsResponse.row_count instead.

int64 row_count = 2 [deprecated = true];

Parameter
NameDescription
valuelong

The rowCount to set.

Returns
TypeDescription
ArrowRecordBatch.Builder

This builder for chaining.

setSerializedRecordBatch(ByteString value)

public ArrowRecordBatch.Builder setSerializedRecordBatch(ByteString value)

IPC-serialized Arrow RecordBatch.

bytes serialized_record_batch = 1;

Parameter
NameDescription
valueByteString

The serializedRecordBatch to set.

Returns
TypeDescription
ArrowRecordBatch.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ArrowRecordBatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ArrowRecordBatch.Builder
Overrides