空档规范
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
空档包含用于标识商品目录空档的信息。
// An inventory slot
message Slot {
// ID of the merchant for the slot (required for CreateBooking)
string merchant_id = 1;
// ID of the merchant service (required for CreateBooking)
string service_id = 2;
// Start time of the appointment slot in seconds of UTC time since Unix epoch.
// (required for CreateBooking)
google.protobuf.Timestamp start_time = 3;
// Duration of the appointment slot (required for CreateBooking)
google.protobuf.Duration duration = 4;
// Opaque tag that identifies the availability slot and matches the value
// provided in the availability feed (optional)
string availability_tag = 5;
// The set of resources that disambiguates the appointment slot, e.g. by
// indicating the staff member and room selected by the user (optional)
Resources resources = 6;
reserved 7;
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eSlot\u003c/code\u003e message identifies an inventory slot with details like merchant ID, service ID, start time, and duration.\u003c/p\u003e\n"],["\u003cp\u003eIt uses \u003ccode\u003estart_time\u003c/code\u003e and \u003ccode\u003eduration\u003c/code\u003e to define the appointment slot's timeframe, expressed in UTC and as a duration respectively.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eavailability_tag\u003c/code\u003e can link the slot to its source in an availability feed.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eresources\u003c/code\u003e field allows for specification of staff, room, or other resources associated with the slot.\u003c/p\u003e\n"]]],["The `Slot` message identifies an inventory slot using several fields. It requires `merchant_id`, `service_id`, `start_time`, and `duration` for booking creation. `availability_tag` can be provided to match a slot in an availability feed. An optional `resources` field further specifies the slot, such as the selected staff member or room. Field 7 is reserved for future use. These components identify and help book an available appointment.\n"],null,["# Slot specification\n\nSlot contains the information to identify an inventory slot. \n\n```scilab\n// An inventory slot\nmessage Slot {\n // ID of the merchant for the slot (required for CreateBooking)\n string merchant_id = 1;\n\n // ID of the merchant service (required for CreateBooking)\n string service_id = 2;\n\n // Start time of the appointment slot in seconds of UTC time since Unix epoch.\n // (required for CreateBooking)\n google.protobuf.Timestamp start_time = 3;\n\n // Duration of the appointment slot (required for CreateBooking)\n google.protobuf.Duration duration = 4;\n\n // Opaque tag that identifies the availability slot and matches the value\n // provided in the availability feed (optional)\n string availability_tag = 5;\n\n // The set of resources that disambiguates the appointment slot, e.g. by\n // indicating the staff member and room selected by the user (optional)\n Resources resources = 6;\n\n reserved 7;\n}\n```"]]