Metodo ListBookings
Richiedi
ListBookingsRequest
Valore restituito
ListBookingsResponse
Deve restituire solo le prenotazioni future per un utente, non le prenotazioni per tutto il tempo.
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 {
// 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 {
// 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 2024-11-26 UTC.
[null,null,["Ultimo aggiornamento 2024-11-26 UTC."],[[["The `ListBookings` RPC retrieves upcoming bookings for a specific user."],["Requests must include the user's ID and will return a `NOT_FOUND` error if the ID is unknown."],["The response contains a list of `Booking` objects representing the user's future bookings."]]],[]]