Interval

  • Represents a time interval with an inclusive start and exclusive end, encoded as Timestamps.

  • Start must be less than or equal to the end; equality implies an empty interval matching no time.

  • Unspecified start and end signify an interval matching any time.

  • The interval is represented by a JSON object with optional startTime and endTime fields in Timestamp format.

Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).

The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.

JSON representation
{
  "startTime": string,
  "endTime": string
}
Fields
startTime

string (Timestamp format)

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

endTime

string (Timestamp format)

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.