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.
4.3 kB · 145 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146<?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;
/** * CreateComponentGroupRequest is the request to create a new component group. * * Generated from protobuf message <code>openstatus.status_page.v1.CreateComponentGroupRequest</code> */class CreateComponentGroupRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status page to create the group in (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> */ protected $page_id = ''; /** * Display name for the group (required). * * Generated from protobuf field <code>string name = 2 [json_name = "name", (.buf.validate.field) = {</code> */ protected $name = ''; /** * Whether the group should be expanded by default on the status page (optional, defaults to false). * * Generated from protobuf field <code>optional bool default_open = 3 [json_name = "defaultOpen"];</code> */ protected $default_open = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_id * ID of the status page to create the group in (required). * @type string $name * Display name for the group (required). * @type bool $default_open * Whether the group should be expanded by default on the status page (optional, defaults to false). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the status page to create the group in (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 create the group in (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; }
/** * Display name for the group (required). * * Generated from protobuf field <code>string name = 2 [json_name = "name", (.buf.validate.field) = {</code> * @return string */ public function getName() { return $this->name; }
/** * Display name for the group (required). * * Generated from protobuf field <code>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; }
/** * Whether the group should be expanded by default on the status page (optional, defaults to false). * * Generated from protobuf field <code>optional bool default_open = 3 [json_name = "defaultOpen"];</code> * @return bool */ public function getDefaultOpen() { return isset($this->default_open) ? $this->default_open : false; }
public function hasDefaultOpen() { return isset($this->default_open); }
public function clearDefaultOpen() { unset($this->default_open); }
/** * Whether the group should be expanded by default on the status page (optional, defaults to false). * * Generated from protobuf field <code>optional bool default_open = 3 [json_name = "defaultOpen"];</code> * @param bool $var * @return $this */ public function setDefaultOpen(bool $var) { $this->default_open = $var;
return $this; }
}