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

293 lines
7.8 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Media.proto
namespace Rv\Data\API_v1_Media_Request;
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_Request.TriggerMessage</code>
*/
class TriggerMessage extends \Google\Protobuf\Internal\Message
{
protected $Playlist;
protected $Item;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\API_v1_Media_Request\EmptyMessage $focused
* @type \Rv\Data\API_v1_Media_Request\EmptyMessage $active
* @type \Google\Protobuf\StringValue $playlist_id
* @type \Rv\Data\API_v1_Media_Request\EmptyMessage $start
* @type \Rv\Data\API_v1_Media_Request\EmptyMessage $next
* @type \Rv\Data\API_v1_Media_Request\EmptyMessage $previous
* @type \Google\Protobuf\StringValue $media_id
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1Media::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage focused = 1;</code>
* @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
*/
public function getFocused()
{
return $this->readOneof(1);
}
public function hasFocused()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage focused = 1;</code>
* @param \Rv\Data\API_v1_Media_Request\EmptyMessage $var
* @return $this
*/
public function setFocused($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\EmptyMessage::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage active = 2;</code>
* @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
*/
public function getActive()
{
return $this->readOneof(2);
}
public function hasActive()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage active = 2;</code>
* @param \Rv\Data\API_v1_Media_Request\EmptyMessage $var
* @return $this
*/
public function setActive($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\EmptyMessage::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field <code>.google.protobuf.StringValue playlist_id = 3;</code>
* @return \Google\Protobuf\StringValue|null
*/
public function getPlaylistId()
{
return $this->readOneof(3);
}
public function hasPlaylistId()
{
return $this->hasOneof(3);
}
/**
* Returns the unboxed value from <code>getPlaylistId()</code>
* Generated from protobuf field <code>.google.protobuf.StringValue playlist_id = 3;</code>
* @return string|null
*/
public function getPlaylistIdUnwrapped()
{
return $this->readWrapperValue("playlist_id");
}
/**
* Generated from protobuf field <code>.google.protobuf.StringValue playlist_id = 3;</code>
* @param \Google\Protobuf\StringValue $var
* @return $this
*/
public function setPlaylistId($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.
* Generated from protobuf field <code>.google.protobuf.StringValue playlist_id = 3;</code>
* @param string|null $var
* @return $this
*/
public function setPlaylistIdUnwrapped($var)
{
$this->writeWrapperValue("playlist_id", $var);
return $this;}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage start = 4;</code>
* @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
*/
public function getStart()
{
return $this->readOneof(4);
}
public function hasStart()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage start = 4;</code>
* @param \Rv\Data\API_v1_Media_Request\EmptyMessage $var
* @return $this
*/
public function setStart($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\EmptyMessage::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage next = 5;</code>
* @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
*/
public function getNext()
{
return $this->readOneof(5);
}
public function hasNext()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage next = 5;</code>
* @param \Rv\Data\API_v1_Media_Request\EmptyMessage $var
* @return $this
*/
public function setNext($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\EmptyMessage::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage previous = 6;</code>
* @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
*/
public function getPrevious()
{
return $this->readOneof(6);
}
public function hasPrevious()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage previous = 6;</code>
* @param \Rv\Data\API_v1_Media_Request\EmptyMessage $var
* @return $this
*/
public function setPrevious($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\EmptyMessage::class);
$this->writeOneof(6, $var);
return $this;
}
/**
* Generated from protobuf field <code>.google.protobuf.StringValue media_id = 7;</code>
* @return \Google\Protobuf\StringValue|null
*/
public function getMediaId()
{
return $this->readOneof(7);
}
public function hasMediaId()
{
return $this->hasOneof(7);
}
/**
* Returns the unboxed value from <code>getMediaId()</code>
* Generated from protobuf field <code>.google.protobuf.StringValue media_id = 7;</code>
* @return string|null
*/
public function getMediaIdUnwrapped()
{
return $this->readWrapperValue("media_id");
}
/**
* Generated from protobuf field <code>.google.protobuf.StringValue media_id = 7;</code>
* @param \Google\Protobuf\StringValue $var
* @return $this
*/
public function setMediaId($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
$this->writeOneof(7, $var);
return $this;
}
/**
* Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.
* Generated from protobuf field <code>.google.protobuf.StringValue media_id = 7;</code>
* @param string|null $var
* @return $this
*/
public function setMediaIdUnwrapped($var)
{
$this->writeWrapperValue("media_id", $var);
return $this;}
/**
* @return string
*/
public function getPlaylist()
{
return $this->whichOneof("Playlist");
}
/**
* @return string
*/
public function getItem()
{
return $this->whichOneof("Item");
}
}