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

namespace Rv\Data\Media;

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

/**
 * Generated from protobuf message <code>rv.data.Media.LiveVideoProperties</code>
 */
class LiveVideoProperties extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoDevice video_device = 1;</code>
     */
    protected $video_device = null;
    /**
     * Generated from protobuf field <code>.rv.data.Media.AudioDevice audio_device = 2;</code>
     */
    protected $audio_device = null;
    /**
     * Generated from protobuf field <code>int32 live_video_index = 3;</code>
     */
    protected $live_video_index = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Media\VideoDevice $video_device
     *     @type \Rv\Data\Media\AudioDevice $audio_device
     *     @type int $live_video_index
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

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

    public function hasVideoDevice()
    {
        return isset($this->video_device);
    }

    public function clearVideoDevice()
    {
        unset($this->video_device);
    }

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

        return $this;
    }

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

    public function hasAudioDevice()
    {
        return isset($this->audio_device);
    }

    public function clearAudioDevice()
    {
        unset($this->audio_device);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 live_video_index = 3;</code>
     * @return int
     */
    public function getLiveVideoIndex()
    {
        return $this->live_video_index;
    }

    /**
     * Generated from protobuf field <code>int32 live_video_index = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setLiveVideoIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->live_video_index = $var;

        return $this;
    }

}

