Commit 141dba3
authored
Support generating unbound methods with option (#1652)
* Adds generate_unbound_methods parameter.
This will also warn the user when they use the new option with the existing `warn_on_unbound_methods`
* Handle generate unbound methods option.
This adds the necessary code to handle the new `generate_unbound_methods` option.
The strategy used is to generate default options when the service method has no option and the flag is enabled.
It also adds a simple test.
* Adds reference to gRPC HTTP/2 mapping.
* Adds similar option to gen-swagger.
* Adds example for generate_unbounud_methods parameter.
* Adds resulting generated examples.
* Adds missing bazel build updates.
* Adds missing BUILD file.
* Simplify .gitignore files.
* TIDY: fixup comments.
* Update generated files with new comments.
* Adds documentation for generate_unbound_methods parameter.
* Adds documentation for generate_unbound_methods to README.
* Apply suggestions from code review
`protoc` invocation example cleanup
Co-authored-by: Johan Brandhorst-Satzkorn <[email protected]>
* Some markdown tidyness, additional protoc invocation documentation.
Co-authored-by: Johan Brandhorst-Satzkorn <[email protected]>
Fixes #16491 parent 98045e1 commit 141dba3
File tree
29 files changed
+2311
-51
lines changed- docs/_docs
- examples/internal
- clients/generateunboundmethods
- .swagger-codegen
- api
- docs
- proto/examplepb
- protoc-gen-grpc-gateway
- descriptor
- protoc-gen-swagger
29 files changed
+2311
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
136 | 142 | | |
137 | 143 | | |
138 | 144 | | |
139 | | - | |
140 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
| |||
182 | 194 | | |
183 | 195 | | |
184 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
185 | 204 | | |
186 | 205 | | |
187 | 206 | | |
| |||
210 | 229 | | |
211 | 230 | | |
212 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
213 | 237 | | |
214 | | - | |
| 238 | + | |
215 | 239 | | |
216 | 240 | | |
217 | 241 | | |
| |||
250 | 274 | | |
251 | 275 | | |
252 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
253 | 280 | | |
254 | 281 | | |
255 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
101 | 153 | | |
102 | 154 | | |
103 | 155 | | |
| |||
130 | 182 | | |
131 | 183 | | |
132 | 184 | | |
133 | | - | |
134 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
135 | 197 | | |
136 | 198 | | |
137 | 199 | | |
138 | 200 | | |
139 | 201 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 202 | + | |
143 | 203 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
147 | 211 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 212 | + | |
173 | 213 | | |
174 | 214 | | |
175 | 215 | | |
| |||
220 | 260 | | |
221 | 261 | | |
222 | 262 | | |
223 | | - | |
| 263 | + | |
224 | 264 | | |
225 | 265 | | |
226 | | - | |
| 266 | + | |
227 | 267 | | |
228 | 268 | | |
| 269 | + | |
| 270 | + | |
229 | 271 | | |
230 | 272 | | |
231 | 273 | | |
| |||
238 | 280 | | |
239 | 281 | | |
240 | 282 | | |
241 | | - | |
242 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
243 | 286 | | |
244 | 287 | | |
245 | 288 | | |
246 | 289 | | |
247 | 290 | | |
248 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
249 | 304 | | |
250 | 305 | | |
251 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | 28 | | |
12 | 29 | | |
13 | 30 | | |
14 | | - | |
| 31 | + | |
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments