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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.CreateAgentDispatchRequest</code>
 */
class CreateAgentDispatchRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string agent_name = 1;</code>
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>string room = 2;</code>
     */
    protected $room = '';
    /**
     * Generated from protobuf field <code>string metadata = 3 [(.logger.redact) = true];</code>
     */
    protected $metadata = '';
    /**
     * cloud only
     *
     * Generated from protobuf field <code>.livekit.JobRestartPolicy restart_policy = 4;</code>
     */
    protected $restart_policy = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_name
     *     @type string $room
     *     @type string $metadata
     *     @type int $restart_policy
     *           cloud only
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentDispatch::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string agent_name = 1;</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 room = 2;</code>
     * @return string
     */
    public function getRoom()
    {
        return $this->room;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string metadata = 3 [(.logger.redact) = true];</code>
     * @return string
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    /**
     * Generated from protobuf field <code>string metadata = 3 [(.logger.redact) = true];</code>
     * @param string $var
     * @return $this
     */
    public function setMetadata($var)
    {
        GPBUtil::checkString($var, True);
        $this->metadata = $var;

        return $this;
    }

    /**
     * cloud only
     *
     * Generated from protobuf field <code>.livekit.JobRestartPolicy restart_policy = 4;</code>
     * @return int
     */
    public function getRestartPolicy()
    {
        return $this->restart_policy;
    }

    /**
     * cloud only
     *
     * Generated from protobuf field <code>.livekit.JobRestartPolicy restart_policy = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setRestartPolicy($var)
    {
        GPBUtil::checkEnum($var, \Livekit\JobRestartPolicy::class);
        $this->restart_policy = $var;

        return $this;
    }

}

