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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SimulcastCodecInfo</code>
 */
class SimulcastCodecInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string mime_type = 1;</code>
     */
    protected $mime_type = '';
    /**
     * Generated from protobuf field <code>string mid = 2;</code>
     */
    protected $mid = '';
    /**
     * Generated from protobuf field <code>string cid = 3;</code>
     */
    protected $cid = '';
    /**
     * Generated from protobuf field <code>repeated .livekit.VideoLayer layers = 4;</code>
     */
    private $layers;
    /**
     * Generated from protobuf field <code>.livekit.VideoLayer.Mode video_layer_mode = 5;</code>
     */
    protected $video_layer_mode = 0;
    /**
     * cid (client side id for track) could be different between
     * signalling (AddTrackRequest) and SDP offer. This field
     * will be populated only if it is different to avoid
     * duplication and keep the representation concise.
     *
     * Generated from protobuf field <code>string sdp_cid = 6;</code>
     */
    protected $sdp_cid = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $mime_type
     *     @type string $mid
     *     @type string $cid
     *     @type \Livekit\VideoLayer[] $layers
     *     @type int $video_layer_mode
     *     @type string $sdp_cid
     *           cid (client side id for track) could be different between
     *           signalling (AddTrackRequest) and SDP offer. This field
     *           will be populated only if it is different to avoid
     *           duplication and keep the representation concise.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string mid = 2;</code>
     * @return string
     */
    public function getMid()
    {
        return $this->mid;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string cid = 3;</code>
     * @return string
     */
    public function getCid()
    {
        return $this->cid;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.VideoLayer layers = 4;</code>
     * @return RepeatedField<\Livekit\VideoLayer>
     */
    public function getLayers()
    {
        return $this->layers;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.VideoLayer layers = 4;</code>
     * @param \Livekit\VideoLayer[] $var
     * @return $this
     */
    public function setLayers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\VideoLayer::class);
        $this->layers = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.VideoLayer.Mode video_layer_mode = 5;</code>
     * @return int
     */
    public function getVideoLayerMode()
    {
        return $this->video_layer_mode;
    }

    /**
     * Generated from protobuf field <code>.livekit.VideoLayer.Mode video_layer_mode = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setVideoLayerMode($var)
    {
        GPBUtil::checkEnum($var, \Livekit\VideoLayer\Mode::class);
        $this->video_layer_mode = $var;

        return $this;
    }

    /**
     * cid (client side id for track) could be different between
     * signalling (AddTrackRequest) and SDP offer. This field
     * will be populated only if it is different to avoid
     * duplication and keep the representation concise.
     *
     * Generated from protobuf field <code>string sdp_cid = 6;</code>
     * @return string
     */
    public function getSdpCid()
    {
        return $this->sdp_cid;
    }

    /**
     * cid (client side id for track) could be different between
     * signalling (AddTrackRequest) and SDP offer. This field
     * will be populated only if it is different to avoid
     * duplication and keep the representation concise.
     *
     * Generated from protobuf field <code>string sdp_cid = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setSdpCid($var)
    {
        GPBUtil::checkString($var, True);
        $this->sdp_cid = $var;

        return $this;
    }

}

