Định nghĩa WaitlistEntryFailure
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Lỗi WaitlistEntry có thể xảy ra khi tạo mục trong danh sách chờ.
// Status data that conveys why creating a waitlist entry fails.
// If there is a business logic error that is not captured here, please
// reach out to the Reserve with Google team to add it to this list. Other
// errors should be returned using standard HTTP error codes.
message WaitlistBusinessLogicFailure {
enum Cause {
// Default value: Don't use; amounts to an "unknown error"
// Unexpected errors must be returned using standard HTTP error codes.
CAUSE_UNSPECIFIED = 0;
// The user has already booked a waitlist entry with the partner.
EXISTING_WAITLIST_ENTRY = 1;
// The requested party size is below the merchant’s minimum.
BELOW_MIN_PARTY_SIZE = 2;
// The requested party size is above the merchant’s maximum.
ABOVE_MAX_PARTY_SIZE = 3;
// The requested merchant is currently closed.
MERCHANT_CLOSED = 4;
// There is currently no wait and the user should walk in without joining
// the waitlist.
NO_WAIT = 5;
// The waitlist is at capacity and new users are not being accepted at this
// time.
WAITLIST_FULL = 6;
// The country of the phone number is not supported.
PHONE_NUMBER_COUNTRY_UNSUPPORTED = 7;
// The waitlist is closed and not accepting new users. This is expected when
// the waitlist enters state CLOSED_OTHER after the user has already seen a
// wait estimate.
WAITLIST_CLOSED = 8;
}
// Required. The reason why the booking failed.
Cause cause = 1;
// This optional field is used for the partner to include additional
// information for debugging purposes only.
string description = 2;
}
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eWaitlistEntry\u003c/code\u003e creation can fail due to various business logic reasons, such as an existing waitlist entry, party size limitations, merchant's operational status (closed or no wait), waitlist capacity, unsupported phone number country, or waitlist closure.\u003c/p\u003e\n"],["\u003cp\u003eIf a \u003ccode\u003eWaitlistEntry\u003c/code\u003e creation fails, the \u003ccode\u003eWaitlistBusinessLogicFailure\u003c/code\u003e message provides a specific \u003ccode\u003eCause\u003c/code\u003e for the failure, offering insight into the reason.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWaitlistBusinessLogicFailure\u003c/code\u003e message may optionally include a \u003ccode\u003edescription\u003c/code\u003e field for debugging purposes, providing additional context to the partner.\u003c/p\u003e\n"]]],["Waitlist entry creation can fail due to various reasons, indicated by `WaitlistBusinessLogicFailure`. These causes include: an existing entry, party size issues (below minimum or above maximum), the merchant being closed, no current wait, a full waitlist, an unsupported phone number country, or the waitlist being closed. Each failure has an enumerated cause, and optional debugging information can be added to a description. Standard HTTP errors should be used for other issues.\n"],null,["# WaitlistEntryFailure definition\n\nWaitlistEntry failure can happen when creating a waitlist entry. \n\n```gdscript\n// Status data that conveys why creating a waitlist entry fails.\n// If there is a business logic error that is not captured here, please\n// reach out to the Reserve with Google team to add it to this list. Other\n// errors should be returned using standard HTTP error codes.\nmessage WaitlistBusinessLogicFailure {\n enum Cause {\n // Default value: Don't use; amounts to an \"unknown error\"\n // Unexpected errors must be returned using standard HTTP error codes.\n CAUSE_UNSPECIFIED = 0;\n\n // The user has already booked a waitlist entry with the partner.\n EXISTING_WAITLIST_ENTRY = 1;\n\n // The requested party size is below the merchant's minimum.\n BELOW_MIN_PARTY_SIZE = 2;\n\n // The requested party size is above the merchant's maximum.\n ABOVE_MAX_PARTY_SIZE = 3;\n\n // The requested merchant is currently closed.\n MERCHANT_CLOSED = 4;\n\n // There is currently no wait and the user should walk in without joining\n // the waitlist.\n NO_WAIT = 5;\n\n // The waitlist is at capacity and new users are not being accepted at this\n // time.\n WAITLIST_FULL = 6;\n\n // The country of the phone number is not supported.\n PHONE_NUMBER_COUNTRY_UNSUPPORTED = 7;\n\n // The waitlist is closed and not accepting new users. This is expected when\n // the waitlist enters state CLOSED_OTHER after the user has already seen a\n // wait estimate.\n WAITLIST_CLOSED = 8;\n }\n\n // Required. The reason why the booking failed.\n Cause cause = 1;\n\n // This optional field is used for the partner to include additional\n // information for debugging purposes only.\n string description = 2;\n}\n```"]]