diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/BasicTypes.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/BasicTypes.php new file mode 100644 index 000000000..60fa5f22b --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/BasicTypes.php @@ -0,0 +1,39 @@ +internalAddGeneratedFile(hex2bin( + "0aca030a186772616469646f2f426173696354797065732e70726f746f12" . + "0d70726f746f2e6772616469646f22380a034b657912110a076564323535" . + "313918022001280c480012170a0d656432353531395f7265663130180320" . + "01280c480042050a036b657922580a0d5369676e61747572655061697212" . + "0e0a067075624b657918012001280c12110a076564323535313918022001" . + "280c480012170a0d656432353531395f726566313018032001280c480042" . + "0b0a097369676e6174757265223d0a0c5369676e61747572654d6170122d" . + "0a077369675061697218012003280b321c2e70726f746f2e677261646964" . + "6f2e5369676e617475726550616972222b0a0954696d657374616d70120f" . + "0a077365636f6e6473180120012803120d0a056e616e6f73180220012805" . + "22230a1054696d657374616d705365636f6e6473120f0a077365636f6e64" . + "7318012001280322300a0e5472616e73666572416d6f756e74120e0a0670" . + "75626b657918012001280c120e0a06616d6f756e7418022001281222400a" . + "08486564657261494412100a0873686172644e756d18012001280312100a" . + "087265616c6d4e756d18022001280312100a08746f7069634e756d180320" . + "012803620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoCreation.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoCreation.php new file mode 100644 index 000000000..ebe7409db --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoCreation.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile(hex2bin( + "0ab0010a1d6772616469646f2f4772616469646f4372656174696f6e2e70" . + "726f746f120d70726f746f2e6772616469646f22780a0f4772616469646f" . + "4372656174696f6e122f0a08726563656976657218012001280b321d2e70" . + "726f746f2e6772616469646f2e5472616e73666572416d6f756e7412340a" . + "0b7461726765745f6461746518032001280b321f2e70726f746f2e677261" . + "6469646f2e54696d657374616d705365636f6e6473620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoTransaction.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoTransaction.php new file mode 100644 index 000000000..78460bd9f --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoTransaction.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile(hex2bin( + "0a91010a206772616469646f2f4772616469646f5472616e73616374696f" . + "6e2e70726f746f120d70726f746f2e6772616469646f22560a1247726164" . + "69646f5472616e73616374696f6e122c0a077369675f6d61701801200128" . + "0b321b2e70726f746f2e6772616469646f2e5369676e61747572654d6170" . + "12120a0a626f64795f627974657318022001280c620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoTransfer.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoTransfer.php new file mode 100644 index 000000000..6d7e6e375 --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/GradidoTransfer.php @@ -0,0 +1,41 @@ +internalAddGeneratedFile(hex2bin( + "0ae6030a1d6772616469646f2f4772616469646f5472616e736665722e70" . + "726f746f120d70726f746f2e6772616469646f22500a0d4c6f63616c5472" . + "616e73666572122d0a0673656e64657218012001280b321d2e70726f746f" . + "2e6772616469646f2e5472616e73666572416d6f756e7412100a08726563" . + "656976657218022001280c22a3010a1243726f737347726f75705472616e" . + "73666572122d0a0673656e64657218012001280b321d2e70726f746f2e67" . + "72616469646f2e5472616e73666572416d6f756e7412100a087265636569" . + "76657218022001280c12130a0b6f746865725f67726f7570180320012809" . + "12370a157061697265645f7472616e73616374696f6e5f69641804200128" . + "0b32182e70726f746f2e6772616469646f2e54696d657374616d7022b501" . + "0a0f4772616469646f5472616e73666572122d0a056c6f63616c18012001" . + "280b321c2e70726f746f2e6772616469646f2e4c6f63616c5472616e7366" . + "6572480012340a07696e626f756e6418022001280b32212e70726f746f2e" . + "6772616469646f2e43726f737347726f75705472616e7366657248001235" . + "0a086f7574626f756e6418032001280b32212e70726f746f2e6772616469" . + "646f2e43726f737347726f75705472616e73666572480042060a04646174" . + "61620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/GroupFriendsUpdate.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/GroupFriendsUpdate.php new file mode 100644 index 000000000..929e33b9d --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/GroupFriendsUpdate.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile(hex2bin( + "0ac6010a206772616469646f2f47726f7570467269656e64735570646174" . + "652e70726f746f120d70726f746f2e6772616469646f228a010a1247726f" . + "7570467269656e6473557064617465120d0a0567726f7570180120012809" . + "12380a06616374696f6e18022001280e32282e70726f746f2e6772616469" . + "646f2e47726f7570467269656e64735570646174652e416374696f6e222b" . + "0a06416374696f6e120e0a0a4144445f465249454e44100012110a0d5245" . + "4d4f56455f465249454e441001620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/GroupMemberUpdate.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/GroupMemberUpdate.php new file mode 100644 index 000000000..c2a308292 --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/GroupMemberUpdate.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile(hex2bin( + "0ad2020a1f6772616469646f2f47726f75704d656d626572557064617465" . + "2e70726f746f120d70726f746f2e6772616469646f2297020a1147726f75" . + "704d656d62657255706461746512130a0b757365725f7075626b65791801" . + "2001280c124d0a126d656d6265725f7570646174655f7479706518022001" . + "280e32312e70726f746f2e6772616469646f2e47726f75704d656d626572" . + "5570646174652e4d656d6265725570646174655479706512370a15706169" . + "7265645f7472616e73616374696f6e5f696418032001280b32182e70726f" . + "746f2e6772616469646f2e54696d657374616d7012140a0c746172676574" . + "5f67726f7570180420012809224f0a104d656d6265725570646174655479" . + "7065120c0a084144445f55534552100012150a114d4f56455f555345525f" . + "494e424f554e44100112160a124d4f56455f555345525f4f5554424f554e" . + "441002620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeBody.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeBody.php new file mode 100644 index 000000000..aec11c28b --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeBody.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile(hex2bin( + "0ab9010a1c6772616469646f2f4d616e6167654e6f6465426f64792e7072" . + "6f746f120d70726f746f2e6772616469646f1a186772616469646f2f4261" . + "73696354797065732e70726f746f22680a0e4d616e6167654e6f6465426f" . + "647912160a0e76657273696f6e5f6e756d62657218012001280412360a09" . + "67726f75705f61646418032001280b32212e70726f746f2e677261646964" . + "6f2e4d616e6167654e6f646547726f7570416464480042060a0464617461" . + "620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeGroupAdd.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeGroupAdd.php new file mode 100644 index 000000000..ffb25984d --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeGroupAdd.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile(hex2bin( + "0aaa010a206772616469646f2f4d616e6167654e6f646547726f75704164" . + "642e70726f746f120d70726f746f2e6772616469646f226f0a124d616e61" . + "67654e6f646547726f757041646412120a0a67726f75705f6e616d651801" . + "2001280912130a0b67726f75705f616c69617318022001280912300a0f68" . + "65646572615f746f7069635f696418032001280b32172e70726f746f2e67" . + "72616469646f2e4865646572614944620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeRequest.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeRequest.php new file mode 100644 index 000000000..ef7dca297 --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/ManageNodeRequest.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile(hex2bin( + "0ade020a1f6772616469646f2f4d616e6167654e6f646552657175657374" . + "2e70726f746f120d70726f746f2e6772616469646f22550a114d616e6167" . + "654e6f646552657175657374122c0a077369675f6d617018012001280b32" . + "1b2e70726f746f2e6772616469646f2e5369676e61747572654d61701212" . + "0a0a626f64795f627974657318022001280c22cc010a124d616e6167654e" . + "6f6465526573706f6e7365120f0a0773756363657373180120012808123a" . + "0a056572726f7218022001280e322b2e70726f746f2e6772616469646f2e" . + "4d616e6167654e6f6465526573706f6e73652e4572726f72436f64652269" . + "0a094572726f72436f646512100a0c494e56414c49445f424f4459100012" . + "150a11494e56414c49445f5349474e4154555245100112140a105349474e" . + "45525f4e4f545f4b4e4f574e1002121d0a1947524f55505f414c4941535f" . + "414c52454144595f45584953541003620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/community_server/src/Model/Messages/GPBMetadata/Gradido/TransactionBody.php b/community_server/src/Model/Messages/GPBMetadata/Gradido/TransactionBody.php new file mode 100644 index 000000000..f55b61f4d --- /dev/null +++ b/community_server/src/Model/Messages/GPBMetadata/Gradido/TransactionBody.php @@ -0,0 +1,46 @@ +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; + } +} + diff --git a/community_server/src/Model/Messages/Proto/Gradido/HederaID.php b/community_server/src/Model/Messages/Proto/Gradido/HederaID.php new file mode 100644 index 000000000..cd0478031 --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/HederaID.php @@ -0,0 +1,135 @@ +proto.gradido.HederaID + */ +class HederaID extends \Google\Protobuf\Internal\Message +{ + /** + * The shard number (nonnegative) + * + * Generated from protobuf field int64 shardNum = 1; + */ + private $shardNum = 0; + /** + * The realm number (nonnegative) + * + * Generated from protobuf field int64 realmNum = 2; + */ + private $realmNum = 0; + /** + * Unique topic identifier within a realm (nonnegative). + * + * Generated from protobuf field int64 topicNum = 3; + */ + 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 int64 shardNum = 1; + * @return int|string + */ + public function getShardNum() + { + return $this->shardNum; + } + + /** + * The shard number (nonnegative) + * + * Generated from protobuf field int64 shardNum = 1; + * @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 int64 realmNum = 2; + * @return int|string + */ + public function getRealmNum() + { + return $this->realmNum; + } + + /** + * The realm number (nonnegative) + * + * Generated from protobuf field int64 realmNum = 2; + * @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 int64 topicNum = 3; + * @return int|string + */ + public function getTopicNum() + { + return $this->topicNum; + } + + /** + * Unique topic identifier within a realm (nonnegative). + * + * Generated from protobuf field int64 topicNum = 3; + * @param int|string $var + * @return $this + */ + public function setTopicNum($var) + { + GPBUtil::checkInt64($var); + $this->topicNum = $var; + + return $this; + } + +} + diff --git a/community_server/src/Model/Messages/Proto/Gradido/ManageNodeBody.php b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeBody.php new file mode 100644 index 000000000..eed599868 --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeBody.php @@ -0,0 +1,90 @@ +proto.gradido.ManageNodeBody + */ +class ManageNodeBody extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 version_number = 1; + */ + 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 uint64 version_number = 1; + * @return int|string + */ + public function getVersionNumber() + { + return $this->version_number; + } + + /** + * Generated from protobuf field uint64 version_number = 1; + * @param int|string $var + * @return $this + */ + public function setVersionNumber($var) + { + GPBUtil::checkUint64($var); + $this->version_number = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.gradido.ManageNodeGroupAdd group_add = 3; + * @return \Proto\Gradido\ManageNodeGroupAdd + */ + public function getGroupAdd() + { + return $this->readOneof(3); + } + + /** + * Generated from protobuf field .proto.gradido.ManageNodeGroupAdd group_add = 3; + * @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"); + } + +} + diff --git a/community_server/src/Model/Messages/Proto/Gradido/ManageNodeGroupAdd.php b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeGroupAdd.php new file mode 100644 index 000000000..777075066 --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeGroupAdd.php @@ -0,0 +1,119 @@ +proto.gradido.ManageNodeGroupAdd + */ +class ManageNodeGroupAdd extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string group_name = 1; + */ + private $group_name = ''; + /** + * Generated from protobuf field string group_alias = 2; + */ + private $group_alias = ''; + /** + *string parent_group_alias = 4; + * + * Generated from protobuf field .proto.gradido.HederaID hedera_topic_id = 3; + */ + 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 string group_name = 1; + * @return string + */ + public function getGroupName() + { + return $this->group_name; + } + + /** + * Generated from protobuf field string group_name = 1; + * @param string $var + * @return $this + */ + public function setGroupName($var) + { + GPBUtil::checkString($var, True); + $this->group_name = $var; + + return $this; + } + + /** + * Generated from protobuf field string group_alias = 2; + * @return string + */ + public function getGroupAlias() + { + return $this->group_alias; + } + + /** + * Generated from protobuf field string group_alias = 2; + * @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 .proto.gradido.HederaID hedera_topic_id = 3; + * @return \Proto\Gradido\HederaID + */ + public function getHederaTopicId() + { + return $this->hedera_topic_id; + } + + /** + *string parent_group_alias = 4; + * + * Generated from protobuf field .proto.gradido.HederaID hedera_topic_id = 3; + * @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; + } + +} + diff --git a/community_server/src/Model/Messages/Proto/Gradido/ManageNodeRequest.php b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeRequest.php new file mode 100644 index 000000000..6699b98c5 --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeRequest.php @@ -0,0 +1,92 @@ +proto.gradido.ManageNodeRequest + */ +class ManageNodeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .proto.gradido.SignatureMap sig_map = 1; + */ + private $sig_map = null; + /** + * ManageNodeBody + * + * Generated from protobuf field bytes body_bytes = 2; + */ + 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 .proto.gradido.SignatureMap sig_map = 1; + * @return \Proto\Gradido\SignatureMap + */ + public function getSigMap() + { + return $this->sig_map; + } + + /** + * Generated from protobuf field .proto.gradido.SignatureMap sig_map = 1; + * @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 bytes body_bytes = 2; + * @return string + */ + public function getBodyBytes() + { + return $this->body_bytes; + } + + /** + * ManageNodeBody + * + * Generated from protobuf field bytes body_bytes = 2; + * @param string $var + * @return $this + */ + public function setBodyBytes($var) + { + GPBUtil::checkString($var, False); + $this->body_bytes = $var; + + return $this; + } + +} + diff --git a/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse.php b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse.php new file mode 100644 index 000000000..c7a4f80a5 --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse.php @@ -0,0 +1,85 @@ +proto.gradido.ManageNodeResponse + */ +class ManageNodeResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bool success = 1; + */ + private $success = false; + /** + * Generated from protobuf field .proto.gradido.ManageNodeResponse.ErrorCode error = 2; + */ + 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 bool success = 1; + * @return bool + */ + public function getSuccess() + { + return $this->success; + } + + /** + * Generated from protobuf field bool success = 1; + * @param bool $var + * @return $this + */ + public function setSuccess($var) + { + GPBUtil::checkBool($var); + $this->success = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.gradido.ManageNodeResponse.ErrorCode error = 2; + * @return int + */ + public function getError() + { + return $this->error; + } + + /** + * Generated from protobuf field .proto.gradido.ManageNodeResponse.ErrorCode error = 2; + * @param int $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkEnum($var, \Proto\Gradido\ManageNodeResponse_ErrorCode::class); + $this->error = $var; + + return $this; + } + +} + diff --git a/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse/ErrorCode.php b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse/ErrorCode.php new file mode 100644 index 000000000..ab352829e --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse/ErrorCode.php @@ -0,0 +1,61 @@ +proto.gradido.ManageNodeResponse.ErrorCode + */ +class ErrorCode +{ + /** + * Generated from protobuf enum INVALID_BODY = 0; + */ + const INVALID_BODY = 0; + /** + * Generated from protobuf enum INVALID_SIGNATURE = 1; + */ + const INVALID_SIGNATURE = 1; + /** + * Generated from protobuf enum SIGNER_NOT_KNOWN = 2; + */ + const SIGNER_NOT_KNOWN = 2; + /** + * Generated from protobuf enum GROUP_ALIAS_ALREADY_EXIST = 3; + */ + 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); + diff --git a/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse_ErrorCode.php b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse_ErrorCode.php new file mode 100644 index 000000000..8a7db7515 --- /dev/null +++ b/community_server/src/Model/Messages/Proto/Gradido/ManageNodeResponse_ErrorCode.php @@ -0,0 +1,16 @@ +