Interval
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
表示时间间隔,编码为时间戳开始(含)和时间戳结束(不含)。
起始值必须小于或等于结束值。当开始时间等于结束时间时,间隔时间为空(与时间不匹配)。如果 start 和 end 均未指定,则间隔时间不限。
JSON 表示法 |
{
"startTime": string,
"endTime": string
} |
字段 |
startTime |
string (Timestamp format)
可选。间隔的开始值(含)。 如果指定,则与此间隔匹配的时间戳必须相同或晚于开始时间。
|
endTime |
string (Timestamp format)
可选。间隔结束(不含)。 如果指定,则与此时间间隔匹配的时间戳必须早于结束时间。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\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 matching no time.\u003c/p\u003e\n"],["\u003cp\u003eUnspecified start and end signify an interval matching any time.\u003c/p\u003e\n"],["\u003cp\u003eThe interval is represented by a JSON object with optional \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields in Timestamp format.\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. |"]]