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

/**
 * 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 \Google\Cloud\Bigtable\V2\ColumnMetadata[] $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 RepeatedField<\Google\Cloud\Bigtable\V2\ColumnMetadata>
     */
    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 \Google\Cloud\Bigtable\V2\ColumnMetadata[] $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;
    }

}

