TimeInterval
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"kind": string,
"start": {
object (DateTime )
},
"end": {
object (DateTime )
}
} |
字段 |
kind (deprecated) |
string
指明资源的类型。值:固定字符串 "walletobjects#timeInterval" 。
|
start |
object (DateTime )
间隔的开始时间。 偏移量不是必需属性。如果提供了偏移量并设置了 end 时间,则 end 还必须包含偏移量。
|
end |
object (DateTime )
时间段的结束时间。 偏移量不是必需属性。如果提供了偏移量并设置了 start 时间,则 start 还必须包含偏移量。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eJSON representation defines a time interval with a start and end time.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ekind\u003c/code\u003e field is deprecated and was used to identify the resource type.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estart\u003c/code\u003e and \u003ccode\u003eend\u003c/code\u003e fields represent the start and end times of the interval, respectively, using the DateTime object.\u003c/p\u003e\n"],["\u003cp\u003eOffsets in \u003ccode\u003estart\u003c/code\u003e and \u003ccode\u003eend\u003c/code\u003e are optional but must be consistent if used in either field.\u003c/p\u003e\n"]]],["The JSON representation defines a time interval with `start` and `end` time objects, both referencing a `DateTime` schema. The `kind` field, a string, is deprecated. If an offset is provided for the `start` time, an offset must also be included in the `end` time, and vice-versa. Both the `start` and `end` fields are optional for offset inclusion.\n"],null,["# TimeInterval\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"start\": { object (/wallet/reference/rest/v1/DateTime) }, \"end\": { object (/wallet/reference/rest/v1/DateTime) } } ``` |\n\n| Fields ||\n|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` **(deprecated)** | `string` | This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#timeInterval\"`. |\n| `start` | `object (`[DateTime](/wallet/reference/rest/v1/DateTime)`)` Start time of the interval. Offset is not required. If an offset is provided and `end` time is set, `end` must also include an offset. |\n| `end` | `object (`[DateTime](/wallet/reference/rest/v1/DateTime)`)` End time of the interval. Offset is not required. If an offset is provided and `start` time is set, `start` must also include an offset. |"]]