public static final class ReadSession.Builder extends GeneratedMessageV3.Builder<ReadSession.Builder> implements ReadSessionOrBuilder
Information about the ReadSession.
Protobuf type google.cloud.bigquery.storage.v1.ReadSession
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ReadSession.BuilderImplements
ReadSessionOrBuilderMethods
addAllStreams(Iterable<? extends ReadStream> values)
public ReadSession.Builder addAllStreams(Iterable<? extends ReadStream> values)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
values | Iterable<? extends com.google.cloud.bigquery.storage.v1.ReadStream> |
Type | Description |
ReadSession.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReadSession.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReadSession.Builder |
addStreams(ReadStream value)
public ReadSession.Builder addStreams(ReadStream value)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ReadStream |
Type | Description |
ReadSession.Builder |
addStreams(ReadStream.Builder builderForValue)
public ReadSession.Builder addStreams(ReadStream.Builder builderForValue)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | ReadStream.Builder |
Type | Description |
ReadSession.Builder |
addStreams(int index, ReadStream value)
public ReadSession.Builder addStreams(int index, ReadStream value)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
value | ReadStream |
Type | Description |
ReadSession.Builder |
addStreams(int index, ReadStream.Builder builderForValue)
public ReadSession.Builder addStreams(int index, ReadStream.Builder builderForValue)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
builderForValue | ReadStream.Builder |
Type | Description |
ReadSession.Builder |
addStreamsBuilder()
public ReadStream.Builder addStreamsBuilder()
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadStream.Builder |
addStreamsBuilder(int index)
public ReadStream.Builder addStreamsBuilder(int index)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
ReadStream.Builder |
build()
public ReadSession build()
Type | Description |
ReadSession |
buildPartial()
public ReadSession buildPartial()
Type | Description |
ReadSession |
clear()
public ReadSession.Builder clear()
Type | Description |
ReadSession.Builder |
clearArrowSchema()
public ReadSession.Builder clearArrowSchema()
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadSession.Builder |
clearAvroSchema()
public ReadSession.Builder clearAvroSchema()
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadSession.Builder |
clearDataFormat()
public ReadSession.Builder clearDataFormat()
Immutable. Data format of the output data.
.google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ReadSession.Builder | This builder for chaining. |
clearEstimatedTotalBytesScanned()
public ReadSession.Builder clearEstimatedTotalBytesScanned()
Output only. An estimate on the number of bytes this session will scan when all streams are completely consumed. This estimate is based on metadata from the table which might be incomplete or stale.
int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadSession.Builder | This builder for chaining. |
clearExpireTime()
public ReadSession.Builder clearExpireTime()
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadSession.Builder |
clearField(Descriptors.FieldDescriptor field)
public ReadSession.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ReadSession.Builder |
clearName()
public ReadSession.Builder clearName()
Output only. Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadSession.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ReadSession.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ReadSession.Builder |
clearReadOptions()
public ReadSession.Builder clearReadOptions()
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.Builder |
clearSchema()
public ReadSession.Builder clearSchema()
Type | Description |
ReadSession.Builder |
clearStreams()
public ReadSession.Builder clearStreams()
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ReadSession.Builder |
clearTable()
public ReadSession.Builder clearTable()
Immutable. Table that this ReadSession is reading from, in the form
projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Type | Description |
ReadSession.Builder | This builder for chaining. |
clearTableModifiers()
public ReadSession.Builder clearTableModifiers()
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.Builder |
clone()
public ReadSession.Builder clone()
Type | Description |
ReadSession.Builder |
getArrowSchema()
public ArrowSchema getArrowSchema()
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ArrowSchema | The arrowSchema. |
getArrowSchemaBuilder()
public ArrowSchema.Builder getArrowSchemaBuilder()
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ArrowSchema.Builder |
getArrowSchemaOrBuilder()
public ArrowSchemaOrBuilder getArrowSchemaOrBuilder()
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ArrowSchemaOrBuilder |
getAvroSchema()
public AvroSchema getAvroSchema()
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
AvroSchema | The avroSchema. |
getAvroSchemaBuilder()
public AvroSchema.Builder getAvroSchemaBuilder()
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
AvroSchema.Builder |
getAvroSchemaOrBuilder()
public AvroSchemaOrBuilder getAvroSchemaOrBuilder()
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
AvroSchemaOrBuilder |
getDataFormat()
public DataFormat getDataFormat()
Immutable. Data format of the output data.
.google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
DataFormat | The dataFormat. |
getDataFormatValue()
public int getDataFormatValue()
Immutable. Data format of the output data.
.google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
int | The enum numeric value on the wire for dataFormat. |
getDefaultInstanceForType()
public ReadSession getDefaultInstanceForType()
Type | Description |
ReadSession |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEstimatedTotalBytesScanned()
public long getEstimatedTotalBytesScanned()
Output only. An estimate on the number of bytes this session will scan when all streams are completely consumed. This estimate is based on metadata from the table which might be incomplete or stale.
int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
long | The estimatedTotalBytesScanned. |
getExpireTime()
public Timestamp getExpireTime()
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The expireTime. |
getExpireTimeBuilder()
public Timestamp.Builder getExpireTimeBuilder()
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getName()
public String getName()
Output only. Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getReadOptions()
public ReadSession.TableReadOptions getReadOptions()
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableReadOptions | The readOptions. |
getReadOptionsBuilder()
public ReadSession.TableReadOptions.Builder getReadOptionsBuilder()
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableReadOptions.Builder |
getReadOptionsOrBuilder()
public ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder()
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableReadOptionsOrBuilder |
getSchemaCase()
public ReadSession.SchemaCase getSchemaCase()
Type | Description |
ReadSession.SchemaCase |
getStreams(int index)
public ReadStream getStreams(int index)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
ReadStream |
getStreamsBuilder(int index)
public ReadStream.Builder getStreamsBuilder(int index)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
ReadStream.Builder |
getStreamsBuilderList()
public List<ReadStream.Builder> getStreamsBuilderList()
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
List<Builder> |
getStreamsCount()
public int getStreamsCount()
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int |
getStreamsList()
public List<ReadStream> getStreamsList()
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
List<ReadStream> |
getStreamsOrBuilder(int index)
public ReadStreamOrBuilder getStreamsOrBuilder(int index)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
ReadStreamOrBuilder |
getStreamsOrBuilderList()
public List<? extends ReadStreamOrBuilder> getStreamsOrBuilderList()
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
List<? extends com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> |
getTable()
public String getTable()
Immutable. Table that this ReadSession is reading from, in the form
projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Type | Description |
String | The table. |
getTableBytes()
public ByteString getTableBytes()
Immutable. Table that this ReadSession is reading from, in the form
projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for table. |
getTableModifiers()
public ReadSession.TableModifiers getTableModifiers()
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableModifiers | The tableModifiers. |
getTableModifiersBuilder()
public ReadSession.TableModifiers.Builder getTableModifiersBuilder()
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableModifiers.Builder |
getTableModifiersOrBuilder()
public ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder()
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReadSession.TableModifiersOrBuilder |
hasArrowSchema()
public boolean hasArrowSchema()
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the arrowSchema field is set. |
hasAvroSchema()
public boolean hasAvroSchema()
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the avroSchema field is set. |
hasExpireTime()
public boolean hasExpireTime()
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the expireTime field is set. |
hasReadOptions()
public boolean hasReadOptions()
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the readOptions field is set. |
hasTableModifiers()
public boolean hasTableModifiers()
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the tableModifiers field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeArrowSchema(ArrowSchema value)
public ReadSession.Builder mergeArrowSchema(ArrowSchema value)
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ArrowSchema |
Type | Description |
ReadSession.Builder |
mergeAvroSchema(AvroSchema value)
public ReadSession.Builder mergeAvroSchema(AvroSchema value)
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | AvroSchema |
Type | Description |
ReadSession.Builder |
mergeExpireTime(Timestamp value)
public ReadSession.Builder mergeExpireTime(Timestamp value)
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ReadSession.Builder |
mergeFrom(ReadSession other)
public ReadSession.Builder mergeFrom(ReadSession other)
Name | Description |
other | ReadSession |
Type | Description |
ReadSession.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReadSession.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadSession.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ReadSession.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ReadSession.Builder |
mergeReadOptions(ReadSession.TableReadOptions value)
public ReadSession.Builder mergeReadOptions(ReadSession.TableReadOptions value)
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ReadSession.TableReadOptions |
Type | Description |
ReadSession.Builder |
mergeTableModifiers(ReadSession.TableModifiers value)
public ReadSession.Builder mergeTableModifiers(ReadSession.TableModifiers value)
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ReadSession.TableModifiers |
Type | Description |
ReadSession.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReadSession.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReadSession.Builder |
removeStreams(int index)
public ReadSession.Builder removeStreams(int index)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
ReadSession.Builder |
setArrowSchema(ArrowSchema value)
public ReadSession.Builder setArrowSchema(ArrowSchema value)
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ArrowSchema |
Type | Description |
ReadSession.Builder |
setArrowSchema(ArrowSchema.Builder builderForValue)
public ReadSession.Builder setArrowSchema(ArrowSchema.Builder builderForValue)
Output only. Arrow schema.
.google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | ArrowSchema.Builder |
Type | Description |
ReadSession.Builder |
setAvroSchema(AvroSchema value)
public ReadSession.Builder setAvroSchema(AvroSchema value)
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | AvroSchema |
Type | Description |
ReadSession.Builder |
setAvroSchema(AvroSchema.Builder builderForValue)
public ReadSession.Builder setAvroSchema(AvroSchema.Builder builderForValue)
Output only. Avro schema.
.google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | AvroSchema.Builder |
Type | Description |
ReadSession.Builder |
setDataFormat(DataFormat value)
public ReadSession.Builder setDataFormat(DataFormat value)
Immutable. Data format of the output data.
.google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | DataFormat The dataFormat to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setDataFormatValue(int value)
public ReadSession.Builder setDataFormatValue(int value)
Immutable. Data format of the output data.
.google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | int The enum numeric value on the wire for dataFormat to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setEstimatedTotalBytesScanned(long value)
public ReadSession.Builder setEstimatedTotalBytesScanned(long value)
Output only. An estimate on the number of bytes this session will scan when all streams are completely consumed. This estimate is based on metadata from the table which might be incomplete or stale.
int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | long The estimatedTotalBytesScanned to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setExpireTime(Timestamp value)
public ReadSession.Builder setExpireTime(Timestamp value)
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ReadSession.Builder |
setExpireTime(Timestamp.Builder builderForValue)
public ReadSession.Builder setExpireTime(Timestamp.Builder builderForValue)
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
.google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
ReadSession.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ReadSession.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReadSession.Builder |
setName(String value)
public ReadSession.Builder setName(String value)
Output only. Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ReadSession.Builder setNameBytes(ByteString value)
Output only. Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setReadOptions(ReadSession.TableReadOptions value)
public ReadSession.Builder setReadOptions(ReadSession.TableReadOptions value)
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ReadSession.TableReadOptions |
Type | Description |
ReadSession.Builder |
setReadOptions(ReadSession.TableReadOptions.Builder builderForValue)
public ReadSession.Builder setReadOptions(ReadSession.TableReadOptions.Builder builderForValue)
Optional. Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | ReadSession.TableReadOptions.Builder |
Type | Description |
ReadSession.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReadSession.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ReadSession.Builder |
setStreams(int index, ReadStream value)
public ReadSession.Builder setStreams(int index, ReadStream value)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
value | ReadStream |
Type | Description |
ReadSession.Builder |
setStreams(int index, ReadStream.Builder builderForValue)
public ReadSession.Builder setStreams(int index, ReadStream.Builder builderForValue)
Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
builderForValue | ReadStream.Builder |
Type | Description |
ReadSession.Builder |
setTable(String value)
public ReadSession.Builder setTable(String value)
Immutable. Table that this ReadSession is reading from, in the form
projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The table to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setTableBytes(ByteString value)
public ReadSession.Builder setTableBytes(ByteString value)
Immutable. Table that this ReadSession is reading from, in the form
projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for table to set. |
Type | Description |
ReadSession.Builder | This builder for chaining. |
setTableModifiers(ReadSession.TableModifiers value)
public ReadSession.Builder setTableModifiers(ReadSession.TableModifiers value)
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ReadSession.TableModifiers |
Type | Description |
ReadSession.Builder |
setTableModifiers(ReadSession.TableModifiers.Builder builderForValue)
public ReadSession.Builder setTableModifiers(ReadSession.TableModifiers.Builder builderForValue)
Optional. Any modifiers which are applied when reading from the specified table.
.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | ReadSession.TableModifiers.Builder |
Type | Description |
ReadSession.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ReadSession.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReadSession.Builder |