registration.core.Notification */ class Notification extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string id = 1; */ protected $id = ''; /** * Generated from protobuf field string header = 2; */ protected $header = ''; /** * Generated from protobuf field string body = 3; */ protected $body = ''; /** * Generated from protobuf field string url = 4; */ protected $url = ''; /** * Generated from protobuf field string url_display_text = 5; */ protected $url_display_text = ''; /** * Generated from protobuf field uint64 created_at = 6; */ protected $created_at = 0; /** * Generated from protobuf field uint64 expires_at = 7; */ protected $expires_at = 0; /** * Generated from protobuf field bool is_read = 8; */ protected $is_read = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * @type string $header * @type string $body * @type string $url * @type string $url_display_text * @type int|string $created_at * @type int|string $expires_at * @type bool $is_read * } */ public function __construct($data = NULL) { \GPBMetadata\Registration::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * Generated from protobuf field string header = 2; * @return string */ public function getHeader() { return $this->header; } /** * Generated from protobuf field string header = 2; * @param string $var * @return $this */ public function setHeader($var) { GPBUtil::checkString($var, True); $this->header = $var; return $this; } /** * Generated from protobuf field string body = 3; * @return string */ public function getBody() { return $this->body; } /** * Generated from protobuf field string body = 3; * @param string $var * @return $this */ public function setBody($var) { GPBUtil::checkString($var, True); $this->body = $var; return $this; } /** * Generated from protobuf field string url = 4; * @return string */ public function getUrl() { return $this->url; } /** * Generated from protobuf field string url = 4; * @param string $var * @return $this */ public function setUrl($var) { GPBUtil::checkString($var, True); $this->url = $var; return $this; } /** * Generated from protobuf field string url_display_text = 5; * @return string */ public function getUrlDisplayText() { return $this->url_display_text; } /** * Generated from protobuf field string url_display_text = 5; * @param string $var * @return $this */ public function setUrlDisplayText($var) { GPBUtil::checkString($var, True); $this->url_display_text = $var; return $this; } /** * Generated from protobuf field uint64 created_at = 6; * @return int|string */ public function getCreatedAt() { return $this->created_at; } /** * Generated from protobuf field uint64 created_at = 6; * @param int|string $var * @return $this */ public function setCreatedAt($var) { GPBUtil::checkUint64($var); $this->created_at = $var; return $this; } /** * Generated from protobuf field uint64 expires_at = 7; * @return int|string */ public function getExpiresAt() { return $this->expires_at; } /** * Generated from protobuf field uint64 expires_at = 7; * @param int|string $var * @return $this */ public function setExpiresAt($var) { GPBUtil::checkUint64($var); $this->expires_at = $var; return $this; } /** * Generated from protobuf field bool is_read = 8; * @return bool */ public function getIsRead() { return $this->is_read; } /** * Generated from protobuf field bool is_read = 8; * @param bool $var * @return $this */ public function setIsRead($var) { GPBUtil::checkBool($var); $this->is_read = $var; return $this; } }