Interval
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eRepresents a time interval with an inclusive start and exclusive end, encoded as Timestamps.\u003c/p\u003e\n"],["\u003cp\u003eStart must be less than or equal to the end; equality implies an empty interval, and unspecified values match any time.\u003c/p\u003e\n"],["\u003cp\u003eJSON representation uses \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields, formatted as Timestamp strings.\u003c/p\u003e\n"]]],[],null,["# Interval\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).\n\nThe 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.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"startTime\": string, \"endTime\": string } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#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. |\n| `endTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. |"]]