add new protobuf message php files

This commit is contained in:
Dario Rekowski on RockPI 2021-04-16 14:38:16 +00:00
parent eec060aa42
commit f0bad9c380
17 changed files with 947 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/BasicTypes.proto
namespace GPBMetadata\Gradido;
class BasicTypes
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(hex2bin(
"0aca030a186772616469646f2f426173696354797065732e70726f746f12" .
"0d70726f746f2e6772616469646f22380a034b657912110a076564323535" .
"313918022001280c480012170a0d656432353531395f7265663130180320" .
"01280c480042050a036b657922580a0d5369676e61747572655061697212" .
"0e0a067075624b657918012001280c12110a076564323535313918022001" .
"280c480012170a0d656432353531395f726566313018032001280c480042" .
"0b0a097369676e6174757265223d0a0c5369676e61747572654d6170122d" .
"0a077369675061697218012003280b321c2e70726f746f2e677261646964" .
"6f2e5369676e617475726550616972222b0a0954696d657374616d70120f" .
"0a077365636f6e6473180120012803120d0a056e616e6f73180220012805" .
"22230a1054696d657374616d705365636f6e6473120f0a077365636f6e64" .
"7318012001280322300a0e5472616e73666572416d6f756e74120e0a0670" .
"75626b657918012001280c120e0a06616d6f756e7418022001281222400a" .
"08486564657261494412100a0873686172644e756d18012001280312100a" .
"087265616c6d4e756d18022001280312100a08746f7069634e756d180320" .
"012803620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/GradidoCreation.proto
namespace GPBMetadata\Gradido;
class GradidoCreation
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0ab0010a1d6772616469646f2f4772616469646f4372656174696f6e2e70" .
"726f746f120d70726f746f2e6772616469646f22780a0f4772616469646f" .
"4372656174696f6e122f0a08726563656976657218012001280b321d2e70" .
"726f746f2e6772616469646f2e5472616e73666572416d6f756e7412340a" .
"0b7461726765745f6461746518032001280b321f2e70726f746f2e677261" .
"6469646f2e54696d657374616d705365636f6e6473620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,29 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/GradidoTransaction.proto
namespace GPBMetadata\Gradido;
class GradidoTransaction
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0a91010a206772616469646f2f4772616469646f5472616e73616374696f" .
"6e2e70726f746f120d70726f746f2e6772616469646f22560a1247726164" .
"69646f5472616e73616374696f6e122c0a077369675f6d61701801200128" .
"0b321b2e70726f746f2e6772616469646f2e5369676e61747572654d6170" .
"12120a0a626f64795f627974657318022001280c620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,41 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/GradidoTransfer.proto
namespace GPBMetadata\Gradido;
class GradidoTransfer
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0ae6030a1d6772616469646f2f4772616469646f5472616e736665722e70" .
"726f746f120d70726f746f2e6772616469646f22500a0d4c6f63616c5472" .
"616e73666572122d0a0673656e64657218012001280b321d2e70726f746f" .
"2e6772616469646f2e5472616e73666572416d6f756e7412100a08726563" .
"656976657218022001280c22a3010a1243726f737347726f75705472616e" .
"73666572122d0a0673656e64657218012001280b321d2e70726f746f2e67" .
"72616469646f2e5472616e73666572416d6f756e7412100a087265636569" .
"76657218022001280c12130a0b6f746865725f67726f7570180320012809" .
"12370a157061697265645f7472616e73616374696f6e5f69641804200128" .
"0b32182e70726f746f2e6772616469646f2e54696d657374616d7022b501" .
"0a0f4772616469646f5472616e73666572122d0a056c6f63616c18012001" .
"280b321c2e70726f746f2e6772616469646f2e4c6f63616c5472616e7366" .
"6572480012340a07696e626f756e6418022001280b32212e70726f746f2e" .
"6772616469646f2e43726f737347726f75705472616e7366657248001235" .
"0a086f7574626f756e6418032001280b32212e70726f746f2e6772616469" .
"646f2e43726f737347726f75705472616e73666572480042060a04646174" .
"61620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/GroupFriendsUpdate.proto
namespace GPBMetadata\Gradido;
class GroupFriendsUpdate
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(hex2bin(
"0ac6010a206772616469646f2f47726f7570467269656e64735570646174" .
"652e70726f746f120d70726f746f2e6772616469646f228a010a1247726f" .
"7570467269656e6473557064617465120d0a0567726f7570180120012809" .
"12380a06616374696f6e18022001280e32282e70726f746f2e6772616469" .
"646f2e47726f7570467269656e64735570646174652e416374696f6e222b" .
"0a06416374696f6e120e0a0a4144445f465249454e44100012110a0d5245" .
"4d4f56455f465249454e441001620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,36 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/GroupMemberUpdate.proto
namespace GPBMetadata\Gradido;
class GroupMemberUpdate
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0ad2020a1f6772616469646f2f47726f75704d656d626572557064617465" .
"2e70726f746f120d70726f746f2e6772616469646f2297020a1147726f75" .
"704d656d62657255706461746512130a0b757365725f7075626b65791801" .
"2001280c124d0a126d656d6265725f7570646174655f7479706518022001" .
"280e32312e70726f746f2e6772616469646f2e47726f75704d656d626572" .
"5570646174652e4d656d6265725570646174655479706512370a15706169" .
"7265645f7472616e73616374696f6e5f696418032001280b32182e70726f" .
"746f2e6772616469646f2e54696d657374616d7012140a0c746172676574" .
"5f67726f7570180420012809224f0a104d656d6265725570646174655479" .
"7065120c0a084144445f55534552100012150a114d4f56455f555345525f" .
"494e424f554e44100112160a124d4f56455f555345525f4f5554424f554e" .
"441002620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,32 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeBody.proto
namespace GPBMetadata\Gradido;
class ManageNodeBody
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\ManageNodeGroupAdd::initOnce();
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0ab9010a1c6772616469646f2f4d616e6167654e6f6465426f64792e7072" .
"6f746f120d70726f746f2e6772616469646f1a186772616469646f2f4261" .
"73696354797065732e70726f746f22680a0e4d616e6167654e6f6465426f" .
"647912160a0e76657273696f6e5f6e756d62657218012001280412360a09" .
"67726f75705f61646418032001280b32212e70726f746f2e677261646964" .
"6f2e4d616e6167654e6f646547726f7570416464480042060a0464617461" .
"620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeGroupAdd.proto
namespace GPBMetadata\Gradido;
class ManageNodeGroupAdd
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0aaa010a206772616469646f2f4d616e6167654e6f646547726f75704164" .
"642e70726f746f120d70726f746f2e6772616469646f226f0a124d616e61" .
"67654e6f646547726f757041646412120a0a67726f75705f6e616d651801" .
"2001280912130a0b67726f75705f616c69617318022001280912300a0f68" .
"65646572615f746f7069635f696418032001280b32172e70726f746f2e67" .
"72616469646f2e4865646572614944620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,36 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeRequest.proto
namespace GPBMetadata\Gradido;
class ManageNodeRequest
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0ade020a1f6772616469646f2f4d616e6167654e6f646552657175657374" .
"2e70726f746f120d70726f746f2e6772616469646f22550a114d616e6167" .
"654e6f646552657175657374122c0a077369675f6d617018012001280b32" .
"1b2e70726f746f2e6772616469646f2e5369676e61747572654d61701212" .
"0a0a626f64795f627974657318022001280c22cc010a124d616e6167654e" .
"6f6465526573706f6e7365120f0a0773756363657373180120012808123a" .
"0a056572726f7218022001280e322b2e70726f746f2e6772616469646f2e" .
"4d616e6167654e6f6465526573706f6e73652e4572726f72436f64652269" .
"0a094572726f72436f646512100a0c494e56414c49445f424f4459100012" .
"150a11494e56414c49445f5349474e4154555245100112140a105349474e" .
"45525f4e4f545f4b4e4f574e1002121d0a1947524f55505f414c4941535f" .
"414c52454144595f45584953541003620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,46 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/TransactionBody.proto
namespace GPBMetadata\Gradido;
class TransactionBody
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Gradido\GradidoTransfer::initOnce();
\GPBMetadata\Gradido\GradidoCreation::initOnce();
\GPBMetadata\Gradido\GroupFriendsUpdate::initOnce();
\GPBMetadata\Gradido\GroupMemberUpdate::initOnce();
\GPBMetadata\Gradido\BasicTypes::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0a92040a1d6772616469646f2f5472616e73616374696f6e426f64792e70" .
"726f746f120d70726f746f2e6772616469646f1a1d6772616469646f2f47" .
"72616469646f4372656174696f6e2e70726f746f1a206772616469646f2f" .
"47726f7570467269656e64735570646174652e70726f746f1a1f67726164" .
"69646f2f47726f75704d656d6265725570646174652e70726f746f1a1867" .
"72616469646f2f426173696354797065732e70726f746f22dd020a0f5472" .
"616e73616374696f6e426f6479120c0a046d656d6f18012001280912300a" .
"076372656174656418022001280b321f2e70726f746f2e6772616469646f" .
"2e54696d657374616d705365636f6e647312160a0e76657273696f6e5f6e" .
"756d62657218032001280412320a087472616e7366657218062001280b32" .
"1e2e70726f746f2e6772616469646f2e4772616469646f5472616e736665" .
"72480012320a086372656174696f6e18072001280b321e2e70726f746f2e" .
"6772616469646f2e4772616469646f4372656174696f6e480012410a1467" .
"726f75705f667269656e64735f75706461746518082001280b32212e7072" .
"6f746f2e6772616469646f2e47726f7570467269656e6473557064617465" .
"4800123f0a1367726f75705f6d656d6265725f7570646174651809200128" .
"0b32202e70726f746f2e6772616469646f2e47726f75704d656d62657255" .
"7064617465480042060a0464617461620670726f746f33"
), true);
static::$is_initialized = true;
}
}

