rv.data.TriggerTransferRenderState.MediaState */ class MediaState extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Media current_media = 1; */ protected $current_media = null; /** * Generated from protobuf field bool is_playing = 2; */ protected $is_playing = false; /** * Generated from protobuf field bool is_looping = 3; */ protected $is_looping = false; /** * Generated from protobuf field float current_time = 4; */ protected $current_time = 0.0; /** * Generated from protobuf field float time_remaining = 5; */ protected $time_remaining = 0.0; /** * Generated from protobuf field .rv.data.UUID playlist_uuid = 6; */ protected $playlist_uuid = null; /** * Generated from protobuf field string playlist_name = 7; */ protected $playlist_name = ''; /** * Generated from protobuf field repeated .rv.data.Action.MediaType.PlaybackMarker markers = 8; */ 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 .rv.data.Media current_media = 1; * @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 .rv.data.Media current_media = 1; * @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 bool is_playing = 2; * @return bool */ public function getIsPlaying() { return $this->is_playing; } /** * Generated from protobuf field bool is_playing = 2; * @param bool $var * @return $this */ public function setIsPlaying($var) { GPBUtil::checkBool($var); $this->is_playing = $var; return $this; } /** * Generated from protobuf field bool is_looping = 3; * @return bool */ public function getIsLooping() { return $this->is_looping; } /** * Generated from protobuf field bool is_looping = 3; * @param bool $var * @return $this */ public function setIsLooping($var) { GPBUtil::checkBool($var); $this->is_looping = $var; return $this; } /** * Generated from protobuf field float current_time = 4; * @return float */ public function getCurrentTime() { return $this->current_time; } /** * Generated from protobuf field float current_time = 4; * @param float $var * @return $this */ public function setCurrentTime($var) { GPBUtil::checkFloat($var); $this->current_time = $var; return $this; } /** * Generated from protobuf field float time_remaining = 5; * @return float */ public function getTimeRemaining() { return $this->time_remaining; } /** * Generated from protobuf field float time_remaining = 5; * @param float $var * @return $this */ public function setTimeRemaining($var) { GPBUtil::checkFloat($var); $this->time_remaining = $var; return $this; } /** * Generated from protobuf field .rv.data.UUID playlist_uuid = 6; * @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 .rv.data.UUID playlist_uuid = 6; * @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 string playlist_name = 7; * @return string */ public function getPlaylistName() { return $this->playlist_name; } /** * Generated from protobuf field string playlist_name = 7; * @param string $var * @return $this */ public function setPlaylistName($var) { GPBUtil::checkString($var, True); $this->playlist_name = $var; return $this; } /** * Generated from protobuf field repeated .rv.data.Action.MediaType.PlaybackMarker markers = 8; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMarkers() { return $this->markers; } /** * Generated from protobuf field repeated .rv.data.Action.MediaType.PlaybackMarker markers = 8; * @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; } }