<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/v2/data.proto

namespace Google\Cloud\Bigtable\V2;

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

/**
 * NOTE: This API is intended to be used by Apache Beam BigtableIO.
 * The information required to continue reading the data from multiple
 * `StreamPartitions` from where a previous read left off.
 *
 * Generated from protobuf message <code>google.bigtable.v2.StreamContinuationTokens</code>
 */
class StreamContinuationTokens extends \Google\Protobuf\Internal\Message
{
    /**
     * List of continuation tokens.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.StreamContinuationToken tokens = 1;</code>
     */
    private $tokens;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Bigtable\V2\StreamContinuationToken>|\Google\Protobuf\Internal\RepeatedField $tokens
     *           List of continuation tokens.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * List of continuation tokens.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.StreamContinuationToken tokens = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTokens()
    {
        return $this->tokens;
    }

    /**
     * List of continuation tokens.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.StreamContinuationToken tokens = 1;</code>
     * @param array<\Google\Cloud\Bigtable\V2\StreamContinuationToken>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTokens($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class);
        $this->tokens = $arr;

        return $this;
    }

}

