printer.v1.invoice.Invoice */ class Invoice extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .printer.v1.invoice.OrderInfo order = 1 [json_name = "order"]; */ protected $order = null; /** * Generated from protobuf field .printer.v1.invoice.OfferInfo offer = 2 [json_name = "offer"]; */ protected $offer = null; /** * Generated from protobuf field .printer.v1.invoice.InvoiceInfo info = 3 [json_name = "info"]; */ protected $info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Printer\V1\Invoice\OrderInfo $order * @type \Printer\V1\Invoice\OfferInfo $offer * @type \Printer\V1\Invoice\InvoiceInfo $info * } */ public function __construct($data = NULL) { \Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .printer.v1.invoice.OrderInfo order = 1 [json_name = "order"]; * @return \Printer\V1\Invoice\OrderInfo|null */ public function getOrder() { return $this->order; } public function hasOrder() { return isset($this->order); } public function clearOrder() { unset($this->order); } /** * Generated from protobuf field .printer.v1.invoice.OrderInfo order = 1 [json_name = "order"]; * @param \Printer\V1\Invoice\OrderInfo $var * @return $this */ public function setOrder($var) { GPBUtil::checkMessage($var, \Printer\V1\Invoice\OrderInfo::class); $this->order = $var; return $this; } /** * Generated from protobuf field .printer.v1.invoice.OfferInfo offer = 2 [json_name = "offer"]; * @return \Printer\V1\Invoice\OfferInfo|null */ public function getOffer() { return $this->offer; } public function hasOffer() { return isset($this->offer); } public function clearOffer() { unset($this->offer); } /** * Generated from protobuf field .printer.v1.invoice.OfferInfo offer = 2 [json_name = "offer"]; * @param \Printer\V1\Invoice\OfferInfo $var * @return $this */ public function setOffer($var) { GPBUtil::checkMessage($var, \Printer\V1\Invoice\OfferInfo::class); $this->offer = $var; return $this; } /** * Generated from protobuf field .printer.v1.invoice.InvoiceInfo info = 3 [json_name = "info"]; * @return \Printer\V1\Invoice\InvoiceInfo|null */ public function getInfo() { return $this->info; } public function hasInfo() { return isset($this->info); } public function clearInfo() { unset($this->info); } /** * Generated from protobuf field .printer.v1.invoice.InvoiceInfo info = 3 [json_name = "info"]; * @param \Printer\V1\Invoice\InvoiceInfo $var * @return $this */ public function setInfo($var) { GPBUtil::checkMessage($var, \Printer\V1\Invoice\InvoiceInfo::class); $this->info = $var; return $this; } }