printer.v1.invoice.DocumentResponse
*/
class DocumentResponse extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field bytes document = 1 [json_name = "document"];
*/
protected $document = '';
/**
* Generated from protobuf field string signature = 2 [json_name = "signature"];
*/
protected $signature = '';
/**
* Generated from protobuf field string sha512 = 3 [json_name = "sha512"];
*/
protected $sha512 = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $document
* @type string $signature
* @type string $sha512
* }
*/
public function __construct($data = NULL) {
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field bytes document = 1 [json_name = "document"];
* @return string
*/
public function getDocument()
{
return $this->document;
}
/**
* Generated from protobuf field bytes document = 1 [json_name = "document"];
* @param string $var
* @return $this
*/
public function setDocument($var)
{
GPBUtil::checkString($var, False);
$this->document = $var;
return $this;
}
/**
* Generated from protobuf field string signature = 2 [json_name = "signature"];
* @return string
*/
public function getSignature()
{
return $this->signature;
}
/**
* Generated from protobuf field string signature = 2 [json_name = "signature"];
* @param string $var
* @return $this
*/
public function setSignature($var)
{
GPBUtil::checkString($var, True);
$this->signature = $var;
return $this;
}
/**
* Generated from protobuf field string sha512 = 3 [json_name = "sha512"];
* @return string
*/
public function getSha512()
{
return $this->sha512;
}
/**
* Generated from protobuf field string sha512 = 3 [json_name = "sha512"];
* @param string $var
* @return $this
*/
public function setSha512($var)
{
GPBUtil::checkString($var, True);
$this->sha512 = $var;
return $this;
}
}