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

160 lines
4.3 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;
/**
* Generated from protobuf message <code>printer.v1.invoice.InvoiceInfo</code>
*/
class InvoiceInfo extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string invoice_id = 1 [json_name = "invoiceId"];</code>
*/
protected $invoice_id = '';
/**
* Generated from protobuf field <code>.google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"];</code>
*/
protected $invoice_date = null;
/**
* Generated from protobuf field <code>.google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"];</code>
*/
protected $invoice_due_date = null;
/**
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"];</code>
*/
protected $invoice_type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $invoice_id
* @type \Google\Type\DateTime $invoice_date
* @type \Google\Type\DateTime $invoice_due_date
* @type int $invoice_type
* }
*/
public function __construct($data = NULL) {
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>string invoice_id = 1 [json_name = "invoiceId"];</code>
* @return string
*/
public function getInvoiceId()
{
return $this->invoice_id;
}
/**
* Generated from protobuf field <code>string invoice_id = 1 [json_name = "invoiceId"];</code>
* @param string $var
* @return $this
*/
public function setInvoiceId($var)
{
GPBUtil::checkString($var, True);
$this->invoice_id = $var;
return $this;
}
/**
* Generated from protobuf field <code>.google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"];</code>
* @return \Google\Type\DateTime|null
*/
public function getInvoiceDate()
{
return $this->invoice_date;
}
public function hasInvoiceDate()
{
return isset($this->invoice_date);
}
public function clearInvoiceDate()
{
unset($this->invoice_date);
}
/**
* Generated from protobuf field <code>.google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"];</code>
* @param \Google\Type\DateTime $var
* @return $this
*/
public function setInvoiceDate($var)
{
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
$this->invoice_date = $var;
return $this;
}
/**
* Generated from protobuf field <code>.google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"];</code>
* @return \Google\Type\DateTime|null
*/
public function getInvoiceDueDate()
{
return $this->invoice_due_date;
}
public function hasInvoiceDueDate()
{
return isset($this->invoice_due_date);
}
public function clearInvoiceDueDate()
{
unset($this->invoice_due_date);
}
/**
* Generated from protobuf field <code>.google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"];</code>
* @param \Google\Type\DateTime $var
* @return $this
*/
public function setInvoiceDueDate($var)
{
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
$this->invoice_due_date = $var;
return $this;
}
/**
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"];</code>
* @return int
*/
public function getInvoiceType()
{
return $this->invoice_type;
}
/**
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"];</code>
* @param int $var
* @return $this
*/
public function setInvoiceType($var)
{
GPBUtil::checkEnum($var, \Printer\V1\Invoice\InvoiceType::class);
$this->invoice_type = $var;
return $this;
}
}