<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_agent_simulation.proto

namespace Livekit\SimulationRun\Create;

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

/**
 * Generated from protobuf message <code>livekit.SimulationRun.Create.Request</code>
 */
class Request extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string project_id = 1;</code>
     */
    protected $project_id = '';
    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>string agent_description = 3;</code>
     */
    protected $agent_description = '';
    /**
     * Generated from protobuf field <code>int32 num_simulations = 4;</code>
     */
    protected $num_simulations = 0;
    /**
     * Generated from protobuf field <code>string region = 6;</code>
     */
    protected $region = '';
    protected $source;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $project_id
     *     @type string $agent_name
     *     @type string $agent_description
     *     @type int $num_simulations
     *     @type string $region
     *     @type \Livekit\SimulationRun\Create\Scenarios $scenarios
     *     @type string $group_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentSimulation::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string project_id = 1;</code>
     * @return string
     */
    public function getProjectId()
    {
        return $this->project_id;
    }

    /**
     * Generated from protobuf field <code>string project_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->project_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     * @return string
     */
    public function getAgentName()
    {
        return $this->agent_name;
    }

    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAgentName($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string agent_description = 3;</code>
     * @return string
     */
    public function getAgentDescription()
    {
        return $this->agent_description;
    }

    /**
     * Generated from protobuf field <code>string agent_description = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setAgentDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_description = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 num_simulations = 4;</code>
     * @return int
     */
    public function getNumSimulations()
    {
        return $this->num_simulations;
    }

    /**
     * Generated from protobuf field <code>int32 num_simulations = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setNumSimulations($var)
    {
        GPBUtil::checkInt32($var);
        $this->num_simulations = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string region = 6;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * Generated from protobuf field <code>string region = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkString($var, True);
        $this->region = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Create.Scenarios scenarios = 7;</code>
     * @return \Livekit\SimulationRun\Create\Scenarios|null
     */
    public function getScenarios()
    {
        return $this->readOneof(7);
    }

    public function hasScenarios()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Create.Scenarios scenarios = 7;</code>
     * @param \Livekit\SimulationRun\Create\Scenarios $var
     * @return $this
     */
    public function setScenarios($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SimulationRun\Create\Scenarios::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>string group_id = 5;</code>
     * @return string
     */
    public function getGroupId()
    {
        return $this->readOneof(5);
    }

    public function hasGroupId()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>string group_id = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setGroupId($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getSource()
    {
        return $this->whichOneof("source");
    }

}

