Booking.proto#
path Booking.proto
package com.example
Booking related messages.
This file is really just an example. The data model is completely fictional.
Messages#
Booking#
Represents the booking of a vehicle. Vehicles are some cool shit. But drive carefully!
| Name | Type | Description |
|---|---|---|
vehicle_id | int32 | ID of booked vehicle. |
customer_id | int32 | Customer that booked the vehicle. |
status | BookingStatus | Status of the booking. |
confirmation_sent | bool | Has booking confirmation been sent? |
payment_received | bool | Has payment been received? |
color_preference | string | Color preference of the customer. |
BookingStatus#
Represents the status of a vehicle booking.
| Name | Type | Description |
|---|---|---|
id | int32 | Unique booking status ID. |
description | string | Booking status description. E.g. "Active". |
BookingStatusID#
Represents the booking status ID.
| Name | Type | Description |
|---|---|---|
id | int32 | Unique booking status ID. |
EmptyBookingMessage#
An empty message for testing
| Name | Type | Description |
|---|
Services#
BookingService#
Service for handling vehicle bookings.
BookVehicle#
| Method | BookVehicle |
|---|---|
| Request | Booking |
| Response | BookingStatus |
| Description | Used to book a vehicle. Pass in a Booking and a BookingStatus will be returned. |
BookingUpdates#
| Method | BookingUpdates |
|---|---|
| Request | BookingStatusID |
| Response | BookingStatus stream |
| Description | Used to subscribe to updates of the BookingStatus. |