Class Storage.ReadSession (2.9.1)

public static final class Storage.ReadSession extends GeneratedMessageV3 implements Storage.ReadSessionOrBuilder

Information returned from a CreateReadSession request.

Protobuf type google.cloud.bigquery.storage.v1beta1.ReadSession

Static Fields

ARROW_SCHEMA_FIELD_NUMBER

public static final int ARROW_SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

AVRO_SCHEMA_FIELD_NUMBER

public static final int AVRO_SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SHARDING_STRATEGY_FIELD_NUMBER

public static final int SHARDING_STRATEGY_FIELD_NUMBER
Field Value
TypeDescription
int

STREAMS_FIELD_NUMBER

public static final int STREAMS_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_MODIFIERS_FIELD_NUMBER

public static final int TABLE_MODIFIERS_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_REFERENCE_FIELD_NUMBER

public static final int TABLE_REFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Storage.ReadSession getDefaultInstance()
Returns
TypeDescription
Storage.ReadSession

getDescriptor()

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

newBuilder()

public static Storage.ReadSession.Builder newBuilder()
Returns
TypeDescription
Storage.ReadSession.Builder

newBuilder(Storage.ReadSession prototype)

public static Storage.ReadSession.Builder newBuilder(Storage.ReadSession prototype)
Parameter
NameDescription
prototypeStorage.ReadSession
Returns
TypeDescription
Storage.ReadSession.Builder

parseDelimitedFrom(InputStream input)

public static Storage.ReadSession parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Storage.ReadSession
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Storage.ReadSession parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Storage.ReadSession
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Storage.ReadSession parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Storage.ReadSession
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Storage.ReadSession parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Storage.ReadSession
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Storage.ReadSession parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Storage.ReadSession
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Storage.ReadSession> parser()
Returns
TypeDescription
Parser<ReadSession>

Methods

equals(Object obj)

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

getArrowSchema()

public ArrowProto.ArrowSchema getArrowSchema()

Arrow schema.

.google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6;

Returns
TypeDescription
ArrowProto.ArrowSchema

The arrowSchema.

getArrowSchemaOrBuilder()

public ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder()

Arrow schema.

.google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6;

Returns
TypeDescription
ArrowProto.ArrowSchemaOrBuilder

getAvroSchema()

public AvroProto.AvroSchema getAvroSchema()

Avro schema.

.google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5;

Returns
TypeDescription
AvroProto.AvroSchema

The avroSchema.

getAvroSchemaOrBuilder()

public AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder()

Avro schema.

.google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5;

Returns
TypeDescription
AvroProto.AvroSchemaOrBuilder

getDefaultInstanceForType()

public Storage.ReadSession getDefaultInstanceForType()
Returns
TypeDescription
Storage.ReadSession

getExpireTime()

public Timestamp getExpireTime()

Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Unique identifier for the session, in the form projects/{project_id}/locations/{location}/sessions/{session_id}.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Unique identifier for the session, in the form projects/{project_id}/locations/{location}/sessions/{session_id}.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Storage.ReadSession> getParserForType()
Returns
TypeDescription
Parser<ReadSession>
Overrides

getSchemaCase()

public Storage.ReadSession.SchemaCase getSchemaCase()
Returns
TypeDescription
Storage.ReadSession.SchemaCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShardingStrategy()

public Storage.ShardingStrategy getShardingStrategy()

The strategy to use for distributing data among the streams.

.google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9;

Returns
TypeDescription
Storage.ShardingStrategy

The shardingStrategy.

getShardingStrategyValue()

public int getShardingStrategyValue()

The strategy to use for distributing data among the streams.

.google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for shardingStrategy.

getStreams(int index)

public Storage.Stream getStreams(int index)

Streams associated with this session.

repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Storage.Stream

getStreamsCount()

public int getStreamsCount()

Streams associated with this session.

repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4;

Returns
TypeDescription
int

getStreamsList()

public List<Storage.Stream> getStreamsList()

Streams associated with this session.

repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4;

Returns
TypeDescription
List<Stream>

getStreamsOrBuilder(int index)

public Storage.StreamOrBuilder getStreamsOrBuilder(int index)

Streams associated with this session.

repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Storage.StreamOrBuilder

getStreamsOrBuilderList()

public List<? extends Storage.StreamOrBuilder> getStreamsOrBuilderList()

Streams associated with this session.

repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>

getTableModifiers()

public TableReferenceProto.TableModifiers getTableModifiers()

Any modifiers which are applied when reading from the specified table.

.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8;

Returns
TypeDescription
TableReferenceProto.TableModifiers

The tableModifiers.

getTableModifiersOrBuilder()

public TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder()

Any modifiers which are applied when reading from the specified table.

.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8;

Returns
TypeDescription
TableReferenceProto.TableModifiersOrBuilder

getTableReference()

public TableReferenceProto.TableReference getTableReference()

Table that this ReadSession is reading from.

.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7;

Returns
TypeDescription
TableReferenceProto.TableReference

The tableReference.

getTableReferenceOrBuilder()

public TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder()

Table that this ReadSession is reading from.

.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7;

Returns
TypeDescription
TableReferenceProto.TableReferenceOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasArrowSchema()

public boolean hasArrowSchema()

Arrow schema.

.google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6;

Returns
TypeDescription
boolean

Whether the arrowSchema field is set.

hasAvroSchema()

public boolean hasAvroSchema()

Avro schema.

.google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5;

Returns
TypeDescription
boolean

Whether the avroSchema field is set.

hasExpireTime()

public boolean hasExpireTime()

Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hasTableModifiers()

public boolean hasTableModifiers()

Any modifiers which are applied when reading from the specified table.

.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8;

Returns
TypeDescription
boolean

Whether the tableModifiers field is set.

hasTableReference()

public boolean hasTableReference()

Table that this ReadSession is reading from.

.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7;

Returns
TypeDescription
boolean

Whether the tableReference 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 Storage.ReadSession.Builder newBuilderForType()
Returns
TypeDescription
Storage.ReadSession.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Storage.ReadSession.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Storage.ReadSession.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Storage.ReadSession.Builder toBuilder()
Returns
TypeDescription
Storage.ReadSession.Builder

writeTo(CodedOutputStream output)

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