WaitlistEntry 定义
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
等候名单条目包含客户在等候名单中的位置相关信息,包括排在前面的组数、等待时间等信息。
enum WaitlistEntryState {
WAITLIST_ENTRY_STATE_UNSPECIFIED = 0;
// The waitlist entry was created and the user is currently waiting in the
// waitlist.
WAITING = 1;
// The waitlist entry is awaiting confirmation by the merchant.
PENDING_MERCHANT_CONFIRMATION = 8;
// The waitlist entry has been canceled by the user. Cancellation for no-shows
// should use the NO_SHOW state.
CANCELED = 2;
// The waitlist entry has been declined by the merchant.
DECLINED_BY_MERCHANT = 7;
// The merchant is ready to serve the user.
SERVICE_READY = 3;
// The user has checked in with the host and is waiting to be seated.
CHECKED_IN = 4;
// The user has arrived and been seated by the merchant.
SEATED = 5;
// The user did not arrive at the merchant in time and lost their space.
NO_SHOW = 6;
}
// The times at which the waitlist entry changed state.
message WaitlistEntryStateTimes {
// Required. The time at which the waitlist entry was created.
// In seconds since Unix epoch.
int64 created_time_seconds = 1;
// The time that the waitlist entry was cancelled. Must be populated
// when the waitlist entry has been canceled but not before.
// In seconds since Unix epoch.
int64 canceled_time_seconds = 2;
// The time the merchant was ready to serve the user.
// service_readied_time_seconds must be populated after the merchant is
// ready to serve the user but not before.
// In seconds since Unix epoch.
int64 service_readied_time_seconds = 3;
// The actual time the user checked in with the host. checked_in_time must be
// populated after the user has checked in with the merchant but not before.
// In seconds since Unix epoch.
int64 checked_in_time_seconds = 4;
// The seated time for the user. seated_time_seconds must be populated
// when the user has been seated but not before.
// In seconds since Unix epoch.
int64 seated_time_seconds = 5;
// The time that the user was marked as a no-show. marked_no_show_time_seconds
// must be populated when the user has been marked a no-show but not before.
// In seconds since Unix epoch.
int64 marked_no_show_time_seconds = 6;
}
// An entry in the waitlist.
message WaitlistEntry {
// Required.
WaitlistEntryState waitlist_entry_state = 1;
// Required. The times at which the waitlist entry changed state.
WaitlistEntryStateTimes waitlist_entry_state_times = 2;
// Required. Contains fields measuring how long (in time or # of people) until
// the user is ready to leave the waitlist and be seated.
WaitEstimate wait_estimate = 3;
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eA \u003ccode\u003eWaitlistEntry\u003c/code\u003e stores a customer's position in a waitlist, tracking their status and estimated wait time.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWaitlistEntryState\u003c/code\u003e defines the various stages a customer can be in, such as waiting, canceled, seated, or no-show.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWaitlistEntryStateTimes\u003c/code\u003e records the timestamps for each state change, like creation, cancellation, or seating time.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWaitEstimate\u003c/code\u003e provides an estimated duration or number of parties ahead before the customer is served.\u003c/p\u003e\n"]]],["Waitlist entries track a customer's status and position. Possible states include WAITING, PENDING_MERCHANT_CONFIRMATION, CANCELED, DECLINED_BY_MERCHANT, SERVICE_READY, CHECKED_IN, SEATED, and NO_SHOW. Each state change is timestamped, including creation, cancellation, service readiness, check-in, seating, and no-show. Each entry also has a wait estimate to provide insight into wait times and the number of parties ahead.\n"],null,["# WaitlistEntry definition\n\nA waitlist entry contains the information about a customer's position in the\nwaitlist, including information about the number of parties ahead, wait time,\netc. \n\n```gdscript\nenum WaitlistEntryState {\n WAITLIST_ENTRY_STATE_UNSPECIFIED = 0;\n\n // The waitlist entry was created and the user is currently waiting in the\n // waitlist.\n WAITING = 1;\n\n // The waitlist entry is awaiting confirmation by the merchant.\n PENDING_MERCHANT_CONFIRMATION = 8;\n\n // The waitlist entry has been canceled by the user. Cancellation for no-shows\n // should use the NO_SHOW state.\n CANCELED = 2;\n\n // The waitlist entry has been declined by the merchant.\n DECLINED_BY_MERCHANT = 7;\n\n // The merchant is ready to serve the user.\n SERVICE_READY = 3;\n\n // The user has checked in with the host and is waiting to be seated.\n CHECKED_IN = 4;\n\n // The user has arrived and been seated by the merchant.\n SEATED = 5;\n\n // The user did not arrive at the merchant in time and lost their space.\n NO_SHOW = 6;\n}\n\n// The times at which the waitlist entry changed state.\nmessage WaitlistEntryStateTimes {\n // Required. The time at which the waitlist entry was created.\n // In seconds since Unix epoch.\n int64 created_time_seconds = 1;\n\n // The time that the waitlist entry was cancelled. Must be populated\n // when the waitlist entry has been canceled but not before.\n // In seconds since Unix epoch.\n int64 canceled_time_seconds = 2;\n\n // The time the merchant was ready to serve the user.\n // service_readied_time_seconds must be populated after the merchant is\n // ready to serve the user but not before.\n // In seconds since Unix epoch.\n int64 service_readied_time_seconds = 3;\n\n // The actual time the user checked in with the host. checked_in_time must be\n // populated after the user has checked in with the merchant but not before.\n // In seconds since Unix epoch.\n int64 checked_in_time_seconds = 4;\n\n // The seated time for the user. seated_time_seconds must be populated\n // when the user has been seated but not before.\n // In seconds since Unix epoch.\n int64 seated_time_seconds = 5;\n\n // The time that the user was marked as a no-show. marked_no_show_time_seconds\n // must be populated when the user has been marked a no-show but not before.\n // In seconds since Unix epoch.\n int64 marked_no_show_time_seconds = 6;\n}\n\n// An entry in the waitlist.\nmessage WaitlistEntry {\n // Required.\n WaitlistEntryState waitlist_entry_state = 1;\n\n // Required. The times at which the waitlist entry changed state.\n WaitlistEntryStateTimes waitlist_entry_state_times = 2;\n\n // Required. Contains fields measuring how long (in time or # of people) until\n // the user is ready to leave the waitlist and be seated.\n WaitEstimate wait_estimate = 3;\n}\n```"]]