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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.VideoInput</code>
 */
class VideoInput extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>string user_description = 2;</code>
     */
    protected $user_description = '';
    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoDevice video_input_device = 3;</code>
     */
    protected $video_input_device = null;
    /**
     * Generated from protobuf field <code>.rv.data.Color display_color = 4;</code>
     */
    protected $display_color = null;
    /**
     * Generated from protobuf field <code>.rv.data.URL thumbnail_path = 5;</code>
     */
    protected $thumbnail_path = null;
    /**
     * Generated from protobuf field <code>.rv.data.VideoInput.AudioDeviceType audio_type = 8;</code>
     */
    protected $audio_type = 0;
    /**
     * Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 9;</code>
     */
    protected $alpha_type = 0;
    protected $AltAudioSource;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $uuid
     *     @type string $user_description
     *     @type \Rv\Data\Media\VideoDevice $video_input_device
     *     @type \Rv\Data\Color $display_color
     *     @type \Rv\Data\URL $thumbnail_path
     *     @type int $audio_type
     *     @type int $alpha_type
     *     @type \Rv\Data\DigitalAudio\Device $audio_device
     *     @type \Rv\Data\Media\VideoDevice $video_device
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Input::initOnce();
        parent::__construct($data);
    }

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

    public function hasUuid()
    {
        return isset($this->uuid);
    }

    public function clearUuid()
    {
        unset($this->uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string user_description = 2;</code>
     * @return string
     */
    public function getUserDescription()
    {
        return $this->user_description;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoDevice video_input_device = 3;</code>
     * @return \Rv\Data\Media\VideoDevice|null
     */
    public function getVideoInputDevice()
    {
        return $this->video_input_device;
    }

    public function hasVideoInputDevice()
    {
        return isset($this->video_input_device);
    }

    public function clearVideoInputDevice()
    {
        unset($this->video_input_device);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Color display_color = 4;</code>
     * @return \Rv\Data\Color|null
     */
    public function getDisplayColor()
    {
        return $this->display_color;
    }

    public function hasDisplayColor()
    {
        return isset($this->display_color);
    }

    public function clearDisplayColor()
    {
        unset($this->display_color);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.URL thumbnail_path = 5;</code>
     * @return \Rv\Data\URL|null
     */
    public function getThumbnailPath()
    {
        return $this->thumbnail_path;
    }

    public function hasThumbnailPath()
    {
        return isset($this->thumbnail_path);
    }

    public function clearThumbnailPath()
    {
        unset($this->thumbnail_path);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.VideoInput.AudioDeviceType audio_type = 8;</code>
     * @return int
     */
    public function getAudioType()
    {
        return $this->audio_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.VideoInput.AudioDeviceType audio_type = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setAudioType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\VideoInput\AudioDeviceType::class);
        $this->audio_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 9;</code>
     * @return int
     */
    public function getAlphaType()
    {
        return $this->alpha_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setAlphaType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\AlphaType::class);
        $this->alpha_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device audio_device = 6;</code>
     * @return \Rv\Data\DigitalAudio\Device|null
     */
    public function getAudioDevice()
    {
        return $this->readOneof(6);
    }

    public function hasAudioDevice()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.rv.data.DigitalAudio.Device audio_device = 6;</code>
     * @param \Rv\Data\DigitalAudio\Device $var
     * @return $this
     */
    public function setAudioDevice($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\DigitalAudio\Device::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoDevice video_device = 7;</code>
     * @return \Rv\Data\Media\VideoDevice|null
     */
    public function getVideoDevice()
    {
        return $this->readOneof(7);
    }

    public function hasVideoDevice()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoDevice video_device = 7;</code>
     * @param \Rv\Data\Media\VideoDevice $var
     * @return $this
     */
    public function setVideoDevice($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Media\VideoDevice::class);
        $this->writeOneof(7, $var);

        return $this;
    }

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

}

