Day of week -MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY, orSUNDAY. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where1equals Monday.
Day of week -MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY, orSUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where1equals Monday.
Returns
Type
Description
int|null
setDay
Day of week -MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY, orSUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where1equals Monday.
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Day of week -MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY, orSUNDAY. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where1equals Monday.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Sql Admin V1 Client - Class MaintenanceWindow (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.MaintenanceWindow)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.MaintenanceWindow)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.MaintenanceWindow)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.MaintenanceWindow)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.MaintenanceWindow)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.MaintenanceWindow)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.MaintenanceWindow)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.MaintenanceWindow)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.MaintenanceWindow)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.MaintenanceWindow)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.MaintenanceWindow)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.MaintenanceWindow)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.MaintenanceWindow)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.MaintenanceWindow)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.MaintenanceWindow)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.MaintenanceWindow)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.MaintenanceWindow)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.MaintenanceWindow)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.MaintenanceWindow) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class MaintenanceWindow.\n\nMaintenance window. This specifies when a Cloud SQL instance is\nrestarted for system maintenance purposes.\n\nGenerated from protobuf message `google.cloud.sql.v1.MaintenanceWindow`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHour\n\nHour of day - 0 to 23. Specify in the UTC time zone.\n\n### hasHour\n\n### clearHour\n\n### getHourUnwrapped\n\nReturns the unboxed value from `getHour()`\n\nHour of day - 0 to 23. Specify in the UTC time zone.\n\n### setHour\n\nHour of day - 0 to 23. Specify in the UTC time zone.\n\n### setHourUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nHour of day - 0 to 23. Specify in the UTC time zone.\n\n### getDay\n\nDay of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`,\n`SATURDAY`, or `SUNDAY`. Specify in the UTC time zone.\n\nReturned in output as an integer, 1 to 7, where `1` equals Monday.\n\n### hasDay\n\n### clearDay\n\n### getDayUnwrapped\n\nReturns the unboxed value from `getDay()`\n\nDay of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`,\n`SATURDAY`, or `SUNDAY`. Specify in the UTC time zone.\nReturned in output as an integer, 1 to 7, where `1` equals Monday.\n\n### setDay\n\nDay of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`,\n`SATURDAY`, or `SUNDAY`. Specify in the UTC time zone.\n\nReturned in output as an integer, 1 to 7, where `1` equals Monday.\n\n### setDayUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nDay of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`,\n`SATURDAY`, or `SUNDAY`. Specify in the UTC time zone.\nReturned in output as an integer, 1 to 7, where `1` equals Monday.\n\n### getUpdateTrack\n\nMaintenance timing settings: `canary`, `stable`, or `week5`.\n\nFor more information, see [About maintenance on Cloud SQL\ninstances](https://cloud.google.com/sql/docs/mysql/maintenance).\n\n### setUpdateTrack\n\nMaintenance timing settings: `canary`, `stable`, or `week5`.\n\nFor more information, see [About maintenance on Cloud SQL\ninstances](https://cloud.google.com/sql/docs/mysql/maintenance).\n\n### getKind\n\nThis is always `sql#maintenanceWindow`.\n\n### setKind\n\nThis is always `sql#maintenanceWindow`."]]