วิธีการ ListBookings
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เมธอดนี้จะแสดงการจองในอนาคตของผู้ใช้กับผู้ขายรายใดก็ได้ วิธีนี้ไม่ควรแสดงการจองที่ผ่านมาหรือการจองที่ยกเลิกแล้ว
คำขอ
ListBookingsRequest
ผลลัพธ์
ListBookingsResponse
// Request to list all bookings for a user
message ListBookingsRequest {
// ID of the user (required)
string user_id = 1;
}
// Response for the ListBookings RPC with all bookings for the requested user.
message ListBookingsResponse {
// All bookings of the user (required)
repeated Booking bookings = 1;
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis service retrieves a list of a user's upcoming bookings across all merchants.\u003c/p\u003e\n"],["\u003cp\u003ePast and cancelled bookings are excluded from the results.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a user ID to identify the user for which the bookings are being listed.\u003c/p\u003e\n"],["\u003cp\u003eThe response returns a list of Booking objects, representing the user's upcoming reservations.\u003c/p\u003e\n"]]],["The `ListBookingsRequest` retrieves a user's future bookings, excluding past or cancelled ones, by utilizing a required `user_id`. The `ListBookingsResponse` returns a list of `Booking` objects, representing all future bookings associated with the specified user. The response contains a repeated `bookings` field, which is mandatory.\n"],null,["# ListBookings method\n\nThis method returns future bookings for a user at any merchant. This method\nshould not return past bookings or cancelled bookings.\n\n**Request**\n\nListBookingsRequest\n\n**Return value**\n\nListBookingsResponse \n\n```scilab\n// Request to list all bookings for a user\nmessage ListBookingsRequest {\n // ID of the user (required)\n string user_id = 1;\n}\n\n// Response for the ListBookings RPC with all bookings for the requested user.\nmessage ListBookingsResponse {\n // All bookings of the user (required)\n repeated Booking bookings = 1;\n}\n```"]]