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

namespace Google\Cloud\Bigtable\Admin\V2;

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

/**
 * Request message for BigtableInstanceAdmin.PartialUpdateInstance.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.PartialUpdateInstanceRequest</code>
 */
class PartialUpdateInstanceRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The Instance which will (partially) replace the current value.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.Instance instance = 1;</code>
     */
    private $instance = null;
    /**
     * The subset of Instance fields which should be replaced.
     * Must be explicitly set.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\Admin\V2\Instance $instance
     *           The Instance which will (partially) replace the current value.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           The subset of Instance fields which should be replaced.
     *           Must be explicitly set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * The Instance which will (partially) replace the current value.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.Instance instance = 1;</code>
     * @return \Google\Cloud\Bigtable\Admin\V2\Instance
     */
    public function getInstance()
    {
        return $this->instance;
    }

    /**
     * The Instance which will (partially) replace the current value.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.Instance instance = 1;</code>
     * @param \Google\Cloud\Bigtable\Admin\V2\Instance $var
     * @return $this
     */
    public function setInstance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Instance::class);
        $this->instance = $var;

        return $this;
    }

    /**
     * The subset of Instance fields which should be replaced.
     * Must be explicitly set.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    /**
     * The subset of Instance fields which should be replaced.
     * Must be explicitly set.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

