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.
7.7 kB · 288 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289<?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;
/** * UpdateComponentRequest is the request to update a component. * * Generated from protobuf message <code>openstatus.status_page.v1.UpdateComponentRequest</code> */class UpdateComponentRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the component 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 component (optional). * * Generated from protobuf field <code>optional string name = 2 [json_name = "name", (.buf.validate.field) = {</code> */ protected $name = null; /** * New description for the component (optional). * * Generated from protobuf field <code>optional string description = 3 [json_name = "description", (.buf.validate.field) = {</code> */ protected $description = null; /** * New display order (optional). * * Generated from protobuf field <code>optional int32 order = 4 [json_name = "order"];</code> */ protected $order = null; /** * New group ID (optional, set to empty string to remove from group). * * Generated from protobuf field <code>optional string group_id = 5 [json_name = "groupId"];</code> */ protected $group_id = null; /** * New order within the group (optional). * * Generated from protobuf field <code>optional int32 group_order = 6 [json_name = "groupOrder"];</code> */ protected $group_order = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID of the component to update (required). * @type string $name * New display name for the component (optional). * @type string $description * New description for the component (optional). * @type int $order * New display order (optional). * @type string $group_id * New group ID (optional, set to empty string to remove from group). * @type int $group_order * New order within the group (optional). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the component 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 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 component (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 component (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; }
/** * New description for the component (optional). * * Generated from protobuf field <code>optional string description = 3 [json_name = "description", (.buf.validate.field) = {</code> * @return string */ public function getDescription() { return isset($this->description) ? $this->description : ''; }
public function hasDescription() { return isset($this->description); }
public function clearDescription() { unset($this->description); }
/** * New description for the component (optional). * * Generated from protobuf field <code>optional string description = 3 [json_name = "description", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setDescription(string $var) { GPBUtil::checkString($var, true); $this->description = $var;
return $this; }
/** * New display order (optional). * * Generated from protobuf field <code>optional int32 order = 4 [json_name = "order"];</code> * @return int */ public function getOrder() { return isset($this->order) ? $this->order : 0; }
public function hasOrder() { return isset($this->order); }
public function clearOrder() { unset($this->order); }
/** * New display order (optional). * * Generated from protobuf field <code>optional int32 order = 4 [json_name = "order"];</code> * @param int $var * @return $this */ public function setOrder(int $var) { GPBUtil::checkInt32($var); $this->order = $var;
return $this; }
/** * New group ID (optional, set to empty string to remove from group). * * Generated from protobuf field <code>optional string group_id = 5 [json_name = "groupId"];</code> * @return string */ public function getGroupId() { return isset($this->group_id) ? $this->group_id : ''; }
public function hasGroupId() { return isset($this->group_id); }
public function clearGroupId() { unset($this->group_id); }
/** * New group ID (optional, set to empty string to remove from group). * * Generated from protobuf field <code>optional string group_id = 5 [json_name = "groupId"];</code> * @param string $var * @return $this */ public function setGroupId(string $var) { GPBUtil::checkString($var, true); $this->group_id = $var;
return $this; }
/** * New order within the group (optional). * * Generated from protobuf field <code>optional int32 group_order = 6 [json_name = "groupOrder"];</code> * @return int */ public function getGroupOrder() { return isset($this->group_order) ? $this->group_order : 0; }
public function hasGroupOrder() { return isset($this->group_order); }
public function clearGroupOrder() { unset($this->group_order); }
/** * New order within the group (optional). * * Generated from protobuf field <code>optional int32 group_order = 6 [json_name = "groupOrder"];</code> * @param int $var * @return $this */ public function setGroupOrder(int $var) { GPBUtil::checkInt32($var); $this->group_order = $var;
return $this; }
}