1- # Vehicle.proto
2-
3- < a name = " Vehicle-proto " ></ a >< p align = " right " >< a href = " #top " >Top</ a ></ p >
4-
1+ ---
2+ title : com.example
3+ description : API Specification for the com.example package.
4+ ---
55
6+ <a name =" vehicle-proto " ></a ><p align =" right " ><a href =" #top " >Top</a ></p >
67
8+ <!-- begin services -->
79
10+ <!-- begin services -->
811
912
1013
@@ -20,15 +23,14 @@ Represents a manufacturer of cars.
2023| Field | Type | Description |
2124| ----- | ---- | ----------- |
2225| id | int32| The unique manufacturer ID. |
23- | code | string| A manufacturer code, e.g. " ; DKL4P" ; . |
24- | details | string| Manufacturer details (minimum orders et.c.). |
25- | category | [ Manufacturer.Category] ( #com-example-Manufacturer-Category ) | Manufacturer category. |
26-
26+ | code | string| A manufacturer code, e.g. "DKL4P". |
27+ | details (optional) | string| Manufacturer details (minimum orders et.c.). |
28+ | category (optional) | [ Manufacturer.Category] ( #com-example-Manufacturer-Category ) | Manufacturer category. |
2729
2830
2931
3032
31-
33+ <!-- end nested messages -->
3234
3335
3436
@@ -45,7 +47,7 @@ Manufacturer category. A manufacturer may be either inhouse or external.
4547| CATEGORY_EXTERNAL | 1 | The manufacturer is external. |
4648
4749
48-
50+ <!-- end nested enums -->
4951
5052
5153
@@ -62,18 +64,17 @@ Represents a vehicle model.
6264| Field | Type | Description |
6365| ----- | ---- | ----------- |
6466| id | string| The unique model ID. |
65- | model_code | string| The car model code, e.g. &# 34 ; PZ003&# 34 ; . |
66- | model_name | string| The car model name, e.g. &# 34 ; Z3 &# 34 ; . |
67+ | model_code | string| The car model code, e.g. " PZ003" . |
68+ | model_name | string| The car model name, e.g. "Z3" . |
6769| daily_hire_rate_dollars | sint32| Dollars per day. |
6870| daily_hire_rate_cents | sint32| Cents per day. |
6971
7072
7173
7274
75+ <!-- end nested messages -->
7376
74-
75-
76-
77+ <!-- end nested enums -->
7778
7879
7980
@@ -92,11 +93,10 @@ Represents a vehicle that can be hired.
9293| id | int32| Unique vehicle ID. |
9394| model | [ Model] ( #com-example-Model ) | Vehicle model. |
9495| reg_number | string| Vehicle registration number. |
95- | mileage | sint32| Current vehicle mileage, if known. |
96- | category | [ Vehicle.Category] ( #com-example-Vehicle-Category ) | Vehicle category. |
97- | daily_hire_rate_dollars | sint32| Dollars per day. |
98- | daily_hire_rate_cents | sint32| Cents per day. |
99-
96+ | mileage (optional) | sint32| Current vehicle mileage, if known. |
97+ | category (optional) | [ Vehicle.Category] ( #com-example-Vehicle-Category ) | Vehicle category. |
98+ | daily_hire_rate_dollars (optional) | sint32| Dollars per day. |
99+ | daily_hire_rate_cents (optional) | sint32| Cents per day. |
100100
101101
102102
@@ -112,33 +112,32 @@ Represents a vehicle that can be hired.
112112
113113### Category
114114
115- Represents a vehicle category. E.g. &# 34 ; Sedan&# 34 ; or &# 34 ; Truck&# 34 ; .
115+ Represents a vehicle category. E.g. " Sedan" or " Truck" .
116116
117117
118118
119119
120120| Field | Type | Description |
121121| ----- | ---- | ----------- |
122- | code | string| Category code. E.g. &# 34 ; S &# 34 ; . |
123- | description | string| Category name. E.g. &# 34 ; Sedan&# 34 ; . |
122+ | code | string| Category code. E.g. "S" . |
123+ | description | string| Category name. E.g. " Sedan" . |
124124
125125
126126
127127
128+ <!-- end nested messages -->
128129
129-
130+ <!-- end nested enums -->
130131
131-
132132
133+ <!-- end nested messages -->
133134
134-
135+ <!-- end nested enums -->
135136
136-
137-
138-
139-
140137
138+ <!-- end messages -->
141139
140+ <!-- begin file-level enums -->
142141
143142
144143<a name =" com-example-Coolness " ></a >
@@ -153,16 +152,16 @@ Represents a vehicle category. E.g. "Sedan" or "Truck".
153152| COOLNESS_MAX | 1 | The coolness is maximum. |
154153
155154
156-
155+ <!-- end file-level enums -->
157156
157+ <!-- begin file-level extensions -->
158158
159+ <a name =" vehicle-proto-extensions " ></a >
159160
160- <a name =" Vehicle-proto-extensions " ></a >
161-
162- ### File-level Extensions
163- | Extension | Type | Base | Number | Description |
161+ ### Extensions
162+ | Extension | Type | Extension Point | Number | Description |
164163| --------- | ---- | ---- | ------ | ----------- |
165- | country | com.example.country | (none) | 100 | Manufacturer country. |
164+ | country | com.example.country | Manufacturer | 100 | Manufacturer country. |
166165
167-
166+ <!-- end file-level extensions -->
168167
0 commit comments