openstatus.status_page.v1.CreatePageSubscriptionResponse */ class CreatePageSubscriptionResponse extends \Google\Protobuf\Internal\Message { /** * The created subscriber. * * Generated from protobuf field .openstatus.status_page.v1.PageSubscriber subscriber = 1 [json_name = "subscriber"]; */ protected $subscriber = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Status_page\V1\PageSubscriber $subscriber * The created subscriber. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); } /** * The created subscriber. * * Generated from protobuf field .openstatus.status_page.v1.PageSubscriber subscriber = 1 [json_name = "subscriber"]; * @return \Openstatus\Status_page\V1\PageSubscriber|null */ public function getSubscriber() { return $this->subscriber; } public function hasSubscriber() { return isset($this->subscriber); } public function clearSubscriber() { unset($this->subscriber); } /** * The created subscriber. * * Generated from protobuf field .openstatus.status_page.v1.PageSubscriber subscriber = 1 [json_name = "subscriber"]; * @param \Openstatus\Status_page\V1\PageSubscriber $var * @return $this */ public function setSubscriber(\Openstatus\Status_page\V1\PageSubscriber|null $var) { $this->subscriber = $var; return $this; } }