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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SimulationRun</code>
 */
class SimulationRun extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>string project_id = 2;</code>
     */
    protected $project_id = '';
    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Status status = 3;</code>
     */
    protected $status = 0;
    /**
     * Generated from protobuf field <code>string agent_description = 4;</code>
     */
    protected $agent_description = '';
    /**
     * Generated from protobuf field <code>string error = 5;</code>
     */
    protected $error = '';
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 6;</code>
     */
    protected $created_at = null;
    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRun.Job jobs = 7;</code>
     */
    private $jobs;
    /**
     * Generated from protobuf field <code>.livekit.SimulationRunSummary summary = 8;</code>
     */
    protected $summary = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type string $project_id
     *     @type int $status
     *     @type string $agent_description
     *     @type string $error
     *     @type \Google\Protobuf\Timestamp $created_at
     *     @type \Livekit\SimulationRun\Job[] $jobs
     *     @type \Livekit\SimulationRunSummary $summary
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentSimulation::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string project_id = 2;</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>.livekit.SimulationRun.Status status = 3;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Status status = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \Livekit\SimulationRun\Status::class);
        $this->status = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string agent_description = 4;</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>string error = 5;</code>
     * @return string
     */
    public function getError()
    {
        return $this->error;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 6;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    public function hasCreatedAt()
    {
        return isset($this->created_at);
    }

    public function clearCreatedAt()
    {
        unset($this->created_at);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 6;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->created_at = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRun.Job jobs = 7;</code>
     * @return RepeatedField<\Livekit\SimulationRun\Job>
     */
    public function getJobs()
    {
        return $this->jobs;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRun.Job jobs = 7;</code>
     * @param \Livekit\SimulationRun\Job[] $var
     * @return $this
     */
    public function setJobs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\SimulationRun\Job::class);
        $this->jobs = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SimulationRunSummary summary = 8;</code>
     * @return \Livekit\SimulationRunSummary|null
     */
    public function getSummary()
    {
        return $this->summary;
    }

    public function hasSummary()
    {
        return isset($this->summary);
    }

    public function clearSummary()
    {
        unset($this->summary);
    }

    /**
     * Generated from protobuf field <code>.livekit.SimulationRunSummary summary = 8;</code>
     * @param \Livekit\SimulationRunSummary $var
     * @return $this
     */
    public function setSummary($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SimulationRunSummary::class);
        $this->summary = $var;

        return $this;
    }

}