View File

@ -0,0 +1,135 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/BasicTypes.proto
namespace Proto\Gradido;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* copyed from hedera topic id
*
* Generated from protobuf message <code>proto.gradido.HederaID</code>
*/
class HederaID extends \Google\Protobuf\Internal\Message
{
/**
* The shard number (nonnegative)
*
* Generated from protobuf field <code>int64 shardNum = 1;</code>
*/
private $shardNum = 0;
/**
* The realm number (nonnegative)
*
* Generated from protobuf field <code>int64 realmNum = 2;</code>
*/
private $realmNum = 0;
/**
* Unique topic identifier within a realm (nonnegative).
*
* Generated from protobuf field <code>int64 topicNum = 3;</code>
*/
private $topicNum = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int|string $shardNum
* The shard number (nonnegative)
* @type int|string $realmNum
* The realm number (nonnegative)
* @type int|string $topicNum
* Unique topic identifier within a realm (nonnegative).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Gradido\BasicTypes::initOnce();
parent::__construct($data);
}
/**
* The shard number (nonnegative)
*
* Generated from protobuf field <code>int64 shardNum = 1;</code>
* @return int|string
*/
public function getShardNum()
{
return $this->shardNum;
}
/**
* The shard number (nonnegative)
*
* Generated from protobuf field <code>int64 shardNum = 1;</code>
* @param int|string $var
* @return $this
*/
public function setShardNum($var)
{
GPBUtil::checkInt64($var);
$this->shardNum = $var;
return $this;
}
/**
* The realm number (nonnegative)
*
* Generated from protobuf field <code>int64 realmNum = 2;</code>
* @return int|string
*/
public function getRealmNum()
{
return $this->realmNum;
}
/**
* The realm number (nonnegative)
*
* Generated from protobuf field <code>int64 realmNum = 2;</code>
* @param int|string $var
* @return $this
*/
public function setRealmNum($var)
{
GPBUtil::checkInt64($var);
$this->realmNum = $var;
return $this;
}
/**
* Unique topic identifier within a realm (nonnegative).
*
* Generated from protobuf field <code>int64 topicNum = 3;</code>
* @return int|string
*/
public function getTopicNum()
{
return $this->topicNum;
}
/**
* Unique topic identifier within a realm (nonnegative).
*
* Generated from protobuf field <code>int64 topicNum = 3;</code>
* @param int|string $var
* @return $this
*/
public function setTopicNum($var)
{
GPBUtil::checkInt64($var);
$this->topicNum = $var;
return $this;
}
}

