<?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.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest</code>
 */
class BatchCreateTensorboardRunsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the TensorboardExperiment to create the
     * TensorboardRuns in. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     * The parent field in the CreateTensorboardRunRequest messages must match
     * this field.
     *
     * 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 TensorboardRuns to create.
     * A maximum of 1000 TensorboardRuns can be created in a batch.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.CreateTensorboardRunRequest 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
     *           TensorboardRuns in. Format:
     *           `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     *           The parent field in the CreateTensorboardRunRequest messages must match
     *           this field.
     *     @type array<\Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest>|\Google\Protobuf\Internal\RepeatedField $requests
     *           Required. The request message specifying the TensorboardRuns to create.
     *           A maximum of 1000 TensorboardRuns 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
     * TensorboardRuns in. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     * The parent field in the CreateTensorboardRunRequest messages must match
     * this field.
     *
     * 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
     * TensorboardRuns in. Format:
     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
     * The parent field in the CreateTensorboardRunRequest messages must match
     * this field.
     *
     * 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 TensorboardRuns to create.
     * A maximum of 1000 TensorboardRuns can be created in a batch.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.CreateTensorboardRunRequest 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 TensorboardRuns to create.
     * A maximum of 1000 TensorboardRuns can be created in a batch.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.CreateTensorboardRunRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRequests($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest::class);
        $this->requests = $arr;

        return $this;
    }

}

