<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/storage.proto

namespace Google\Cloud\BigQuery\Storage\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Response message for `SplitReadStream`.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.storage.v1.SplitReadStreamResponse</code>
 */
class SplitReadStreamResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Primary stream, which contains the beginning portion of
     * |original_stream|. An empty value indicates that the original stream can no
     * longer be split.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1;</code>
     */
    private $primary_stream = null;
    /**
     * Remainder stream, which contains the tail of |original_stream|. An empty
     * value indicates that the original stream can no longer be split.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2;</code>
     */
    private $remainder_stream = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\BigQuery\Storage\V1\ReadStream $primary_stream
     *           Primary stream, which contains the beginning portion of
     *           |original_stream|. An empty value indicates that the original stream can no
     *           longer be split.
     *     @type \Google\Cloud\BigQuery\Storage\V1\ReadStream $remainder_stream
     *           Remainder stream, which contains the tail of |original_stream|. An empty
     *           value indicates that the original stream can no longer be split.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Storage::initOnce();
        parent::__construct($data);
    }

    /**
     * Primary stream, which contains the beginning portion of
     * |original_stream|. An empty value indicates that the original stream can no
     * longer be split.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1;</code>
     * @return \Google\Cloud\BigQuery\Storage\V1\ReadStream
     */
    public function getPrimaryStream()
    {
        return $this->primary_stream;
    }

    /**
     * Primary stream, which contains the beginning portion of
     * |original_stream|. An empty value indicates that the original stream can no
     * longer be split.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1;</code>
     * @param \Google\Cloud\BigQuery\Storage\V1\ReadStream $var
     * @return $this
     */
    public function setPrimaryStream($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Storage\V1\ReadStream::class);
        $this->primary_stream = $var;

        return $this;
    }

    /**
     * Remainder stream, which contains the tail of |original_stream|. An empty
     * value indicates that the original stream can no longer be split.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2;</code>
     * @return \Google\Cloud\BigQuery\Storage\V1\ReadStream
     */
    public function getRemainderStream()
    {
        return $this->remainder_stream;
    }

    /**
     * Remainder stream, which contains the tail of |original_stream|. An empty
     * value indicates that the original stream can no longer be split.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2;</code>
     * @param \Google\Cloud\BigQuery\Storage\V1\ReadStream $var
     * @return $this
     */
    public function setRemainderStream($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Storage\V1\ReadStream::class);
        $this->remainder_stream = $var;

        return $this;
    }

}

