blob: da625a5f5498832175550d3c87292abccb5077e9 [file] [log] [blame]
Joe Tsai94e730b2020-01-10 23:31:25 -08001// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Test Protobuf definitions with proto3 syntax.
6
7// Code generated by protoc-gen-go. DO NOT EDIT.
Damien Neil3c5fb5f2020-02-04 15:03:30 -08008// source: internal/testprotos/textpb3/test.proto
Joe Tsai94e730b2020-01-10 23:31:25 -08009
10package textpb3
11
12import (
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 reflect "reflect"
16 sync "sync"
17)
18
19type Enum int32
20
21const (
22 Enum_ZERO Enum = 0
23 Enum_ONE Enum = 1
24 Enum_TWO Enum = 2
25 Enum_TEN Enum = 10
26)
27
28// Enum value maps for Enum.
29var (
30 Enum_name = map[int32]string{
31 0: "ZERO",
32 1: "ONE",
33 2: "TWO",
34 10: "TEN",
35 }
36 Enum_value = map[string]int32{
37 "ZERO": 0,
38 "ONE": 1,
39 "TWO": 2,
40 "TEN": 10,
41 }
42)
43
44func (x Enum) Enum() *Enum {
45 p := new(Enum)
46 *p = x
47 return p
48}
49
50func (x Enum) String() string {
51 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
52}
53
54func (Enum) Descriptor() protoreflect.EnumDescriptor {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080055 return file_internal_testprotos_textpb3_test_proto_enumTypes[0].Descriptor()
Joe Tsai94e730b2020-01-10 23:31:25 -080056}
57
58func (Enum) Type() protoreflect.EnumType {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080059 return &file_internal_testprotos_textpb3_test_proto_enumTypes[0]
Joe Tsai94e730b2020-01-10 23:31:25 -080060}
61
62func (x Enum) Number() protoreflect.EnumNumber {
63 return protoreflect.EnumNumber(x)
64}
65
66// Deprecated: Use Enum.Descriptor instead.
67func (Enum) EnumDescriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080068 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{0}
Joe Tsai94e730b2020-01-10 23:31:25 -080069}
70
71type Enums_NestedEnum int32
72
73const (
74 Enums_CERO Enums_NestedEnum = 0
75 Enums_UNO Enums_NestedEnum = 1
76 Enums_DOS Enums_NestedEnum = 2
77 Enums_DIEZ Enums_NestedEnum = 10
78)
79
80// Enum value maps for Enums_NestedEnum.
81var (
82 Enums_NestedEnum_name = map[int32]string{
83 0: "CERO",
84 1: "UNO",
85 2: "DOS",
86 10: "DIEZ",
87 }
88 Enums_NestedEnum_value = map[string]int32{
89 "CERO": 0,
90 "UNO": 1,
91 "DOS": 2,
92 "DIEZ": 10,
93 }
94)
95
96func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
97 p := new(Enums_NestedEnum)
98 *p = x
99 return p
100}
101
102func (x Enums_NestedEnum) String() string {
103 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
104}
105
106func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800107 return file_internal_testprotos_textpb3_test_proto_enumTypes[1].Descriptor()
Joe Tsai94e730b2020-01-10 23:31:25 -0800108}
109
110func (Enums_NestedEnum) Type() protoreflect.EnumType {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800111 return &file_internal_testprotos_textpb3_test_proto_enumTypes[1]
Joe Tsai94e730b2020-01-10 23:31:25 -0800112}
113
114func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
115 return protoreflect.EnumNumber(x)
116}
117
118// Deprecated: Use Enums_NestedEnum.Descriptor instead.
119func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800120 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{1, 0}
Joe Tsai94e730b2020-01-10 23:31:25 -0800121}
122
123// Scalars contains scalar field types.
124type Scalars struct {
125 state protoimpl.MessageState
126 sizeCache protoimpl.SizeCache
127 unknownFields protoimpl.UnknownFields
128
129 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
130 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
131 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
132 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
133 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
134 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
135 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
136 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
137 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
138 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
139 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
140 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
141 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
142 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
143 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
144}
145
146func (x *Scalars) Reset() {
147 *x = Scalars{}
148 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800149 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[0]
Joe Tsai94e730b2020-01-10 23:31:25 -0800150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 ms.StoreMessageInfo(mi)
152 }
153}
154
155func (x *Scalars) String() string {
156 return protoimpl.X.MessageStringOf(x)
157}
158
159func (*Scalars) ProtoMessage() {}
160
161func (x *Scalars) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800162 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[0]
Joe Tsai94e730b2020-01-10 23:31:25 -0800163 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// Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
174func (*Scalars) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800175 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{0}
Joe Tsai94e730b2020-01-10 23:31:25 -0800176}
177
178func (x *Scalars) GetSBool() bool {
179 if x != nil {
180 return x.SBool
181 }
182 return false
183}
184
185func (x *Scalars) GetSInt32() int32 {
186 if x != nil {
187 return x.SInt32
188 }
189 return 0
190}
191
192func (x *Scalars) GetSInt64() int64 {
193 if x != nil {
194 return x.SInt64
195 }
196 return 0
197}
198
199func (x *Scalars) GetSUint32() uint32 {
200 if x != nil {
201 return x.SUint32
202 }
203 return 0
204}
205
206func (x *Scalars) GetSUint64() uint64 {
207 if x != nil {
208 return x.SUint64
209 }
210 return 0
211}
212
213func (x *Scalars) GetSSint32() int32 {
214 if x != nil {
215 return x.SSint32
216 }
217 return 0
218}
219
220func (x *Scalars) GetSSint64() int64 {
221 if x != nil {
222 return x.SSint64
223 }
224 return 0
225}
226
227func (x *Scalars) GetSFixed32() uint32 {
228 if x != nil {
229 return x.SFixed32
230 }
231 return 0
232}
233
234func (x *Scalars) GetSFixed64() uint64 {
235 if x != nil {
236 return x.SFixed64
237 }
238 return 0
239}
240
241func (x *Scalars) GetSSfixed32() int32 {
242 if x != nil {
243 return x.SSfixed32
244 }
245 return 0
246}
247
248func (x *Scalars) GetSSfixed64() int64 {
249 if x != nil {
250 return x.SSfixed64
251 }
252 return 0
253}
254
255func (x *Scalars) GetSFloat() float32 {
256 if x != nil {
257 return x.SFloat
258 }
259 return 0
260}
261
262func (x *Scalars) GetSDouble() float64 {
263 if x != nil {
264 return x.SDouble
265 }
266 return 0
267}
268
269func (x *Scalars) GetSBytes() []byte {
270 if x != nil {
271 return x.SBytes
272 }
273 return nil
274}
275
276func (x *Scalars) GetSString() string {
277 if x != nil {
278 return x.SString
279 }
280 return ""
281}
282
283// Message contains enum fields.
284type Enums struct {
285 state protoimpl.MessageState
286 sizeCache protoimpl.SizeCache
287 unknownFields protoimpl.UnknownFields
288
289 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
290 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
291}
292
293func (x *Enums) Reset() {
294 *x = Enums{}
295 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800296 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[1]
Joe Tsai94e730b2020-01-10 23:31:25 -0800297 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
298 ms.StoreMessageInfo(mi)
299 }
300}
301
302func (x *Enums) String() string {
303 return protoimpl.X.MessageStringOf(x)
304}
305
306func (*Enums) ProtoMessage() {}
307
308func (x *Enums) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800309 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[1]
Joe Tsai94e730b2020-01-10 23:31:25 -0800310 if protoimpl.UnsafeEnabled && x != nil {
311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
312 if ms.LoadMessageInfo() == nil {
313 ms.StoreMessageInfo(mi)
314 }
315 return ms
316 }
317 return mi.MessageOf(x)
318}
319
320// Deprecated: Use Enums.ProtoReflect.Descriptor instead.
321func (*Enums) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800322 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{1}
Joe Tsai94e730b2020-01-10 23:31:25 -0800323}
324
325func (x *Enums) GetSEnum() Enum {
326 if x != nil {
327 return x.SEnum
328 }
329 return Enum_ZERO
330}
331
332func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
333 if x != nil {
334 return x.SNestedEnum
335 }
336 return Enums_CERO
337}
338
339// Message contains nested message field.
340type Nests struct {
341 state protoimpl.MessageState
342 sizeCache protoimpl.SizeCache
343 unknownFields protoimpl.UnknownFields
344
345 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
346}
347
348func (x *Nests) Reset() {
349 *x = Nests{}
350 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800351 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[2]
Joe Tsai94e730b2020-01-10 23:31:25 -0800352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
353 ms.StoreMessageInfo(mi)
354 }
355}
356
357func (x *Nests) String() string {
358 return protoimpl.X.MessageStringOf(x)
359}
360
361func (*Nests) ProtoMessage() {}
362
363func (x *Nests) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800364 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[2]
Joe Tsai94e730b2020-01-10 23:31:25 -0800365 if protoimpl.UnsafeEnabled && x != nil {
366 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
367 if ms.LoadMessageInfo() == nil {
368 ms.StoreMessageInfo(mi)
369 }
370 return ms
371 }
372 return mi.MessageOf(x)
373}
374
375// Deprecated: Use Nests.ProtoReflect.Descriptor instead.
376func (*Nests) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800377 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{2}
Joe Tsai94e730b2020-01-10 23:31:25 -0800378}
379
380func (x *Nests) GetSNested() *Nested {
381 if x != nil {
382 return x.SNested
383 }
384 return nil
385}
386
387// Message type used as submessage.
388type Nested struct {
389 state protoimpl.MessageState
390 sizeCache protoimpl.SizeCache
391 unknownFields protoimpl.UnknownFields
392
393 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
394 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
395}
396
397func (x *Nested) Reset() {
398 *x = Nested{}
399 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800400 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[3]
Joe Tsai94e730b2020-01-10 23:31:25 -0800401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
402 ms.StoreMessageInfo(mi)
403 }
404}
405
406func (x *Nested) String() string {
407 return protoimpl.X.MessageStringOf(x)
408}
409
410func (*Nested) ProtoMessage() {}
411
412func (x *Nested) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800413 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[3]
Joe Tsai94e730b2020-01-10 23:31:25 -0800414 if protoimpl.UnsafeEnabled && x != nil {
415 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
416 if ms.LoadMessageInfo() == nil {
417 ms.StoreMessageInfo(mi)
418 }
419 return ms
420 }
421 return mi.MessageOf(x)
422}
423
424// Deprecated: Use Nested.ProtoReflect.Descriptor instead.
425func (*Nested) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800426 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{3}
Joe Tsai94e730b2020-01-10 23:31:25 -0800427}
428
429func (x *Nested) GetSString() string {
430 if x != nil {
431 return x.SString
432 }
433 return ""
434}
435
436func (x *Nested) GetSNested() *Nested {
437 if x != nil {
438 return x.SNested
439 }
440 return nil
441}
442
443// Message contains oneof field.
444type Oneofs struct {
445 state protoimpl.MessageState
446 sizeCache protoimpl.SizeCache
447 unknownFields protoimpl.UnknownFields
448
449 // Types that are assignable to Union:
450 // *Oneofs_OneofEnum
451 // *Oneofs_OneofString
452 // *Oneofs_OneofNested
453 Union isOneofs_Union `protobuf_oneof:"union"`
454}
455
456func (x *Oneofs) Reset() {
457 *x = Oneofs{}
458 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800459 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[4]
Joe Tsai94e730b2020-01-10 23:31:25 -0800460 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
461 ms.StoreMessageInfo(mi)
462 }
463}
464
465func (x *Oneofs) String() string {
466 return protoimpl.X.MessageStringOf(x)
467}
468
469func (*Oneofs) ProtoMessage() {}
470
471func (x *Oneofs) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800472 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[4]
Joe Tsai94e730b2020-01-10 23:31:25 -0800473 if protoimpl.UnsafeEnabled && x != nil {
474 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
475 if ms.LoadMessageInfo() == nil {
476 ms.StoreMessageInfo(mi)
477 }
478 return ms
479 }
480 return mi.MessageOf(x)
481}
482
483// Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
484func (*Oneofs) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800485 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{4}
Joe Tsai94e730b2020-01-10 23:31:25 -0800486}
487
488func (m *Oneofs) GetUnion() isOneofs_Union {
489 if m != nil {
490 return m.Union
491 }
492 return nil
493}
494
495func (x *Oneofs) GetOneofEnum() Enum {
496 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
497 return x.OneofEnum
498 }
499 return Enum_ZERO
500}
501
502func (x *Oneofs) GetOneofString() string {
503 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
504 return x.OneofString
505 }
506 return ""
507}
508
509func (x *Oneofs) GetOneofNested() *Nested {
510 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
511 return x.OneofNested
512 }
513 return nil
514}
515
516type isOneofs_Union interface {
517 isOneofs_Union()
518}
519
520type Oneofs_OneofEnum struct {
521 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
522}
523
524type Oneofs_OneofString struct {
525 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
526}
527
528type Oneofs_OneofNested struct {
529 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
530}
531
532func (*Oneofs_OneofEnum) isOneofs_Union() {}
533
534func (*Oneofs_OneofString) isOneofs_Union() {}
535
536func (*Oneofs_OneofNested) isOneofs_Union() {}
537
538// Message contains map fields.
539type Maps struct {
540 state protoimpl.MessageState
541 sizeCache protoimpl.SizeCache
542 unknownFields protoimpl.UnknownFields
543
544 Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr,proto3" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
545 BoolToUint32 map[bool]uint32 `protobuf:"bytes,2,rep,name=bool_to_uint32,json=boolToUint32,proto3" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
546 Uint64ToEnum map[uint64]Enum `protobuf:"bytes,3,rep,name=uint64_to_enum,json=uint64ToEnum,proto3" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.Enum"`
547 StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested,proto3" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
548 StrToOneofs map[string]*Oneofs `protobuf:"bytes,5,rep,name=str_to_oneofs,json=strToOneofs,proto3" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
549}
550
551func (x *Maps) Reset() {
552 *x = Maps{}
553 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800554 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[5]
Joe Tsai94e730b2020-01-10 23:31:25 -0800555 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
556 ms.StoreMessageInfo(mi)
557 }
558}
559
560func (x *Maps) String() string {
561 return protoimpl.X.MessageStringOf(x)
562}
563
564func (*Maps) ProtoMessage() {}
565
566func (x *Maps) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800567 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[5]
Joe Tsai94e730b2020-01-10 23:31:25 -0800568 if protoimpl.UnsafeEnabled && x != nil {
569 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
570 if ms.LoadMessageInfo() == nil {
571 ms.StoreMessageInfo(mi)
572 }
573 return ms
574 }
575 return mi.MessageOf(x)
576}
577
578// Deprecated: Use Maps.ProtoReflect.Descriptor instead.
579func (*Maps) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800580 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{5}
Joe Tsai94e730b2020-01-10 23:31:25 -0800581}
582
583func (x *Maps) GetInt32ToStr() map[int32]string {
584 if x != nil {
585 return x.Int32ToStr
586 }
587 return nil
588}
589
590func (x *Maps) GetBoolToUint32() map[bool]uint32 {
591 if x != nil {
592 return x.BoolToUint32
593 }
594 return nil
595}
596
597func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
598 if x != nil {
599 return x.Uint64ToEnum
600 }
601 return nil
602}
603
604func (x *Maps) GetStrToNested() map[string]*Nested {
605 if x != nil {
606 return x.StrToNested
607 }
608 return nil
609}
610
611func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
612 if x != nil {
613 return x.StrToOneofs
614 }
615 return nil
616}
617
618// Message for testing json_name option.
619type JSONNames struct {
620 state protoimpl.MessageState
621 sizeCache protoimpl.SizeCache
622 unknownFields protoimpl.UnknownFields
623
624 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
625}
626
627func (x *JSONNames) Reset() {
628 *x = JSONNames{}
629 if protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800630 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[6]
Joe Tsai94e730b2020-01-10 23:31:25 -0800631 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
632 ms.StoreMessageInfo(mi)
633 }
634}
635
636func (x *JSONNames) String() string {
637 return protoimpl.X.MessageStringOf(x)
638}
639
640func (*JSONNames) ProtoMessage() {}
641
642func (x *JSONNames) ProtoReflect() protoreflect.Message {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800643 mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[6]
Joe Tsai94e730b2020-01-10 23:31:25 -0800644 if protoimpl.UnsafeEnabled && x != nil {
645 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
646 if ms.LoadMessageInfo() == nil {
647 ms.StoreMessageInfo(mi)
648 }
649 return ms
650 }
651 return mi.MessageOf(x)
652}
653
654// Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
655func (*JSONNames) Descriptor() ([]byte, []int) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800656 return file_internal_testprotos_textpb3_test_proto_rawDescGZIP(), []int{6}
Joe Tsai94e730b2020-01-10 23:31:25 -0800657}
658
659func (x *JSONNames) GetSString() string {
660 if x != nil {
661 return x.SString
662 }
663 return ""
664}
665
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800666var File_internal_testprotos_textpb3_test_proto protoreflect.FileDescriptor
Joe Tsai94e730b2020-01-10 23:31:25 -0800667
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800668var file_internal_testprotos_textpb3_test_proto_rawDesc = []byte{
669 0x0a, 0x26, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
670 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65,
671 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03,
672 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62,
673 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c,
674 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28,
675 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69,
676 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74,
677 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04,
678 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a,
679 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52,
680 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69,
681 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e,
682 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18,
683 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b,
684 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28,
685 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73,
686 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08,
687 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66,
688 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53,
689 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69,
690 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66,
691 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61,
692 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12,
693 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28,
694 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f,
695 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79,
696 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18,
697 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98,
698 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e,
699 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
700 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f,
701 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28,
702 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65,
703 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65,
704 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
705 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a,
706 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12,
707 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10, 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73,
708 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02,
709 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65,
710 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65,
711 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
712 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12,
713 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
714 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07,
715 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f,
716 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d,
717 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75,
718 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23,
719 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02,
720 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72,
721 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73,
722 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
723 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e,
724 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf,
725 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12, 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32,
726 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
727 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f,
728 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54,
729 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f,
730 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70,
731 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69,
732 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54,
733 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36,
734 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
735 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36,
736 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69,
737 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74,
738 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28,
739 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72,
740 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73,
741 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74,
742 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
743 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72,
744 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73,
745 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e,
746 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
747 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
748 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
749 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f,
750 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
751 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79,
752 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
753 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69,
754 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
755 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65,
756 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
757 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c,
758 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e,
759 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
760 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05,
761 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62,
762 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
763 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
764 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
765 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c,
766 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f,
767 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
768 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a,
769 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
770 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72, 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d,
771 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e,
772 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03,
773 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
774 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
775 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73,
776 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x33, 0x62,
777 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Joe Tsai94e730b2020-01-10 23:31:25 -0800778}
779
780var (
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800781 file_internal_testprotos_textpb3_test_proto_rawDescOnce sync.Once
782 file_internal_testprotos_textpb3_test_proto_rawDescData = file_internal_testprotos_textpb3_test_proto_rawDesc
Joe Tsai94e730b2020-01-10 23:31:25 -0800783)
784
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800785func file_internal_testprotos_textpb3_test_proto_rawDescGZIP() []byte {
786 file_internal_testprotos_textpb3_test_proto_rawDescOnce.Do(func() {
787 file_internal_testprotos_textpb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_textpb3_test_proto_rawDescData)
Joe Tsai94e730b2020-01-10 23:31:25 -0800788 })
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800789 return file_internal_testprotos_textpb3_test_proto_rawDescData
Joe Tsai94e730b2020-01-10 23:31:25 -0800790}
791
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800792var file_internal_testprotos_textpb3_test_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
793var file_internal_testprotos_textpb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
794var file_internal_testprotos_textpb3_test_proto_goTypes = []interface{}{
Joe Tsai94e730b2020-01-10 23:31:25 -0800795 (Enum)(0), // 0: pb3.Enum
796 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
797 (*Scalars)(nil), // 2: pb3.Scalars
798 (*Enums)(nil), // 3: pb3.Enums
799 (*Nests)(nil), // 4: pb3.Nests
800 (*Nested)(nil), // 5: pb3.Nested
801 (*Oneofs)(nil), // 6: pb3.Oneofs
802 (*Maps)(nil), // 7: pb3.Maps
803 (*JSONNames)(nil), // 8: pb3.JSONNames
804 nil, // 9: pb3.Maps.Int32ToStrEntry
805 nil, // 10: pb3.Maps.BoolToUint32Entry
806 nil, // 11: pb3.Maps.Uint64ToEnumEntry
807 nil, // 12: pb3.Maps.StrToNestedEntry
808 nil, // 13: pb3.Maps.StrToOneofsEntry
809}
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800810var file_internal_testprotos_textpb3_test_proto_depIdxs = []int32{
Joe Tsai94e730b2020-01-10 23:31:25 -0800811 0, // 0: pb3.Enums.s_enum:type_name -> pb3.Enum
812 1, // 1: pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
813 5, // 2: pb3.Nests.s_nested:type_name -> pb3.Nested
814 5, // 3: pb3.Nested.s_nested:type_name -> pb3.Nested
815 0, // 4: pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
816 5, // 5: pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
817 9, // 6: pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
818 10, // 7: pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
819 11, // 8: pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
820 12, // 9: pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
821 13, // 10: pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
822 0, // 11: pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
823 5, // 12: pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
824 6, // 13: pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
825 14, // [14:14] is the sub-list for method output_type
826 14, // [14:14] is the sub-list for method input_type
827 14, // [14:14] is the sub-list for extension type_name
828 14, // [14:14] is the sub-list for extension extendee
829 0, // [0:14] is the sub-list for field type_name
830}
831
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800832func init() { file_internal_testprotos_textpb3_test_proto_init() }
833func file_internal_testprotos_textpb3_test_proto_init() {
834 if File_internal_testprotos_textpb3_test_proto != nil {
Joe Tsai94e730b2020-01-10 23:31:25 -0800835 return
836 }
837 if !protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800838 file_internal_testprotos_textpb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800839 switch v := v.(*Scalars); i {
840 case 0:
841 return &v.state
842 case 1:
843 return &v.sizeCache
844 case 2:
845 return &v.unknownFields
846 default:
847 return nil
848 }
849 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800850 file_internal_testprotos_textpb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800851 switch v := v.(*Enums); i {
852 case 0:
853 return &v.state
854 case 1:
855 return &v.sizeCache
856 case 2:
857 return &v.unknownFields
858 default:
859 return nil
860 }
861 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800862 file_internal_testprotos_textpb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800863 switch v := v.(*Nests); i {
864 case 0:
865 return &v.state
866 case 1:
867 return &v.sizeCache
868 case 2:
869 return &v.unknownFields
870 default:
871 return nil
872 }
873 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800874 file_internal_testprotos_textpb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800875 switch v := v.(*Nested); i {
876 case 0:
877 return &v.state
878 case 1:
879 return &v.sizeCache
880 case 2:
881 return &v.unknownFields
882 default:
883 return nil
884 }
885 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800886 file_internal_testprotos_textpb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800887 switch v := v.(*Oneofs); i {
888 case 0:
889 return &v.state
890 case 1:
891 return &v.sizeCache
892 case 2:
893 return &v.unknownFields
894 default:
895 return nil
896 }
897 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800898 file_internal_testprotos_textpb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800899 switch v := v.(*Maps); i {
900 case 0:
901 return &v.state
902 case 1:
903 return &v.sizeCache
904 case 2:
905 return &v.unknownFields
906 default:
907 return nil
908 }
909 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800910 file_internal_testprotos_textpb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
Joe Tsai94e730b2020-01-10 23:31:25 -0800911 switch v := v.(*JSONNames); i {
912 case 0:
913 return &v.state
914 case 1:
915 return &v.sizeCache
916 case 2:
917 return &v.unknownFields
918 default:
919 return nil
920 }
921 }
922 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800923 file_internal_testprotos_textpb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
Joe Tsai94e730b2020-01-10 23:31:25 -0800924 (*Oneofs_OneofEnum)(nil),
925 (*Oneofs_OneofString)(nil),
926 (*Oneofs_OneofNested)(nil),
927 }
928 type x struct{}
929 out := protoimpl.TypeBuilder{
930 File: protoimpl.DescBuilder{
931 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800932 RawDescriptor: file_internal_testprotos_textpb3_test_proto_rawDesc,
Joe Tsai94e730b2020-01-10 23:31:25 -0800933 NumEnums: 2,
934 NumMessages: 12,
935 NumExtensions: 0,
936 NumServices: 0,
937 },
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800938 GoTypes: file_internal_testprotos_textpb3_test_proto_goTypes,
939 DependencyIndexes: file_internal_testprotos_textpb3_test_proto_depIdxs,
940 EnumInfos: file_internal_testprotos_textpb3_test_proto_enumTypes,
941 MessageInfos: file_internal_testprotos_textpb3_test_proto_msgTypes,
Joe Tsai94e730b2020-01-10 23:31:25 -0800942 }.Build()
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800943 File_internal_testprotos_textpb3_test_proto = out.File
944 file_internal_testprotos_textpb3_test_proto_rawDesc = nil
945 file_internal_testprotos_textpb3_test_proto_goTypes = nil
946 file_internal_testprotos_textpb3_test_proto_depIdxs = nil
Joe Tsai94e730b2020-01-10 23:31:25 -0800947}