<?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;

/**
 * Record a custom URL via headless browser.
 *
 * Generated from protobuf message <code>livekit.WebSource</code>
 */
class WebSource extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string url = 1;</code>
     */
    protected $url = '';
    /**
     * Generated from protobuf field <code>bool audio_only = 2;</code>
     */
    protected $audio_only = false;
    /**
     * Generated from protobuf field <code>bool video_only = 3;</code>
     */
    protected $video_only = false;
    /**
     * Generated from protobuf field <code>bool await_start_signal = 4;</code>
     */
    protected $await_start_signal = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type bool $audio_only
     *     @type bool $video_only
     *     @type bool $await_start_signal
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool await_start_signal = 4;</code>
     * @return bool
     */
    public function getAwaitStartSignal()
    {
        return $this->await_start_signal;
    }

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

        return $this;
    }

}

