Class Storage.CreateReadSessionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder
- All Implemented Interfaces:
Storage.CreateReadSessionRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Storage.CreateReadSessionRequest
public static final class Storage.CreateReadSessionRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Data output format.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.Read options for this session (e.g.Initial number of streams.The strategy to use for distributing data among multiple streams.Any modifiers to the Table (e.g.Required.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorData output format.intData output format.Required.com.google.protobuf.ByteStringRequired.Read options for this session (e.g.Read options for this session (e.g.Read options for this session (e.g.intInitial number of streams.The strategy to use for distributing data among multiple streams.intThe strategy to use for distributing data among multiple streams.Any modifiers to the Table (e.g.Any modifiers to the Table (e.g.Any modifiers to the Table (e.g.Required.Required.Required.booleanRead options for this session (e.g.booleanAny modifiers to the Table (e.g.booleanRequired.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Read options for this session (e.g.Any modifiers to the Table (e.g.Required.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFormat(Storage.DataFormat value) Data output format.setFormatValue(int value) Data output format.Required.setParentBytes(com.google.protobuf.ByteString value) Required.Read options for this session (e.g.setReadOptions(ReadOptions.TableReadOptions.Builder builderForValue) Read options for this session (e.g.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestedStreams(int value) Initial number of streams.The strategy to use for distributing data among multiple streams.setShardingStrategyValue(int value) The strategy to use for distributing data among multiple streams.Any modifiers to the Table (e.g.setTableModifiers(TableReferenceProto.TableModifiers.Builder builderForValue) Any modifiers to the Table (e.g.Required.setTableReference(TableReferenceProto.TableReference.Builder builderForValue) Required.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
setField
public Storage.CreateReadSessionRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
clearField
public Storage.CreateReadSessionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
clearOneof
public Storage.CreateReadSessionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
setRepeatedField
public Storage.CreateReadSessionRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
addRepeatedField
public Storage.CreateReadSessionRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Storage.CreateReadSessionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
mergeFrom
public Storage.CreateReadSessionRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Storage.CreateReadSessionRequest.Builder>- Throws:
IOException
-
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];- Specified by:
hasTableReferencein interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- Whether the tableReference field is set.
-
getTableReference
Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableReferencein interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The tableReference.
-
setTableReference
public Storage.CreateReadSessionRequest.Builder setTableReference(TableReferenceProto.TableReference value) Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; -
setTableReference
public Storage.CreateReadSessionRequest.Builder setTableReference(TableReferenceProto.TableReference.Builder builderForValue) Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeTableReference
public Storage.CreateReadSessionRequest.Builder mergeTableReference(TableReferenceProto.TableReference value) Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearTableReference
Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; -
getTableReferenceBuilder
Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; -
getTableReferenceOrBuilder
Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableReferenceOrBuilderin interfaceStorage.CreateReadSessionRequestOrBuilder
-
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) = { ... }- Specified by:
getParentin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getParentBytesin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
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:
- This builder for chaining.
-
setParentBytes
public Storage.CreateReadSessionRequest.Builder setParentBytes(com.google.protobuf.ByteString value) 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) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasTableModifiers
public boolean hasTableModifiers()Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2;- Specified by:
hasTableModifiersin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- Whether the tableModifiers field is set.
-
getTableModifiers
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2;- Specified by:
getTableModifiersin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The tableModifiers.
-
setTableModifiers
public Storage.CreateReadSessionRequest.Builder setTableModifiers(TableReferenceProto.TableModifiers value) Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; -
setTableModifiers
public Storage.CreateReadSessionRequest.Builder setTableModifiers(TableReferenceProto.TableModifiers.Builder builderForValue) Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; -
mergeTableModifiers
public Storage.CreateReadSessionRequest.Builder mergeTableModifiers(TableReferenceProto.TableModifiers value) Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; -
clearTableModifiers
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; -
getTableModifiersBuilder
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; -
getTableModifiersOrBuilder
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2;- Specified by:
getTableModifiersOrBuilderin interfaceStorage.CreateReadSessionRequestOrBuilder
-
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;- Specified by:
getRequestedStreamsin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The requestedStreams.
-
setRequestedStreams
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;- Parameters:
value- The requestedStreams to set.- Returns:
- This builder for chaining.
-
clearRequestedStreams
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:
- This builder for chaining.
-
hasReadOptions
public boolean hasReadOptions()Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;- Specified by:
hasReadOptionsin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- Whether the readOptions field is set.
-
getReadOptions
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;- Specified by:
getReadOptionsin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The readOptions.
-
setReadOptions
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; -
setReadOptions
public Storage.CreateReadSessionRequest.Builder setReadOptions(ReadOptions.TableReadOptions.Builder builderForValue) Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; -
mergeReadOptions
public Storage.CreateReadSessionRequest.Builder mergeReadOptions(ReadOptions.TableReadOptions value) Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; -
clearReadOptions
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; -
getReadOptionsBuilder
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; -
getReadOptionsOrBuilder
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;- Specified by:
getReadOptionsOrBuilderin interfaceStorage.CreateReadSessionRequestOrBuilder
-
getFormatValue
public int getFormatValue()Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;- Specified by:
getFormatValuein interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The enum numeric value on the wire for format.
-
setFormatValue
Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;- Parameters:
value- The enum numeric value on the wire for format to set.- Returns:
- This builder for chaining.
-
getFormat
Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;- Specified by:
getFormatin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The format.
-
setFormat
Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;- Parameters:
value- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
.google.cloud.bigquery.storage.v1beta1.DataFormat format = 5;- Returns:
- This builder for chaining.
-
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;- Specified by:
getShardingStrategyValuein interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The enum numeric value on the wire for shardingStrategy.
-
setShardingStrategyValue
The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.
.google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7;- Parameters:
value- The enum numeric value on the wire for shardingStrategy to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getShardingStrategyin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The shardingStrategy.
-
setShardingStrategy
The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.
.google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7;- Parameters:
value- The shardingStrategy to set.- Returns:
- This builder for chaining.
-
clearShardingStrategy
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:
- This builder for chaining.
-
setUnknownFields
public final Storage.CreateReadSessionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-
mergeUnknownFields
public final Storage.CreateReadSessionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
-