openstatus.status_page.v1.CreateComponentGroupRequest */ class CreateComponentGroupRequest extends \Google\Protobuf\Internal\Message { /** * ID of the status page to create the group in (required). * * Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = { */ protected $page_id = ''; /** * Display name for the group (required). * * Generated from protobuf field string name = 2 [json_name = "name", (.buf.validate.field) = { */ protected $name = ''; /** * Whether the group should be expanded by default on the status page (optional, defaults to false). * * 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 $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 string page_id = 1 [json_name = "pageId", (.buf.validate.field) = { * @return string */ public function getPageId() { return $this->page_id; } /** * ID of the status page to create the group in (required). * * Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = { * @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 string name = 2 [json_name = "name", (.buf.validate.field) = { * @return string */ public function getName() { return $this->name; } /** * Display name for the group (required). * * Generated from protobuf field 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, defaults to false). * * 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, defaults to false). * * 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; } }