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

namespace Google\Cloud\Bigtable\V2\RowFilter;

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

/**
 * A RowFilter which sends rows through several RowFilters in sequence.
 *
 * Generated from protobuf message <code>google.bigtable.v2.RowFilter.Chain</code>
 */
class Chain extends \Google\Protobuf\Internal\Message
{
    /**
     * The elements of "filters" are chained together to process the input row:
     * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row
     * The full chain is executed atomically.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.RowFilter filters = 1;</code>
     */
    private $filters;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\V2\RowFilter[]|\Google\Protobuf\Internal\RepeatedField $filters
     *           The elements of "filters" are chained together to process the input row:
     *           in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row
     *           The full chain is executed atomically.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * The elements of "filters" are chained together to process the input row:
     * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row
     * The full chain is executed atomically.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.RowFilter filters = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFilters()
    {
        return $this->filters;
    }

    /**
     * The elements of "filters" are chained together to process the input row:
     * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row
     * The full chain is executed atomically.
     *
     * Generated from protobuf field <code>repeated .google.bigtable.v2.RowFilter filters = 1;</code>
     * @param \Google\Cloud\Bigtable\V2\RowFilter[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFilters($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowFilter::class);
        $this->filters = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Chain::class, \Google\Cloud\Bigtable\V2\RowFilter_Chain::class);

