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

namespace Rv\Data\Recording;

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

/**
 * Generated from protobuf message <code>rv.data.Recording.SettingsDocument</code>
 */
class SettingsDocument extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Stream streams = 1;</code>
     */
    private $streams;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Preset presets = 2;</code>
     */
    private $presets;
    /**
     * Generated from protobuf field <code>.rv.data.Recording.Preset active_preset = 3;</code>
     */
    protected $active_preset = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Rv\Data\Recording\Stream>|\Google\Protobuf\Internal\RepeatedField $streams
     *     @type array<\Rv\Data\Recording\Preset>|\Google\Protobuf\Internal\RepeatedField $presets
     *     @type \Rv\Data\Recording\Preset $active_preset
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Recording::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Stream streams = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getStreams()
    {
        return $this->streams;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Stream streams = 1;</code>
     * @param array<\Rv\Data\Recording\Stream>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setStreams($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Recording\Stream::class);
        $this->streams = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Preset presets = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPresets()
    {
        return $this->presets;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Preset presets = 2;</code>
     * @param array<\Rv\Data\Recording\Preset>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPresets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Recording\Preset::class);
        $this->presets = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Preset active_preset = 3;</code>
     * @return \Rv\Data\Recording\Preset|null
     */
    public function getActivePreset()
    {
        return $this->active_preset;
    }

    public function hasActivePreset()
    {
        return isset($this->active_preset);
    }

    public function clearActivePreset()
    {
        unset($this->active_preset);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Preset active_preset = 3;</code>
     * @param \Rv\Data\Recording\Preset $var
     * @return $this
     */
    public function setActivePreset($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Recording\Preset::class);
        $this->active_preset = $var;

        return $this;
    }

}

