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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.StreamOutput</code>
 */
class StreamOutput extends \Google\Protobuf\Internal\Message
{
    /**
     * required
     *
     * Generated from protobuf field <code>.livekit.StreamProtocol protocol = 1;</code>
     */
    protected $protocol = 0;
    /**
     * required
     *
     * Generated from protobuf field <code>repeated string urls = 2;</code>
     */
    private $urls;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $protocol
     *           required
     *     @type string[] $urls
     *           required
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * required
     *
     * Generated from protobuf field <code>.livekit.StreamProtocol protocol = 1;</code>
     * @return int
     */
    public function getProtocol()
    {
        return $this->protocol;
    }

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

        return $this;
    }

    /**
     * required
     *
     * Generated from protobuf field <code>repeated string urls = 2;</code>
     * @return RepeatedField<string>
     */
    public function getUrls()
    {
        return $this->urls;
    }

    /**
     * required
     *
     * Generated from protobuf field <code>repeated string urls = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setUrls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->urls = $arr;

        return $this;
    }

}

