<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Spanner;

class UpdateInstanceRequest extends \Google\Model
{
  /**
   * Required. A mask specifying which fields in Instance should be updated. The
   * field mask must always be specified; this prevents any future fields in
   * Instance from being erased accidentally by clients that do not know about
   * them.
   *
   * @var string
   */
  public $fieldMask;
  protected $instanceType = Instance::class;
  protected $instanceDataType = '';

  /**
   * Required. A mask specifying which fields in Instance should be updated. The
   * field mask must always be specified; this prevents any future fields in
   * Instance from being erased accidentally by clients that do not know about
   * them.
   *
   * @param string $fieldMask
   */
  public function setFieldMask($fieldMask)
  {
    $this->fieldMask = $fieldMask;
  }
  /**
   * @return string
   */
  public function getFieldMask()
  {
    return $this->fieldMask;
  }
  /**
   * Required. The instance to update, which must always include the instance
   * name. Otherwise, only fields mentioned in field_mask need be included.
   *
   * @param Instance $instance
   */
  public function setInstance(Instance $instance)
  {
    $this->instance = $instance;
  }
  /**
   * @return Instance
   */
  public function getInstance()
  {
    return $this->instance;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateInstanceRequest::class, 'Google_Service_Spanner_UpdateInstanceRequest');
