openstatus.status_page.v1.UpdateComponentGroupRequest */ class UpdateComponentGroupRequest extends \Google\Protobuf\Internal\Message { /** * ID of the component group to update (required). * * Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = { */ protected $id = ''; /** * New display name for the group (optional). * * Generated from protobuf field optional string name = 2 [json_name = "name", (.buf.validate.field) = { */ protected $name = null; /** * Whether the group should be expanded by default on the status page (optional). * * Generated from protobuf field optional bool default_open = 3 [json_name = "defaultOpen"]; */ 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 string id = 1 [json_name = "id", (.buf.validate.field) = { * @return string */ public function getId() { return $this->id; } /** * ID of the component group to update (required). * * Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = { * @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 optional string name = 2 [json_name = "name", (.buf.validate.field) = { * @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 optional string name = 2 [json_name = "name", (.buf.validate.field) = { * @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 optional bool default_open = 3 [json_name = "defaultOpen"]; * @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 optional bool default_open = 3 [json_name = "defaultOpen"]; * @param bool $var * @return $this */ public function setDefaultOpen(bool $var) { $this->default_open = $var; return $this; } }