空档定义
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
空档包含用于标识商品目录空档的信息。
空档的定义
// 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)
int64 start_sec = 3;
// Duration of the appointment slot (required for CreateBooking)
int64 duration_sec = 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)
ResourceIds resources = 6;
// Indicates whether bookings of this slot will be confirmed
// synchronously or asynchronously. (optional)
// An UNSPECIFIED value will be interpreted as synchronous.
ConfirmationMode confirmation_mode = 7;
}
资源的定义
// Resource specification that disambiguates an appointment slot
message ResourceIds {
// The staff ID as provided in the feed or empty if not applicable or no staff
// was selected. (optional)
string staff_id = 1;
// The room ID as provided in the feed or empty if not applicable or no room
// was selected. (optional)
string room_id = 2;
// For Dining Reservations only: the number of seats requested in the booking.
// (optional)
int32 party_size = 3;
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eA \u003ccode\u003eSlot\u003c/code\u003e identifies an inventory slot with details like merchant and service IDs, start time, duration, and optional availability tag.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSlot\u003c/code\u003e can include resource specifications using \u003ccode\u003eResourceIds\u003c/code\u003e to further define the slot with staff, room, or party size information.\u003c/p\u003e\n"],["\u003cp\u003eBooking confirmation mode for a \u003ccode\u003eSlot\u003c/code\u003e can be specified, defaulting to synchronous if unspecified.\u003c/p\u003e\n"]]],["A slot identifies an inventory space, requiring a merchant ID, service ID, start time (in seconds since Unix epoch), and duration (in seconds). It can optionally include an availability tag, resource identifiers (like staff or room IDs), and a confirmation mode (synchronous or asynchronous). Resource IDs may further specify a staff ID, room ID, and party size, if applicable. These fields are essential for booking and inventory management.\n"],null,["# Slot definition\n\nSlot contains the information to identify an inventory slot.\n\n### Slot Definition\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 int64 start_sec = 3;\n\n // Duration of the appointment slot (required for CreateBooking)\n int64 duration_sec = 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 ResourceIds resources = 6;\n\n // Indicates whether bookings of this slot will be confirmed\n // synchronously or asynchronously. (optional)\n // An UNSPECIFIED value will be interpreted as synchronous.\n ConfirmationMode confirmation_mode = 7;\n}\n```\n\n### Resources Definition\n\n```scilab\n// Resource specification that disambiguates an appointment slot\nmessage ResourceIds {\n // The staff ID as provided in the feed or empty if not applicable or no staff\n // was selected. (optional)\n string staff_id = 1;\n\n // The room ID as provided in the feed or empty if not applicable or no room\n // was selected. (optional)\n string room_id = 2;\n\n // For Dining Reservations only: the number of seats requested in the booking.\n // (optional)\n int32 party_size = 3;\n}\n```"]]