<?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.RoomAgentDispatch</code>
 */
class RoomAgentDispatch extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string agent_name = 1;</code>
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>string metadata = 2 [(.logger.sensitivity) = SENSITIVITY_PII];</code>
     */
    protected $metadata = '';
    /**
     * cloud only
     *
     * Generated from protobuf field <code>.livekit.JobRestartPolicy restart_policy = 3;</code>
     */
    protected $restart_policy = 0;
    /**
     * Generated from protobuf field <code>string deployment = 4;</code>
     */
    protected $deployment = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_name
     *     @type string $metadata
     *     @type int $restart_policy
     *           cloud only
     *     @type string $deployment
     * }
     */
    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 metadata = 2 [(.logger.sensitivity) = SENSITIVITY_PII];</code>
     * @return string
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    /**
     * Generated from protobuf field <code>string metadata = 2 [(.logger.sensitivity) = SENSITIVITY_PII];</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 = 3;</code>
     * @return int
     */
    public function getRestartPolicy()
    {
        return $this->restart_policy;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

