printer.v1.invoice.OfferInfo
*/
class OfferInfo extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string offer_id = 1 [json_name = "offerId"];
*/
protected $offer_id = '';
/**
* Generated from protobuf field .google.type.DateTime offer_date = 2 [json_name = "offerDate"];
*/
protected $offer_date = null;
/**
* Generated from protobuf field .google.type.DateTime offer_due_date = 3 [json_name = "offerDueDate"];
*/
protected $offer_due_date = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $offer_id
* @type \Google\Type\DateTime $offer_date
* @type \Google\Type\DateTime $offer_due_date
* }
*/
public function __construct($data = NULL) {
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string offer_id = 1 [json_name = "offerId"];
* @return string
*/
public function getOfferId()
{
return $this->offer_id;
}
/**
* Generated from protobuf field string offer_id = 1 [json_name = "offerId"];
* @param string $var
* @return $this
*/
public function setOfferId($var)
{
GPBUtil::checkString($var, True);
$this->offer_id = $var;
return $this;
}
/**
* Generated from protobuf field .google.type.DateTime offer_date = 2 [json_name = "offerDate"];
* @return \Google\Type\DateTime|null
*/
public function getOfferDate()
{
return $this->offer_date;
}
public function hasOfferDate()
{
return isset($this->offer_date);
}
public function clearOfferDate()
{
unset($this->offer_date);
}
/**
* Generated from protobuf field .google.type.DateTime offer_date = 2 [json_name = "offerDate"];
* @param \Google\Type\DateTime $var
* @return $this
*/
public function setOfferDate($var)
{
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
$this->offer_date = $var;
return $this;
}
/**
* Generated from protobuf field .google.type.DateTime offer_due_date = 3 [json_name = "offerDueDate"];
* @return \Google\Type\DateTime|null
*/
public function getOfferDueDate()
{
return $this->offer_due_date;
}
public function hasOfferDueDate()
{
return isset($this->offer_due_date);
}
public function clearOfferDueDate()
{
unset($this->offer_due_date);
}
/**
* Generated from protobuf field .google.type.DateTime offer_due_date = 3 [json_name = "offerDueDate"];
* @param \Google\Type\DateTime $var
* @return $this
*/
public function setOfferDueDate($var)
{
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
$this->offer_due_date = $var;
return $this;
}
}