rv.data.TimedPlayback.Timing.SMPTETimecode
*/
class SMPTETimecode extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string device_identifier = 1;
*/
protected $device_identifier = '';
/**
* Generated from protobuf field int32 channel = 2;
*/
protected $channel = 0;
/**
* Generated from protobuf field .rv.data.TimedPlayback.Timing.SMPTETimecode.Format format = 3;
*/
protected $format = 0;
/**
* Generated from protobuf field double offset = 4;
*/
protected $offset = 0.0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $device_identifier
* @type int $channel
* @type int $format
* @type float $offset
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\TimedPlayback::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string device_identifier = 1;
* @return string
*/
public function getDeviceIdentifier()
{
return $this->device_identifier;
}
/**
* Generated from protobuf field string device_identifier = 1;
* @param string $var
* @return $this
*/
public function setDeviceIdentifier($var)
{
GPBUtil::checkString($var, True);
$this->device_identifier = $var;
return $this;
}
/**
* Generated from protobuf field int32 channel = 2;
* @return int
*/
public function getChannel()
{
return $this->channel;
}
/**
* Generated from protobuf field int32 channel = 2;
* @param int $var
* @return $this
*/
public function setChannel($var)
{
GPBUtil::checkInt32($var);
$this->channel = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.TimedPlayback.Timing.SMPTETimecode.Format format = 3;
* @return int
*/
public function getFormat()
{
return $this->format;
}
/**
* Generated from protobuf field .rv.data.TimedPlayback.Timing.SMPTETimecode.Format format = 3;
* @param int $var
* @return $this
*/
public function setFormat($var)
{
GPBUtil::checkEnum($var, \Rv\Data\TimedPlayback\Timing\SMPTETimecode\Format::class);
$this->format = $var;
return $this;
}
/**
* Generated from protobuf field double offset = 4;
* @return float
*/
public function getOffset()
{
return $this->offset;
}
/**
* Generated from protobuf field double offset = 4;
* @param float $var
* @return $this
*/
public function setOffset($var)
{
GPBUtil::checkDouble($var);
$this->offset = $var;
return $this;
}
}