1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package gnostic_extension_v1
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 anypb "google.golang.org/protobuf/types/known/anypb"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type Version struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
45 Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
46 Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
47
48
49 Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
50 }
51
52 func (x *Version) Reset() {
53 *x = Version{}
54 if protoimpl.UnsafeEnabled {
55 mi := &file_extensions_extension_proto_msgTypes[0]
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 ms.StoreMessageInfo(mi)
58 }
59 }
60
61 func (x *Version) String() string {
62 return protoimpl.X.MessageStringOf(x)
63 }
64
65 func (*Version) ProtoMessage() {}
66
67 func (x *Version) ProtoReflect() protoreflect.Message {
68 mi := &file_extensions_extension_proto_msgTypes[0]
69 if protoimpl.UnsafeEnabled && x != nil {
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 if ms.LoadMessageInfo() == nil {
72 ms.StoreMessageInfo(mi)
73 }
74 return ms
75 }
76 return mi.MessageOf(x)
77 }
78
79
80 func (*Version) Descriptor() ([]byte, []int) {
81 return file_extensions_extension_proto_rawDescGZIP(), []int{0}
82 }
83
84 func (x *Version) GetMajor() int32 {
85 if x != nil {
86 return x.Major
87 }
88 return 0
89 }
90
91 func (x *Version) GetMinor() int32 {
92 if x != nil {
93 return x.Minor
94 }
95 return 0
96 }
97
98 func (x *Version) GetPatch() int32 {
99 if x != nil {
100 return x.Patch
101 }
102 return 0
103 }
104
105 func (x *Version) GetSuffix() string {
106 if x != nil {
107 return x.Suffix
108 }
109 return ""
110 }
111
112
113 type ExtensionHandlerRequest struct {
114 state protoimpl.MessageState
115 sizeCache protoimpl.SizeCache
116 unknownFields protoimpl.UnknownFields
117
118
119 Wrapper *Wrapper `protobuf:"bytes,1,opt,name=wrapper,proto3" json:"wrapper,omitempty"`
120
121 CompilerVersion *Version `protobuf:"bytes,2,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
122 }
123
124 func (x *ExtensionHandlerRequest) Reset() {
125 *x = ExtensionHandlerRequest{}
126 if protoimpl.UnsafeEnabled {
127 mi := &file_extensions_extension_proto_msgTypes[1]
128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
129 ms.StoreMessageInfo(mi)
130 }
131 }
132
133 func (x *ExtensionHandlerRequest) String() string {
134 return protoimpl.X.MessageStringOf(x)
135 }
136
137 func (*ExtensionHandlerRequest) ProtoMessage() {}
138
139 func (x *ExtensionHandlerRequest) ProtoReflect() protoreflect.Message {
140 mi := &file_extensions_extension_proto_msgTypes[1]
141 if protoimpl.UnsafeEnabled && x != nil {
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 if ms.LoadMessageInfo() == nil {
144 ms.StoreMessageInfo(mi)
145 }
146 return ms
147 }
148 return mi.MessageOf(x)
149 }
150
151
152 func (*ExtensionHandlerRequest) Descriptor() ([]byte, []int) {
153 return file_extensions_extension_proto_rawDescGZIP(), []int{1}
154 }
155
156 func (x *ExtensionHandlerRequest) GetWrapper() *Wrapper {
157 if x != nil {
158 return x.Wrapper
159 }
160 return nil
161 }
162
163 func (x *ExtensionHandlerRequest) GetCompilerVersion() *Version {
164 if x != nil {
165 return x.CompilerVersion
166 }
167 return nil
168 }
169
170
171 type ExtensionHandlerResponse struct {
172 state protoimpl.MessageState
173 sizeCache protoimpl.SizeCache
174 unknownFields protoimpl.UnknownFields
175
176
177 Handled bool `protobuf:"varint,1,opt,name=handled,proto3" json:"handled,omitempty"`
178
179
180
181
182
183
184
185
186
187 Errors []string `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
188
189 Value *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
190 }
191
192 func (x *ExtensionHandlerResponse) Reset() {
193 *x = ExtensionHandlerResponse{}
194 if protoimpl.UnsafeEnabled {
195 mi := &file_extensions_extension_proto_msgTypes[2]
196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197 ms.StoreMessageInfo(mi)
198 }
199 }
200
201 func (x *ExtensionHandlerResponse) String() string {
202 return protoimpl.X.MessageStringOf(x)
203 }
204
205 func (*ExtensionHandlerResponse) ProtoMessage() {}
206
207 func (x *ExtensionHandlerResponse) ProtoReflect() protoreflect.Message {
208 mi := &file_extensions_extension_proto_msgTypes[2]
209 if protoimpl.UnsafeEnabled && x != nil {
210 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
211 if ms.LoadMessageInfo() == nil {
212 ms.StoreMessageInfo(mi)
213 }
214 return ms
215 }
216 return mi.MessageOf(x)
217 }
218
219
220 func (*ExtensionHandlerResponse) Descriptor() ([]byte, []int) {
221 return file_extensions_extension_proto_rawDescGZIP(), []int{2}
222 }
223
224 func (x *ExtensionHandlerResponse) GetHandled() bool {
225 if x != nil {
226 return x.Handled
227 }
228 return false
229 }
230
231 func (x *ExtensionHandlerResponse) GetErrors() []string {
232 if x != nil {
233 return x.Errors
234 }
235 return nil
236 }
237
238 func (x *ExtensionHandlerResponse) GetValue() *anypb.Any {
239 if x != nil {
240 return x.Value
241 }
242 return nil
243 }
244
245 type Wrapper struct {
246 state protoimpl.MessageState
247 sizeCache protoimpl.SizeCache
248 unknownFields protoimpl.UnknownFields
249
250
251 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
252
253 ExtensionName string `protobuf:"bytes,2,opt,name=extension_name,json=extensionName,proto3" json:"extension_name,omitempty"`
254
255 Yaml string `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"`
256 }
257
258 func (x *Wrapper) Reset() {
259 *x = Wrapper{}
260 if protoimpl.UnsafeEnabled {
261 mi := &file_extensions_extension_proto_msgTypes[3]
262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
263 ms.StoreMessageInfo(mi)
264 }
265 }
266
267 func (x *Wrapper) String() string {
268 return protoimpl.X.MessageStringOf(x)
269 }
270
271 func (*Wrapper) ProtoMessage() {}
272
273 func (x *Wrapper) ProtoReflect() protoreflect.Message {
274 mi := &file_extensions_extension_proto_msgTypes[3]
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 (*Wrapper) Descriptor() ([]byte, []int) {
287 return file_extensions_extension_proto_rawDescGZIP(), []int{3}
288 }
289
290 func (x *Wrapper) GetVersion() string {
291 if x != nil {
292 return x.Version
293 }
294 return ""
295 }
296
297 func (x *Wrapper) GetExtensionName() string {
298 if x != nil {
299 return x.ExtensionName
300 }
301 return ""
302 }
303
304 func (x *Wrapper) GetYaml() string {
305 if x != nil {
306 return x.Yaml
307 }
308 return ""
309 }
310
311 var File_extensions_extension_proto protoreflect.FileDescriptor
312
313 var file_extensions_extension_proto_rawDesc = []byte{
314 0x0a, 0x1a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x65, 0x78, 0x74,
315 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6e,
316 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
317 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
318 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a,
319 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f,
320 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14,
321 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d,
322 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20,
323 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75,
324 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x75, 0x66, 0x66,
325 0x69, 0x78, 0x22, 0x9c, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
326 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37,
327 0x0a, 0x07, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
328 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
329 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x07,
330 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69,
331 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
332 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65,
333 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
334 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
335 0x6e, 0x22, 0x78, 0x0a, 0x18, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61,
336 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,
337 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
338 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72,
339 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12,
340 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
341 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
342 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x07, 0x57,
343 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
344 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
345 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61,
346 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
347 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18,
348 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x42, 0x4d, 0x0a, 0x0e, 0x6f,
349 0x72, 0x67, 0x2e, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x47,
350 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50,
351 0x01, 0x5a, 0x21, 0x2e, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3b,
352 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
353 0x6e, 0x5f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x47, 0x4e, 0x58, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
354 0x6f, 0x33,
355 }
356
357 var (
358 file_extensions_extension_proto_rawDescOnce sync.Once
359 file_extensions_extension_proto_rawDescData = file_extensions_extension_proto_rawDesc
360 )
361
362 func file_extensions_extension_proto_rawDescGZIP() []byte {
363 file_extensions_extension_proto_rawDescOnce.Do(func() {
364 file_extensions_extension_proto_rawDescData = protoimpl.X.CompressGZIP(file_extensions_extension_proto_rawDescData)
365 })
366 return file_extensions_extension_proto_rawDescData
367 }
368
369 var file_extensions_extension_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
370 var file_extensions_extension_proto_goTypes = []interface{}{
371 (*Version)(nil),
372 (*ExtensionHandlerRequest)(nil),
373 (*ExtensionHandlerResponse)(nil),
374 (*Wrapper)(nil),
375 (*anypb.Any)(nil),
376 }
377 var file_extensions_extension_proto_depIdxs = []int32{
378 3,
379 0,
380 4,
381 3,
382 3,
383 3,
384 3,
385 0,
386 }
387
388 func init() { file_extensions_extension_proto_init() }
389 func file_extensions_extension_proto_init() {
390 if File_extensions_extension_proto != nil {
391 return
392 }
393 if !protoimpl.UnsafeEnabled {
394 file_extensions_extension_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
395 switch v := v.(*Version); i {
396 case 0:
397 return &v.state
398 case 1:
399 return &v.sizeCache
400 case 2:
401 return &v.unknownFields
402 default:
403 return nil
404 }
405 }
406 file_extensions_extension_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
407 switch v := v.(*ExtensionHandlerRequest); i {
408 case 0:
409 return &v.state
410 case 1:
411 return &v.sizeCache
412 case 2:
413 return &v.unknownFields
414 default:
415 return nil
416 }
417 }
418 file_extensions_extension_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
419 switch v := v.(*ExtensionHandlerResponse); i {
420 case 0:
421 return &v.state
422 case 1:
423 return &v.sizeCache
424 case 2:
425 return &v.unknownFields
426 default:
427 return nil
428 }
429 }
430 file_extensions_extension_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
431 switch v := v.(*Wrapper); i {
432 case 0:
433 return &v.state
434 case 1:
435 return &v.sizeCache
436 case 2:
437 return &v.unknownFields
438 default:
439 return nil
440 }
441 }
442 }
443 type x struct{}
444 out := protoimpl.TypeBuilder{
445 File: protoimpl.DescBuilder{
446 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
447 RawDescriptor: file_extensions_extension_proto_rawDesc,
448 NumEnums: 0,
449 NumMessages: 4,
450 NumExtensions: 0,
451 NumServices: 0,
452 },
453 GoTypes: file_extensions_extension_proto_goTypes,
454 DependencyIndexes: file_extensions_extension_proto_depIdxs,
455 MessageInfos: file_extensions_extension_proto_msgTypes,
456 }.Build()
457 File_extensions_extension_proto = out.File
458 file_extensions_extension_proto_rawDesc = nil
459 file_extensions_extension_proto_goTypes = nil
460 file_extensions_extension_proto_depIdxs = nil
461 }
462
View as plain text