Skip to main content

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!

NameTypeDescription
vehicle_idint32ID of booked vehicle.
customer_idint32Customer that booked the vehicle.
statusBookingStatusStatus of the booking.
confirmation_sentboolHas booking confirmation been sent?
payment_receivedboolHas payment been received?
color_preferencestringColor preference of the customer.

BookingStatus#

Represents the status of a vehicle booking.

NameTypeDescription
idint32Unique booking status ID.
descriptionstringBooking status description. E.g. "Active".

BookingStatusID#

Represents the booking status ID.

NameTypeDescription
idint32Unique booking status ID.

EmptyBookingMessage#

An empty message for testing

NameTypeDescription

Services#

BookingService#

Service for handling vehicle bookings.

BookVehicle#

MethodBookVehicle
RequestBooking
ResponseBookingStatus
DescriptionUsed to book a vehicle. Pass in a Booking and a BookingStatus will be returned.

BookingUpdates#

MethodBookingUpdates
RequestBookingStatusID
ResponseBookingStatus stream
DescriptionUsed to subscribe to updates of the BookingStatus.