- 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
154 lines
4.2 KiB
PHP
154 lines
4.2 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApi.proto
|
|
|
|
namespace Rv\Data\ProLink;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.ProLink.ClientAction</code>
|
|
*/
|
|
class ClientAction extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $ActionType;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\ProLink\ClientAction\AddConnection $add_connection
|
|
* @type \Rv\Data\ProLink\ClientAction\RemoveConnection $remove_connection
|
|
* @type \Rv\Data\ProLink\ClientAction\CancelAction $cancel_action
|
|
* @type \Rv\Data\ProLink\ClientAction\RenderTime $render_time
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApi::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.AddConnection add_connection = 1;</code>
|
|
* @return \Rv\Data\ProLink\ClientAction\AddConnection|null
|
|
*/
|
|
public function getAddConnection()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasAddConnection()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.AddConnection add_connection = 1;</code>
|
|
* @param \Rv\Data\ProLink\ClientAction\AddConnection $var
|
|
* @return $this
|
|
*/
|
|
public function setAddConnection($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\AddConnection::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.RemoveConnection remove_connection = 2;</code>
|
|
* @return \Rv\Data\ProLink\ClientAction\RemoveConnection|null
|
|
*/
|
|
public function getRemoveConnection()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasRemoveConnection()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.RemoveConnection remove_connection = 2;</code>
|
|
* @param \Rv\Data\ProLink\ClientAction\RemoveConnection $var
|
|
* @return $this
|
|
*/
|
|
public function setRemoveConnection($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\RemoveConnection::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.CancelAction cancel_action = 3;</code>
|
|
* @return \Rv\Data\ProLink\ClientAction\CancelAction|null
|
|
*/
|
|
public function getCancelAction()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasCancelAction()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.CancelAction cancel_action = 3;</code>
|
|
* @param \Rv\Data\ProLink\ClientAction\CancelAction $var
|
|
* @return $this
|
|
*/
|
|
public function setCancelAction($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\CancelAction::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.RenderTime render_time = 4;</code>
|
|
* @return \Rv\Data\ProLink\ClientAction\RenderTime|null
|
|
*/
|
|
public function getRenderTime()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasRenderTime()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.ProLink.ClientAction.RenderTime render_time = 4;</code>
|
|
* @param \Rv\Data\ProLink\ClientAction\RenderTime $var
|
|
* @return $this
|
|
*/
|
|
public function setRenderTime($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\ProLink\ClientAction\RenderTime::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getActionType()
|
|
{
|
|
return $this->whichOneof("ActionType");
|
|
}
|
|
|
|
}
|
|
|