<?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;

/**
 * ResultSet schema in proto format
 *
 * Generated from protobuf message <code>google.bigtable.v2.ProtoSchema</code>
 */
class ProtoSchema extends \Google\Protobuf\Internal\Message
{
    /**
     * The columns in the result set.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.ColumnMetadata columns = 1;</code>
     */
    private $columns;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Bigtable\V2\ColumnMetadata>|\Google\Protobuf\Internal\RepeatedField $columns
     *           The columns in the result set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * The columns in the result set.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.ColumnMetadata columns = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getColumns()
    {
        return $this->columns;
    }

    /**
     * The columns in the result set.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.ColumnMetadata columns = 1;</code>
     * @param array<\Google\Cloud\Bigtable\V2\ColumnMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setColumns($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ColumnMetadata::class);
        $this->columns = $arr;

        return $this;
    }

}

