Class 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<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<CreateReadSessionRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateReadSessionRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReadSessionRequest.Builder>
      • addRepeatedField

        public CreateReadSessionRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReadSessionRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReadSessionRequest.Builder>
      • mergeFrom

        public CreateReadSessionRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateReadSessionRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The request project that owns the session, in the form of
         `projects/{project_id}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateReadSessionRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The request project that owns the session, in the form of
         `projects/{project_id}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateReadSessionRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateReadSessionRequest.Builder setParent​(String value)
         Required. The request project that owns the session, in the form of
         `projects/{project_id}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateReadSessionRequest.Builder clearParent()
         Required. The request project that owns the session, in the form of
         `projects/{project_id}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateReadSessionRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The request project that owns the session, in the form of
         `projects/{project_id}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasReadSession

        public boolean hasReadSession()
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasReadSession in interface CreateReadSessionRequestOrBuilder
        Returns:
        Whether the readSession field is set.
      • getReadSession

        public ReadSession getReadSession()
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getReadSession in interface CreateReadSessionRequestOrBuilder
        Returns:
        The readSession.
      • setReadSession

        public CreateReadSessionRequest.Builder setReadSession​(ReadSession value)
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
      • setReadSession

        public CreateReadSessionRequest.Builder setReadSession​(ReadSession.Builder builderForValue)
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeReadSession

        public CreateReadSessionRequest.Builder mergeReadSession​(ReadSession value)
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearReadSession

        public CreateReadSessionRequest.Builder clearReadSession()
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
      • getReadSessionBuilder

        public ReadSession.Builder getReadSessionBuilder()
         Required. Session to be created.
         
        .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED];
      • getMaxStreamCount

        public int getMaxStreamCount()
         Max initial number of streams. If unset or zero, the server 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. Error
         will be returned if the max count is greater than the current system
         max limit of 1,000.
        
         Streams must be read starting from offset 0.
         
        int32 max_stream_count = 3;
        Specified by:
        getMaxStreamCount in interface CreateReadSessionRequestOrBuilder
        Returns:
        The maxStreamCount.
      • setMaxStreamCount

        public CreateReadSessionRequest.Builder setMaxStreamCount​(int value)
         Max initial number of streams. If unset or zero, the server 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. Error
         will be returned if the max count is greater than the current system
         max limit of 1,000.
        
         Streams must be read starting from offset 0.
         
        int32 max_stream_count = 3;
        Parameters:
        value - The maxStreamCount to set.
        Returns:
        This builder for chaining.
      • clearMaxStreamCount

        public CreateReadSessionRequest.Builder clearMaxStreamCount()
         Max initial number of streams. If unset or zero, the server 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. Error
         will be returned if the max count is greater than the current system
         max limit of 1,000.
        
         Streams must be read starting from offset 0.
         
        int32 max_stream_count = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateReadSessionRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReadSessionRequest.Builder>
      • mergeUnknownFields

        public final CreateReadSessionRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReadSessionRequest.Builder>