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

namespace Livekit\SimulationRun;

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

/**
 * Generated from protobuf message <code>livekit.SimulationRun.Job</code>
 */
class Job extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Job.Status status = 2;</code>
     */
    protected $status = 0;
    /**
     * Generated from protobuf field <code>string instructions = 3;</code>
     */
    protected $instructions = '';
    /**
     * Generated from protobuf field <code>string error = 4;</code>
     */
    protected $error = '';
    /**
     * Generated from protobuf field <code>string agent_expectations = 5;</code>
     */
    protected $agent_expectations = '';
    /**
     * Generated from protobuf field <code>string label = 6;</code>
     */
    protected $label = '';
    /**
     * Generated from protobuf field <code>repeated string tags = 7;</code>
     */
    private $tags;
    /**
     * Generated from protobuf field <code>string room_name = 8;</code>
     */
    protected $room_name = '';
    /**
     * Generated from protobuf field <code>string scenario_id = 9;</code>
     */
    protected $scenario_id = '';
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp started_at = 10;</code>
     */
    protected $started_at = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp ended_at = 11;</code>
     */
    protected $ended_at = null;
    /**
     * Generated from protobuf field <code>string room_id = 12;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Job.Usage usage = 13;</code>
     */
    protected $usage = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type int $status
     *     @type string $instructions
     *     @type string $error
     *     @type string $agent_expectations
     *     @type string $label
     *     @type string[] $tags
     *     @type string $room_name
     *     @type string $scenario_id
     *     @type \Google\Protobuf\Timestamp $started_at
     *     @type \Google\Protobuf\Timestamp $ended_at
     *     @type string $room_id
     *     @type \Livekit\SimulationRun\Job\Usage $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>.livekit.SimulationRun.Job.Status status = 2;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string tags = 7;</code>
     * @return RepeatedField<string>
     */
    public function getTags()
    {
        return $this->tags;
    }

    /**
     * Generated from protobuf field <code>repeated string tags = 7;</code>
     * @param string[] $var
     * @return $this
     */
    public function setTags($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->tags = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string room_name = 8;</code>
     * @return string
     */
    public function getRoomName()
    {
        return $this->room_name;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasStartedAt()
    {
        return isset($this->started_at);
    }

    public function clearStartedAt()
    {
        unset($this->started_at);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp started_at = 10;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setStartedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->started_at = $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>string room_id = 12;</code>
     * @return string
     */
    public function getRoomId()
    {
        return $this->room_id;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Job.Usage usage = 13;</code>
     * @return \Livekit\SimulationRun\Job\Usage|null
     */
    public function getUsage()
    {
        return $this->usage;
    }

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

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

    /**
     * Generated from protobuf field <code>.livekit.SimulationRun.Job.Usage usage = 13;</code>
     * @param \Livekit\SimulationRun\Job\Usage $var
     * @return $this
     */
    public function setUsage($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SimulationRun\Job\Usage::class);
        $this->usage = $var;

        return $this;
    }

}

