openstatus.status_page.v1.UpdateComponentRequest */ class UpdateComponentRequest extends \Google\Protobuf\Internal\Message { /** * ID of the component to update (required). * * Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = { */ protected $id = ''; /** * New display name for the component (optional). * * Generated from protobuf field optional string name = 2 [json_name = "name", (.buf.validate.field) = { */ protected $name = null; /** * New description for the component (optional). * * Generated from protobuf field optional string description = 3 [json_name = "description", (.buf.validate.field) = { */ protected $description = null; /** * New display order (optional). * * Generated from protobuf field optional int32 order = 4 [json_name = "order"]; */ protected $order = null; /** * New group ID (optional, set to empty string to remove from group). * * Generated from protobuf field optional string group_id = 5 [json_name = "groupId"]; */ protected $group_id = null; /** * New order within the group (optional). * * Generated from protobuf field optional int32 group_order = 6 [json_name = "groupOrder"]; */ 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 string id = 1 [json_name = "id", (.buf.validate.field) = { * @return string */ public function getId() { return $this->id; } /** * ID of the component 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 component (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 component (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; } /** * New description for 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); } /** * New description for 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; } /** * New display order (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); } /** * New display order (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; } /** * New group ID (optional, set to empty string to remove from group). * * 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); } /** * New group ID (optional, set to empty string to remove from group). * * 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; } /** * New order within the group (optional). * * Generated from protobuf field optional int32 group_order = 6 [json_name = "groupOrder"]; * @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 optional int32 group_order = 6 [json_name = "groupOrder"]; * @param int $var * @return $this */ public function setGroupOrder(int $var) { GPBUtil::checkInt32($var); $this->group_order = $var; return $this; } }