# Interface Storage.ReadSessionOrBuilder (3.29.0)

3.27.0 (latest) 3.24.0 3.23.0 3.21.0 3.20.0 3.19.1 3.18.0 3.17.3 3.16.3 3.15.3 3.14.1 3.12.0 3.11.4 3.10.3 3.9.3 3.8.0 3.6.1 3.5.2 3.4.0 3.3.1 3.2.0 3.1.0 3.0.1 2.47.0 2.45.0 2.44.1 2.43.0

    public static interface Storage.ReadSessionOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getArrowSchema()

    public abstract ArrowProto.ArrowSchema getArrowSchema()

Arrow schema.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema` | The arrowSchema. |

### getArrowSchemaOrBuilder()

    public abstract ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder()

Arrow schema.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder` |   |

### getAvroSchema()

    public abstract AvroProto.AvroSchema getAvroSchema()

Avro schema.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema` | The avroSchema. |

### getAvroSchemaOrBuilder()

    public abstract AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder()

Avro schema.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder` |   |

### getExpireTime()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The expireTime. |

### getExpireTimeOrBuilder()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getName()

    public abstract String getName()

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

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getSchemaCase()

    public abstract Storage.ReadSession.SchemaCase getSchemaCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.SchemaCase` |   |

### getShardingStrategy()

    public abstract Storage.ShardingStrategy getShardingStrategy()

The strategy to use for distributing data among the streams.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy` | The shardingStrategy. |

### getShardingStrategyValue()

    public abstract int getShardingStrategyValue()

The strategy to use for distributing data among the streams.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for shardingStrategy. |

### getStreams(int index)

    public abstract Storage.Stream getStreams(int index)

Streams associated with this session.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.Storage.Stream` |   |

### getStreamsCount()

    public abstract int getStreamsCount()

Streams associated with this session.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getStreamsList()

    public abstract List<Storage.Stream> getStreamsList()

Streams associated with this session.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.Storage.Stream>` |   |

### getStreamsOrBuilder(int index)

    public abstract Storage.StreamOrBuilder getStreamsOrBuilder(int index)

Streams associated with this session.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder` |   |

### getStreamsOrBuilderList()

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

Streams associated with this session.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>` |   |

### getTableModifiers()

    public abstract TableReferenceProto.TableModifiers getTableModifiers()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers` | The tableModifiers. |

### getTableModifiersOrBuilder()

    public abstract TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder` |   |

### getTableReference()

    public abstract TableReferenceProto.TableReference getTableReference()

Table that this ReadSession is reading from.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference` | The tableReference. |

### getTableReferenceOrBuilder()

    public abstract TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder()

Table that this ReadSession is reading from.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder` |   |

### hasArrowSchema()

    public abstract boolean hasArrowSchema()

Arrow schema.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the arrowSchema field is set. |

### hasAvroSchema()

    public abstract boolean hasAvroSchema()

Avro schema.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the avroSchema field is set. |

### hasExpireTime()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the expireTime field is set. |

### hasTableModifiers()

    public abstract boolean hasTableModifiers()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tableModifiers field is set. |

### hasTableReference()

    public abstract boolean hasTableReference()

Table that this ReadSession is reading from.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tableReference field is set. |