propresenter-php/php/generated/Rv/Data/API_v1_Media_Response.php
2026-03-01 16:12:17 +01:00

266 lines
7.6 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Media.proto
namespace Rv\Data;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.API_v1_Media_Response</code>
*/
class API_v1_Media_Response extends \Google\Protobuf\Internal\Message
{
protected $Response;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\API_v1_Media_Response\Playlists $playlists
* @type \Rv\Data\API_v1_Media_Response\GetPlaylist $get_playlist
* @type \Rv\Data\API_v1_Media_Response\GetPlaylistUpdates $get_playlist_updates
* @type \Rv\Data\API_v1_Media_Response\GetThumbnail $get_thumbnail
* @type \Rv\Data\API_v1_Media_Response\GetFocusedPlaylist $playlist_focused
* @type \Rv\Data\API_v1_Media_Response\GetActivePlaylist $playlist_active
* @type \Rv\Data\API_v1_Media_Response\EmptyMessage $focus
* @type \Rv\Data\API_v1_Media_Response\EmptyMessage $trigger
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1Media::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.Playlists playlists = 1;</code>
* @return \Rv\Data\API_v1_Media_Response\Playlists|null
*/
public function getPlaylists()
{
return $this->readOneof(1);
}
public function hasPlaylists()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.Playlists playlists = 1;</code>
* @param \Rv\Data\API_v1_Media_Response\Playlists $var
* @return $this
*/
public function setPlaylists($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\Playlists::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetPlaylist get_playlist = 2;</code>
* @return \Rv\Data\API_v1_Media_Response\GetPlaylist|null
*/
public function getGetPlaylist()
{
return $this->readOneof(2);
}
public function hasGetPlaylist()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetPlaylist get_playlist = 2;</code>
* @param \Rv\Data\API_v1_Media_Response\GetPlaylist $var
* @return $this
*/
public function setGetPlaylist($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\GetPlaylist::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetPlaylistUpdates get_playlist_updates = 3;</code>
* @return \Rv\Data\API_v1_Media_Response\GetPlaylistUpdates|null
*/
public function getGetPlaylistUpdates()
{
return $this->readOneof(3);
}
public function hasGetPlaylistUpdates()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetPlaylistUpdates get_playlist_updates = 3;</code>
* @param \Rv\Data\API_v1_Media_Response\GetPlaylistUpdates $var
* @return $this
*/
public function setGetPlaylistUpdates($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\GetPlaylistUpdates::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetThumbnail get_thumbnail = 4;</code>
* @return \Rv\Data\API_v1_Media_Response\GetThumbnail|null
*/
public function getGetThumbnail()
{
return $this->readOneof(4);
}
public function hasGetThumbnail()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetThumbnail get_thumbnail = 4;</code>
* @param \Rv\Data\API_v1_Media_Response\GetThumbnail $var
* @return $this
*/
public function setGetThumbnail($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\GetThumbnail::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetFocusedPlaylist playlist_focused = 5;</code>
* @return \Rv\Data\API_v1_Media_Response\GetFocusedPlaylist|null
*/
public function getPlaylistFocused()
{
return $this->readOneof(5);
}
public function hasPlaylistFocused()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetFocusedPlaylist playlist_focused = 5;</code>
* @param \Rv\Data\API_v1_Media_Response\GetFocusedPlaylist $var
* @return $this
*/
public function setPlaylistFocused($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\GetFocusedPlaylist::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetActivePlaylist playlist_active = 6;</code>
* @return \Rv\Data\API_v1_Media_Response\GetActivePlaylist|null
*/
public function getPlaylistActive()
{
return $this->readOneof(6);
}
public function hasPlaylistActive()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.GetActivePlaylist playlist_active = 6;</code>
* @param \Rv\Data\API_v1_Media_Response\GetActivePlaylist $var
* @return $this
*/
public function setPlaylistActive($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\GetActivePlaylist::class);
$this->writeOneof(6, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.EmptyMessage focus = 7;</code>
* @return \Rv\Data\API_v1_Media_Response\EmptyMessage|null
*/
public function getFocus()
{
return $this->readOneof(7);
}
public function hasFocus()
{
return $this->hasOneof(7);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.EmptyMessage focus = 7;</code>
* @param \Rv\Data\API_v1_Media_Response\EmptyMessage $var
* @return $this
*/
public function setFocus($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\EmptyMessage::class);
$this->writeOneof(7, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.EmptyMessage trigger = 8;</code>
* @return \Rv\Data\API_v1_Media_Response\EmptyMessage|null
*/
public function getTrigger()
{
return $this->readOneof(8);
}
public function hasTrigger()
{
return $this->hasOneof(8);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Response.EmptyMessage trigger = 8;</code>
* @param \Rv\Data\API_v1_Media_Response\EmptyMessage $var
* @return $this
*/
public function setTrigger($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Response\EmptyMessage::class);
$this->writeOneof(8, $var);
return $this;
}
/**
* @return string
*/
public function getResponse()
{
return $this->whichOneof("Response");
}
}