Class ReadRowsResponse.Builder (2.45.0)

public static final class ReadRowsResponse.Builder extends GeneratedMessageV3.Builder<ReadRowsResponse.Builder> implements ReadRowsResponseOrBuilder

Response from calling ReadRows may include row data, progress and throttling information.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReadRowsResponse build()
Returns
TypeDescription
ReadRowsResponse

buildPartial()

public ReadRowsResponse buildPartial()
Returns
TypeDescription
ReadRowsResponse

clear()

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

clearArrowRecordBatch()

public ReadRowsResponse.Builder clearArrowRecordBatch()

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Returns
TypeDescription
ReadRowsResponse.Builder

clearArrowSchema()

public ReadRowsResponse.Builder clearArrowSchema()

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ReadRowsResponse.Builder

clearAvroRows()

public ReadRowsResponse.Builder clearAvroRows()

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Returns
TypeDescription
ReadRowsResponse.Builder

clearAvroSchema()

public ReadRowsResponse.Builder clearAvroSchema()

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ReadRowsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRowCount()

public ReadRowsResponse.Builder clearRowCount()

Number of serialized rows in the rows block.

int64 row_count = 6;

Returns
TypeDescription
ReadRowsResponse.Builder

This builder for chaining.

clearRows()

public ReadRowsResponse.Builder clearRows()
Returns
TypeDescription
ReadRowsResponse.Builder

clearSchema()

public ReadRowsResponse.Builder clearSchema()
Returns
TypeDescription
ReadRowsResponse.Builder

clearStats()

public ReadRowsResponse.Builder clearStats()

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Returns
TypeDescription
ReadRowsResponse.Builder

clearThrottleState()

public ReadRowsResponse.Builder clearThrottleState()

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Returns
TypeDescription
ReadRowsResponse.Builder

clone()

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

getArrowRecordBatch()

public ArrowRecordBatch getArrowRecordBatch()

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Returns
TypeDescription
ArrowRecordBatch

The arrowRecordBatch.

getArrowRecordBatchBuilder()

public ArrowRecordBatch.Builder getArrowRecordBatchBuilder()

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Returns
TypeDescription
ArrowRecordBatch.Builder

getArrowRecordBatchOrBuilder()

public ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder()

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Returns
TypeDescription
ArrowRecordBatchOrBuilder

getArrowSchema()

public ArrowSchema getArrowSchema()

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ArrowSchema

The arrowSchema.

getArrowSchemaBuilder()

public ArrowSchema.Builder getArrowSchemaBuilder()

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ArrowSchema.Builder

getArrowSchemaOrBuilder()

public ArrowSchemaOrBuilder getArrowSchemaOrBuilder()

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ArrowSchemaOrBuilder

getAvroRows()

public AvroRows getAvroRows()

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Returns
TypeDescription
AvroRows

The avroRows.

getAvroRowsBuilder()

public AvroRows.Builder getAvroRowsBuilder()

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Returns
TypeDescription
AvroRows.Builder

getAvroRowsOrBuilder()

public AvroRowsOrBuilder getAvroRowsOrBuilder()

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Returns
TypeDescription
AvroRowsOrBuilder

getAvroSchema()

public AvroSchema getAvroSchema()

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AvroSchema

The avroSchema.

getAvroSchemaBuilder()

public AvroSchema.Builder getAvroSchemaBuilder()

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AvroSchema.Builder

getAvroSchemaOrBuilder()

public AvroSchemaOrBuilder getAvroSchemaOrBuilder()

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AvroSchemaOrBuilder

getDefaultInstanceForType()

public ReadRowsResponse getDefaultInstanceForType()
Returns
TypeDescription
ReadRowsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRowCount()

public long getRowCount()

Number of serialized rows in the rows block.

int64 row_count = 6;

Returns
TypeDescription
long

The rowCount.

getRowsCase()

public ReadRowsResponse.RowsCase getRowsCase()
Returns
TypeDescription
ReadRowsResponse.RowsCase

getSchemaCase()

public ReadRowsResponse.SchemaCase getSchemaCase()
Returns
TypeDescription
ReadRowsResponse.SchemaCase

getStats()

public StreamStats getStats()

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Returns
TypeDescription
StreamStats

The stats.

getStatsBuilder()

public StreamStats.Builder getStatsBuilder()

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Returns
TypeDescription
StreamStats.Builder

getStatsOrBuilder()

public StreamStatsOrBuilder getStatsOrBuilder()

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Returns
TypeDescription
StreamStatsOrBuilder

getThrottleState()

public ThrottleState getThrottleState()

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Returns
TypeDescription
ThrottleState

The throttleState.

getThrottleStateBuilder()

public ThrottleState.Builder getThrottleStateBuilder()

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Returns
TypeDescription
ThrottleState.Builder

getThrottleStateOrBuilder()

public ThrottleStateOrBuilder getThrottleStateOrBuilder()

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Returns
TypeDescription
ThrottleStateOrBuilder

hasArrowRecordBatch()

public boolean hasArrowRecordBatch()

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Returns
TypeDescription
boolean

Whether the arrowRecordBatch field is set.

hasArrowSchema()

public boolean hasArrowSchema()

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the arrowSchema field is set.

hasAvroRows()

public boolean hasAvroRows()

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Returns
TypeDescription
boolean

Whether the avroRows field is set.

hasAvroSchema()

public boolean hasAvroSchema()

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the avroSchema field is set.

hasStats()

