วิธีการ 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;
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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"]]