A configurable schedule for one day of the week or specific date.
| JSON representation |
|---|
{ "days": [ enum ( |
| Fields | |
|---|---|
days[] |
Optional. The days of the week to apply the schedule to. |
dateRanges[] |
Optional. The date ranges to apply the schedule to. If set, the schedule is only active on these specific date ranges. If both days and dateRanges are set, the schedule is active when both condition is met. For example, if days is [MONDAY] and dateRanges is [2026-01-01, 2026-01-31], the schedule is active on all Monday in January. |
timeRanges[] |
Optional. The time of day ranges to apply the schedule to. If set, the schedule is only active during these time ranges. |
DateRange
Represents a date range, inclusive of both ends.
| JSON representation |
|---|
{ "startDate": { object ( |
| Fields | |
|---|---|
startDate |
Required. The start date of the range, inclusive. |
endDate |
Required. The end date of the range, inclusive. |
TimeOfDayRange
Represents a period between two times of day on an unspecified date. For example, business hours like 09:00 to 17:00.
| JSON representation |
|---|
{ "startTime": { object ( |
| Fields | |
|---|---|
startTime |
Required. The start of the time range, inclusive. |
endTime |
Required. The end of the time range, exclusive. If endTime is earlier than startTime, it means the endtime is on the next day. |