<?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;
    /**
     * Generated from protobuf field <code>string agent_name = 9;</code>
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>.livekit.ScenarioGroup scenario_group = 10;</code>
     */
    protected $scenario_group = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp ended_at = 11;</code>
     */
    protected $ended_at = null;
    /**
     * Generated from protobuf field <code>int32 job_count = 12;</code>
     */
    protected $job_count = 0;
    /**
     * Generated from protobuf field <code>int32 passed_count = 13;</code>
     */
    protected $passed_count = 0;
    /**
     * Generated from protobuf field <code>int32 failed_count = 14;</code>
     */
    protected $failed_count = 0;
    /**
     * Generated from protobuf field <code>int32 num_simulations = 15;</code>
     */
    protected $num_simulations = 0;
    /**
     * Aggregate usage across all jobs in this run (sum of Job.usage).
     *
     * Generated from protobuf field <code>.livekit.SimulationRun.Usage usage = 16;</code>
     */
    protected $usage = 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
     *     @type string $agent_name
     *     @type \Livekit\ScenarioGroup $scenario_group
     *     @type \Google\Protobuf\Timestamp $ended_at
     *     @type int $job_count
     *     @type int $passed_count
     *     @type int $failed_count
     *     @type int $num_simulations
     *     @type \Livekit\SimulationRun\Usage $usage
     *           Aggregate usage across all jobs in this run (sum of Job.usage).
     * }
     */
    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;
    }

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

    /**
     * Generated from protobuf field <code>string agent_name = 9;</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>.livekit.ScenarioGroup scenario_group = 10;</code>
     * @return \Livekit\ScenarioGroup|null
     */
    public function getScenarioGroup()
    {
        return $this->scenario_group;
    }

    public function hasScenarioGroup()
    {
        return isset($this->scenario_group);
    }

    public function clearScenarioGroup()
    {
        unset($this->scenario_group);
    }

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

        return $this;
    }

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

    public function hasEndedAt()
    {
        return isset($this->ended_at);
    }

    public function clearEndedAt()
    {
        unset($this->ended_at);
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Aggregate usage across all jobs in this run (sum of Job.usage).
     *
     * Generated from protobuf field <code>.livekit.SimulationRun.Usage usage = 16;</code>
     * @return \Livekit\SimulationRun\Usage|null
     */
    public function getUsage()
    {
        return $this->usage;
    }

    public function hasUsage()
    {
        return isset($this->usage);
    }

    public function clearUsage()
    {
        unset($this->usage);
    }

    /**
     * Aggregate usage across all jobs in this run (sum of Job.usage).
     *
     * Generated from protobuf field <code>.livekit.SimulationRun.Usage usage = 16;</code>
     * @param \Livekit\SimulationRun\Usage $var
     * @return $this
     */
    public function setUsage($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SimulationRun\Usage::class);
        $this->usage = $var;

        return $this;
    }

}

