- 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
406 lines
11 KiB
PHP
406 lines
11 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApi.proto
|
|
|
|
namespace Rv\Data\NetworkAPI;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.NetworkAPI.Action</code>
|
|
*/
|
|
class Action extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Command;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Clear $clear
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Trigger $trigger
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Transport $transport
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Prop $prop
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Timer $timer
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Message $message_
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Macro $macro
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Look $look
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Stage $stage
|
|
* @type \Rv\Data\NetworkAPI\Action\API_Status $status
|
|
* @type \Rv\Data\NetworkAPI\Action\API_StatusResponse $status_response
|
|
* @type \Rv\Data\NetworkAPI\Action\API_TwoStepTrigger $two_step_trigger
|
|
* @type \Rv\Data\NetworkAPI\Action\API_PrerollComplete $preroll_complete
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApi::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Clear clear = 1;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Clear|null
|
|
*/
|
|
public function getClear()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasClear()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Clear clear = 1;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Clear $var
|
|
* @return $this
|
|
*/
|
|
public function setClear($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Clear::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Trigger trigger = 2;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Trigger|null
|
|
*/
|
|
public function getTrigger()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasTrigger()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Trigger trigger = 2;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Trigger $var
|
|
* @return $this
|
|
*/
|
|
public function setTrigger($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Trigger::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport transport = 3;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Transport|null
|
|
*/
|
|
public function getTransport()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasTransport()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Transport transport = 3;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Transport $var
|
|
* @return $this
|
|
*/
|
|
public function setTransport($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Transport::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Prop prop = 4;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Prop|null
|
|
*/
|
|
public function getProp()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasProp()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Prop prop = 4;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Prop $var
|
|
* @return $this
|
|
*/
|
|
public function setProp($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Prop::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Timer timer = 5;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Timer|null
|
|
*/
|
|
public function getTimer()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasTimer()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Timer timer = 5;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Timer $var
|
|
* @return $this
|
|
*/
|
|
public function setTimer($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Timer::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Message message_ = 6;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Message|null
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasMessage()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Message message_ = 6;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Message $var
|
|
* @return $this
|
|
*/
|
|
public function setMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Message::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Macro macro = 7;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Macro|null
|
|
*/
|
|
public function getMacro()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasMacro()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Macro macro = 7;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Macro $var
|
|
* @return $this
|
|
*/
|
|
public function setMacro($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Macro::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Look look = 8;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Look|null
|
|
*/
|
|
public function getLook()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasLook()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Look look = 8;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Look $var
|
|
* @return $this
|
|
*/
|
|
public function setLook($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Look::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage stage = 9;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Stage|null
|
|
*/
|
|
public function getStage()
|
|
{
|
|
return $this->readOneof(9);
|
|
}
|
|
|
|
public function hasStage()
|
|
{
|
|
return $this->hasOneof(9);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage stage = 9;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Stage $var
|
|
* @return $this
|
|
*/
|
|
public function setStage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Stage::class);
|
|
$this->writeOneof(9, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Status status = 10;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_Status|null
|
|
*/
|
|
public function getStatus()
|
|
{
|
|
return $this->readOneof(10);
|
|
}
|
|
|
|
public function hasStatus()
|
|
{
|
|
return $this->hasOneof(10);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Status status = 10;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_Status $var
|
|
* @return $this
|
|
*/
|
|
public function setStatus($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Status::class);
|
|
$this->writeOneof(10, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_StatusResponse status_response = 11;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_StatusResponse|null
|
|
*/
|
|
public function getStatusResponse()
|
|
{
|
|
return $this->readOneof(11);
|
|
}
|
|
|
|
public function hasStatusResponse()
|
|
{
|
|
return $this->hasOneof(11);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_StatusResponse status_response = 11;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_StatusResponse $var
|
|
* @return $this
|
|
*/
|
|
public function setStatusResponse($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_StatusResponse::class);
|
|
$this->writeOneof(11, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_TwoStepTrigger two_step_trigger = 12;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_TwoStepTrigger|null
|
|
*/
|
|
public function getTwoStepTrigger()
|
|
{
|
|
return $this->readOneof(12);
|
|
}
|
|
|
|
public function hasTwoStepTrigger()
|
|
{
|
|
return $this->hasOneof(12);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_TwoStepTrigger two_step_trigger = 12;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_TwoStepTrigger $var
|
|
* @return $this
|
|
*/
|
|
public function setTwoStepTrigger($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_TwoStepTrigger::class);
|
|
$this->writeOneof(12, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_PrerollComplete preroll_complete = 13;</code>
|
|
* @return \Rv\Data\NetworkAPI\Action\API_PrerollComplete|null
|
|
*/
|
|
public function getPrerollComplete()
|
|
{
|
|
return $this->readOneof(13);
|
|
}
|
|
|
|
public function hasPrerollComplete()
|
|
{
|
|
return $this->hasOneof(13);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_PrerollComplete preroll_complete = 13;</code>
|
|
* @param \Rv\Data\NetworkAPI\Action\API_PrerollComplete $var
|
|
* @return $this
|
|
*/
|
|
public function setPrerollComplete($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_PrerollComplete::class);
|
|
$this->writeOneof(13, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCommand()
|
|
{
|
|
return $this->whichOneof("Command");
|
|
}
|
|
|
|
}
|
|
|