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
+ ---
5
5
6
+ <a name =" vehicle-proto " ></a ><p align =" right " ><a href =" #top " >Top</a ></p >
6
7
8
+ <!-- begin services -->
7
9
10
+ <!-- begin services -->
8
11
9
12
10
13
@@ -20,15 +23,14 @@ Represents a manufacturer of cars.
20
23
| Field | Type | Description |
21
24
| ----- | ---- | ----------- |
22
25
| 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. |
27
29
28
30
29
31
30
32
31
-
33
+ <!-- end nested messages -->
32
34
33
35
34
36
@@ -45,7 +47,7 @@ Manufacturer category. A manufacturer may be either inhouse or external.
45
47
| CATEGORY_EXTERNAL | 1 | The manufacturer is external. |
46
48
47
49
48
-
50
+ <!-- end nested enums -->
49
51
50
52
51
53
@@ -62,18 +64,17 @@ Represents a vehicle model.
62
64
| Field | Type | Description |
63
65
| ----- | ---- | ----------- |
64
66
| 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" . |
67
69
| daily_hire_rate_dollars | sint32| Dollars per day. |
68
70
| daily_hire_rate_cents | sint32| Cents per day. |
69
71
70
72
71
73
72
74
75
+ <!-- end nested messages -->
73
76
74
-
75
-
76
-
77
+ <!-- end nested enums -->
77
78
78
79
79
80
@@ -92,11 +93,10 @@ Represents a vehicle that can be hired.
92
93
| id | int32| Unique vehicle ID. |
93
94
| model | [ Model] ( #com-example-Model ) | Vehicle model. |
94
95
| 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. |
100
100
101
101
102
102
@@ -112,33 +112,32 @@ Represents a vehicle that can be hired.
112
112
113
113
### Category
114
114
115
- Represents a vehicle category. E.g. &# 34 ; Sedan&# 34 ; or &# 34 ; Truck&# 34 ; .
115
+ Represents a vehicle category. E.g. " Sedan" or " Truck" .
116
116
117
117
118
118
119
119
120
120
| Field | Type | Description |
121
121
| ----- | ---- | ----------- |
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" . |
124
124
125
125
126
126
127
127
128
+ <!-- end nested messages -->
128
129
129
-
130
+ <!-- end nested enums -->
130
131
131
-
132
132
133
+ <!-- end nested messages -->
133
134
134
-
135
+ <!-- end nested enums -->
135
136
136
-
137
-
138
-
139
-
140
137
138
+ <!-- end messages -->
141
139
140
+ <!-- begin file-level enums -->
142
141
143
142
144
143
<a name =" com-example-Coolness " ></a >
@@ -153,16 +152,16 @@ Represents a vehicle category. E.g. "Sedan" or "Truck".
153
152
| COOLNESS_MAX | 1 | The coolness is maximum. |
154
153
155
154
156
-
155
+ <!-- end file-level enums -->
157
156
157
+ <!-- begin file-level extensions -->
158
158
159
+ <a name =" vehicle-proto-extensions " ></a >
159
160
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 |
164
163
| --------- | ---- | ---- | ------ | ----------- |
165
- | country | com.example.country | (none) | 100 | Manufacturer country. |
164
+ | country | com.example.country | Manufacturer | 100 | Manufacturer country. |
166
165
167
-
166
+ <!-- end file-level extensions -->
168
167
0 commit comments