rv.data.API_v1_Message */ class API_v1_Message extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.API_v1_Identifier id = 1; */ protected $id = null; /** * Generated from protobuf field string message = 2; */ protected $message = ''; /** * Generated from protobuf field repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 3; */ private $tokens; /** * Generated from protobuf field .rv.data.API_v1_Identifier theme = 4; */ protected $theme = null; /** * Generated from protobuf field bool visible_on_network = 5; */ 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 .rv.data.API_v1_Identifier id = 1; * @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 .rv.data.API_v1_Identifier id = 1; * @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 string message = 2; * @return string */ public function getMessage() { return $this->message; } /** * Generated from protobuf field string message = 2; * @param string $var * @return $this */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; return $this; } /** * Generated from protobuf field repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTokens() { return $this->tokens; } /** * Generated from protobuf field repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 3; * @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 .rv.data.API_v1_Identifier theme = 4; * @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 .rv.data.API_v1_Identifier theme = 4; * @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 bool visible_on_network = 5; * @return bool */ public function getVisibleOnNetwork() { return $this->visible_on_network; } /** * Generated from protobuf field bool visible_on_network = 5; * @param bool $var * @return $this */ public function setVisibleOnNetwork($var) { GPBUtil::checkBool($var); $this->visible_on_network = $var; return $this; } }