Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class BackupWindow.
BackupWindowdefines a window of the day during which backup jobs will run.
Generated from protobuf messagegoogle.cloud.backupdr.v1.BackupWindow
Namespace
Google \ Cloud \ BackupDR \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ start_hour_of_day
int
Required. The hour of day (0-23) when the window starts for e.g. if value of start hour of day is 6 that mean backup window start at 6:00.
↳ end_hour_of_day
int
Required. The hour of day (1-24) when the window end for e.g. if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 <= start_hour_of_day < end_hour_of_day <= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.
getStartHourOfDay
Required. The hour of day (0-23) when the window starts for e.g. if value
of start hour of day is 6 that mean backup window start at 6:00.
Returns
Type
Description
int
setStartHourOfDay
Required. The hour of day (0-23) when the window starts for e.g. if value
of start hour of day is 6 that mean backup window start at 6:00.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getEndHourOfDay
Required. The hour of day (1-24) when the window end for e.g. if value of
end hour of day is 10 that mean backup window end time is 10:00.
End hour of day should be greater than start hour of day.
0 <= start_hour_of_day < end_hour_of_day <= 24
End hour of day is not include in backup window that mean if
end_hour_of_day= 10 jobs should start before 10:00.
Returns
Type
Description
int
setEndHourOfDay
Required. The hour of day (1-24) when the window end for e.g. if value of
end hour of day is 10 that mean backup window end time is 10:00.
End hour of day should be greater than start hour of day.
0 <= start_hour_of_day < end_hour_of_day <= 24
End hour of day is not include in backup window that mean if
end_hour_of_day= 10 jobs should start before 10:00.
[[["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 Backup Dr V1 Client - Class BackupWindow (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.BackupWindow)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.BackupWindow)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.BackupWindow)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.BackupWindow)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.BackupWindow)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.BackupWindow)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.BackupWindow) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class BackupWindow.\n\n`BackupWindow` defines a window of the day during which backup jobs will run.\n\nGenerated from protobuf message `google.cloud.backupdr.v1.BackupWindow`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getStartHourOfDay\n\nRequired. The hour of day (0-23) when the window starts for e.g. if value\nof start hour of day is 6 that mean backup window start at 6:00.\n\n### setStartHourOfDay\n\nRequired. The hour of day (0-23) when the window starts for e.g. if value\nof start hour of day is 6 that mean backup window start at 6:00.\n\n### getEndHourOfDay\n\nRequired. The hour of day (1-24) when the window end for e.g. if value of\nend hour of day is 10 that mean backup window end time is 10:00.\n\nEnd hour of day should be greater than start hour of day.\n0 \\\u003c= start_hour_of_day \\\u003c end_hour_of_day \\\u003c= 24\nEnd hour of day is not include in backup window that mean if\nend_hour_of_day= 10 jobs should start before 10:00.\n\n### setEndHourOfDay\n\nRequired. The hour of day (1-24) when the window end for e.g. if value of\nend hour of day is 10 that mean backup window end time is 10:00.\n\nEnd hour of day should be greater than start hour of day.\n0 \\\u003c= start_hour_of_day \\\u003c end_hour_of_day \\\u003c= 24\nEnd hour of day is not include in backup window that mean if\nend_hour_of_day= 10 jobs should start before 10:00."]]