238 lines
6.8 KiB
PHP
238 lines
6.8 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApiV1Message.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_Message_Response</code>
|
|
*/
|
|
class API_v1_Message_Response extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Response;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\API_v1_Message_Response\Messages $messages
|
|
* @type \Rv\Data\API_v1_Message_Response\CreateMessage $create_message
|
|
* @type \Rv\Data\API_v1_Message_Response\GetMessage $get_message
|
|
* @type \Rv\Data\API_v1_Message_Response\PutMessage $put_message
|
|
* @type \Rv\Data\API_v1_Message_Response\DeleteMessage $delete_message
|
|
* @type \Rv\Data\API_v1_Message_Response\TriggerMessage $trigger_message
|
|
* @type \Rv\Data\API_v1_Message_Response\ClearMessage $clear_message
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Message::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.Messages messages = 1;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\Messages|null
|
|
*/
|
|
public function getMessages()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasMessages()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.Messages messages = 1;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\Messages $var
|
|
* @return $this
|
|
*/
|
|
public function setMessages($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\Messages::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.CreateMessage create_message = 2;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\CreateMessage|null
|
|
*/
|
|
public function getCreateMessage()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasCreateMessage()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.CreateMessage create_message = 2;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\CreateMessage $var
|
|
* @return $this
|
|
*/
|
|
public function setCreateMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\CreateMessage::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.GetMessage get_message = 3;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\GetMessage|null
|
|
*/
|
|
public function getGetMessage()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasGetMessage()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.GetMessage get_message = 3;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\GetMessage $var
|
|
* @return $this
|
|
*/
|
|
public function setGetMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\GetMessage::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.PutMessage put_message = 4;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\PutMessage|null
|
|
*/
|
|
public function getPutMessage()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasPutMessage()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.PutMessage put_message = 4;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\PutMessage $var
|
|
* @return $this
|
|
*/
|
|
public function setPutMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\PutMessage::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.DeleteMessage delete_message = 5;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\DeleteMessage|null
|
|
*/
|
|
public function getDeleteMessage()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasDeleteMessage()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.DeleteMessage delete_message = 5;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\DeleteMessage $var
|
|
* @return $this
|
|
*/
|
|
public function setDeleteMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\DeleteMessage::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.TriggerMessage trigger_message = 6;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\TriggerMessage|null
|
|
*/
|
|
public function getTriggerMessage()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasTriggerMessage()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.TriggerMessage trigger_message = 6;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\TriggerMessage $var
|
|
* @return $this
|
|
*/
|
|
public function setTriggerMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\TriggerMessage::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.ClearMessage clear_message = 7;</code>
|
|
* @return \Rv\Data\API_v1_Message_Response\ClearMessage|null
|
|
*/
|
|
public function getClearMessage()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasClearMessage()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Message_Response.ClearMessage clear_message = 7;</code>
|
|
* @param \Rv\Data\API_v1_Message_Response\ClearMessage $var
|
|
* @return $this
|
|
*/
|
|
public function setClearMessage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Message_Response\ClearMessage::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getResponse()
|
|
{
|
|
return $this->whichOneof("Response");
|
|
}
|
|
|
|
}
|
|
|