rv.data.VideoInput */ class VideoInput extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.UUID uuid = 1; */ protected $uuid = null; /** * Generated from protobuf field string user_description = 2; */ protected $user_description = ''; /** * Generated from protobuf field .rv.data.Media.VideoDevice video_input_device = 3; */ protected $video_input_device = null; /** * Generated from protobuf field .rv.data.Color display_color = 4; */ protected $display_color = null; /** * Generated from protobuf field .rv.data.URL thumbnail_path = 5; */ protected $thumbnail_path = null; /** * Generated from protobuf field .rv.data.VideoInput.AudioDeviceType audio_type = 8; */ protected $audio_type = 0; /** * Generated from protobuf field .rv.data.AlphaType alpha_type = 9; */ 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 .rv.data.UUID uuid = 1; * @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 .rv.data.UUID uuid = 1; * @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 string user_description = 2; * @return string */ public function getUserDescription() { return $this->user_description; } /** * Generated from protobuf field string user_description = 2; * @param string $var * @return $this */ public function setUserDescription($var) { GPBUtil::checkString($var, True); $this->user_description = $var; return $this; } /** * Generated from protobuf field .rv.data.Media.VideoDevice video_input_device = 3; * @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 .rv.data.Media.VideoDevice video_input_device = 3; * @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 .rv.data.Color display_color = 4; * @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 .rv.data.Color display_color = 4; * @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 .rv.data.URL thumbnail_path = 5; * @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 .rv.data.URL thumbnail_path = 5; * @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 .rv.data.VideoInput.AudioDeviceType audio_type = 8; * @return int */ public function getAudioType() { return $this->audio_type; } /** * Generated from protobuf field .rv.data.VideoInput.AudioDeviceType audio_type = 8; * @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 .rv.data.AlphaType alpha_type = 9; * @return int */ public function getAlphaType() { return $this->alpha_type; } /** * Generated from protobuf field .rv.data.AlphaType alpha_type = 9; * @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 .rv.data.DigitalAudio.Device audio_device = 6; * @return \Rv\Data\DigitalAudio\Device|null */ public function getAudioDevice() { return $this->readOneof(6); } public function hasAudioDevice() { return $this->hasOneof(6); } /** * Generated from protobuf field .rv.data.DigitalAudio.Device audio_device = 6; * @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 .rv.data.Media.VideoDevice video_device = 7; * @return \Rv\Data\Media\VideoDevice|null */ public function getVideoDevice() { return $this->readOneof(7); } public function hasVideoDevice() { return $this->hasOneof(7); } /** * Generated from protobuf field .rv.data.Media.VideoDevice video_device = 7; * @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"); } }