rv.data.API_v1_Media_Request.TriggerMessage */ 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 .rv.data.API_v1_Media_Request.EmptyMessage focused = 1; * @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 .rv.data.API_v1_Media_Request.EmptyMessage focused = 1; * @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 .rv.data.API_v1_Media_Request.EmptyMessage active = 2; * @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 .rv.data.API_v1_Media_Request.EmptyMessage active = 2; * @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 .google.protobuf.StringValue playlist_id = 3; * @return \Google\Protobuf\StringValue|null */ public function getPlaylistId() { return $this->readOneof(3); } public function hasPlaylistId() { return $this->hasOneof(3); } /** * Returns the unboxed value from getPlaylistId() * Generated from protobuf field .google.protobuf.StringValue playlist_id = 3; * @return string|null */ public function getPlaylistIdUnwrapped() { return $this->readWrapperValue("playlist_id"); } /** * Generated from protobuf field .google.protobuf.StringValue playlist_id = 3; * @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 .google.protobuf.StringValue playlist_id = 3; * @param string|null $var * @return $this */ public function setPlaylistIdUnwrapped($var) { $this->writeWrapperValue("playlist_id", $var); return $this;} /** * Generated from protobuf field .rv.data.API_v1_Media_Request.EmptyMessage start = 4; * @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 .rv.data.API_v1_Media_Request.EmptyMessage start = 4; * @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 .rv.data.API_v1_Media_Request.EmptyMessage next = 5; * @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 .rv.data.API_v1_Media_Request.EmptyMessage next = 5; * @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 .rv.data.API_v1_Media_Request.EmptyMessage previous = 6; * @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 .rv.data.API_v1_Media_Request.EmptyMessage previous = 6; * @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 .google.protobuf.StringValue media_id = 7; * @return \Google\Protobuf\StringValue|null */ public function getMediaId() { return $this->readOneof(7); } public function hasMediaId() { return $this->hasOneof(7); } /** * Returns the unboxed value from getMediaId() * Generated from protobuf field .google.protobuf.StringValue media_id = 7; * @return string|null */ public function getMediaIdUnwrapped() { return $this->readWrapperValue("media_id"); } /** * Generated from protobuf field .google.protobuf.StringValue media_id = 7; * @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 .google.protobuf.StringValue media_id = 7; * @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"); } }