Stay organized with collections
Save and categorize content based on your preferences.
Request
CreateLeaseRequest
Return value
CreateLeaseResponse
Requirements:
lease_id must be created by the partner backend and set in the
CreateLeaseResponse.
lease_expiration_time must be set in the CreateLeaseResponse.
If the resources field is specified in the CreateLeaseRequest, then it must
be set in the CreateLeaseResponse, and match the CreateLeaseRequest.
All other fields in the CreateLeaseResponse must be set and match the
CreateLeaseRequest.
Canonical gRPC error codes
INVALID_ARGUMENT (invalid merchant ID, service ID, client reference or slot time specification)
ALREADY_EXISTS (if the client already has a lease on the slot)
RESOURCE_EXHAUSTED (if the slot is not available)
// Request to create a [ext.maps.booking.partner.v0.Lease] for a slot in the// inventory. The expiration time in the returned Lease may be modified by the// backend, e.g. if the requested lease period is too long.messageCreateLeaseRequest{// The lease to be created with information about the appointment slotLeaselease=1;}// Response for the [ext.maps.booking.partner.v0.CreateLease] RPC with the// created [ext.maps.booking.partner.v0.Lease]messageCreateLeaseResponse{// The created [ext.maps.booking.partner.v0.Lease]Leaselease=1;}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Download the provided skeleton gRPC server and necessary protocol buffer definitions to begin implementation."],["Update the `build.gradle` file with required dependencies and protobuf plugin configurations for code generation."],["Implement the `BookingService.java` and `Health.java` files, adhering to the instructions provided in the TODOs."],["Build the server using gradle commands and ensure proper TLS certificates are in place for secure communication."],["Run the server executable to start the booking service."]]],[]]