<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Rows represented in proto format.
 * This should be constructed by concatenating the `batch_data` from each
 * of the relevant `ProtoRowsBatch` messages and parsing the result as a
 * `ProtoRows` message.
 *
 * Generated from protobuf message <code>google.bigtable.v2.ProtoRows</code>
 */
class ProtoRows extends \Google\Protobuf\Internal\Message
{
    /**
     * A proto rows message consists of a list of values. Every N complete values
     * defines a row, where N is equal to the  number of entries in the
     * `metadata.proto_schema.columns` value received in the first response.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Value values = 2;</code>
     */
    private $values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\V2\Value[] $values
     *           A proto rows message consists of a list of values. Every N complete values
     *           defines a row, where N is equal to the  number of entries in the
     *           `metadata.proto_schema.columns` value received in the first response.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * A proto rows message consists of a list of values. Every N complete values
     * defines a row, where N is equal to the  number of entries in the
     * `metadata.proto_schema.columns` value received in the first response.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Value values = 2;</code>
     * @return RepeatedField<\Google\Cloud\Bigtable\V2\Value>
     */
    public function getValues()
    {
        return $this->values;
    }

    /**
     * A proto rows message consists of a list of values. Every N complete values
     * defines a row, where N is equal to the  number of entries in the
     * `metadata.proto_schema.columns` value received in the first response.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Value values = 2;</code>
     * @param \Google\Cloud\Bigtable\V2\Value[] $var
     * @return $this
     */
    public function setValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class);
        $this->values = $arr;

        return $this;
    }

}

