199 lines
4.8 KiB
PHP
199 lines
4.8 KiB
PHP
<?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.AudioInput</code>
|
|
*/
|
|
class AudioInput 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.AudioInput.BehaviorMode behavior_mode = 5;</code>
|
|
*/
|
|
protected $behavior_mode = null;
|
|
protected $Source;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\UUID $uuid
|
|
* @type string $user_description
|
|
* @type \Rv\Data\AudioInput\BehaviorMode $behavior_mode
|
|
* @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.AudioInput.BehaviorMode behavior_mode = 5;</code>
|
|
* @return \Rv\Data\AudioInput\BehaviorMode|null
|
|
*/
|
|
public function getBehaviorMode()
|
|
{
|
|
return $this->behavior_mode;
|
|
}
|
|
|
|
public function hasBehaviorMode()
|
|
{
|
|
return isset($this->behavior_mode);
|
|
}
|
|
|
|
public function clearBehaviorMode()
|
|
{
|
|
unset($this->behavior_mode);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.AudioInput.BehaviorMode behavior_mode = 5;</code>
|
|
* @param \Rv\Data\AudioInput\BehaviorMode $var
|
|
* @return $this
|
|
*/
|
|
public function setBehaviorMode($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\AudioInput\BehaviorMode::class);
|
|
$this->behavior_mode = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DigitalAudio.Device audio_device = 3;</code>
|
|
* @return \Rv\Data\DigitalAudio\Device|null
|
|
*/
|
|
public function getAudioDevice()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasAudioDevice()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.DigitalAudio.Device audio_device = 3;</code>
|
|
* @param \Rv\Data\DigitalAudio\Device $var
|
|
* @return $this
|
|
*/
|
|
public function setAudioDevice($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\DigitalAudio\Device::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.VideoDevice video_device = 4;</code>
|
|
* @return \Rv\Data\Media\VideoDevice|null
|
|
*/
|
|
public function getVideoDevice()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasVideoDevice()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.VideoDevice video_device = 4;</code>
|
|
* @param \Rv\Data\Media\VideoDevice $var
|
|
* @return $this
|
|
*/
|
|
public function setVideoDevice($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\VideoDevice::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSource()
|
|
{
|
|
return $this->whichOneof("Source");
|
|
}
|
|
|
|
}
|
|
|