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
Static Fields
public static final int FORMAT_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
READ_OPTIONS_FIELD_NUMBER
public static final int READ_OPTIONS_FIELD_NUMBER
Field Value
REQUESTED_STREAMS_FIELD_NUMBER
public static final int REQUESTED_STREAMS_FIELD_NUMBER
Field Value
SHARDING_STRATEGY_FIELD_NUMBER
public static final int SHARDING_STRATEGY_FIELD_NUMBER
Field Value
TABLE_MODIFIERS_FIELD_NUMBER
public static final int TABLE_MODIFIERS_FIELD_NUMBER
Field Value
TABLE_REFERENCE_FIELD_NUMBER
public static final int TABLE_REFERENCE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Storage.CreateReadSessionRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Storage.CreateReadSessionRequest.Builder newBuilder()
Returns
newBuilder(Storage.CreateReadSessionRequest prototype)
public static Storage.CreateReadSessionRequest.Builder newBuilder(Storage.CreateReadSessionRequest prototype)
Parameter
Returns
public static Storage.CreateReadSessionRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Storage.CreateReadSessionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Storage.CreateReadSessionRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Storage.CreateReadSessionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Storage.CreateReadSessionRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Storage.CreateReadSessionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Storage.CreateReadSessionRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Storage.CreateReadSessionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Storage.CreateReadSessionRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Storage.CreateReadSessionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Storage.CreateReadSessionRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Storage.CreateReadSessionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Storage.CreateReadSessionRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Storage.CreateReadSessionRequest getDefaultInstanceForType()
Returns
public Storage.DataFormat getFormat()
Data output format. Currently default to Avro.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;
Returns
public int getFormatValue()
Data output format. Currently default to Avro.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;
Returns
Type | Description |
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
Type | Description |
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
getParserForType()
public Parser<Storage.CreateReadSessionRequest> getParserForType()
Returns
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
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
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
Type | Description |
int | The requestedStreams.
|
getSerializedSize()
public int getSerializedSize()
Returns
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
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
Type | Description |
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
getTableModifiersOrBuilder()
public TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder()
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2;
Returns
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
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasReadOptions()
public boolean hasReadOptions()
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;
Returns
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the tableReference field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Storage.CreateReadSessionRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Storage.CreateReadSessionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Storage.CreateReadSessionRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions