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

namespace Google\Cloud\Bigtable\Admin\V2\AuthorizedView;

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

/**
 * Defines a simple AuthorizedView that is a subset of the underlying Table.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.AuthorizedView.SubsetView</code>
 */
class SubsetView extends \Google\Protobuf\Internal\Message
{
    /**
     * Row prefixes to be included in the AuthorizedView.
     * To provide access to all rows, include the empty string as a prefix ("").
     *
     * Generated from protobuf field <code>repeated bytes row_prefixes = 1;</code>
     */
    private $row_prefixes;
    /**
     * Map from column family name to the columns in this family to be included
     * in the AuthorizedView.
     *
     * Generated from protobuf field <code>map<string, .google.bigtable.admin.v2.AuthorizedView.FamilySubsets> family_subsets = 2;</code>
     */
    private $family_subsets;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $row_prefixes
     *           Row prefixes to be included in the AuthorizedView.
     *           To provide access to all rows, include the empty string as a prefix ("").
     *     @type array|\Google\Protobuf\Internal\MapField $family_subsets
     *           Map from column family name to the columns in this family to be included
     *           in the AuthorizedView.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce();
        parent::__construct($data);
    }

    /**
     * Row prefixes to be included in the AuthorizedView.
     * To provide access to all rows, include the empty string as a prefix ("").
     *
     * Generated from protobuf field <code>repeated bytes row_prefixes = 1;</code>
     * @return RepeatedField<string>
     */
    public function getRowPrefixes()
    {
        return $this->row_prefixes;
    }

    /**
     * Row prefixes to be included in the AuthorizedView.
     * To provide access to all rows, include the empty string as a prefix ("").
     *
     * Generated from protobuf field <code>repeated bytes row_prefixes = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setRowPrefixes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES);
        $this->row_prefixes = $arr;

        return $this;
    }

    /**
     * Map from column family name to the columns in this family to be included
     * in the AuthorizedView.
     *
     * Generated from protobuf field <code>map<string, .google.bigtable.admin.v2.AuthorizedView.FamilySubsets> family_subsets = 2;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getFamilySubsets()
    {
        return $this->family_subsets;
    }

    /**
     * Map from column family name to the columns in this family to be included
     * in the AuthorizedView.
     *
     * Generated from protobuf field <code>map<string, .google.bigtable.admin.v2.AuthorizedView.FamilySubsets> family_subsets = 2;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setFamilySubsets($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\FamilySubsets::class);
        $this->family_subsets = $arr;

        return $this;
    }

}