View File

@ -0,0 +1,90 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeBody.proto
namespace Proto\Gradido;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>proto.gradido.ManageNodeBody</code>
*/
class ManageNodeBody extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>uint64 version_number = 1;</code>
*/
private $version_number = 0;
protected $data;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int|string $version_number
* @type \Proto\Gradido\ManageNodeGroupAdd $group_add
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Gradido\ManageNodeBody::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>uint64 version_number = 1;</code>
* @return int|string
*/
public function getVersionNumber()
{
return $this->version_number;
}
/**
* Generated from protobuf field <code>uint64 version_number = 1;</code>
* @param int|string $var
* @return $this
*/
public function setVersionNumber($var)
{
GPBUtil::checkUint64($var);
$this->version_number = $var;
return $this;
}
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeGroupAdd group_add = 3;</code>
* @return \Proto\Gradido\ManageNodeGroupAdd
*/
public function getGroupAdd()
{
return $this->readOneof(3);
}
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeGroupAdd group_add = 3;</code>
* @param \Proto\Gradido\ManageNodeGroupAdd $var
* @return $this
*/
public function setGroupAdd($var)
{
GPBUtil::checkMessage($var, \Proto\Gradido\ManageNodeGroupAdd::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* @return string
*/
public function getData()
{
return $this->whichOneof("data");
}
}

View File

@ -0,0 +1,119 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeGroupAdd.proto
namespace Proto\Gradido;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>proto.gradido.ManageNodeGroupAdd</code>
*/
class ManageNodeGroupAdd extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string group_name = 1;</code>
*/
private $group_name = '';
/**
* Generated from protobuf field <code>string group_alias = 2;</code>
*/
private $group_alias = '';
/**
*string parent_group_alias = 4;
*
* Generated from protobuf field <code>.proto.gradido.HederaID hedera_topic_id = 3;</code>
*/
private $hedera_topic_id = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $group_name
* @type string $group_alias
* @type \Proto\Gradido\HederaID $hedera_topic_id
* string parent_group_alias = 4;
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Gradido\ManageNodeGroupAdd::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>string group_name = 1;</code>
* @return string
*/
public function getGroupName()
{
return $this->group_name;
}
/**
* Generated from protobuf field <code>string group_name = 1;</code>
* @param string $var
* @return $this
*/
public function setGroupName($var)
{
GPBUtil::checkString($var, True);
$this->group_name = $var;
return $this;
}
/**
* Generated from protobuf field <code>string group_alias = 2;</code>
* @return string
*/
public function getGroupAlias()
{
return $this->group_alias;
}
/**
* Generated from protobuf field <code>string group_alias = 2;</code>
* @param string $var
* @return $this
*/
public function setGroupAlias($var)
{
GPBUtil::checkString($var, True);
$this->group_alias = $var;
return $this;
}
/**
*string parent_group_alias = 4;
*
* Generated from protobuf field <code>.proto.gradido.HederaID hedera_topic_id = 3;</code>
* @return \Proto\Gradido\HederaID
*/
public function getHederaTopicId()
{
return $this->hedera_topic_id;
}
/**
*string parent_group_alias = 4;
*
* Generated from protobuf field <code>.proto.gradido.HederaID hedera_topic_id = 3;</code>
* @param \Proto\Gradido\HederaID $var
* @return $this
*/
public function setHederaTopicId($var)
{
GPBUtil::checkMessage($var, \Proto\Gradido\HederaID::class);
$this->hedera_topic_id = $var;
return $this;
}
}

