ListBookings yöntemi
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
İstek
ListBookingsRequest
Döndürülen değer
ListBookingsResponse
Bu işlev, yalnızca kullanıcının gelecekteki rezervasyonlarını döndürmelidir. Tüm zamanlara ait rezervasyonları döndürmesi gerekmez.
Standart gRPC hata kodları
NOT_FOUND (İstenen kullanıcı kimliği iş ortağı tarafından bilinmiyorsa)
// 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;
}
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2026-02-18 UTC.
[null,null,["Son güncelleme tarihi: 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"]]