rv.data.API_v1_Transport_Response.GetCurrentMedia */ class GetCurrentMedia extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field bool is_playing = 1; */ protected $is_playing = false; /** * Generated from protobuf field .rv.data.UUID uuid = 2; */ protected $uuid = null; /** * Generated from protobuf field string name = 3; */ protected $name = ''; /** * Generated from protobuf field string artist = 4; */ protected $artist = ''; /** * Generated from protobuf field bool audio_only = 5; */ protected $audio_only = false; /** * Generated from protobuf field double duration = 6; */ 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 bool is_playing = 1; * @return bool */ public function getIsPlaying() { return $this->is_playing; } /** * Generated from protobuf field bool is_playing = 1; * @param bool $var * @return $this */ public function setIsPlaying($var) { GPBUtil::checkBool($var); $this->is_playing = $var; return $this; } /** * Generated from protobuf field .rv.data.UUID uuid = 2; * @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 .rv.data.UUID uuid = 2; * @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 string name = 3; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 3; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field string artist = 4; * @return string */ public function getArtist() { return $this->artist; } /** * Generated from protobuf field string artist = 4; * @param string $var * @return $this */ public function setArtist($var) { GPBUtil::checkString($var, True); $this->artist = $var; return $this; } /** * Generated from protobuf field bool audio_only = 5; * @return bool */ public function getAudioOnly() { return $this->audio_only; } /** * Generated from protobuf field bool audio_only = 5; * @param bool $var * @return $this */ public function setAudioOnly($var) { GPBUtil::checkBool($var); $this->audio_only = $var; return $this; } /** * Generated from protobuf field double duration = 6; * @return float */ public function getDuration() { return $this->duration; } /** * Generated from protobuf field double duration = 6; * @param float $var * @return $this */ public function setDuration($var) { GPBUtil::checkDouble($var); $this->duration = $var; return $this; } }