- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1alpha1/DateRangeConfig.md.txt#SCHEMA_REPRESENTATION)
- [RelativeDateRange](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1alpha1/DateRangeConfig.md.txt#RelativeDateRange)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1alpha1/DateRangeConfig.md.txt#RelativeDateRange.SCHEMA_REPRESENTATION)
- [TimeUnit](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1alpha1/DateRangeConfig.md.txt#TimeUnit)
- [QueryInterval](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1alpha1/DateRangeConfig.md.txt#QueryInterval)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1alpha1/DateRangeConfig.md.txt#QueryInterval.SCHEMA_REPRESENTATION)

Date range configuration for dashboard charts.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "relativeDateRange": { object (`RelativeDateRange`) }, "absoluteDateRange": { object (`QueryInterval`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The date range. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `relativeDateRange` | ``object (`RelativeDateRange`)`` A relative date range. |
| `absoluteDateRange` | ``object (`QueryInterval`)`` An absolute date range. |
| End of mutually exclusive fields. ||

## RelativeDateRange

Relative date range configuration.

| JSON representation |
|---|
| ``` { "quantity": string, "unit": enum (`TimeUnit`) } ``` |

| Fields ||
|---|---|
| `quantity` | `string (int64 format)` Required. The quantity of units in the past. |
| `unit` | ``enum (`TimeUnit`)`` Required. The unit of time. |

## TimeUnit

The unit of time for relative date range.

| Enums ||
|---|---|
| `TIME_UNIT_UNSPECIFIED` | Unspecified. |
| `DAY` | Day. |
| `WEEK` | Week. |
| `MONTH` | Month. |
| `QUARTER` | Quarter. |
| `YEAR` | Year. |

## QueryInterval

A time window for querying conversations.

| JSON representation |
|---|
| ``` { "startTime": string, "endTime": string } ``` |

| Fields ||
|---|---|
| `startTime` | ``string (`Timestamp` format)`` Required. The start time of the time window. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`Timestamp` format)`` Required. The end time of the time window. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |