269 lines
6.7 KiB
PHP
269 lines
6.7 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proCore.proto
|
|
|
|
namespace Rv\Data\TriggerTransferRenderState;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.TriggerTransferRenderState.MediaState</code>
|
|
*/
|
|
class MediaState extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media current_media = 1;</code>
|
|
*/
|
|
protected $current_media = null;
|
|
/**
|
|
* Generated from protobuf field <code>bool is_playing = 2;</code>
|
|
*/
|
|
protected $is_playing = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool is_looping = 3;</code>
|
|
*/
|
|
protected $is_looping = false;
|
|
/**
|
|
* Generated from protobuf field <code>float current_time = 4;</code>
|
|
*/
|
|
protected $current_time = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>float time_remaining = 5;</code>
|
|
*/
|
|
protected $time_remaining = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID playlist_uuid = 6;</code>
|
|
*/
|
|
protected $playlist_uuid = null;
|
|
/**
|
|
* Generated from protobuf field <code>string playlist_name = 7;</code>
|
|
*/
|
|
protected $playlist_name = '';
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Action.MediaType.PlaybackMarker markers = 8;</code>
|
|
*/
|
|
private $markers;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\Media $current_media
|
|
* @type bool $is_playing
|
|
* @type bool $is_looping
|
|
* @type float $current_time
|
|
* @type float $time_remaining
|
|
* @type \Rv\Data\UUID $playlist_uuid
|
|
* @type string $playlist_name
|
|
* @type array<\Rv\Data\Action\MediaType\PlaybackMarker>|\Google\Protobuf\Internal\RepeatedField $markers
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProCore::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media current_media = 1;</code>
|
|
* @return \Rv\Data\Media|null
|
|
*/
|
|
public function getCurrentMedia()
|
|
{
|
|
return $this->current_media;
|
|
}
|
|
|
|
public function hasCurrentMedia()
|
|
{
|
|
return isset($this->current_media);
|
|
}
|
|
|
|
public function clearCurrentMedia()
|
|
{
|
|
unset($this->current_media);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media current_media = 1;</code>
|
|
* @param \Rv\Data\Media $var
|
|
* @return $this
|
|
*/
|
|
public function setCurrentMedia($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media::class);
|
|
$this->current_media = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_playing = 2;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIsPlaying()
|
|
{
|
|
return $this->is_playing;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_playing = 2;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIsPlaying($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_playing = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_looping = 3;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIsLooping()
|
|
{
|
|
return $this->is_looping;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_looping = 3;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIsLooping($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_looping = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float current_time = 4;</code>
|
|
* @return float
|
|
*/
|
|
public function getCurrentTime()
|
|
{
|
|
return $this->current_time;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float current_time = 4;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setCurrentTime($var)
|
|
{
|
|
GPBUtil::checkFloat($var);
|
|
$this->current_time = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float time_remaining = 5;</code>
|
|
* @return float
|
|
*/
|
|
public function getTimeRemaining()
|
|
{
|
|
return $this->time_remaining;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float time_remaining = 5;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setTimeRemaining($var)
|
|
{
|
|
GPBUtil::checkFloat($var);
|
|
$this->time_remaining = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID playlist_uuid = 6;</code>
|
|
* @return \Rv\Data\UUID|null
|
|
*/
|
|
public function getPlaylistUuid()
|
|
{
|
|
return $this->playlist_uuid;
|
|
}
|
|
|
|
public function hasPlaylistUuid()
|
|
{
|
|
return isset($this->playlist_uuid);
|
|
}
|
|
|
|
public function clearPlaylistUuid()
|
|
{
|
|
unset($this->playlist_uuid);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID playlist_uuid = 6;</code>
|
|
* @param \Rv\Data\UUID $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaylistUuid($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
|
|
$this->playlist_uuid = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string playlist_name = 7;</code>
|
|
* @return string
|
|
*/
|
|
public function getPlaylistName()
|
|
{
|
|
return $this->playlist_name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string playlist_name = 7;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaylistName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->playlist_name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Action.MediaType.PlaybackMarker markers = 8;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getMarkers()
|
|
{
|
|
return $this->markers;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Action.MediaType.PlaybackMarker markers = 8;</code>
|
|
* @param array<\Rv\Data\Action\MediaType\PlaybackMarker>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setMarkers($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Action\MediaType\PlaybackMarker::class);
|
|
$this->markers = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|