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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.WrappedJoinRequest</code>
 */
class WrappedJoinRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.livekit.WrappedJoinRequest.Compression compression = 1;</code>
     */
    protected $compression = 0;
    /**
     * marshalled JoinRequest + potentially compressed
     *
     * Generated from protobuf field <code>bytes join_request = 2;</code>
     */
    protected $join_request = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $compression
     *     @type string $join_request
     *           marshalled JoinRequest + potentially compressed
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.WrappedJoinRequest.Compression compression = 1;</code>
     * @return int
     */
    public function getCompression()
    {
        return $this->compression;
    }

    /**
     * Generated from protobuf field <code>.livekit.WrappedJoinRequest.Compression compression = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCompression($var)
    {
        GPBUtil::checkEnum($var, \Livekit\WrappedJoinRequest\Compression::class);
        $this->compression = $var;

        return $this;
    }

    /**
     * marshalled JoinRequest + potentially compressed
     *
     * Generated from protobuf field <code>bytes join_request = 2;</code>
     * @return string
     */
    public function getJoinRequest()
    {
        return $this->join_request;
    }

    /**
     * marshalled JoinRequest + potentially compressed
     *
     * Generated from protobuf field <code>bytes join_request = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setJoinRequest($var)
    {
        GPBUtil::checkString($var, False);
        $this->join_request = $var;

        return $this;
    }

}

