# TimePeriod

- [JSON representation](https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#SCHEMA_REPRESENTATION)
- [TimeOfDay](https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#TimeOfDay)
  - [JSON representation](https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#TimeOfDay.SCHEMA_REPRESENTATION)
- [DayOfWeek](https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#DayOfWeek)

Represents a time period in a week.

| JSON representation |
|---|
| ``` { "startTime": { object (`https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#TimeOfDay`) }, "endTime": { object (`https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#TimeOfDay`) }, "days": [ enum (`https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#DayOfWeek`) ] } ``` |

| Fields ||
|---|---|
| `startTime` | ``object (`https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#TimeOfDay`)`` Required. The start of the time period. |
| `endTime` | ``object (`https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#TimeOfDay`)`` Required. The end of the time period. |
| `days[]` | ``enum (`https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/TimePeriod#DayOfWeek`)`` Required. The days of the week that the time period is active. |

## TimeOfDay

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are `https://docs.cloud.google.com/distributed-cloud/connected/1.10.0/docs/reference/hardware/rest/v1alpha/Date` and `google.protobuf.Timestamp`.

| JSON representation |
|---|
| ``` { "hours": integer, "minutes": integer, "seconds": integer, "nanos": integer } ``` |

| Fields ||
|---|---|
| `hours` | `integer` Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
| `minutes` | `integer` Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. |
| `seconds` | `integer` Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. |
| `nanos` | `integer` Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. |

## DayOfWeek

Represents a day of the week.

| Enums ||
|---|---|
| `DAY_OF_WEEK_UNSPECIFIED` | The day of the week is unspecified. |
| `MONDAY` | Monday |
| `TUESDAY` | Tuesday |
| `WEDNESDAY` | Wednesday |
| `THURSDAY` | Thursday |
| `FRIDAY` | Friday |
| `SATURDAY` | Saturday |
| `SUNDAY` | Sunday |