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 typegoogle.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public Storage.CreateReadSessionRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Storage.CreateReadSessionRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Storage.CreateReadSessionRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Storage.CreateReadSessionRequest.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
public Storage.CreateReadSessionRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Storage.CreateReadSessionRequest.Builder>
-
mergeFrom
public Storage.CreateReadSessionRequest.Builder mergeFrom(Storage.CreateReadSessionRequest other)
-
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
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];- 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
public Storage.CreateReadSessionRequest.Builder clearTableReference()
Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];
-
getTableReferenceBuilder
public TableReferenceProto.TableReference.Builder getTableReferenceBuilder()
Required. Reference to the table to read.
.google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED];
-
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];- Specified by:
getTableReferenceOrBuilderin interfaceStorage.CreateReadSessionRequestOrBuilder
-
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) = { ... }- 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
public Storage.CreateReadSessionRequest.Builder setParent(String 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 parent to set.- Returns:
- This builder for chaining.
-
clearParent
public Storage.CreateReadSessionRequest.Builder 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
public TableReferenceProto.TableModifiers 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
public Storage.CreateReadSessionRequest.Builder clearTableModifiers()
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2;
-
getTableModifiersBuilder
public TableReferenceProto.TableModifiers.Builder getTableModifiersBuilder()
Any modifiers to the Table (e.g. snapshot timestamp).
.google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2;
-
getTableModifiersOrBuilder
public TableReferenceProto.TableModifiersOrBuilder 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
public Storage.CreateReadSessionRequest.Builder setRequestedStreams(int value)
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
public Storage.CreateReadSessionRequest.Builder 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
public ReadOptions.TableReadOptions 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
public Storage.CreateReadSessionRequest.Builder setReadOptions(ReadOptions.TableReadOptions value)
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
public Storage.CreateReadSessionRequest.Builder clearReadOptions()
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;
-
getReadOptionsBuilder
public ReadOptions.TableReadOptions.Builder getReadOptionsBuilder()
Read options for this session (e.g. column selection, filters).
.google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4;
-
getReadOptionsOrBuilder
public ReadOptions.TableReadOptionsOrBuilder 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
public Storage.CreateReadSessionRequest.Builder setFormatValue(int value)
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
public Storage.DataFormat 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
public Storage.CreateReadSessionRequest.Builder setFormat(Storage.DataFormat value)
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
public Storage.CreateReadSessionRequest.Builder 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
public Storage.CreateReadSessionRequest.Builder setShardingStrategyValue(int value)
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
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;- Specified by:
getShardingStrategyin interfaceStorage.CreateReadSessionRequestOrBuilder- Returns:
- The shardingStrategy.
-
setShardingStrategy
public Storage.CreateReadSessionRequest.Builder setShardingStrategy(Storage.ShardingStrategy value)
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
public Storage.CreateReadSessionRequest.Builder 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>
-
-