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

namespace Google\Cloud\Bigtable\V2;

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

/**
 * Internal usage only.
 *
 * Generated from protobuf message <code>google.bigtable.v2.SessionMutateRowRequest</code>
 */
class SessionMutateRowRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bytes key = 1;</code>
     */
    protected $key = '';
    /**
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Mutation mutations = 2;</code>
     */
    private $mutations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $key
     *     @type \Google\Cloud\Bigtable\V2\Mutation[] $mutations
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bytes key = 1;</code>
     * @return string
     */
    public function getKey()
    {
        return $this->key;
    }

    /**
     * Generated from protobuf field <code>bytes key = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->key = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Mutation mutations = 2;</code>
     * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation>
     */
    public function getMutations()
    {
        return $this->mutations;
    }

    /**
     * Generated from protobuf field <code>repeated .google.bigtable.v2.Mutation mutations = 2;</code>
     * @param \Google\Cloud\Bigtable\V2\Mutation[] $var
     * @return $this
     */
    public function setMutations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class);
        $this->mutations = $arr;

        return $this;
    }

}

