openstatus.status_page.v1.AddStaticComponentRequest */ class AddStaticComponentRequest extends \Google\Protobuf\Internal\Message { /** * ID of the status page to add the component to (required). * * Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = { */ protected $page_id = ''; /** * Display name for the component (required). * * Generated from protobuf field string name = 2 [json_name = "name", (.buf.validate.field) = { */ protected $name = ''; /** * Description of the component (optional). * * Generated from protobuf field optional string description = 3 [json_name = "description", (.buf.validate.field) = { */ protected $description = null; /** * Display order of the component (optional). * * Generated from protobuf field optional int32 order = 4 [json_name = "order"]; */ protected $order = null; /** * ID of the group to add this component to (optional). * * Generated from protobuf field optional string group_id = 5 [json_name = "groupId"]; */ protected $group_id = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_id * ID of the status page to add the component to (required). * @type string $name * Display name for the component (required). * @type string $description * Description of the component (optional). * @type int $order * Display order of the component (optional). * @type string $group_id * ID of the group to add this component to (optional). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); } /** * ID of the status page to add the component to (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 add the component to (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 component (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 component (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; } /** * Description of the component (optional). * * Generated from protobuf field optional string description = 3 [json_name = "description", (.buf.validate.field) = { * @return string */ public function getDescription() { return isset($this->description) ? $this->description : ''; } public function hasDescription() { return isset($this->description); } public function clearDescription() { unset($this->description); } /** * Description of the component (optional). * * Generated from protobuf field optional string description = 3 [json_name = "description", (.buf.validate.field) = { * @param string $var * @return $this */ public function setDescription(string $var) { GPBUtil::checkString($var, true); $this->description = $var; return $this; } /** * Display order of the component (optional). * * Generated from protobuf field optional int32 order = 4 [json_name = "order"]; * @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); } /** * Display order of the component (optional). * * Generated from protobuf field optional int32 order = 4 [json_name = "order"]; * @param int $var * @return $this */ public function setOrder(int $var) { GPBUtil::checkInt32($var); $this->order = $var; return $this; } /** * ID of the group to add this component to (optional). * * Generated from protobuf field optional string group_id = 5 [json_name = "groupId"]; * @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); } /** * ID of the group to add this component to (optional). * * Generated from protobuf field optional string group_id = 5 [json_name = "groupId"]; * @param string $var * @return $this */ public function setGroupId(string $var) { GPBUtil::checkString($var, true); $this->group_id = $var; return $this; } }