1
2
3
4
5
6
7 package pathenum
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 )
15
16 const (
17
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21 )
22
23 type PathEnum int32
24
25 const (
26 PathEnum_ABC PathEnum = 0
27 PathEnum_DEF PathEnum = 1
28 )
29
30
31 var (
32 PathEnum_name = map[int32]string{
33 0: "ABC",
34 1: "DEF",
35 }
36 PathEnum_value = map[string]int32{
37 "ABC": 0,
38 "DEF": 1,
39 }
40 )
41
42 func (x PathEnum) Enum() *PathEnum {
43 p := new(PathEnum)
44 *p = x
45 return p
46 }
47
48 func (x PathEnum) String() string {
49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
50 }
51
52 func (PathEnum) Descriptor() protoreflect.EnumDescriptor {
53 return file_examples_internal_proto_pathenum_path_enum_proto_enumTypes[0].Descriptor()
54 }
55
56 func (PathEnum) Type() protoreflect.EnumType {
57 return &file_examples_internal_proto_pathenum_path_enum_proto_enumTypes[0]
58 }
59
60 func (x PathEnum) Number() protoreflect.EnumNumber {
61 return protoreflect.EnumNumber(x)
62 }
63
64
65 func (PathEnum) EnumDescriptor() ([]byte, []int) {
66 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP(), []int{0}
67 }
68
69
70
71
72 type SnakeCaseForImport int32
73
74 const (
75
76 SnakeCaseForImport_value_x SnakeCaseForImport = 0
77
78 SnakeCaseForImport_value_y SnakeCaseForImport = 1
79 )
80
81
82 var (
83 SnakeCaseForImport_name = map[int32]string{
84 0: "value_x",
85 1: "value_y",
86 }
87 SnakeCaseForImport_value = map[string]int32{
88 "value_x": 0,
89 "value_y": 1,
90 }
91 )
92
93 func (x SnakeCaseForImport) Enum() *SnakeCaseForImport {
94 p := new(SnakeCaseForImport)
95 *p = x
96 return p
97 }
98
99 func (x SnakeCaseForImport) String() string {
100 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
101 }
102
103 func (SnakeCaseForImport) Descriptor() protoreflect.EnumDescriptor {
104 return file_examples_internal_proto_pathenum_path_enum_proto_enumTypes[1].Descriptor()
105 }
106
107 func (SnakeCaseForImport) Type() protoreflect.EnumType {
108 return &file_examples_internal_proto_pathenum_path_enum_proto_enumTypes[1]
109 }
110
111 func (x SnakeCaseForImport) Number() protoreflect.EnumNumber {
112 return protoreflect.EnumNumber(x)
113 }
114
115
116 func (SnakeCaseForImport) EnumDescriptor() ([]byte, []int) {
117 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP(), []int{1}
118 }
119
120 type MessagePathEnum_NestedPathEnum int32
121
122 const (
123 MessagePathEnum_GHI MessagePathEnum_NestedPathEnum = 0
124 MessagePathEnum_JKL MessagePathEnum_NestedPathEnum = 1
125 )
126
127
128 var (
129 MessagePathEnum_NestedPathEnum_name = map[int32]string{
130 0: "GHI",
131 1: "JKL",
132 }
133 MessagePathEnum_NestedPathEnum_value = map[string]int32{
134 "GHI": 0,
135 "JKL": 1,
136 }
137 )
138
139 func (x MessagePathEnum_NestedPathEnum) Enum() *MessagePathEnum_NestedPathEnum {
140 p := new(MessagePathEnum_NestedPathEnum)
141 *p = x
142 return p
143 }
144
145 func (x MessagePathEnum_NestedPathEnum) String() string {
146 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
147 }
148
149 func (MessagePathEnum_NestedPathEnum) Descriptor() protoreflect.EnumDescriptor {
150 return file_examples_internal_proto_pathenum_path_enum_proto_enumTypes[2].Descriptor()
151 }
152
153 func (MessagePathEnum_NestedPathEnum) Type() protoreflect.EnumType {
154 return &file_examples_internal_proto_pathenum_path_enum_proto_enumTypes[2]
155 }
156
157 func (x MessagePathEnum_NestedPathEnum) Number() protoreflect.EnumNumber {
158 return protoreflect.EnumNumber(x)
159 }
160
161
162 func (MessagePathEnum_NestedPathEnum) EnumDescriptor() ([]byte, []int) {
163 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP(), []int{0, 0}
164 }
165
166 type MessagePathEnum struct {
167 state protoimpl.MessageState
168 sizeCache protoimpl.SizeCache
169 unknownFields protoimpl.UnknownFields
170 }
171
172 func (x *MessagePathEnum) Reset() {
173 *x = MessagePathEnum{}
174 if protoimpl.UnsafeEnabled {
175 mi := &file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[0]
176 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
177 ms.StoreMessageInfo(mi)
178 }
179 }
180
181 func (x *MessagePathEnum) String() string {
182 return protoimpl.X.MessageStringOf(x)
183 }
184
185 func (*MessagePathEnum) ProtoMessage() {}
186
187 func (x *MessagePathEnum) ProtoReflect() protoreflect.Message {
188 mi := &file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[0]
189 if protoimpl.UnsafeEnabled && x != nil {
190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
191 if ms.LoadMessageInfo() == nil {
192 ms.StoreMessageInfo(mi)
193 }
194 return ms
195 }
196 return mi.MessageOf(x)
197 }
198
199
200 func (*MessagePathEnum) Descriptor() ([]byte, []int) {
201 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP(), []int{0}
202 }
203
204 type MessageWithPathEnum struct {
205 state protoimpl.MessageState
206 sizeCache protoimpl.SizeCache
207 unknownFields protoimpl.UnknownFields
208
209 Value PathEnum `protobuf:"varint,1,opt,name=value,proto3,enum=grpc.gateway.examples.internal.pathenum.PathEnum" json:"value,omitempty"`
210 }
211
212 func (x *MessageWithPathEnum) Reset() {
213 *x = MessageWithPathEnum{}
214 if protoimpl.UnsafeEnabled {
215 mi := &file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[1]
216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217 ms.StoreMessageInfo(mi)
218 }
219 }
220
221 func (x *MessageWithPathEnum) String() string {
222 return protoimpl.X.MessageStringOf(x)
223 }
224
225 func (*MessageWithPathEnum) ProtoMessage() {}
226
227 func (x *MessageWithPathEnum) ProtoReflect() protoreflect.Message {
228 mi := &file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[1]
229 if protoimpl.UnsafeEnabled && x != nil {
230 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
231 if ms.LoadMessageInfo() == nil {
232 ms.StoreMessageInfo(mi)
233 }
234 return ms
235 }
236 return mi.MessageOf(x)
237 }
238
239
240 func (*MessageWithPathEnum) Descriptor() ([]byte, []int) {
241 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP(), []int{1}
242 }
243
244 func (x *MessageWithPathEnum) GetValue() PathEnum {
245 if x != nil {
246 return x.Value
247 }
248 return PathEnum_ABC
249 }
250
251 type MessageWithNestedPathEnum struct {
252 state protoimpl.MessageState
253 sizeCache protoimpl.SizeCache
254 unknownFields protoimpl.UnknownFields
255
256 Value MessagePathEnum_NestedPathEnum `protobuf:"varint,1,opt,name=value,proto3,enum=grpc.gateway.examples.internal.pathenum.MessagePathEnum_NestedPathEnum" json:"value,omitempty"`
257 }
258
259 func (x *MessageWithNestedPathEnum) Reset() {
260 *x = MessageWithNestedPathEnum{}
261 if protoimpl.UnsafeEnabled {
262 mi := &file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[2]
263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264 ms.StoreMessageInfo(mi)
265 }
266 }
267
268 func (x *MessageWithNestedPathEnum) String() string {
269 return protoimpl.X.MessageStringOf(x)
270 }
271
272 func (*MessageWithNestedPathEnum) ProtoMessage() {}
273
274 func (x *MessageWithNestedPathEnum) ProtoReflect() protoreflect.Message {
275 mi := &file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[2]
276 if protoimpl.UnsafeEnabled && x != nil {
277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278 if ms.LoadMessageInfo() == nil {
279 ms.StoreMessageInfo(mi)
280 }
281 return ms
282 }
283 return mi.MessageOf(x)
284 }
285
286
287 func (*MessageWithNestedPathEnum) Descriptor() ([]byte, []int) {
288 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP(), []int{2}
289 }
290
291 func (x *MessageWithNestedPathEnum) GetValue() MessagePathEnum_NestedPathEnum {
292 if x != nil {
293 return x.Value
294 }
295 return MessagePathEnum_GHI
296 }
297
298 var File_examples_internal_proto_pathenum_path_enum_proto protoreflect.FileDescriptor
299
300 var file_examples_internal_proto_pathenum_path_enum_proto_rawDesc = []byte{
301 0x0a, 0x30, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
302 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x65, 0x6e,
303 0x75, 0x6d, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f,
304 0x74, 0x6f, 0x12, 0x27, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
305 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
306 0x61, 0x6c, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x35, 0x0a, 0x0f, 0x4d,
307 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x22,
308 0x0a, 0x0e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d,
309 0x12, 0x07, 0x0a, 0x03, 0x47, 0x48, 0x49, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x4b, 0x4c,
310 0x10, 0x01, 0x22, 0x5e, 0x0a, 0x13, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74,
311 0x68, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x47, 0x0a, 0x05, 0x76, 0x61, 0x6c,
312 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
313 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73,
314 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x65, 0x6e,
315 0x75, 0x6d, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c,
316 0x75, 0x65, 0x22, 0x7a, 0x0a, 0x19, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74,
317 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x12,
318 0x5d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x47,
319 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78,
320 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e,
321 0x70, 0x61, 0x74, 0x68, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
322 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x50,
323 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x1c,
324 0x0a, 0x08, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x42,
325 0x43, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x45, 0x46, 0x10, 0x01, 0x2a, 0x31, 0x0a, 0x15,
326 0x73, 0x6e, 0x61, 0x6b, 0x65, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x69,
327 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x78,
328 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x79, 0x10, 0x01, 0x42,
329 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72,
330 0x70, 0x63, 0x2d, 0x65, 0x63, 0x6f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x67, 0x72, 0x70,
331 0x63, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x78, 0x61,
332 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70,
333 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x65, 0x6e, 0x75, 0x6d, 0x62, 0x06, 0x70,
334 0x72, 0x6f, 0x74, 0x6f, 0x33,
335 }
336
337 var (
338 file_examples_internal_proto_pathenum_path_enum_proto_rawDescOnce sync.Once
339 file_examples_internal_proto_pathenum_path_enum_proto_rawDescData = file_examples_internal_proto_pathenum_path_enum_proto_rawDesc
340 )
341
342 func file_examples_internal_proto_pathenum_path_enum_proto_rawDescGZIP() []byte {
343 file_examples_internal_proto_pathenum_path_enum_proto_rawDescOnce.Do(func() {
344 file_examples_internal_proto_pathenum_path_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_examples_internal_proto_pathenum_path_enum_proto_rawDescData)
345 })
346 return file_examples_internal_proto_pathenum_path_enum_proto_rawDescData
347 }
348
349 var file_examples_internal_proto_pathenum_path_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
350 var file_examples_internal_proto_pathenum_path_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
351 var file_examples_internal_proto_pathenum_path_enum_proto_goTypes = []interface{}{
352 (PathEnum)(0),
353 (SnakeCaseForImport)(0),
354 (MessagePathEnum_NestedPathEnum)(0),
355 (*MessagePathEnum)(nil),
356 (*MessageWithPathEnum)(nil),
357 (*MessageWithNestedPathEnum)(nil),
358 }
359 var file_examples_internal_proto_pathenum_path_enum_proto_depIdxs = []int32{
360 0,
361 2,
362 2,
363 2,
364 2,
365 2,
366 0,
367 }
368
369 func init() { file_examples_internal_proto_pathenum_path_enum_proto_init() }
370 func file_examples_internal_proto_pathenum_path_enum_proto_init() {
371 if File_examples_internal_proto_pathenum_path_enum_proto != nil {
372 return
373 }
374 if !protoimpl.UnsafeEnabled {
375 file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
376 switch v := v.(*MessagePathEnum); i {
377 case 0:
378 return &v.state
379 case 1:
380 return &v.sizeCache
381 case 2:
382 return &v.unknownFields
383 default:
384 return nil
385 }
386 }
387 file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
388 switch v := v.(*MessageWithPathEnum); i {
389 case 0:
390 return &v.state
391 case 1:
392 return &v.sizeCache
393 case 2:
394 return &v.unknownFields
395 default:
396 return nil
397 }
398 }
399 file_examples_internal_proto_pathenum_path_enum_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
400 switch v := v.(*MessageWithNestedPathEnum); i {
401 case 0:
402 return &v.state
403 case 1:
404 return &v.sizeCache
405 case 2:
406 return &v.unknownFields
407 default:
408 return nil
409 }
410 }
411 }
412 type x struct{}
413 out := protoimpl.TypeBuilder{
414 File: protoimpl.DescBuilder{
415 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
416 RawDescriptor: file_examples_internal_proto_pathenum_path_enum_proto_rawDesc,
417 NumEnums: 3,
418 NumMessages: 3,
419 NumExtensions: 0,
420 NumServices: 0,
421 },
422 GoTypes: file_examples_internal_proto_pathenum_path_enum_proto_goTypes,
423 DependencyIndexes: file_examples_internal_proto_pathenum_path_enum_proto_depIdxs,
424 EnumInfos: file_examples_internal_proto_pathenum_path_enum_proto_enumTypes,
425 MessageInfos: file_examples_internal_proto_pathenum_path_enum_proto_msgTypes,
426 }.Build()
427 File_examples_internal_proto_pathenum_path_enum_proto = out.File
428 file_examples_internal_proto_pathenum_path_enum_proto_rawDesc = nil
429 file_examples_internal_proto_pathenum_path_enum_proto_goTypes = nil
430 file_examples_internal_proto_pathenum_path_enum_proto_depIdxs = nil
431 }
432
View as plain text