روش ListBookings
درخواست کنید
لیست رزرو درخواست
ارزش برگشتی
ListBookingsResponse
این فقط نیاز به بازگشت رزروهای آینده برای یک کاربر دارد، نه رزرو برای همیشه.
کدهای خطای متعارف gRPC
-
NOT_FOUND
(اگر شناسه کاربری درخواستی برای شریک ناشناخته باشد)
// 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;
}
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],[]]