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

70 lines
1.5 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1.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.NetworkAPI_v1</code>
*/
class NetworkAPI_v1 extends \Google\Protobuf\Internal\Message
{
protected $Command;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\NetworkAPI_v1\Action $action
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.NetworkAPI_v1.Action action = 1;</code>
* @return \Rv\Data\NetworkAPI_v1\Action|null
*/
public function getAction()
{
return $this->readOneof(1);
}
public function hasAction()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field <code>.rv.data.NetworkAPI_v1.Action action = 1;</code>
* @param \Rv\Data\NetworkAPI_v1\Action $var
* @return $this
*/
public function setAction($var)
{
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI_v1\Action::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* @return string
*/
public function getCommand()
{
return $this->whichOneof("Command");
}
}