ListBookings का तरीका
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अनुरोध
ListBookingsRequest
रिटर्न वैल्यू
ListBookingsResponse
इसे सिर्फ़ किसी उपयोगकर्ता की आने वाले समय की बुकिंग की जानकारी दिखानी होती है, न कि सभी बुकिंग की जानकारी.
कैननिकल gRPC गड़बड़ी कोड
NOT_FOUND (अगर अनुरोध करने वाले उपयोगकर्ता का आईडी, पार्टनर को नहीं पता है)
// 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;
}
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2026-02-18 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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"]]