- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
294 lines
9.2 KiB
PHP
294 lines
9.2 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApiV1Announcement.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_Announcement_Request</code>
|
|
*/
|
|
class API_v1_Announcement_Request extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Request;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActiveTimelineOperation $active_timeline_operation
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActiveTimelineStatus $active_timeline_status
|
|
* @type \Rv\Data\API_v1_Announcement_Request\Active $active
|
|
* @type \Rv\Data\API_v1_Announcement_Request\AnnouncementIndex $slide_index
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActiveFocus $active_focus
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActiveTrigger $active_trigger
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActiveNextTrigger $active_next_trigger
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActivePreviousTrigger $active_previous_trigger
|
|
* @type \Rv\Data\API_v1_Announcement_Request\ActiveIndexTrigger $active_index_trigger
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Announcement::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveTimelineOperation active_timeline_operation = 1;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActiveTimelineOperation|null
|
|
*/
|
|
public function getActiveTimelineOperation()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasActiveTimelineOperation()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveTimelineOperation active_timeline_operation = 1;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActiveTimelineOperation $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveTimelineOperation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActiveTimelineOperation::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveTimelineStatus active_timeline_status = 2;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActiveTimelineStatus|null
|
|
*/
|
|
public function getActiveTimelineStatus()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasActiveTimelineStatus()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveTimelineStatus active_timeline_status = 2;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActiveTimelineStatus $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveTimelineStatus($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActiveTimelineStatus::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.Active active = 3;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\Active|null
|
|
*/
|
|
public function getActive()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasActive()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.Active active = 3;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\Active $var
|
|
* @return $this
|
|
*/
|
|
public function setActive($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\Active::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.AnnouncementIndex slide_index = 4;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\AnnouncementIndex|null
|
|
*/
|
|
public function getSlideIndex()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasSlideIndex()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.AnnouncementIndex slide_index = 4;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\AnnouncementIndex $var
|
|
* @return $this
|
|
*/
|
|
public function setSlideIndex($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\AnnouncementIndex::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveFocus active_focus = 5;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActiveFocus|null
|
|
*/
|
|
public function getActiveFocus()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasActiveFocus()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveFocus active_focus = 5;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActiveFocus $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveFocus($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActiveFocus::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveTrigger active_trigger = 6;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActiveTrigger|null
|
|
*/
|
|
public function getActiveTrigger()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasActiveTrigger()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveTrigger active_trigger = 6;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActiveTrigger $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveTrigger($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActiveTrigger::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveNextTrigger active_next_trigger = 7;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActiveNextTrigger|null
|
|
*/
|
|
public function getActiveNextTrigger()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasActiveNextTrigger()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveNextTrigger active_next_trigger = 7;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActiveNextTrigger $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveNextTrigger($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActiveNextTrigger::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActivePreviousTrigger active_previous_trigger = 8;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActivePreviousTrigger|null
|
|
*/
|
|
public function getActivePreviousTrigger()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasActivePreviousTrigger()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActivePreviousTrigger active_previous_trigger = 8;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActivePreviousTrigger $var
|
|
* @return $this
|
|
*/
|
|
public function setActivePreviousTrigger($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActivePreviousTrigger::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveIndexTrigger active_index_trigger = 9;</code>
|
|
* @return \Rv\Data\API_v1_Announcement_Request\ActiveIndexTrigger|null
|
|
*/
|
|
public function getActiveIndexTrigger()
|
|
{
|
|
return $this->readOneof(9);
|
|
}
|
|
|
|
public function hasActiveIndexTrigger()
|
|
{
|
|
return $this->hasOneof(9);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Announcement_Request.ActiveIndexTrigger active_index_trigger = 9;</code>
|
|
* @param \Rv\Data\API_v1_Announcement_Request\ActiveIndexTrigger $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveIndexTrigger($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Request\ActiveIndexTrigger::class);
|
|
$this->writeOneof(9, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRequest()
|
|
{
|
|
return $this->whichOneof("Request");
|
|
}
|
|
|
|
}
|
|
|