public boolean hasStats()

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Returns
TypeDescription
boolean

Whether the stats field is set.

hasThrottleState()

public boolean hasThrottleState()

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Returns
TypeDescription
boolean

Whether the throttleState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArrowRecordBatch(ArrowRecordBatch value)

public ReadRowsResponse.Builder mergeArrowRecordBatch(ArrowRecordBatch value)

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Parameter
NameDescription
valueArrowRecordBatch
Returns
TypeDescription
ReadRowsResponse.Builder

mergeArrowSchema(ArrowSchema value)

public ReadRowsResponse.Builder mergeArrowSchema(ArrowSchema value)

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueArrowSchema
Returns
TypeDescription
ReadRowsResponse.Builder

mergeAvroRows(AvroRows value)

public ReadRowsResponse.Builder mergeAvroRows(AvroRows value)

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Parameter
NameDescription
valueAvroRows
Returns
TypeDescription
ReadRowsResponse.Builder

mergeAvroSchema(AvroSchema value)

public ReadRowsResponse.Builder mergeAvroSchema(AvroSchema value)

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAvroSchema
Returns
TypeDescription
ReadRowsResponse.Builder

mergeFrom(ReadRowsResponse other)

public ReadRowsResponse.Builder mergeFrom(ReadRowsResponse other)
Parameter
NameDescription
otherReadRowsResponse
Returns
TypeDescription
ReadRowsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStats(StreamStats value)

public ReadRowsResponse.Builder mergeStats(StreamStats value)

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Parameter
NameDescription
valueStreamStats
Returns
TypeDescription
ReadRowsResponse.Builder

mergeThrottleState(ThrottleState value)

public ReadRowsResponse.Builder mergeThrottleState(ThrottleState value)

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Parameter
NameDescription
valueThrottleState
Returns
TypeDescription
ReadRowsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArrowRecordBatch(ArrowRecordBatch value)

public ReadRowsResponse.Builder setArrowRecordBatch(ArrowRecordBatch value)

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Parameter
NameDescription
valueArrowRecordBatch
Returns
TypeDescription
ReadRowsResponse.Builder

setArrowRecordBatch(ArrowRecordBatch.Builder builderForValue)

public ReadRowsResponse.Builder setArrowRecordBatch(ArrowRecordBatch.Builder builderForValue)

Serialized row data in Arrow RecordBatch format.

.google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4;

Parameter
NameDescription
builderForValueArrowRecordBatch.Builder
Returns
TypeDescription
ReadRowsResponse.Builder

setArrowSchema(ArrowSchema value)

public ReadRowsResponse.Builder setArrowSchema(ArrowSchema value)

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueArrowSchema
Returns
TypeDescription
ReadRowsResponse.Builder

setArrowSchema(ArrowSchema.Builder builderForValue)

public ReadRowsResponse.Builder setArrowSchema(ArrowSchema.Builder builderForValue)

Output only. Arrow schema.

.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueArrowSchema.Builder
Returns
TypeDescription
ReadRowsResponse.Builder

setAvroRows(AvroRows value)

public ReadRowsResponse.Builder setAvroRows(AvroRows value)

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Parameter
NameDescription
valueAvroRows
Returns
TypeDescription
ReadRowsResponse.Builder

setAvroRows(AvroRows.Builder builderForValue)

public ReadRowsResponse.Builder setAvroRows(AvroRows.Builder builderForValue)

Serialized row data in AVRO format.

.google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3;

Parameter
NameDescription
builderForValueAvroRows.Builder
Returns
TypeDescription
ReadRowsResponse.Builder

setAvroSchema(AvroSchema value)

public ReadRowsResponse.Builder setAvroSchema(AvroSchema value)

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAvroSchema
Returns
TypeDescription
ReadRowsResponse.Builder

setAvroSchema(AvroSchema.Builder builderForValue)

public ReadRowsResponse.Builder setAvroSchema(AvroSchema.Builder builderForValue)

Output only. Avro schema.

.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAvroSchema.Builder
Returns
TypeDescription
ReadRowsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRowCount(long value)

public ReadRowsResponse.Builder setRowCount(long value)

Number of serialized rows in the rows block.

int64 row_count = 6;

Parameter
NameDescription
valuelong

The rowCount to set.

Returns
TypeDescription
ReadRowsResponse.Builder

This builder for chaining.

setStats(StreamStats value)

public ReadRowsResponse.Builder setStats(StreamStats value)

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Parameter
NameDescription
valueStreamStats
Returns
TypeDescription
ReadRowsResponse.Builder

setStats(StreamStats.Builder builderForValue)

public ReadRowsResponse.Builder setStats(StreamStats.Builder builderForValue)

Statistics for the stream.

.google.cloud.bigquery.storage.v1.StreamStats stats = 2;

Parameter
NameDescription
builderForValueStreamStats.Builder
Returns
TypeDescription
ReadRowsResponse.Builder

setThrottleState(ThrottleState value)

public ReadRowsResponse.Builder setThrottleState(ThrottleState value)

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Parameter
NameDescription
valueThrottleState
Returns
TypeDescription
ReadRowsResponse.Builder

setThrottleState(ThrottleState.Builder builderForValue)

public ReadRowsResponse.Builder setThrottleState(ThrottleState.Builder builderForValue)

Throttling state. If unset, the latest response still describes the current throttling status.

.google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;

Parameter
NameDescription
builderForValueThrottleState.Builder
Returns
TypeDescription
ReadRowsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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