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.
5.9 kB · 209 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210<?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;
/** * CreatePageSubscriptionRequest is the request to add a vendor-managed subscriber to a status page. * * Generated from protobuf message <code>openstatus.status_page.v1.CreatePageSubscriptionRequest</code> */class CreatePageSubscriptionRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status page (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> */ protected $page_id = ''; /** * Optional human-readable label. * * Generated from protobuf field <code>optional string name = 2 [json_name = "name", (.buf.validate.field) = {</code> */ protected $name = null; /** * Component scope. Empty = entire page. * * Generated from protobuf field <code>repeated string component_ids = 3 [json_name = "componentIds"];</code> */ private $component_ids; protected $channel;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_id * ID of the status page (required). * @type string $name * Optional human-readable label. * @type string[] $component_ids * Component scope. Empty = entire page. * @type \Openstatus\Status_page\V1\EmailChannel $email_channel * @type \Openstatus\Status_page\V1\WebhookChannel $webhook_channel * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the status page (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 (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; }
/** * Optional human-readable label. * * Generated from protobuf field <code>optional string name = 2 [json_name = "name", (.buf.validate.field) = {</code> * @return string */ public function getName() { return isset($this->name) ? $this->name : ''; }
public function hasName() { return isset($this->name); }
public function clearName() { unset($this->name); }
/** * Optional human-readable label. * * Generated from protobuf field <code>optional string name = 2 [json_name = "name", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setName(string $var) { GPBUtil::checkString($var, true); $this->name = $var;
return $this; }
/** * Component scope. Empty = entire page. * * Generated from protobuf field <code>repeated string component_ids = 3 [json_name = "componentIds"];</code> * @return RepeatedField<string> */ public function getComponentIds() { return $this->component_ids; }
/** * Component scope. Empty = entire page. * * Generated from protobuf field <code>repeated string component_ids = 3 [json_name = "componentIds"];</code> * @param string[] $var * @return $this */ public function setComponentIds(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->component_ids = $arr;
return $this; }
/** * Generated from protobuf field <code>.openstatus.status_page.v1.EmailChannel email_channel = 10 [json_name = "emailChannel"];</code> * @return \Openstatus\Status_page\V1\EmailChannel|null */ public function getEmailChannel() { return $this->readOneof(10); }
public function hasEmailChannel() { return $this->hasOneof(10); }
/** * Generated from protobuf field <code>.openstatus.status_page.v1.EmailChannel email_channel = 10 [json_name = "emailChannel"];</code> * @param \Openstatus\Status_page\V1\EmailChannel $var * @return $this */ public function setEmailChannel(\Openstatus\Status_page\V1\EmailChannel|null $var) { $this->writeOneof(10, $var);
return $this; }
/** * Generated from protobuf field <code>.openstatus.status_page.v1.WebhookChannel webhook_channel = 11 [json_name = "webhookChannel"];</code> * @return \Openstatus\Status_page\V1\WebhookChannel|null */ public function getWebhookChannel() { return $this->readOneof(11); }
public function hasWebhookChannel() { return $this->hasOneof(11); }
/** * Generated from protobuf field <code>.openstatus.status_page.v1.WebhookChannel webhook_channel = 11 [json_name = "webhookChannel"];</code> * @param \Openstatus\Status_page\V1\WebhookChannel $var * @return $this */ public function setWebhookChannel(\Openstatus\Status_page\V1\WebhookChannel|null $var) { $this->writeOneof(11, $var);
return $this; }
/** * @return string */ public function getChannel() { return $this->whichOneof("channel"); }
}