<?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.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest</code>
 */
class BatchCreateTensorboardTimeSeriesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the TensorboardExperiment to create the
     * TensorboardTimeSeries in.
     * Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     * The TensorboardRuns referenced by the parent fields in the
     * CreateTensorboardTimeSeriesRequest messages must be sub resources of this
     * TensorboardExperiment.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $parent = '';
    /**
     * Required. The request message specifying the TensorboardTimeSeries to
     * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $requests;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The resource name of the TensorboardExperiment to create the
     *           TensorboardTimeSeries in.
     *           Format:
     *           `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     *           The TensorboardRuns referenced by the parent fields in the
     *           CreateTensorboardTimeSeriesRequest messages must be sub resources of this
     *           TensorboardExperiment.
     *     @type array<\Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest>|\Google\Protobuf\Internal\RepeatedField $requests
     *           Required. The request message specifying the TensorboardTimeSeries to
     *           create. A maximum of 1000 TensorboardTimeSeries can be created in a batch.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The resource name of the TensorboardExperiment to create the
     * TensorboardTimeSeries in.
     * Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     * The TensorboardRuns referenced by the parent fields in the
     * CreateTensorboardTimeSeriesRequest messages must be sub resources of this
     * TensorboardExperiment.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The resource name of the TensorboardExperiment to create the
     * TensorboardTimeSeries in.
     * Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     * The TensorboardRuns referenced by the parent fields in the
     * CreateTensorboardTimeSeriesRequest messages must be sub resources of this
     * TensorboardExperiment.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. The request message specifying the TensorboardTimeSeries to
     * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRequests()
    {
        return $this->requests;
    }

    /**
     * Required. The request message specifying the TensorboardTimeSeries to
     * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRequests($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest::class);
        $this->requests = $arr;

        return $this;
    }

}

