<?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.Stream</code>
 */
class Stream extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID id = 1;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Encoder encoder = 3;</code>
     */
    protected $encoder = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Recording.Stream.Destination destinations = 4;</code>
     */
    private $destinations;
    /**
     * Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Map audio_map = 5;</code>
     */
    private $audio_map;
    /**
     * Generated from protobuf field <code>bool isAudioCustomMapped = 6;</code>
     */
    protected $isAudioCustomMapped = false;
    protected $Source;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $id
     *     @type \Rv\Data\Recording\Stream\Encoder $encoder
     *     @type array<\Rv\Data\Recording\Stream\Destination>|\Google\Protobuf\Internal\RepeatedField $destinations
     *     @type array<\Rv\Data\DigitalAudio\Device\Map>|\Google\Protobuf\Internal\RepeatedField $audio_map
     *     @type bool $isAudioCustomMapped
     *     @type \Rv\Data\Recording\Stream\OutputScreenSource $output_screen
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Recording::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID id = 1;</code>
     * @return \Rv\Data\UUID|null
     */
    public function getId()
    {
        return $this->id;
    }

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID id = 1;</code>
     * @param \Rv\Data\UUID $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
        $this->id = $var;

        return $this;
    }

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

    public function hasEncoder()
    {
        return isset($this->encoder);
    }

    public function clearEncoder()
    {
        unset($this->encoder);
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.DigitalAudio.Device.Map audio_map = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAudioMap()
    {
        return $this->audio_map;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool isAudioCustomMapped = 6;</code>
     * @return bool
     */
    public function getIsAudioCustomMapped()
    {
        return $this->isAudioCustomMapped;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.OutputScreenSource output_screen = 2;</code>
     * @return \Rv\Data\Recording\Stream\OutputScreenSource|null
     */
    public function getOutputScreen()
    {
        return $this->readOneof(2);
    }

    public function hasOutputScreen()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.OutputScreenSource output_screen = 2;</code>
     * @param \Rv\Data\Recording\Stream\OutputScreenSource $var
     * @return $this
     */
    public function setOutputScreen($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Recording\Stream\OutputScreenSource::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getSource()
    {
        return $this->whichOneof("Source");
    }

}

