model.messages.gradido.Transaction
*/
class Transaction extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field uint64 id = 1;
*/
private $id = 0;
/**
* Generated from protobuf field .model.messages.gradido.TimestampSeconds received = 2;
*/
private $received = null;
/**
* Generated from protobuf field .model.messages.gradido.SignatureMap sigMap = 3;
*/
private $sigMap = null;
/**
* Generated from protobuf field bytes txHash = 4;
*/
private $txHash = '';
/**
* Generated from protobuf field bytes bodyBytes = 5;
*/
private $bodyBytes = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int|string $id
* @type \Model\Messages\Gradido\TimestampSeconds $received
* @type \Model\Messages\Gradido\SignatureMap $sigMap
* @type string $txHash
* @type string $bodyBytes
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Transaction::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field uint64 id = 1;
* @return int|string
*/
public function getId()
{
return $this->id;
}
/**
* Generated from protobuf field uint64 id = 1;
* @param int|string $var
* @return $this
*/
public function setId($var)
{
GPBUtil::checkUint64($var);
$this->id = $var;
return $this;
}
/**
* Generated from protobuf field .model.messages.gradido.TimestampSeconds received = 2;
* @return \Model\Messages\Gradido\TimestampSeconds
*/
public function getReceived()
{
return $this->received;
}
/**
* Generated from protobuf field .model.messages.gradido.TimestampSeconds received = 2;
* @param \Model\Messages\Gradido\TimestampSeconds $var
* @return $this
*/
public function setReceived($var)
{
GPBUtil::checkMessage($var, \Model\Messages\Gradido\TimestampSeconds::class);
$this->received = $var;
return $this;
}
/**
* Generated from protobuf field .model.messages.gradido.SignatureMap sigMap = 3;
* @return \Model\Messages\Gradido\SignatureMap
*/
public function getSigMap()
{
return $this->sigMap;
}
/**
* Generated from protobuf field .model.messages.gradido.SignatureMap sigMap = 3;
* @param \Model\Messages\Gradido\SignatureMap $var
* @return $this
*/
public function setSigMap($var)
{
GPBUtil::checkMessage($var, \Model\Messages\Gradido\SignatureMap::class);
$this->sigMap = $var;
return $this;
}
/**
* Generated from protobuf field bytes txHash = 4;
* @return string
*/
public function getTxHash()
{
return $this->txHash;
}
/**
* Generated from protobuf field bytes txHash = 4;
* @param string $var
* @return $this
*/
public function setTxHash($var)
{
GPBUtil::checkString($var, False);
$this->txHash = $var;
return $this;
}
/**
* Generated from protobuf field bytes bodyBytes = 5;
* @return string
*/
public function getBodyBytes()
{
return $this->bodyBytes;
}
/**
* Generated from protobuf field bytes bodyBytes = 5;
* @param string $var
* @return $this
*/
public function setBodyBytes($var)
{
GPBUtil::checkString($var, False);
$this->bodyBytes = $var;
return $this;
}
}