در زیر یک تعریف کامل BookingService با استفاده از 3 روش بالا ارائه می شود:
// 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){}}
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["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"]]