Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Un WaitEstimate contient des informations sur le temps d'attente actuel pour un marchand et un nombre de personnes spécifiques.
//Therangeoftimeforthecurrentestimatedseattimefortheuser.Estimated//seattimerangemustchangeovertimewhenthemerchantorpartnerupdates//theirestimates.messageEstimatedSeatTimeRange{//Required.Thelowerboundfortherange.Expressedasthenumberofseconds//sincetheUnixepoch.int64start_seconds=1;//Required.Theupperboundfortherange.Expressedasthenumberofseconds//sincetheUnixepoch.int64end_seconds=2;}//Containsfieldsmeasuringhowlong(intimeor# of people) until the//userisreadytoleavethewaitlistandbeseated.messageWaitLength{//Thecountofhowmanyotherpartiesareaheadoftheuserinthewaitlist.//parties_ahead_countmustchangeovertimeaspartiesahead//inthewaitlistareseatedorleavethewaitlist.Either//parties_ahead_countorestimated_seat_time_rangemustbepopulated.Both//shouldbepopulated.int32parties_ahead_count=1;//Therangeoftimethattheuserisestimatedtobeseatedin.Either//parties_ahead_countorestimated_seat_time_rangemustbepopulated.Both//shouldbepopulated.EstimatedSeatTimeRangeestimated_seat_time_range=2;}//Theconfirmationmodesusedwhenjoiningthewaitlist.enumWaitlistConfirmationMode{//Theconfirmationmodewasnotspecified.//Synchronousconfirmationwillbeassumed.WAITLIST_CONFIRMATION_MODE_UNSPECIFIED=0;//Waitlistentrieswillbeconfirmedsynchronously.WAITLIST_CONFIRMATION_MODE_SYNCHRONOUS=1;//Waitlistentrieswillbeconfirmedasynchronously.WAITLIST_CONFIRMATION_MODE_ASYNCHRONOUS=2;}//Thewaitestimateforaparticularpartysize,merchantandservice.messageWaitEstimate{//Required.Thepartysizethiswaitestimateappliesto.int32party_size=1;//Required.Containsfieldsmeasuringhowlong(intimeor# of people) until//theuserisreadytoleavethewaitlistandbeseated.WaitLengthwait_length=2;//Required.Indicateswhetherwaitlistentriesforthiswaitestimatewillbe//confirmedsynchronouslyorasynchronously.AnUNSPECIFIEDvaluewillbe//interpretedassynchronous.WaitlistConfirmationModewaitlist_confirmation_mode=3;}
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eA \u003ccode\u003eWaitEstimate\u003c/code\u003e provides real-time wait information for a specific merchant, party size, and service, including estimated seat time and position in the waitlist.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWaitLength\u003c/code\u003e details the estimated wait time, presented as either a time range (\u003ccode\u003eestimated_seat_time_range\u003c/code\u003e) or the number of parties ahead (\u003ccode\u003eparties_ahead_count\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWaitlistConfirmationMode\u003c/code\u003e specifies how waitlist entries are confirmed, either synchronously or asynchronously, providing flexibility in managing waitlist entries.\u003c/p\u003e\n"]]],["A `WaitEstimate` provides wait information for a specific merchant and party size. It includes a `WaitLength` with `parties_ahead_count` and an `EstimatedSeatTimeRange` with `start_seconds` and `end_seconds`, indicating the estimated seating time. The `WaitlistConfirmationMode` specifies whether waitlist confirmation is synchronous or asynchronous. The `parties_ahead_count` and `estimated_seat_time_range` values update when the waitlist changes. Both should be populated.\n"],null,[]]