mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add new gradido proto files and update parse proto script
This commit is contained in:
parent
35b14d7480
commit
9353d35a6f
@ -1 +1 @@
|
|||||||
Subproject commit a04d4769974b9d93ba72e490ed7dca3fbaed768c
|
Subproject commit 21d4a0a5e9a19f251e26c0ae07ce74be2fa99bbf
|
||||||
@ -16,5 +16,5 @@
|
|||||||
#PHP_PLUGIN="$(which grpc_php_plugin)"
|
#PHP_PLUGIN="$(which grpc_php_plugin)"
|
||||||
#protoc --proto_path=./src/protobuf/gradido --php_out=./src/ --grpc_out=./src/ --plugin=protoc-gen-grpc=$PHP_PLUGIN ./src/protobuf/gradido/*.proto
|
#protoc --proto_path=./src/protobuf/gradido --php_out=./src/ --grpc_out=./src/ --plugin=protoc-gen-grpc=$PHP_PLUGIN ./src/protobuf/gradido/*.proto
|
||||||
|
|
||||||
protoc --proto_path=./src/protobuf/gradido --php_out=./src/ ./src/protobuf/gradido/*.proto
|
protoc --proto_path=./src/protobuf --php_out=./src/Model/Messages ./src/protobuf/gradido/*.proto
|
||||||
|
|
||||||
|
|||||||
146
src/Model/Messages/Proto/Gradido/CrossGroupTransfer.php
Normal file
146
src/Model/Messages/Proto/Gradido/CrossGroupTransfer.php
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GradidoTransfer.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.CrossGroupTransfer</code>
|
||||||
|
*/
|
||||||
|
class CrossGroupTransfer extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount sender = 1;</code>
|
||||||
|
*/
|
||||||
|
private $sender = null;
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes receiver = 2;</code>
|
||||||
|
*/
|
||||||
|
private $receiver = '';
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>string other_group = 3;</code>
|
||||||
|
*/
|
||||||
|
private $other_group = '';
|
||||||
|
/**
|
||||||
|
* this matches related OutboundTransfer.paired_transaction_id
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.Timestamp paired_transaction_id = 4;</code>
|
||||||
|
*/
|
||||||
|
private $paired_transaction_id = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type \Proto\Gradido\TransferAmount $sender
|
||||||
|
* @type string $receiver
|
||||||
|
* @type string $other_group
|
||||||
|
* @type \Proto\Gradido\Timestamp $paired_transaction_id
|
||||||
|
* this matches related OutboundTransfer.paired_transaction_id
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GradidoTransfer::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount sender = 1;</code>
|
||||||
|
* @return \Proto\Gradido\TransferAmount
|
||||||
|
*/
|
||||||
|
public function getSender()
|
||||||
|
{
|
||||||
|
return $this->sender;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount sender = 1;</code>
|
||||||
|
* @param \Proto\Gradido\TransferAmount $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setSender($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\TransferAmount::class);
|
||||||
|
$this->sender = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes receiver = 2;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getReceiver()
|
||||||
|
{
|
||||||
|
return $this->receiver;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes receiver = 2;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setReceiver($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->receiver = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>string other_group = 3;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getOtherGroup()
|
||||||
|
{
|
||||||
|
return $this->other_group;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>string other_group = 3;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setOtherGroup($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, True);
|
||||||
|
$this->other_group = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* this matches related OutboundTransfer.paired_transaction_id
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.Timestamp paired_transaction_id = 4;</code>
|
||||||
|
* @return \Proto\Gradido\Timestamp
|
||||||
|
*/
|
||||||
|
public function getPairedTransactionId()
|
||||||
|
{
|
||||||
|
return $this->paired_transaction_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* this matches related OutboundTransfer.paired_transaction_id
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.Timestamp paired_transaction_id = 4;</code>
|
||||||
|
* @param \Proto\Gradido\Timestamp $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPairedTransactionId($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\Timestamp::class);
|
||||||
|
$this->paired_transaction_id = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
102
src/Model/Messages/Proto/Gradido/GradidoCreation.php
Normal file
102
src/Model/Messages/Proto/Gradido/GradidoCreation.php
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GradidoCreation.proto
|
||||||
|
|
||||||
|
namespace Proto\Gradido;
|
||||||
|
|
||||||
|
use Google\Protobuf\Internal\GPBType;
|
||||||
|
use Google\Protobuf\Internal\RepeatedField;
|
||||||
|
use Google\Protobuf\Internal\GPBUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* need signature from group admin or
|
||||||
|
* percent of group users another than the receiver
|
||||||
|
*
|
||||||
|
* Generated from protobuf message <code>proto.gradido.GradidoCreation</code>
|
||||||
|
*/
|
||||||
|
class GradidoCreation extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 40 Byte
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount receiver = 1;</code>
|
||||||
|
*/
|
||||||
|
private $receiver = null;
|
||||||
|
/**
|
||||||
|
* 8 Byte
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TimestampSeconds target_date = 3;</code>
|
||||||
|
*/
|
||||||
|
private $target_date = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type \Proto\Gradido\TransferAmount $receiver
|
||||||
|
* 40 Byte
|
||||||
|
* @type \Proto\Gradido\TimestampSeconds $target_date
|
||||||
|
* 8 Byte
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GradidoCreation::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 40 Byte
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount receiver = 1;</code>
|
||||||
|
* @return \Proto\Gradido\TransferAmount
|
||||||
|
*/
|
||||||
|
public function getReceiver()
|
||||||
|
{
|
||||||
|
return $this->receiver;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 40 Byte
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount receiver = 1;</code>
|
||||||
|
* @param \Proto\Gradido\TransferAmount $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setReceiver($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\TransferAmount::class);
|
||||||
|
$this->receiver = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 8 Byte
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TimestampSeconds target_date = 3;</code>
|
||||||
|
* @return \Proto\Gradido\TimestampSeconds
|
||||||
|
*/
|
||||||
|
public function getTargetDate()
|
||||||
|
{
|
||||||
|
return $this->target_date;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 8 Byte
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TimestampSeconds target_date = 3;</code>
|
||||||
|
* @param \Proto\Gradido\TimestampSeconds $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setTargetDate($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\TimestampSeconds::class);
|
||||||
|
$this->target_date = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
116
src/Model/Messages/Proto/Gradido/GradidoTransaction.php
Normal file
116
src/Model/Messages/Proto/Gradido/GradidoTransaction.php
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GradidoTransaction.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.GradidoTransaction</code>
|
||||||
|
*/
|
||||||
|
class GradidoTransaction extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.SignatureMap sig_map = 1;</code>
|
||||||
|
*/
|
||||||
|
private $sig_map = null;
|
||||||
|
/**
|
||||||
|
* TODO: consider if having concrete type wouldn't be better;
|
||||||
|
* having bytes would better show what is signed, still for
|
||||||
|
* blockchain it doesn't matter, as it has to be serialized again
|
||||||
|
* when validating
|
||||||
|
* UNICORN ANSWER:
|
||||||
|
* Maybe but hedera has at first concrete type and has depracted that now, so is must
|
||||||
|
* be reason for that
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
* TODO: consider if having concrete type wouldn't be better;
|
||||||
|
* having bytes would better show what is signed, still for
|
||||||
|
* blockchain it doesn't matter, as it has to be serialized again
|
||||||
|
* when validating
|
||||||
|
* UNICORN ANSWER:
|
||||||
|
* Maybe but hedera has at first concrete type and has depracted that now, so is must
|
||||||
|
* be reason for that
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GradidoTransaction::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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO: consider if having concrete type wouldn't be better;
|
||||||
|
* having bytes would better show what is signed, still for
|
||||||
|
* blockchain it doesn't matter, as it has to be serialized again
|
||||||
|
* when validating
|
||||||
|
* UNICORN ANSWER:
|
||||||
|
* Maybe but hedera has at first concrete type and has depracted that now, so is must
|
||||||
|
* be reason for that
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes body_bytes = 2;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getBodyBytes()
|
||||||
|
{
|
||||||
|
return $this->body_bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO: consider if having concrete type wouldn't be better;
|
||||||
|
* having bytes would better show what is signed, still for
|
||||||
|
* blockchain it doesn't matter, as it has to be serialized again
|
||||||
|
* when validating
|
||||||
|
* UNICORN ANSWER:
|
||||||
|
* Maybe but hedera has at first concrete type and has depracted that now, so is must
|
||||||
|
* be reason for that
|
||||||
|
*
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
109
src/Model/Messages/Proto/Gradido/GradidoTransfer.php
Normal file
109
src/Model/Messages/Proto/Gradido/GradidoTransfer.php
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GradidoTransfer.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.GradidoTransfer</code>
|
||||||
|
*/
|
||||||
|
class GradidoTransfer extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
protected $data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type \Proto\Gradido\LocalTransfer $local
|
||||||
|
* @type \Proto\Gradido\CrossGroupTransfer $inbound
|
||||||
|
* @type \Proto\Gradido\CrossGroupTransfer $outbound
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GradidoTransfer::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.LocalTransfer local = 1;</code>
|
||||||
|
* @return \Proto\Gradido\LocalTransfer
|
||||||
|
*/
|
||||||
|
public function getLocal()
|
||||||
|
{
|
||||||
|
return $this->readOneof(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.LocalTransfer local = 1;</code>
|
||||||
|
* @param \Proto\Gradido\LocalTransfer $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setLocal($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\LocalTransfer::class);
|
||||||
|
$this->writeOneof(1, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.CrossGroupTransfer inbound = 2;</code>
|
||||||
|
* @return \Proto\Gradido\CrossGroupTransfer
|
||||||
|
*/
|
||||||
|
public function getInbound()
|
||||||
|
{
|
||||||
|
return $this->readOneof(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.CrossGroupTransfer inbound = 2;</code>
|
||||||
|
* @param \Proto\Gradido\CrossGroupTransfer $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setInbound($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\CrossGroupTransfer::class);
|
||||||
|
$this->writeOneof(2, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.CrossGroupTransfer outbound = 3;</code>
|
||||||
|
* @return \Proto\Gradido\CrossGroupTransfer
|
||||||
|
*/
|
||||||
|
public function getOutbound()
|
||||||
|
{
|
||||||
|
return $this->readOneof(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.CrossGroupTransfer outbound = 3;</code>
|
||||||
|
* @param \Proto\Gradido\CrossGroupTransfer $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setOutbound($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\CrossGroupTransfer::class);
|
||||||
|
$this->writeOneof(3, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getData()
|
||||||
|
{
|
||||||
|
return $this->whichOneof("data");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
92
src/Model/Messages/Proto/Gradido/GroupFriendsUpdate.php
Normal file
92
src/Model/Messages/Proto/Gradido/GroupFriendsUpdate.php
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GroupFriendsUpdate.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.GroupFriendsUpdate</code>
|
||||||
|
*/
|
||||||
|
class GroupFriendsUpdate extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* char[16], alias
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>string group = 1;</code>
|
||||||
|
*/
|
||||||
|
private $group = '';
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupFriendsUpdate.Action action = 2;</code>
|
||||||
|
*/
|
||||||
|
private $action = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type string $group
|
||||||
|
* char[16], alias
|
||||||
|
* @type int $action
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GroupFriendsUpdate::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* char[16], alias
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>string group = 1;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getGroup()
|
||||||
|
{
|
||||||
|
return $this->group;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* char[16], alias
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>string group = 1;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setGroup($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, True);
|
||||||
|
$this->group = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupFriendsUpdate.Action action = 2;</code>
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getAction()
|
||||||
|
{
|
||||||
|
return $this->action;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupFriendsUpdate.Action action = 2;</code>
|
||||||
|
* @param int $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setAction($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkEnum($var, \Proto\Gradido\GroupFriendsUpdate_Action::class);
|
||||||
|
$this->action = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,51 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GroupFriendsUpdate.proto
|
||||||
|
|
||||||
|
namespace Proto\Gradido\GroupFriendsUpdate;
|
||||||
|
|
||||||
|
use UnexpectedValueException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Protobuf type <code>proto.gradido.GroupFriendsUpdate.Action</code>
|
||||||
|
*/
|
||||||
|
class Action
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf enum <code>ADD_FRIEND = 0;</code>
|
||||||
|
*/
|
||||||
|
const ADD_FRIEND = 0;
|
||||||
|
/**
|
||||||
|
* Generated from protobuf enum <code>REMOVE_FRIEND = 1;</code>
|
||||||
|
*/
|
||||||
|
const REMOVE_FRIEND = 1;
|
||||||
|
|
||||||
|
private static $valueToName = [
|
||||||
|
self::ADD_FRIEND => 'ADD_FRIEND',
|
||||||
|
self::REMOVE_FRIEND => 'REMOVE_FRIEND',
|
||||||
|
];
|
||||||
|
|
||||||
|
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(Action::class, \Proto\Gradido\GroupFriendsUpdate_Action::class);
|
||||||
|
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GroupFriendsUpdate.proto
|
||||||
|
|
||||||
|
namespace Proto\Gradido;
|
||||||
|
|
||||||
|
if (false) {
|
||||||
|
/**
|
||||||
|
* This class is deprecated. Use Proto\Gradido\GroupFriendsUpdate\Action instead.
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
class GroupFriendsUpdate_Action {}
|
||||||
|
}
|
||||||
|
class_exists(GroupFriendsUpdate\Action::class);
|
||||||
|
@trigger_error('Proto\Gradido\GroupFriendsUpdate_Action is deprecated and will be removed in the next major release. Use Proto\Gradido\GroupFriendsUpdate\Action instead', E_USER_DEPRECATED);
|
||||||
|
|
||||||
146
src/Model/Messages/Proto/Gradido/GroupMemberUpdate.php
Normal file
146
src/Model/Messages/Proto/Gradido/GroupMemberUpdate.php
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GroupMemberUpdate.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.GroupMemberUpdate</code>
|
||||||
|
*/
|
||||||
|
class GroupMemberUpdate extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes user_pubkey = 1;</code>
|
||||||
|
*/
|
||||||
|
private $user_pubkey = '';
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupMemberUpdate.MemberUpdateType member_update_type = 2;</code>
|
||||||
|
*/
|
||||||
|
private $member_update_type = 0;
|
||||||
|
/**
|
||||||
|
* this only makes sense for user move, TODO: probably restructure
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.Timestamp paired_transaction_id = 3;</code>
|
||||||
|
*/
|
||||||
|
private $paired_transaction_id = null;
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>string target_group = 4;</code>
|
||||||
|
*/
|
||||||
|
private $target_group = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type string $user_pubkey
|
||||||
|
* @type int $member_update_type
|
||||||
|
* @type \Proto\Gradido\Timestamp $paired_transaction_id
|
||||||
|
* this only makes sense for user move, TODO: probably restructure
|
||||||
|
* @type string $target_group
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GroupMemberUpdate::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes user_pubkey = 1;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getUserPubkey()
|
||||||
|
{
|
||||||
|
return $this->user_pubkey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes user_pubkey = 1;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setUserPubkey($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->user_pubkey = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupMemberUpdate.MemberUpdateType member_update_type = 2;</code>
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getMemberUpdateType()
|
||||||
|
{
|
||||||
|
return $this->member_update_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupMemberUpdate.MemberUpdateType member_update_type = 2;</code>
|
||||||
|
* @param int $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setMemberUpdateType($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkEnum($var, \Proto\Gradido\GroupMemberUpdate_MemberUpdateType::class);
|
||||||
|
$this->member_update_type = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* this only makes sense for user move, TODO: probably restructure
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.Timestamp paired_transaction_id = 3;</code>
|
||||||
|
* @return \Proto\Gradido\Timestamp
|
||||||
|
*/
|
||||||
|
public function getPairedTransactionId()
|
||||||
|
{
|
||||||
|
return $this->paired_transaction_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* this only makes sense for user move, TODO: probably restructure
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.Timestamp paired_transaction_id = 3;</code>
|
||||||
|
* @param \Proto\Gradido\Timestamp $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPairedTransactionId($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\Timestamp::class);
|
||||||
|
$this->paired_transaction_id = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>string target_group = 4;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getTargetGroup()
|
||||||
|
{
|
||||||
|
return $this->target_group;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>string target_group = 4;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setTargetGroup($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, True);
|
||||||
|
$this->target_group = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,56 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GroupMemberUpdate.proto
|
||||||
|
|
||||||
|
namespace Proto\Gradido\GroupMemberUpdate;
|
||||||
|
|
||||||
|
use UnexpectedValueException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Protobuf type <code>proto.gradido.GroupMemberUpdate.MemberUpdateType</code>
|
||||||
|
*/
|
||||||
|
class MemberUpdateType
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf enum <code>ADD_USER = 0;</code>
|
||||||
|
*/
|
||||||
|
const ADD_USER = 0;
|
||||||
|
/**
|
||||||
|
* Generated from protobuf enum <code>MOVE_USER_INBOUND = 1;</code>
|
||||||
|
*/
|
||||||
|
const MOVE_USER_INBOUND = 1;
|
||||||
|
/**
|
||||||
|
* Generated from protobuf enum <code>MOVE_USER_OUTBOUND = 2;</code>
|
||||||
|
*/
|
||||||
|
const MOVE_USER_OUTBOUND = 2;
|
||||||
|
|
||||||
|
private static $valueToName = [
|
||||||
|
self::ADD_USER => 'ADD_USER',
|
||||||
|
self::MOVE_USER_INBOUND => 'MOVE_USER_INBOUND',
|
||||||
|
self::MOVE_USER_OUTBOUND => 'MOVE_USER_OUTBOUND',
|
||||||
|
];
|
||||||
|
|
||||||
|
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(MemberUpdateType::class, \Proto\Gradido\GroupMemberUpdate_MemberUpdateType::class);
|
||||||
|
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GroupMemberUpdate.proto
|
||||||
|
|
||||||
|
namespace Proto\Gradido;
|
||||||
|
|
||||||
|
if (false) {
|
||||||
|
/**
|
||||||
|
* This class is deprecated. Use Proto\Gradido\GroupMemberUpdate\MemberUpdateType instead.
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
class GroupMemberUpdate_MemberUpdateType {}
|
||||||
|
}
|
||||||
|
class_exists(GroupMemberUpdate\MemberUpdateType::class);
|
||||||
|
@trigger_error('Proto\Gradido\GroupMemberUpdate_MemberUpdateType is deprecated and will be removed in the next major release. Use Proto\Gradido\GroupMemberUpdate\MemberUpdateType instead', E_USER_DEPRECATED);
|
||||||
|
|
||||||
96
src/Model/Messages/Proto/Gradido/Key.php
Normal file
96
src/Model/Messages/Proto/Gradido/Key.php
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf message <code>proto.gradido.Key</code>
|
||||||
|
*/
|
||||||
|
class Key extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
protected $key;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type string $ed25519
|
||||||
|
* ed25519 signature (libsodium default)
|
||||||
|
* @type string $ed25519_ref10
|
||||||
|
* ed25519 ref10 signature
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\BasicTypes::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 signature (libsodium default)
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519 = 2;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getEd25519()
|
||||||
|
{
|
||||||
|
return $this->readOneof(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 signature (libsodium default)
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519 = 2;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEd25519($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->writeOneof(2, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 ref10 signature
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519_ref10 = 3;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getEd25519Ref10()
|
||||||
|
{
|
||||||
|
return $this->readOneof(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 ref10 signature
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519_ref10 = 3;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEd25519Ref10($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->writeOneof(3, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getKey()
|
||||||
|
{
|
||||||
|
return $this->whichOneof("key");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
85
src/Model/Messages/Proto/Gradido/LocalTransfer.php
Normal file
85
src/Model/Messages/Proto/Gradido/LocalTransfer.php
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/GradidoTransfer.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.LocalTransfer</code>
|
||||||
|
*/
|
||||||
|
class LocalTransfer extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount sender = 1;</code>
|
||||||
|
*/
|
||||||
|
private $sender = null;
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes receiver = 2;</code>
|
||||||
|
*/
|
||||||
|
private $receiver = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type \Proto\Gradido\TransferAmount $sender
|
||||||
|
* @type string $receiver
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\GradidoTransfer::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount sender = 1;</code>
|
||||||
|
* @return \Proto\Gradido\TransferAmount
|
||||||
|
*/
|
||||||
|
public function getSender()
|
||||||
|
{
|
||||||
|
return $this->sender;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.TransferAmount sender = 1;</code>
|
||||||
|
* @param \Proto\Gradido\TransferAmount $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setSender($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\TransferAmount::class);
|
||||||
|
$this->sender = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes receiver = 2;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getReceiver()
|
||||||
|
{
|
||||||
|
return $this->receiver;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes receiver = 2;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setReceiver($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->receiver = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
65
src/Model/Messages/Proto/Gradido/SignatureMap.php
Normal file
65
src/Model/Messages/Proto/Gradido/SignatureMap.php
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf message <code>proto.gradido.SignatureMap</code>
|
||||||
|
*/
|
||||||
|
class SignatureMap extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Each signature pair corresponds to a unique Key required to sign the transaction.
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>repeated .proto.gradido.SignaturePair sigPair = 1;</code>
|
||||||
|
*/
|
||||||
|
private $sigPair;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type \Proto\Gradido\SignaturePair[]|\Google\Protobuf\Internal\RepeatedField $sigPair
|
||||||
|
* Each signature pair corresponds to a unique Key required to sign the transaction.
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\BasicTypes::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Each signature pair corresponds to a unique Key required to sign the transaction.
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>repeated .proto.gradido.SignaturePair sigPair = 1;</code>
|
||||||
|
* @return \Google\Protobuf\Internal\RepeatedField
|
||||||
|
*/
|
||||||
|
public function getSigPair()
|
||||||
|
{
|
||||||
|
return $this->sigPair;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Each signature pair corresponds to a unique Key required to sign the transaction.
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>repeated .proto.gradido.SignaturePair sigPair = 1;</code>
|
||||||
|
* @param \Proto\Gradido\SignaturePair[]|\Google\Protobuf\Internal\RepeatedField $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setSigPair($var)
|
||||||
|
{
|
||||||
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Gradido\SignaturePair::class);
|
||||||
|
$this->sigPair = $arr;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
123
src/Model/Messages/Proto/Gradido/SignaturePair.php
Normal file
123
src/Model/Messages/Proto/Gradido/SignaturePair.php
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf message <code>proto.gradido.SignaturePair</code>
|
||||||
|
*/
|
||||||
|
class SignaturePair extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes pubKey = 1;</code>
|
||||||
|
*/
|
||||||
|
private $pubKey = '';
|
||||||
|
protected $signature;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type string $pubKey
|
||||||
|
* @type string $ed25519
|
||||||
|
* ed25519 signature (libsodium default)
|
||||||
|
* @type string $ed25519_ref10
|
||||||
|
* ed25519 ref10 signature
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\BasicTypes::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes pubKey = 1;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getPubKey()
|
||||||
|
{
|
||||||
|
return $this->pubKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes pubKey = 1;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPubKey($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->pubKey = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 signature (libsodium default)
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519 = 2;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getEd25519()
|
||||||
|
{
|
||||||
|
return $this->readOneof(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 signature (libsodium default)
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519 = 2;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEd25519($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->writeOneof(2, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 ref10 signature
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519_ref10 = 3;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getEd25519Ref10()
|
||||||
|
{
|
||||||
|
return $this->readOneof(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ed25519 ref10 signature
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>bytes ed25519_ref10 = 3;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEd25519Ref10($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->writeOneof(3, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getSignature()
|
||||||
|
{
|
||||||
|
return $this->whichOneof("signature");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
101
src/Model/Messages/Proto/Gradido/Timestamp.php
Normal file
101
src/Model/Messages/Proto/Gradido/Timestamp.php
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An exact date and time. This is the same data structure as the protobuf Timestamp.proto (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto)
|
||||||
|
*
|
||||||
|
* Generated from protobuf message <code>proto.gradido.Timestamp</code>
|
||||||
|
*/
|
||||||
|
class Timestamp extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
||||||
|
*/
|
||||||
|
private $seconds = 0;
|
||||||
|
/**
|
||||||
|
* Number of nanoseconds since the start of the last second
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int32 nanos = 2;</code>
|
||||||
|
*/
|
||||||
|
private $nanos = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type int|string $seconds
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
* @type int $nanos
|
||||||
|
* Number of nanoseconds since the start of the last second
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\BasicTypes::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
||||||
|
* @return int|string
|
||||||
|
*/
|
||||||
|
public function getSeconds()
|
||||||
|
{
|
||||||
|
return $this->seconds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
||||||
|
* @param int|string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setSeconds($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkInt64($var);
|
||||||
|
$this->seconds = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of nanoseconds since the start of the last second
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int32 nanos = 2;</code>
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getNanos()
|
||||||
|
{
|
||||||
|
return $this->nanos;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of nanoseconds since the start of the last second
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int32 nanos = 2;</code>
|
||||||
|
* @param int $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setNanos($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkInt32($var);
|
||||||
|
$this->nanos = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
67
src/Model/Messages/Proto/Gradido/TimestampSeconds.php
Normal file
67
src/Model/Messages/Proto/Gradido/TimestampSeconds.php
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An exact date and time, with a resolution of one second (no nanoseconds).
|
||||||
|
*
|
||||||
|
* Generated from protobuf message <code>proto.gradido.TimestampSeconds</code>
|
||||||
|
*/
|
||||||
|
class TimestampSeconds extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
||||||
|
*/
|
||||||
|
private $seconds = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type int|string $seconds
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\BasicTypes::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
||||||
|
* @return int|string
|
||||||
|
*/
|
||||||
|
public function getSeconds()
|
||||||
|
{
|
||||||
|
return $this->seconds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of complete seconds since the start of the epoch
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
||||||
|
* @param int|string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setSeconds($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkInt64($var);
|
||||||
|
$this->seconds = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
193
src/Model/Messages/Proto/Gradido/TransactionBody.php
Normal file
193
src/Model/Messages/Proto/Gradido/TransactionBody.php
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
<?php
|
||||||
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||||
|
# source: gradido/TransactionBody.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.TransactionBody</code>
|
||||||
|
*/
|
||||||
|
class TransactionBody extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* max 150 chars
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>string memo = 1;</code>
|
||||||
|
*/
|
||||||
|
private $memo = '';
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>uint64 version_number = 6;</code>
|
||||||
|
*/
|
||||||
|
private $version_number = 0;
|
||||||
|
protected $data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type string $memo
|
||||||
|
* max 150 chars
|
||||||
|
* @type \Proto\Gradido\GradidoTransfer $transfer
|
||||||
|
* @type \Proto\Gradido\GradidoCreation $creation
|
||||||
|
* @type \Proto\Gradido\GroupFriendsUpdate $group_friends_update
|
||||||
|
* @type \Proto\Gradido\GroupMemberUpdate $group_member_update
|
||||||
|
* @type int|string $version_number
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\TransactionBody::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* max 150 chars
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>string memo = 1;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getMemo()
|
||||||
|
{
|
||||||
|
return $this->memo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* max 150 chars
|
||||||
|
*
|
||||||
|
* Generated from protobuf field <code>string memo = 1;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setMemo($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, True);
|
||||||
|
$this->memo = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GradidoTransfer transfer = 2;</code>
|
||||||
|
* @return \Proto\Gradido\GradidoTransfer
|
||||||
|
*/
|
||||||
|
public function getTransfer()
|
||||||
|
{
|
||||||
|
return $this->readOneof(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GradidoTransfer transfer = 2;</code>
|
||||||
|
* @param \Proto\Gradido\GradidoTransfer $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setTransfer($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\GradidoTransfer::class);
|
||||||
|
$this->writeOneof(2, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GradidoCreation creation = 3;</code>
|
||||||
|
* @return \Proto\Gradido\GradidoCreation
|
||||||
|
*/
|
||||||
|
public function getCreation()
|
||||||
|
{
|
||||||
|
return $this->readOneof(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GradidoCreation creation = 3;</code>
|
||||||
|
* @param \Proto\Gradido\GradidoCreation $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setCreation($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\GradidoCreation::class);
|
||||||
|
$this->writeOneof(3, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupFriendsUpdate group_friends_update = 4;</code>
|
||||||
|
* @return \Proto\Gradido\GroupFriendsUpdate
|
||||||
|
*/
|
||||||
|
public function getGroupFriendsUpdate()
|
||||||
|
{
|
||||||
|
return $this->readOneof(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupFriendsUpdate group_friends_update = 4;</code>
|
||||||
|
* @param \Proto\Gradido\GroupFriendsUpdate $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setGroupFriendsUpdate($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\GroupFriendsUpdate::class);
|
||||||
|
$this->writeOneof(4, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupMemberUpdate group_member_update = 5;</code>
|
||||||
|
* @return \Proto\Gradido\GroupMemberUpdate
|
||||||
|
*/
|
||||||
|
public function getGroupMemberUpdate()
|
||||||
|
{
|
||||||
|
return $this->readOneof(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>.proto.gradido.GroupMemberUpdate group_member_update = 5;</code>
|
||||||
|
* @param \Proto\Gradido\GroupMemberUpdate $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setGroupMemberUpdate($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkMessage($var, \Proto\Gradido\GroupMemberUpdate::class);
|
||||||
|
$this->writeOneof(5, $var);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>uint64 version_number = 6;</code>
|
||||||
|
* @return int|string
|
||||||
|
*/
|
||||||
|
public function getVersionNumber()
|
||||||
|
{
|
||||||
|
return $this->version_number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>uint64 version_number = 6;</code>
|
||||||
|
* @param int|string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setVersionNumber($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkUint64($var);
|
||||||
|
$this->version_number = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getData()
|
||||||
|
{
|
||||||
|
return $this->whichOneof("data");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
85
src/Model/Messages/Proto/Gradido/TransferAmount.php
Normal file
85
src/Model/Messages/Proto/Gradido/TransferAmount.php
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf message <code>proto.gradido.TransferAmount</code>
|
||||||
|
*/
|
||||||
|
class TransferAmount extends \Google\Protobuf\Internal\Message
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes pubkey = 1;</code>
|
||||||
|
*/
|
||||||
|
private $pubkey = '';
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>sint64 amount = 2;</code>
|
||||||
|
*/
|
||||||
|
private $amount = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param array $data {
|
||||||
|
* Optional. Data for populating the Message object.
|
||||||
|
*
|
||||||
|
* @type string $pubkey
|
||||||
|
* @type int|string $amount
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
public function __construct($data = NULL) {
|
||||||
|
\GPBMetadata\Gradido\BasicTypes::initOnce();
|
||||||
|
parent::__construct($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes pubkey = 1;</code>
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getPubkey()
|
||||||
|
{
|
||||||
|
return $this->pubkey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>bytes pubkey = 1;</code>
|
||||||
|
* @param string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPubkey($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkString($var, False);
|
||||||
|
$this->pubkey = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>sint64 amount = 2;</code>
|
||||||
|
* @return int|string
|
||||||
|
*/
|
||||||
|
public function getAmount()
|
||||||
|
{
|
||||||
|
return $this->amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated from protobuf field <code>sint64 amount = 2;</code>
|
||||||
|
* @param int|string $var
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setAmount($var)
|
||||||
|
{
|
||||||
|
GPBUtil::checkInt64($var);
|
||||||
|
$this->amount = $var;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@ -1 +1 @@
|
|||||||
Subproject commit 9004e6978ac3dafcc635b2ffcf8bc6a156451cca
|
Subproject commit 81a461566e46d71533dc3e284fa075d7d68fd020
|
||||||
Loading…
x
Reference in New Issue
Block a user