Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
3.5 kB · 143 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/service.proto
namespace Openstatus\Status_page\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * UnsubscribeFromPageRequest is the request to unsubscribe from a status page. * * Generated from protobuf message <code>openstatus.status_page.v1.UnsubscribeFromPageRequest</code> */class UnsubscribeFromPageRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status page to unsubscribe from (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> */ protected $page_id = ''; protected $identifier;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_id * ID of the status page to unsubscribe from (required). * @type string $email * Email address to unsubscribe. * @type string $id * Subscriber ID. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the status page to unsubscribe from (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> * @return string */ public function getPageId() { return $this->page_id; }
/** * ID of the status page to unsubscribe from (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
/** * Email address to unsubscribe. * * Generated from protobuf field <code>string email = 2 [json_name = "email"];</code> * @return string */ public function getEmail() { return $this->readOneof(2); }
public function hasEmail() { return $this->hasOneof(2); }
/** * Email address to unsubscribe. * * Generated from protobuf field <code>string email = 2 [json_name = "email"];</code> * @param string $var * @return $this */ public function setEmail(string $var) { GPBUtil::checkString($var, true); $this->writeOneof(2, $var);
return $this; }
/** * Subscriber ID. * * Generated from protobuf field <code>string id = 3 [json_name = "id"];</code> * @return string */ public function getId() { return $this->readOneof(3); }
public function hasId() { return $this->hasOneof(3); }
/** * Subscriber ID. * * Generated from protobuf field <code>string id = 3 [json_name = "id"];</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->writeOneof(3, $var);
return $this; }
/** * @return string */ public function getIdentifier() { return $this->whichOneof("identifier"); }
}