Phần sau đây cung cấp định nghĩa đầy đủ về BookingService bằng cách sử dụng 3 phương thức trên:
// Manages slot leases and bookings for an inventory of appointmentsserviceBookingService{// Creates a new leaserpcCreateLease(CreateLeaseRequest)returns(CreateLeaseResponse){}// Creates a booking for which a lease existsrpcCreateBooking(CreateBookingRequest)returns(CreateBookingResponse){}// Updates an existing bookingrpcUpdateBooking(UpdateBookingRequest)returns(UpdateBookingResponse){}}
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["This page outlines the implementation of a booking server using API v0, which enables the Actions Center to create appointments, bookings, or reservations."],["The API interface, based on gRPC, requires the implementation of three core methods: CreateLease, CreateBooking, and UpdateBooking."],["The implementation involves utilizing resource types like Lease and Booking, which are defined within the provided specifications, to manage slots and reservations."],["API v0 is intended for existing integrations only and new integrations should refer to the instructions for the latest version."],["You can download the service definition in proto format and implement the provided methods, which should return a gRPC status code."]]],["To integrate with Actions Center for bookings, implement a gRPC-based API server. This involves using API v0 service definition (not for new integrations) and familiarizing yourself with `Lease` and `Booking` resource types. Implement the `CreateLease`, `CreateBooking`, and `UpdateBooking` methods within the `BookingService` to manage slot holds and reservations. Each method should return gRPC status codes. Download the service definition in proto format to start. Utilize API V3 for new integrations.\n"]]