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

/**
 * Specifies (some of) the contents of a single row/column family intersection
 * of a table.
 *
 * Generated from protobuf message <code>google.bigtable.v2.Family</code>
 */
class Family extends \Google\Protobuf\Internal\Message
{
    /**
     * The unique key which identifies this family within its row. This is the
     * same key that's used to identify the family in, for example, a RowFilter
     * which sets its "family_name_regex_filter" field.
     * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may
     * produce cells in a sentinel family with an empty name.
     * Must be no greater than 64 characters in length.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Must not be empty. Sorted in order of increasing "qualifier".
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Column columns = 2;</code>
     */
    private $columns;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The unique key which identifies this family within its row. This is the
     *           same key that's used to identify the family in, for example, a RowFilter
     *           which sets its "family_name_regex_filter" field.
     *           Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may
     *           produce cells in a sentinel family with an empty name.
     *           Must be no greater than 64 characters in length.
     *     @type array<\Google\Cloud\Bigtable\V2\Column>|\Google\Protobuf\Internal\RepeatedField $columns
     *           Must not be empty. Sorted in order of increasing "qualifier".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * The unique key which identifies this family within its row. This is the
     * same key that's used to identify the family in, for example, a RowFilter
     * which sets its "family_name_regex_filter" field.
     * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may
     * produce cells in a sentinel family with an empty name.
     * Must be no greater than 64 characters in length.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The unique key which identifies this family within its row. This is the
     * same key that's used to identify the family in, for example, a RowFilter
     * which sets its "family_name_regex_filter" field.
     * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may
     * produce cells in a sentinel family with an empty name.
     * Must be no greater than 64 characters in length.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Must not be empty. Sorted in order of increasing "qualifier".
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Column columns = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getColumns()
    {
        return $this->columns;
    }

    /**
     * Must not be empty. Sorted in order of increasing "qualifier".
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Column columns = 2;</code>
     * @param array<\Google\Cloud\Bigtable\V2\Column>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setColumns($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Column::class);
        $this->columns = $arr;

        return $this;
    }

}