View File

@ -0,0 +1,92 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeRequest.proto
namespace Proto\Gradido;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>proto.gradido.ManageNodeRequest</code>
*/
class ManageNodeRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.proto.gradido.SignatureMap sig_map = 1;</code>
*/
private $sig_map = null;
/**
* ManageNodeBody
*
* Generated from protobuf field <code>bytes body_bytes = 2;</code>
*/
private $body_bytes = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Proto\Gradido\SignatureMap $sig_map
* @type string $body_bytes
* ManageNodeBody
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Gradido\ManageNodeRequest::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.proto.gradido.SignatureMap sig_map = 1;</code>
* @return \Proto\Gradido\SignatureMap
*/
public function getSigMap()
{
return $this->sig_map;
}
/**
* Generated from protobuf field <code>.proto.gradido.SignatureMap sig_map = 1;</code>
* @param \Proto\Gradido\SignatureMap $var
* @return $this
*/
public function setSigMap($var)
{
GPBUtil::checkMessage($var, \Proto\Gradido\SignatureMap::class);
$this->sig_map = $var;
return $this;
}
/**
* ManageNodeBody
*
* Generated from protobuf field <code>bytes body_bytes = 2;</code>
* @return string
*/
public function getBodyBytes()
{
return $this->body_bytes;
}
/**
* ManageNodeBody
*
* Generated from protobuf field <code>bytes body_bytes = 2;</code>
* @param string $var
* @return $this
*/
public function setBodyBytes($var)
{
GPBUtil::checkString($var, False);
$this->body_bytes = $var;
return $this;
}
}

