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 · 155 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156<?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;
/** * UpdateComponentGroupRequest is the request to update a component group. * * Generated from protobuf message <code>openstatus.status_page.v1.UpdateComponentGroupRequest</code> */class UpdateComponentGroupRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the component group to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> */ protected $id = ''; /** * New display name for the group (optional). * * Generated from protobuf field <code>optional string name = 2 [json_name = "name", (.buf.validate.field) = {</code> */ protected $name = null; /** * Whether the group should be expanded by default on the status page (optional). * * 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 $id * ID of the component group to update (required). * @type string $name * New display name for the group (optional). * @type bool $default_open * Whether the group should be expanded by default on the status page (optional). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the component group to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @return string */ public function getId() { return $this->id; }
/** * ID of the component group to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * New display name for the group (optional). * * 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); }
/** * New display name for the group (optional). * * 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; }
/** * Whether the group should be expanded by default on the status page (optional). * * 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). * * 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; }
}