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.
2.9 kB · 102 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?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;
/** * SubscribeToPageRequest is the request to subscribe an email to a status page. * * Generated from protobuf message <code>openstatus.status_page.v1.SubscribeToPageRequest</code> */class SubscribeToPageRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status page to subscribe to (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> */ protected $page_id = ''; /** * Email address to subscribe (required). * * Generated from protobuf field <code>string email = 2 [json_name = "email", (.gnostic.openapi.v3.property) = {</code> */ protected $email = '';
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_id * ID of the status page to subscribe to (required). * @type string $email * Email address to subscribe (required). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the status page to subscribe to (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 subscribe to (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 subscribe (required). * * Generated from protobuf field <code>string email = 2 [json_name = "email", (.gnostic.openapi.v3.property) = {</code> * @return string */ public function getEmail() { return $this->email; }
/** * Email address to subscribe (required). * * Generated from protobuf field <code>string email = 2 [json_name = "email", (.gnostic.openapi.v3.property) = {</code> * @param string $var * @return $this */ public function setEmail(string $var) { GPBUtil::checkString($var, true); $this->email = $var;
return $this; }
}