1
2
3
4
5
6
7 package openapiconfig
8
9 import (
10 options "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 const (
18
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24
25 type OpenAPIFileOption struct {
26 state protoimpl.MessageState
27 sizeCache protoimpl.SizeCache
28 unknownFields protoimpl.UnknownFields
29
30 File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
31 Option *options.Swagger `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
32 }
33
34 func (x *OpenAPIFileOption) Reset() {
35 *x = OpenAPIFileOption{}
36 if protoimpl.UnsafeEnabled {
37 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40 }
41 }
42
43 func (x *OpenAPIFileOption) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*OpenAPIFileOption) ProtoMessage() {}
48
49 func (x *OpenAPIFileOption) ProtoReflect() protoreflect.Message {
50 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[0]
51 if protoimpl.UnsafeEnabled && x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61
62 func (*OpenAPIFileOption) Descriptor() ([]byte, []int) {
63 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *OpenAPIFileOption) GetFile() string {
67 if x != nil {
68 return x.File
69 }
70 return ""
71 }
72
73 func (x *OpenAPIFileOption) GetOption() *options.Swagger {
74 if x != nil {
75 return x.Option
76 }
77 return nil
78 }
79
80
81 type OpenAPIMethodOption struct {
82 state protoimpl.MessageState
83 sizeCache protoimpl.SizeCache
84 unknownFields protoimpl.UnknownFields
85
86 Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
87 Option *options.Operation `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
88 }
89
90 func (x *OpenAPIMethodOption) Reset() {
91 *x = OpenAPIMethodOption{}
92 if protoimpl.UnsafeEnabled {
93 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[1]
94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
95 ms.StoreMessageInfo(mi)
96 }
97 }
98
99 func (x *OpenAPIMethodOption) String() string {
100 return protoimpl.X.MessageStringOf(x)
101 }
102
103 func (*OpenAPIMethodOption) ProtoMessage() {}
104
105 func (x *OpenAPIMethodOption) ProtoReflect() protoreflect.Message {
106 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[1]
107 if protoimpl.UnsafeEnabled && x != nil {
108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109 if ms.LoadMessageInfo() == nil {
110 ms.StoreMessageInfo(mi)
111 }
112 return ms
113 }
114 return mi.MessageOf(x)
115 }
116
117
118 func (*OpenAPIMethodOption) Descriptor() ([]byte, []int) {
119 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{1}
120 }
121
122 func (x *OpenAPIMethodOption) GetMethod() string {
123 if x != nil {
124 return x.Method
125 }
126 return ""
127 }
128
129 func (x *OpenAPIMethodOption) GetOption() *options.Operation {
130 if x != nil {
131 return x.Option
132 }
133 return nil
134 }
135
136
137 type OpenAPIMessageOption struct {
138 state protoimpl.MessageState
139 sizeCache protoimpl.SizeCache
140 unknownFields protoimpl.UnknownFields
141
142 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
143 Option *options.Schema `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
144 }
145
146 func (x *OpenAPIMessageOption) Reset() {
147 *x = OpenAPIMessageOption{}
148 if protoimpl.UnsafeEnabled {
149 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[2]
150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 ms.StoreMessageInfo(mi)
152 }
153 }
154
155 func (x *OpenAPIMessageOption) String() string {
156 return protoimpl.X.MessageStringOf(x)
157 }
158
159 func (*OpenAPIMessageOption) ProtoMessage() {}
160
161 func (x *OpenAPIMessageOption) ProtoReflect() protoreflect.Message {
162 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[2]
163 if protoimpl.UnsafeEnabled && x != nil {
164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
165 if ms.LoadMessageInfo() == nil {
166 ms.StoreMessageInfo(mi)
167 }
168 return ms
169 }
170 return mi.MessageOf(x)
171 }
172
173
174 func (*OpenAPIMessageOption) Descriptor() ([]byte, []int) {
175 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{2}
176 }
177
178 func (x *OpenAPIMessageOption) GetMessage() string {
179 if x != nil {
180 return x.Message
181 }
182 return ""
183 }
184
185 func (x *OpenAPIMessageOption) GetOption() *options.Schema {
186 if x != nil {
187 return x.Option
188 }
189 return nil
190 }
191
192
193 type OpenAPIServiceOption struct {
194 state protoimpl.MessageState
195 sizeCache protoimpl.SizeCache
196 unknownFields protoimpl.UnknownFields
197
198 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
199 Option *options.Tag `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
200 }
201
202 func (x *OpenAPIServiceOption) Reset() {
203 *x = OpenAPIServiceOption{}
204 if protoimpl.UnsafeEnabled {
205 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[3]
206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207 ms.StoreMessageInfo(mi)
208 }
209 }
210
211 func (x *OpenAPIServiceOption) String() string {
212 return protoimpl.X.MessageStringOf(x)
213 }
214
215 func (*OpenAPIServiceOption) ProtoMessage() {}
216
217 func (x *OpenAPIServiceOption) ProtoReflect() protoreflect.Message {
218 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[3]
219 if protoimpl.UnsafeEnabled && x != nil {
220 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
221 if ms.LoadMessageInfo() == nil {
222 ms.StoreMessageInfo(mi)
223 }
224 return ms
225 }
226 return mi.MessageOf(x)
227 }
228
229
230 func (*OpenAPIServiceOption) Descriptor() ([]byte, []int) {
231 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{3}
232 }
233
234 func (x *OpenAPIServiceOption) GetService() string {
235 if x != nil {
236 return x.Service
237 }
238 return ""
239 }
240
241 func (x *OpenAPIServiceOption) GetOption() *options.Tag {
242 if x != nil {
243 return x.Option
244 }
245 return nil
246 }
247
248
249 type OpenAPIFieldOption struct {
250 state protoimpl.MessageState
251 sizeCache protoimpl.SizeCache
252 unknownFields protoimpl.UnknownFields
253
254 Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
255 Option *options.JSONSchema `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
256 }
257
258 func (x *OpenAPIFieldOption) Reset() {
259 *x = OpenAPIFieldOption{}
260 if protoimpl.UnsafeEnabled {
261 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[4]
262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
263 ms.StoreMessageInfo(mi)
264 }
265 }
266
267 func (x *OpenAPIFieldOption) String() string {
268 return protoimpl.X.MessageStringOf(x)
269 }
270
271 func (*OpenAPIFieldOption) ProtoMessage() {}
272
273 func (x *OpenAPIFieldOption) ProtoReflect() protoreflect.Message {
274 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[4]
275 if protoimpl.UnsafeEnabled && x != nil {
276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
277 if ms.LoadMessageInfo() == nil {
278 ms.StoreMessageInfo(mi)
279 }
280 return ms
281 }
282 return mi.MessageOf(x)
283 }
284
285
286 func (*OpenAPIFieldOption) Descriptor() ([]byte, []int) {
287 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{4}
288 }
289
290 func (x *OpenAPIFieldOption) GetField() string {
291 if x != nil {
292 return x.Field
293 }
294 return ""
295 }
296
297 func (x *OpenAPIFieldOption) GetOption() *options.JSONSchema {
298 if x != nil {
299 return x.Option
300 }
301 return nil
302 }
303
304
305 type OpenAPIOptions struct {
306 state protoimpl.MessageState
307 sizeCache protoimpl.SizeCache
308 unknownFields protoimpl.UnknownFields
309
310 File []*OpenAPIFileOption `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"`
311 Method []*OpenAPIMethodOption `protobuf:"bytes,2,rep,name=method,proto3" json:"method,omitempty"`
312 Message []*OpenAPIMessageOption `protobuf:"bytes,3,rep,name=message,proto3" json:"message,omitempty"`
313 Service []*OpenAPIServiceOption `protobuf:"bytes,4,rep,name=service,proto3" json:"service,omitempty"`
314 Field []*OpenAPIFieldOption `protobuf:"bytes,5,rep,name=field,proto3" json:"field,omitempty"`
315 }
316
317 func (x *OpenAPIOptions) Reset() {
318 *x = OpenAPIOptions{}
319 if protoimpl.UnsafeEnabled {
320 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[5]
321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
322 ms.StoreMessageInfo(mi)
323 }
324 }
325
326 func (x *OpenAPIOptions) String() string {
327 return protoimpl.X.MessageStringOf(x)
328 }
329
330 func (*OpenAPIOptions) ProtoMessage() {}
331
332 func (x *OpenAPIOptions) ProtoReflect() protoreflect.Message {
333 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[5]
334 if protoimpl.UnsafeEnabled && x != nil {
335 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
336 if ms.LoadMessageInfo() == nil {
337 ms.StoreMessageInfo(mi)
338 }
339 return ms
340 }
341 return mi.MessageOf(x)
342 }
343
344
345 func (*OpenAPIOptions) Descriptor() ([]byte, []int) {
346 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{5}
347 }
348
349 func (x *OpenAPIOptions) GetFile() []*OpenAPIFileOption {
350 if x != nil {
351 return x.File
352 }
353 return nil
354 }
355
356 func (x *OpenAPIOptions) GetMethod() []*OpenAPIMethodOption {
357 if x != nil {
358 return x.Method
359 }
360 return nil
361 }
362
363 func (x *OpenAPIOptions) GetMessage() []*OpenAPIMessageOption {
364 if x != nil {
365 return x.Message
366 }
367 return nil
368 }
369
370 func (x *OpenAPIOptions) GetService() []*OpenAPIServiceOption {
371 if x != nil {
372 return x.Service
373 }
374 return nil
375 }
376
377 func (x *OpenAPIOptions) GetField() []*OpenAPIFieldOption {
378 if x != nil {
379 return x.Field
380 }
381 return nil
382 }
383
384
385 type OpenAPIConfig struct {
386 state protoimpl.MessageState
387 sizeCache protoimpl.SizeCache
388 unknownFields protoimpl.UnknownFields
389
390 OpenapiOptions *OpenAPIOptions `protobuf:"bytes,1,opt,name=openapi_options,json=openapiOptions,proto3" json:"openapi_options,omitempty"`
391 }
392
393 func (x *OpenAPIConfig) Reset() {
394 *x = OpenAPIConfig{}
395 if protoimpl.UnsafeEnabled {
396 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[6]
397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
398 ms.StoreMessageInfo(mi)
399 }
400 }
401
402 func (x *OpenAPIConfig) String() string {
403 return protoimpl.X.MessageStringOf(x)
404 }
405
406 func (*OpenAPIConfig) ProtoMessage() {}
407
408 func (x *OpenAPIConfig) ProtoReflect() protoreflect.Message {
409 mi := &file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[6]
410 if protoimpl.UnsafeEnabled && x != nil {
411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
412 if ms.LoadMessageInfo() == nil {
413 ms.StoreMessageInfo(mi)
414 }
415 return ms
416 }
417 return mi.MessageOf(x)
418 }
419
420
421 func (*OpenAPIConfig) Descriptor() ([]byte, []int) {
422 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP(), []int{6}
423 }
424
425 func (x *OpenAPIConfig) GetOpenapiOptions() *OpenAPIOptions {
426 if x != nil {
427 return x.OpenapiOptions
428 }
429 return nil
430 }
431
432 var File_internal_descriptor_openapiconfig_openapiconfig_proto protoreflect.FileDescriptor
433
434 var file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDesc = []byte{
435 0x0a, 0x35, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72,
436 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e,
437 0x66, 0x69, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69,
438 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61,
439 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64,
440 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70,
441 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d,
442 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70,
443 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2e,
444 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x73, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49,
445 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69,
446 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x4a,
447 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32,
448 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72,
449 0x6f, 0x74, 0x6f, 0x63, 0x5f, 0x67, 0x65, 0x6e, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69,
450 0x76, 0x32, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x77, 0x61, 0x67, 0x67,
451 0x65, 0x72, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7b, 0x0a, 0x13, 0x4f, 0x70,
452 0x65, 0x6e, 0x41, 0x50, 0x49, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f,
453 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
454 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x4c, 0x0a, 0x06, 0x6f, 0x70, 0x74,
455 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x72, 0x70, 0x63,
456 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x5f,
457 0x67, 0x65, 0x6e, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2e, 0x6f, 0x70,
458 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
459 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7b, 0x0a, 0x14, 0x4f, 0x70, 0x65, 0x6e, 0x41,
460 0x50, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
461 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
462 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x6f, 0x70, 0x74,
463 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x72, 0x70, 0x63,
464 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x5f,
465 0x67, 0x65, 0x6e, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2e, 0x6f, 0x70,
466 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x06, 0x6f, 0x70,
467 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x78, 0x0a, 0x14, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x53,
468 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07,
469 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
470 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
471 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61,
472 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x5f, 0x67, 0x65, 0x6e,
473 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
474 0x6e, 0x73, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79,
475 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70,
476 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20,
477 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x4d, 0x0a, 0x06, 0x6f, 0x70,
478 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x72, 0x70,
479 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
480 0x5f, 0x67, 0x65, 0x6e, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2e, 0x6f,
481 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4a, 0x53, 0x4f, 0x4e, 0x53, 0x63, 0x68, 0x65, 0x6d,
482 0x61, 0x52, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xde, 0x03, 0x0a, 0x0e, 0x4f, 0x70,
483 0x65, 0x6e, 0x41, 0x50, 0x49, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x04,
484 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 0x72, 0x70,
485 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
486 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x6f, 0x70,
487 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x6e,
488 0x41, 0x50, 0x49, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x66,
489 0x69, 0x6c, 0x65, 0x12, 0x5b, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20,
490 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77,
491 0x61, 0x79, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73, 0x63,
492 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f,
493 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x4d, 0x65, 0x74, 0x68,
494 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
495 0x12, 0x5e, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28,
496 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
497 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
498 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66,
499 0x69, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
500 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
501 0x12, 0x5e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28,
502 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
503 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
504 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66,
505 0x69, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
506 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
507 0x12, 0x58, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
508 0x42, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x69,
509 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
510 0x6f, 0x72, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
511 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74,
512 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x78, 0x0a, 0x0d, 0x4f, 0x70,
513 0x65, 0x6e, 0x41, 0x50, 0x49, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x67, 0x0a, 0x0f, 0x6f,
514 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
515 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65,
516 0x77, 0x61, 0x79, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73,
517 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63,
518 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x50, 0x49, 0x4f, 0x70, 0x74,
519 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x4f, 0x70, 0x74,
520 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x4d, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
521 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x65, 0x63, 0x6f, 0x73, 0x79, 0x73, 0x74, 0x65,
522 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76,
523 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72,
524 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e,
525 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
526 }
527
528 var (
529 file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescOnce sync.Once
530 file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescData = file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDesc
531 )
532
533 func file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescGZIP() []byte {
534 file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescOnce.Do(func() {
535 file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescData)
536 })
537 return file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDescData
538 }
539
540 var file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
541 var file_internal_descriptor_openapiconfig_openapiconfig_proto_goTypes = []interface{}{
542 (*OpenAPIFileOption)(nil),
543 (*OpenAPIMethodOption)(nil),
544 (*OpenAPIMessageOption)(nil),
545 (*OpenAPIServiceOption)(nil),
546 (*OpenAPIFieldOption)(nil),
547 (*OpenAPIOptions)(nil),
548 (*OpenAPIConfig)(nil),
549 (*options.Swagger)(nil),
550 (*options.Operation)(nil),
551 (*options.Schema)(nil),
552 (*options.Tag)(nil),
553 (*options.JSONSchema)(nil),
554 }
555 var file_internal_descriptor_openapiconfig_openapiconfig_proto_depIdxs = []int32{
556 7,
557 8,
558 9,
559 10,
560 11,
561 0,
562 1,
563 2,
564 3,
565 4,
566 5,
567 11,
568 11,
569 11,
570 11,
571 0,
572 }
573
574 func init() { file_internal_descriptor_openapiconfig_openapiconfig_proto_init() }
575 func file_internal_descriptor_openapiconfig_openapiconfig_proto_init() {
576 if File_internal_descriptor_openapiconfig_openapiconfig_proto != nil {
577 return
578 }
579 if !protoimpl.UnsafeEnabled {
580 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
581 switch v := v.(*OpenAPIFileOption); i {
582 case 0:
583 return &v.state
584 case 1:
585 return &v.sizeCache
586 case 2:
587 return &v.unknownFields
588 default:
589 return nil
590 }
591 }
592 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
593 switch v := v.(*OpenAPIMethodOption); i {
594 case 0:
595 return &v.state
596 case 1:
597 return &v.sizeCache
598 case 2:
599 return &v.unknownFields
600 default:
601 return nil
602 }
603 }
604 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
605 switch v := v.(*OpenAPIMessageOption); i {
606 case 0:
607 return &v.state
608 case 1:
609 return &v.sizeCache
610 case 2:
611 return &v.unknownFields
612 default:
613 return nil
614 }
615 }
616 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
617 switch v := v.(*OpenAPIServiceOption); i {
618 case 0:
619 return &v.state
620 case 1:
621 return &v.sizeCache
622 case 2:
623 return &v.unknownFields
624 default:
625 return nil
626 }
627 }
628 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
629 switch v := v.(*OpenAPIFieldOption); i {
630 case 0:
631 return &v.state
632 case 1:
633 return &v.sizeCache
634 case 2:
635 return &v.unknownFields
636 default:
637 return nil
638 }
639 }
640 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
641 switch v := v.(*OpenAPIOptions); i {
642 case 0:
643 return &v.state
644 case 1:
645 return &v.sizeCache
646 case 2:
647 return &v.unknownFields
648 default:
649 return nil
650 }
651 }
652 file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
653 switch v := v.(*OpenAPIConfig); i {
654 case 0:
655 return &v.state
656 case 1:
657 return &v.sizeCache
658 case 2:
659 return &v.unknownFields
660 default:
661 return nil
662 }
663 }
664 }
665 type x struct{}
666 out := protoimpl.TypeBuilder{
667 File: protoimpl.DescBuilder{
668 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
669 RawDescriptor: file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDesc,
670 NumEnums: 0,
671 NumMessages: 7,
672 NumExtensions: 0,
673 NumServices: 0,
674 },
675 GoTypes: file_internal_descriptor_openapiconfig_openapiconfig_proto_goTypes,
676 DependencyIndexes: file_internal_descriptor_openapiconfig_openapiconfig_proto_depIdxs,
677 MessageInfos: file_internal_descriptor_openapiconfig_openapiconfig_proto_msgTypes,
678 }.Build()
679 File_internal_descriptor_openapiconfig_openapiconfig_proto = out.File
680 file_internal_descriptor_openapiconfig_openapiconfig_proto_rawDesc = nil
681 file_internal_descriptor_openapiconfig_openapiconfig_proto_goTypes = nil
682 file_internal_descriptor_openapiconfig_openapiconfig_proto_depIdxs = nil
683 }
684
View as plain text