Permintaan
ListBookingsRequest
Nilai yang ditampilkan
ListBookingsResponse
Metode ini hanya perlu menampilkan pemesanan mendatang untuk pengguna, bukan pemesanan untuk sepanjang waktu.
Kode error gRPC kanonis
NOT_FOUND(jika ID pengguna yang diminta tidak diketahui oleh partner)
// Request to list all upcoming bookings for a user export 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 export message ListBookingsResponse { option features.(pb.java).nest_in_file_class = YES; // All bookings of the user (required) repeated Booking bookings = 1; }