Files
protobuf/gen/proto/php/Printer/V1/Invoice/DocumentResponse.php
2022-05-31 09:30:19 +02:00

115 lines
2.8 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: printer/v1/pdf_invoice.proto
namespace Printer\V1\Invoice;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* PDF Response
*
* Generated from protobuf message <code>printer.v1.invoice.DocumentResponse</code>
*/
class DocumentResponse extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>bytes document = 1 [json_name = "document"];</code>
*/
protected $document = '';
/**
* Generated from protobuf field <code>string signature = 2 [json_name = "signature"];</code>
*/
protected $signature = '';
/**
* Generated from protobuf field <code>string sha512 = 3 [json_name = "sha512"];</code>
*/
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 <code>bytes document = 1 [json_name = "document"];</code>
* @return string
*/
public function getDocument()
{
return $this->document;
}
/**
* Generated from protobuf field <code>bytes document = 1 [json_name = "document"];</code>
* @param string $var
* @return $this
*/
public function setDocument($var)
{
GPBUtil::checkString($var, False);
$this->document = $var;
return $this;
}
/**
* Generated from protobuf field <code>string signature = 2 [json_name = "signature"];</code>
* @return string
*/
public function getSignature()
{
return $this->signature;
}
/**
* Generated from protobuf field <code>string signature = 2 [json_name = "signature"];</code>
* @param string $var
* @return $this
*/
public function setSignature($var)
{
GPBUtil::checkString($var, True);
$this->signature = $var;
return $this;
}
/**
* Generated from protobuf field <code>string sha512 = 3 [json_name = "sha512"];</code>
* @return string
*/
public function getSha512()
{
return $this->sha512;
}
/**
* Generated from protobuf field <code>string sha512 = 3 [json_name = "sha512"];</code>
* @param string $var
* @return $this
*/
public function setSha512($var)
{
GPBUtil::checkString($var, True);
$this->sha512 = $var;
return $this;
}
}