<?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.Scenario</code>
 */
class Scenario 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>string label = 3;</code>
     */
    protected $label = '';
    /**
     * Generated from protobuf field <code>string instructions = 4;</code>
     */
    protected $instructions = '';
    /**
     * Generated from protobuf field <code>string agent_expectations = 5;</code>
     */
    protected $agent_expectations = '';
    /**
     * Generated from protobuf field <code>string source_room_id = 6;</code>
     */
    protected $source_room_id = '';
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 7;</code>
     */
    protected $created_at = null;
    /**
     * Generated from protobuf field <code>.livekit.Scenario.Status status = 8;</code>
     */
    protected $status = 0;
    /**
     * Generated from protobuf field <code>string error = 9;</code>
     */
    protected $error = '';
    /**
     * Generated from protobuf field <code>string group_id = 10;</code>
     */
    protected $group_id = '';
    /**
     * Set as participant attributes on the simulation participant's access token.
     *
     * Generated from protobuf field <code>map<string, string> metadata = 11;</code>
     */
    private $metadata;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type string $project_id
     *     @type string $label
     *     @type string $instructions
     *     @type string $agent_expectations
     *     @type string $source_room_id
     *     @type \Google\Protobuf\Timestamp $created_at
     *     @type int $status
     *     @type string $error
     *     @type string $group_id
     *     @type array|\Google\Protobuf\Internal\MapField $metadata
     *           Set as participant attributes on the simulation participant's access token.
     * }
     */
    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>string label = 3;</code>
     * @return string
     */
    public function getLabel()
    {
        return $this->label;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string instructions = 4;</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 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 source_room_id = 6;</code>
     * @return string
     */
    public function getSourceRoomId()
    {
        return $this->source_room_id;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 7;</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 = 7;</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>.livekit.Scenario.Status status = 8;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string error = 9;</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 group_id = 10;</code>
     * @return string
     */
    public function getGroupId()
    {
        return $this->group_id;
    }

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

        return $this;
    }

    /**
     * Set as participant attributes on the simulation participant's access token.
     *
     * Generated from protobuf field <code>map<string, string> metadata = 11;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    /**
     * Set as participant attributes on the simulation participant's access token.
     *
     * Generated from protobuf field <code>map<string, string> metadata = 11;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setMetadata($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->metadata = $arr;

        return $this;
    }

}

