<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/tensorboard_service.proto

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Request message for
 * [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UpdateTensorboardRequest</code>
 */
class UpdateTensorboardRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Field mask is used to specify the fields to be overwritten in the
     * Tensorboard resource by the update.
     * The fields specified in the update_mask are relative to the resource, not
     * the full request. A field is overwritten if it's in the mask. If the
     * user does not provide a mask then all fields are overwritten if new
     * values are specified.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $update_mask = null;
    /**
     * Required. The Tensorboard's `name` field is used to identify the
     * Tensorboard to be updated. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $tensorboard = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Required. Field mask is used to specify the fields to be overwritten in the
     *           Tensorboard resource by the update.
     *           The fields specified in the update_mask are relative to the resource, not
     *           the full request. A field is overwritten if it's in the mask. If the
     *           user does not provide a mask then all fields are overwritten if new
     *           values are specified.
     *     @type \Google\Cloud\AIPlatform\V1\Tensorboard $tensorboard
     *           Required. The Tensorboard's `name` field is used to identify the
     *           Tensorboard to be updated. Format:
     *           `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Field mask is used to specify the fields to be overwritten in the
     * Tensorboard resource by the update.
     * The fields specified in the update_mask are relative to the resource, not
     * the full request. A field is overwritten if it's in the mask. If the
     * user does not provide a mask then all fields are overwritten if new
     * values are specified.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Required. Field mask is used to specify the fields to be overwritten in the
     * Tensorboard resource by the update.
     * The fields specified in the update_mask are relative to the resource, not
     * the full request. A field is overwritten if it's in the mask. If the
     * user does not provide a mask then all fields are overwritten if new
     * values are specified.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];</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;
    }

    /**
     * Required. The Tensorboard's `name` field is used to identify the
     * Tensorboard to be updated. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\Tensorboard|null
     */
    public function getTensorboard()
    {
        return $this->tensorboard;
    }

    public function hasTensorboard()
    {
        return isset($this->tensorboard);
    }

    public function clearTensorboard()
    {
        unset($this->tensorboard);
    }

    /**
     * Required. The Tensorboard's `name` field is used to identify the
     * Tensorboard to be updated. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\Tensorboard $var
     * @return $this
     */
    public function setTensorboard($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Tensorboard::class);
        $this->tensorboard = $var;

        return $this;
    }

}

