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

/**
 * Room composite recording via layout template.
 * Service generates token, constructs recorder URL, awaits start signal.
 *
 * Generated from protobuf message <code>livekit.TemplateSource</code>
 */
class TemplateSource extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string layout = 1;</code>
     */
    protected $layout = '';
    /**
     * 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>string custom_base_url = 4;</code>
     */
    protected $custom_base_url = '';

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

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

    /**
     * Generated from protobuf field <code>string layout = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setLayout($var)
    {
        GPBUtil::checkString($var, True);
        $this->layout = $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>string custom_base_url = 4;</code>
     * @return string
     */
    public function getCustomBaseUrl()
    {
        return $this->custom_base_url;
    }

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

        return $this;
    }

}