View File

@ -0,0 +1,85 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeRequest.proto
namespace Proto\Gradido;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>proto.gradido.ManageNodeResponse</code>
*/
class ManageNodeResponse extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>bool success = 1;</code>
*/
private $success = false;
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeResponse.ErrorCode error = 2;</code>
*/
private $error = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type bool $success
* @type int $error
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Gradido\ManageNodeRequest::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>bool success = 1;</code>
* @return bool
*/
public function getSuccess()
{
return $this->success;
}
/**
* Generated from protobuf field <code>bool success = 1;</code>
* @param bool $var
* @return $this
*/
public function setSuccess($var)
{
GPBUtil::checkBool($var);
$this->success = $var;
return $this;
}
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeResponse.ErrorCode error = 2;</code>
* @return int
*/
public function getError()
{
return $this->error;
}
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeResponse.ErrorCode error = 2;</code>
* @param int $var
* @return $this
*/
public function setError($var)
{
GPBUtil::checkEnum($var, \Proto\Gradido\ManageNodeResponse_ErrorCode::class);
$this->error = $var;
return $this;
}
}

View File

@ -0,0 +1,61 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeRequest.proto
namespace Proto\Gradido\ManageNodeResponse;
use UnexpectedValueException;
/**
* Protobuf type <code>proto.gradido.ManageNodeResponse.ErrorCode</code>
*/
class ErrorCode
{
/**
* Generated from protobuf enum <code>INVALID_BODY = 0;</code>
*/
const INVALID_BODY = 0;
/**
* Generated from protobuf enum <code>INVALID_SIGNATURE = 1;</code>
*/
const INVALID_SIGNATURE = 1;
/**
* Generated from protobuf enum <code>SIGNER_NOT_KNOWN = 2;</code>
*/
const SIGNER_NOT_KNOWN = 2;
/**
* Generated from protobuf enum <code>GROUP_ALIAS_ALREADY_EXIST = 3;</code>
*/
const GROUP_ALIAS_ALREADY_EXIST = 3;
private static $valueToName = [
self::INVALID_BODY => 'INVALID_BODY',
self::INVALID_SIGNATURE => 'INVALID_SIGNATURE',
self::SIGNER_NOT_KNOWN => 'SIGNER_NOT_KNOWN',
self::GROUP_ALIAS_ALREADY_EXIST => 'GROUP_ALIAS_ALREADY_EXIST',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorCode::class, \Proto\Gradido\ManageNodeResponse_ErrorCode::class);

View File

@ -0,0 +1,16 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeRequest.proto
namespace Proto\Gradido;
if (false) {
/**
* This class is deprecated. Use Proto\Gradido\ManageNodeResponse\ErrorCode instead.
* @deprecated
*/
class ManageNodeResponse_ErrorCode {}
}
class_exists(ManageNodeResponse\ErrorCode::class);
@trigger_error('Proto\Gradido\ManageNodeResponse_ErrorCode is deprecated and will be removed in the next major release. Use Proto\Gradido\ManageNodeResponse\ErrorCode instead', E_USER_DEPRECATED);