Skip to content

Commit

Permalink
add examples to amenity message
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Jan 17, 2024
1 parent c06235d commit c7dbeb6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions proto/cmp/types/v1alpha1/amenity.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@ package cmp.types.v1alpha1;

// Amenity message type
//
// Examples:
//
// - Amenity message with a single attribute
//
// ```python
// Amenity(
// type = AmenityType.AMENITY_TYPE_THEMES,
// attributes = {
// "theme": "Second-line beach hotel"
// }
// )
// ```
//
// - Amenity message with multiple attributes
//
// ```python
// Amenity(
// type = AmenityType.AMENITY_TYPE_INTERNET,
// attributes = {
// "lobby": "WiFi",
// "charge": "extra fee",
// "fee": "20",
// "fee_unit": "EUR"
// }
// )
// ```
//
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/amenity.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/amenity.proto.dot.svg)
message Amenity {
Expand Down

0 comments on commit c7dbeb6

Please sign in to comment.