printer.v1.invoice.InvoiceInfo */ class InvoiceInfo extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string invoice_id = 1 [json_name = "invoiceId"]; */ protected $invoice_id = ''; /** * Generated from protobuf field .google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"]; */ protected $invoice_date = null; /** * Generated from protobuf field .google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"]; */ protected $invoice_due_date = null; /** * Generated from protobuf field .printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"]; */ 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 string invoice_id = 1 [json_name = "invoiceId"]; * @return string */ public function getInvoiceId() { return $this->invoice_id; } /** * Generated from protobuf field string invoice_id = 1 [json_name = "invoiceId"]; * @param string $var * @return $this */ public function setInvoiceId($var) { GPBUtil::checkString($var, True); $this->invoice_id = $var; return $this; } /** * Generated from protobuf field .google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"]; * @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 .google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"]; * @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 .google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"]; * @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 .google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"]; * @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 .printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"]; * @return int */ public function getInvoiceType() { return $this->invoice_type; } /** * Generated from protobuf field .printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"]; * @param int $var * @return $this */ public function setInvoiceType($var) { GPBUtil::checkEnum($var, \Printer\V1\Invoice\InvoiceType::class); $this->invoice_type = $var; return $this; } }