188 lines
4.7 KiB
PHP
188 lines
4.7 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</code>
|
|
*/
|
|
class API_v1_Message extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
|
|
*/
|
|
protected $id = null;
|
|
/**
|
|
* Generated from protobuf field <code>string message = 2;</code>
|
|
*/
|
|
protected $message = '';
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 3;</code>
|
|
*/
|
|
private $tokens;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Identifier theme = 4;</code>
|
|
*/
|
|
protected $theme = null;
|
|
/**
|
|
* Generated from protobuf field <code>bool visible_on_network = 5;</code>
|
|
*/
|
|
protected $visible_on_network = false;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\API_v1_Identifier $id
|
|
* @type string $message
|
|
* @type array<\Rv\Data\API_v1_Message\API_v1_MessageToken>|\Google\Protobuf\Internal\RepeatedField $tokens
|
|
* @type \Rv\Data\API_v1_Identifier $theme
|
|
* @type bool $visible_on_network
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Message::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
|
|
* @return \Rv\Data\API_v1_Identifier|null
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function hasId()
|
|
{
|
|
return isset($this->id);
|
|
}
|
|
|
|
public function clearId()
|
|
{
|
|
unset($this->id);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
|
|
* @param \Rv\Data\API_v1_Identifier $var
|
|
* @return $this
|
|
*/
|
|
public function setId($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Identifier::class);
|
|
$this->id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string message = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
return $this->message;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string message = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setMessage($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->message = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 3;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getTokens()
|
|
{
|
|
return $this->tokens;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 3;</code>
|
|
* @param array<\Rv\Data\API_v1_Message\API_v1_MessageToken>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setTokens($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\API_v1_Message\API_v1_MessageToken::class);
|
|
$this->tokens = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Identifier theme = 4;</code>
|
|
* @return \Rv\Data\API_v1_Identifier|null
|
|
*/
|
|
public function getTheme()
|
|
{
|
|
return $this->theme;
|
|
}
|
|
|
|
public function hasTheme()
|
|
{
|
|
return isset($this->theme);
|
|
}
|
|
|
|
public function clearTheme()
|
|
{
|
|
unset($this->theme);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Identifier theme = 4;</code>
|
|
* @param \Rv\Data\API_v1_Identifier $var
|
|
* @return $this
|
|
*/
|
|
public function setTheme($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Identifier::class);
|
|
$this->theme = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool visible_on_network = 5;</code>
|
|
* @return bool
|
|
*/
|
|
public function getVisibleOnNetwork()
|
|
{
|
|
return $this->visible_on_network;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool visible_on_network = 5;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setVisibleOnNetwork($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->visible_on_network = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|