GenericExtension
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
已弃用:请改用 V3 Proto。未与语义类型关联的泛型订单的扩展。
字段 |
locations[] |
object (OrderLocation )
与订单相关联的营业地点。最多 2 个营业地点。
|
time |
object (Time )
与建议订单相关联的时间指示器。
|
OrderLocation
已弃用:请改用 V3 Proto。与订单相关联的营业地点。
时间
已弃用:请改用 V3 Proto。订单的关联时间。
JSON 表示法 |
{
"type": enum (TimeType ),
"timeIso8601": string
} |
字段 |
type |
enum (TimeType )
时间指示器的类型。
|
timeIso8601 |
string
时间指示器的 ISO 8601 表示法:可以是持续时间、日期或确切日期时间。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eGenericExtension is deprecated and developers should use V3 Proto instead.\u003c/p\u003e\n"],["\u003cp\u003eIt allows for specifying order locations and time associated with an order.\u003c/p\u003e\n"],["\u003cp\u003eLocations can be specified with an address type and location information.\u003c/p\u003e\n"],["\u003cp\u003eTime can be indicated as a duration, date, or exact datetime in ISO 8601 format.\u003c/p\u003e\n"]]],["The core content describes the deprecated JSON structures for representing order information, specifically `OrderLocation` and `Time`. An order can have up to two associated `locations`, defined by `type` and detailed `location` info. The order includes a `time` indicator, specified by a `type` and an ISO 8601 string. These structures are now replaced by V3 Proto.\n"],null,["# GenericExtension\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [OrderLocation](#OrderLocation)\n - [JSON representation](#OrderLocation.SCHEMA_REPRESENTATION)\n- [Time](#Time)\n - [JSON representation](#Time.SCHEMA_REPRESENTATION)\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. Extension for generic orders that are not tied to a semantic type.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"locations\": [ { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/GenericExtension#OrderLocation) } ], \"time\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/GenericExtension#Time) } } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locations[]` | `object (`[OrderLocation](/assistant/df-asdk/reference/webhook/rest/Shared.Types/GenericExtension#OrderLocation)`)` Locations associated with the order. Up to 2 locations. |\n| `time` | `object (`[Time](/assistant/df-asdk/reference/webhook/rest/Shared.Types/GenericExtension#Time)`)` time indicator associated with the proposed order. |\n\nOrderLocation\n-------------\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. Location associated with an order.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"type\": enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderLocationType), \"location\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/Location) } } ``` |\n\n| Fields ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `type` | `enum (`[OrderLocationType](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderLocationType)`)` Address type. Determines icon and placement. Required. |\n| `location` | `object (`[Location](/assistant/df-asdk/reference/webhook/rest/Shared.Types/Location)`)` Contains actual location info. |\n\nTime\n----\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. time associated with an order.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"type\": enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/TimeType), \"timeIso8601\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------|\n| `type` | `enum (`[TimeType](/assistant/df-asdk/reference/webhook/rest/Shared.Types/TimeType)`)` type of time indicator. |\n| `timeIso8601` | `string` ISO 8601 representation of time indicator: could be a duration, date or exact datetime. |"]]