Metodo ListBookings
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Richiesta
ListBookingsRequest
Valore restituito
ListBookingsResponse
Deve restituire solo le prenotazioni future di un utente, non quelle di tutti i tempi.
Codici di errore gRPC canonici
NOT_FOUND (se l'ID utente richiesto non è noto al partner)
// Request to list all upcoming bookings for a user
message ListBookingsRequest {
option features.(pb.java).nest_in_file_class = YES;
// ID of the user (required)
string user_id = 1;
}
// Response for the [ext.maps.booking.partner.v2.ListBookings] RPC with all
// upcoming bookings for the requested user
message ListBookingsResponse {
option features.(pb.java).nest_in_file_class = YES;
// All bookings of the user (required)
repeated Booking bookings = 1;
}
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2026-02-18 UTC.
[null,null,["Ultimo aggiornamento 2026-02-18 UTC."],[],["The `ListBookingsRequest` requires a `user_id` to retrieve a user's future bookings. The `ListBookingsResponse` returns a list of `bookings` for the specified user. The system should only return future bookings, not historical ones. If the provided `user_id` is not found, the service will respond with a `NOT_FOUND` gRPC error code. The request is made through the `ListBookings` RPC.\n"]]