<?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.UpdateTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UpdateTensorboardRunRequest</code>
 */
class UpdateTensorboardRunRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Field mask is used to specify the fields to be overwritten in the
     * TensorboardRun 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 TensorboardRun's `name` field is used to identify the
     * TensorboardRun to be updated. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $tensorboard_run = 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
     *           TensorboardRun 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\TensorboardRun $tensorboard_run
     *           Required. The TensorboardRun's `name` field is used to identify the
     *           TensorboardRun to be updated. Format:
     *           `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
     * }
     */
    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
     * TensorboardRun 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
     * TensorboardRun 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 TensorboardRun's `name` field is used to identify the
     * TensorboardRun to be updated. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\TensorboardRun|null
     */
    public function getTensorboardRun()
    {
        return $this->tensorboard_run;
    }

    public function hasTensorboardRun()
    {
        return isset($this->tensorboard_run);
    }

    public function clearTensorboardRun()
    {
        unset($this->tensorboard_run);
    }

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

        return $this;
    }

}

