Class Storage.CreateReadSessionRequest (2.45.0)

public static final class Storage.CreateReadSessionRequest extends GeneratedMessageV3 implements Storage.CreateReadSessionRequestOrBuilder

Creates a new read session, which may include additional options such as requested parallelism, projection filters and constraints.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Storage.CreateReadSessionRequest

Static Fields

FORMAT_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

READ_OPTIONS_FIELD_NUMBER

public static final int READ_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_STREAMS_FIELD_NUMBER

public static final int REQUESTED_STREAMS_FIELD_NUMBER
Field Value
TypeDescription
int

SHARDING_STRATEGY_FIELD_NUMBER

public static final int SHARDING_STRATEGY_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.CreateReadSessionRequest getDefaultInstance()
Returns
TypeDescription
Storage.CreateReadSessionRequest

getDescriptor()

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

newBuilder()

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

newBuilder(Storage.CreateReadSessionRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getFormat()

public Storage.DataFormat getFormat()

Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.

.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;

Returns
TypeDescription
Storage.DataFormat

The format.

getFormatValue()

public int getFormatValue()

Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.

.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for format.

getParent()

public String getParent()

Required. String of the form projects/{project_id} indicating the project this ReadSession is associated with. This is the project that will be billed for usage.

string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. String of the form projects/{project_id} indicating the project this ReadSession is associated with. This is the project that will be billed for usage.

string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getReadOptions()

public ReadOptions.TableReadOptions getReadOptions()

Read options for this session (e.g. column selection, filters).

.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;

Returns
TypeDescription
ReadOptions.TableReadOptions

The readOptions.

getReadOptionsOrBuilder()

public ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder()

Read options for this session (e.g. column selection, filters).

.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;

Returns
TypeDescription
ReadOptions.TableReadOptionsOrBuilder

getRequestedStreams()

public int getRequestedStreams()

Initial number of streams. If unset or 0, we will provide a value of streams so as to produce reasonable throughput. Must be non-negative. The number of streams may be lower than the requested number, depending on the amount parallelism that is reasonable for the table and the maximum amount of parallelism allowed by the system.

Streams must be read starting from offset 0.

int32 requested_streams = 3;

Returns
TypeDescription
int

The requestedStreams.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShardingStrategy()

public Storage.ShardingStrategy getShardingStrategy()

The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.

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

Returns
TypeDescription
Storage.ShardingStrategy

The shardingStrategy.

getShardingStrategyValue()

public int getShardingStrategyValue()

The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.

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

Returns
TypeDescription
int

The enum numeric value on the wire for shardingStrategy.

getTableModifiers()

public TableReferenceProto.TableModifiers getTableModifiers()

Any modifiers to the Table (e.g. snapshot timestamp).

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

Returns
TypeDescription
TableReferenceProto.TableModifiers

The tableModifiers.

getTableModifiersOrBuilder()

public TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder()

Any modifiers to the Table (e.g. snapshot timestamp).

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

Returns
TypeDescription
TableReferenceProto.TableModifiersOrBuilder

getTableReference()

public TableReferenceProto.TableReference getTableReference()

Required. Reference to the table to read.

.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TableReferenceProto.TableReference

The tableReference.

getTableReferenceOrBuilder()

public TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder()

Required. Reference to the table to read.

.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TableReferenceProto.TableReferenceOrBuilder

hasReadOptions()

public boolean hasReadOptions()

Read options for this session (e.g. column selection, filters).

.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;

Returns
TypeDescription
boolean

Whether the readOptions field is set.

hasTableModifiers()

public boolean hasTableModifiers()

Any modifiers to the Table (e.g. snapshot timestamp).

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

Returns
TypeDescription
boolean

Whether the tableModifiers field is set.

hasTableReference()

public boolean hasTableReference()

Required. Reference to the table to read.

.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];

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.CreateReadSessionRequest.Builder newBuilderForType()
Returns
TypeDescription
Storage.CreateReadSessionRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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