WaitlistEntryFailure 정의
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
대기자 명단 항목을 만들 때 WaitlistEntry 실패가 발생할 수 있습니다.
// 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;
}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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```"]]