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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.AvailabilityResponse</code>
 */
class AvailabilityResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string job_id = 1 [(.logger.name) = "jobID"];</code>
     */
    protected $job_id = '';
    /**
     * Generated from protobuf field <code>bool available = 2;</code>
     */
    protected $available = false;
    /**
     * Generated from protobuf field <code>bool supports_resume = 3;</code>
     */
    protected $supports_resume = false;
    /**
     * Generated from protobuf field <code>bool terminate = 8;</code>
     */
    protected $terminate = false;
    /**
     * Generated from protobuf field <code>string participant_name = 4;</code>
     */
    protected $participant_name = '';
    /**
     * Generated from protobuf field <code>string participant_identity = 5;</code>
     */
    protected $participant_identity = '';
    /**
     * Generated from protobuf field <code>string participant_metadata = 6;</code>
     */
    protected $participant_metadata = '';
    /**
     * NEXT_ID: 9
     *
     * Generated from protobuf field <code>map<string, string> participant_attributes = 7;</code>
     */
    private $participant_attributes;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $job_id
     *     @type bool $available
     *     @type bool $supports_resume
     *     @type bool $terminate
     *     @type string $participant_name
     *     @type string $participant_identity
     *     @type string $participant_metadata
     *     @type array|\Google\Protobuf\Internal\MapField $participant_attributes
     *           NEXT_ID: 9
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgent::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string job_id = 1 [(.logger.name) = "jobID"];</code>
     * @return string
     */
    public function getJobId()
    {
        return $this->job_id;
    }

    /**
     * Generated from protobuf field <code>string job_id = 1 [(.logger.name) = "jobID"];</code>
     * @param string $var
     * @return $this
     */
    public function setJobId($var)
    {
        GPBUtil::checkString($var, True);
        $this->job_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool available = 2;</code>
     * @return bool
     */
    public function getAvailable()
    {
        return $this->available;
    }

    /**
     * Generated from protobuf field <code>bool available = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setAvailable($var)
    {
        GPBUtil::checkBool($var);
        $this->available = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool supports_resume = 3;</code>
     * @return bool
     */
    public function getSupportsResume()
    {
        return $this->supports_resume;
    }

    /**
     * Generated from protobuf field <code>bool supports_resume = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setSupportsResume($var)
    {
        GPBUtil::checkBool($var);
        $this->supports_resume = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool terminate = 8;</code>
     * @return bool
     */
    public function getTerminate()
    {
        return $this->terminate;
    }

    /**
     * Generated from protobuf field <code>bool terminate = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setTerminate($var)
    {
        GPBUtil::checkBool($var);
        $this->terminate = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * NEXT_ID: 9
     *
     * Generated from protobuf field <code>map<string, string> participant_attributes = 7;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getParticipantAttributes()
    {
        return $this->participant_attributes;
    }

    /**
     * NEXT_ID: 9
     *
     * Generated from protobuf field <code>map<string, string> participant_attributes = 7;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setParticipantAttributes($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->participant_attributes = $arr;

        return $this;
    }

}

