روش ListBookings
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
درخواست
درخواست رزرو لیست
مقدار بازگشتی
پاسخ ListBookings
این فقط باید رزروهای آینده کاربر را برگرداند، نه رزروهای همیشگی را.
کدهای خطای 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 و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2026-02-18 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2026-02-18 بهوقت ساعت هماهنگ جهانی."],[],["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"]]