<?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.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ReadTensorboardUsageRequest</code>
 */
class ReadTensorboardUsageRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the Tensorboard resource.
     * Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *
     * Generated from protobuf field <code>string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $tensorboard = '';

    /**
     * @param string $tensorboard Required. The name of the Tensorboard resource.
     *                            Format:
     *                            `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *                            Please see {@see TensorboardServiceClient::tensorboardName()} for help formatting this field.
     *
     * @return \Google\Cloud\AIPlatform\V1\ReadTensorboardUsageRequest
     *
     * @experimental
     */
    public static function build(string $tensorboard): self
    {
        return (new self())
            ->setTensorboard($tensorboard);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $tensorboard
     *           Required. The name of the Tensorboard resource.
     *           Format:
     *           `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the Tensorboard resource.
     * Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *
     * Generated from protobuf field <code>string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getTensorboard()
    {
        return $this->tensorboard;
    }

    /**
     * Required. The name of the Tensorboard resource.
     * Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
     *
     * Generated from protobuf field <code>string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setTensorboard($var)
    {
        GPBUtil::checkString($var, True);
        $this->tensorboard = $var;

        return $this;
    }

}

