PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7 files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes, and the global library files (Macros, Labels, Groups, ClearGroups, CCLI, Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar, KeyMappings, CommunicationDevices). Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy (v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/, binary-format specs, and a synthetic 369-test PHPUnit suite covering RTF extraction, translation slides, ZIP64 repair, round-trip fidelity, and end-to-end generation.
205 lines
4.5 KiB
PHP
205 lines
4.5 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApiV1Transport.proto
|
|
|
|
namespace Rv\Data\API_v1_Transport_Response;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.API_v1_Transport_Response.GetCurrentMedia</code>
|
|
*/
|
|
class GetCurrentMedia extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>bool is_playing = 1;</code>
|
|
*/
|
|
protected $is_playing = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 2;</code>
|
|
*/
|
|
protected $uuid = null;
|
|
/**
|
|
* Generated from protobuf field <code>string name = 3;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Generated from protobuf field <code>string artist = 4;</code>
|
|
*/
|
|
protected $artist = '';
|
|
/**
|
|
* Generated from protobuf field <code>bool audio_only = 5;</code>
|
|
*/
|
|
protected $audio_only = false;
|
|
/**
|
|
* Generated from protobuf field <code>double duration = 6;</code>
|
|
*/
|
|
protected $duration = 0.0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type bool $is_playing
|
|
* @type \Rv\Data\UUID $uuid
|
|
* @type string $name
|
|
* @type string $artist
|
|
* @type bool $audio_only
|
|
* @type float $duration
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Transport::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_playing = 1;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIsPlaying()
|
|
{
|
|
return $this->is_playing;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_playing = 1;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIsPlaying($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_playing = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 2;</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 = 2;</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 name = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string artist = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getArtist()
|
|
{
|
|
return $this->artist;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string artist = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setArtist($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->artist = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool audio_only = 5;</code>
|
|
* @return bool
|
|
*/
|
|
public function getAudioOnly()
|
|
{
|
|
return $this->audio_only;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool audio_only = 5;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setAudioOnly($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->audio_only = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double duration = 6;</code>
|
|
* @return float
|
|
*/
|
|
public function getDuration()
|
|
{
|
|
return $this->duration;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double duration = 6;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setDuration($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->duration = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|