rv.data.API_v1_Media_Response */ 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 .rv.data.API_v1_Media_Response.Playlists playlists = 1; * @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 .rv.data.API_v1_Media_Response.Playlists playlists = 1; * @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 .rv.data.API_v1_Media_Response.GetPlaylist get_playlist = 2; * @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 .rv.data.API_v1_Media_Response.GetPlaylist get_playlist = 2; * @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 .rv.data.API_v1_Media_Response.GetPlaylistUpdates get_playlist_updates = 3; * @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 .rv.data.API_v1_Media_Response.GetPlaylistUpdates get_playlist_updates = 3; * @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 .rv.data.API_v1_Media_Response.GetThumbnail get_thumbnail = 4; * @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 .rv.data.API_v1_Media_Response.GetThumbnail get_thumbnail = 4; * @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 .rv.data.API_v1_Media_Response.GetFocusedPlaylist playlist_focused = 5; * @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 .rv.data.API_v1_Media_Response.GetFocusedPlaylist playlist_focused = 5; * @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 .rv.data.API_v1_Media_Response.GetActivePlaylist playlist_active = 6; * @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 .rv.data.API_v1_Media_Response.GetActivePlaylist playlist_active = 6; * @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 .rv.data.API_v1_Media_Response.EmptyMessage focus = 7; * @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 .rv.data.API_v1_Media_Response.EmptyMessage focus = 7; * @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 .rv.data.API_v1_Media_Response.EmptyMessage trigger = 8; * @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 .rv.data.API_v1_Media_Response.EmptyMessage trigger = 8; * @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"); } }