Class Storage.CreateReadSessionRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
      • getDefaultInstanceForType

        public Storage.CreateReadSessionRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Storage.CreateReadSessionRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Storage.CreateReadSessionRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Storage.CreateReadSessionRequest.Builder>
      • 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:
        hasTableReference in interface Storage.CreateReadSessionRequestOrBuilder
        Returns:
        Whether the tableReference field is set.
      • 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];
      • 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:
        getParent in interface Storage.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:
        getParentBytes in interface Storage.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:
        hasTableModifiers in interface Storage.CreateReadSessionRequestOrBuilder
        Returns:
        Whether the tableModifiers field is set.
      • 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;
      • 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:
        getRequestedStreams in interface Storage.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:
        hasReadOptions in interface Storage.CreateReadSessionRequestOrBuilder
        Returns:
        Whether the readOptions field is set.
      • 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;
      • 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:
        getFormatValue in interface Storage.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.
      • 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:
        getShardingStrategyValue in interface Storage.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.
      • 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.