blob: 0e0b2b35820ef28aae1ef3ea67bc553a62f8395f [file] [log] [blame]
Herbie Ong8170d692019-02-13 14:13:21 -08001// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai19058432019-02-27 21:46:29 -08002// source: pb3/test.proto
Herbie Ong8170d692019-02-13 14:13:21 -08003
4package pb3
5
6import (
Herbie Ong8170d692019-02-13 14:13:21 -08007 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
Joe Tsai35ec98f2019-03-25 14:41:32 -07008 protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry"
Damien Neil0d3e8cc2019-04-01 13:31:55 -07009 protoiface "github.com/golang/protobuf/v2/runtime/protoiface"
Herbie Ong8170d692019-02-13 14:13:21 -080010 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Joe Tsai5d72cc22019-03-28 01:13:26 -070011 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080012)
13
Joe Tsai5d72cc22019-03-28 01:13:26 -070014const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
15
Herbie Ong8170d692019-02-13 14:13:21 -080016type Enum int32
17
18const (
19 Enum_ZERO Enum = 0
20 Enum_ONE Enum = 1
21 Enum_TWO Enum = 2
22 Enum_TEN Enum = 10
23)
24
Joe Tsai8e506a82019-03-16 00:05:34 -070025// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080026var Enum_name = map[int32]string{
27 0: "ZERO",
28 1: "ONE",
29 2: "TWO",
30 10: "TEN",
31}
32
Joe Tsai8e506a82019-03-16 00:05:34 -070033// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080034var Enum_value = map[string]int32{
35 "ZERO": 0,
36 "ONE": 1,
37 "TWO": 2,
38 "TEN": 10,
39}
40
41func (x Enum) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070042 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080043}
44
Joe Tsai61968ce2019-04-01 12:59:24 -070045func (Enum) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -070046 return file_pb3_test_proto_enumTypes[0]
Joe Tsai61968ce2019-04-01 12:59:24 -070047}
48
49func (x Enum) Number() protoreflect.EnumNumber {
50 return protoreflect.EnumNumber(x)
51}
52
Joe Tsai8e506a82019-03-16 00:05:34 -070053// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080054func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070055 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080056}
57
58type Enums_NestedEnum int32
59
60const (
61 Enums_CERO Enums_NestedEnum = 0
62 Enums_UNO Enums_NestedEnum = 1
63 Enums_DOS Enums_NestedEnum = 2
64 Enums_DIEZ Enums_NestedEnum = 10
65)
66
Joe Tsai8e506a82019-03-16 00:05:34 -070067// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080068var Enums_NestedEnum_name = map[int32]string{
69 0: "CERO",
70 1: "UNO",
71 2: "DOS",
72 10: "DIEZ",
73}
74
Joe Tsai8e506a82019-03-16 00:05:34 -070075// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080076var Enums_NestedEnum_value = map[string]int32{
77 "CERO": 0,
78 "UNO": 1,
79 "DOS": 2,
80 "DIEZ": 10,
81}
82
83func (x Enums_NestedEnum) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070084 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080085}
86
Joe Tsai61968ce2019-04-01 12:59:24 -070087func (Enums_NestedEnum) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -070088 return file_pb3_test_proto_enumTypes[1]
Joe Tsai61968ce2019-04-01 12:59:24 -070089}
90
91func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
92 return protoreflect.EnumNumber(x)
93}
94
Joe Tsai8e506a82019-03-16 00:05:34 -070095// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080096func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070097 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -080098}
99
100// Scalars contains scalar field types.
101type Scalars struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700102 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
103 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
104 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
105 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
106 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
107 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
108 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
109 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
110 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
111 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
112 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
113 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
114 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
115 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
116 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
117 XXX_NoUnkeyedLiteral struct{} `json:"-"`
118 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
119 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800120}
121
Joe Tsai61968ce2019-04-01 12:59:24 -0700122func (x *Scalars) Reset() {
123 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800124}
Joe Tsai61968ce2019-04-01 12:59:24 -0700125
126func (x *Scalars) String() string {
127 return protoimpl.X.MessageStringOf(x)
128}
129
130func (*Scalars) ProtoMessage() {}
131
132func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700133 return file_pb3_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700134}
Joe Tsai8e506a82019-03-16 00:05:34 -0700135
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700136func (m *Scalars) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700137 return file_pb3_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700138}
139
Joe Tsai8e506a82019-03-16 00:05:34 -0700140// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800141func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700142 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800143}
144
Joe Tsai61968ce2019-04-01 12:59:24 -0700145func (x *Scalars) GetSBool() bool {
146 if x != nil {
147 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800148 }
149 return false
150}
151
Joe Tsai61968ce2019-04-01 12:59:24 -0700152func (x *Scalars) GetSInt32() int32 {
153 if x != nil {
154 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800155 }
156 return 0
157}
158
Joe Tsai61968ce2019-04-01 12:59:24 -0700159func (x *Scalars) GetSInt64() int64 {
160 if x != nil {
161 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800162 }
163 return 0
164}
165
Joe Tsai61968ce2019-04-01 12:59:24 -0700166func (x *Scalars) GetSUint32() uint32 {
167 if x != nil {
168 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800169 }
170 return 0
171}
172
Joe Tsai61968ce2019-04-01 12:59:24 -0700173func (x *Scalars) GetSUint64() uint64 {
174 if x != nil {
175 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800176 }
177 return 0
178}
179
Joe Tsai61968ce2019-04-01 12:59:24 -0700180func (x *Scalars) GetSSint32() int32 {
181 if x != nil {
182 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800183 }
184 return 0
185}
186
Joe Tsai61968ce2019-04-01 12:59:24 -0700187func (x *Scalars) GetSSint64() int64 {
188 if x != nil {
189 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800190 }
191 return 0
192}
193
Joe Tsai61968ce2019-04-01 12:59:24 -0700194func (x *Scalars) GetSFixed32() uint32 {
195 if x != nil {
196 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800197 }
198 return 0
199}
200
Joe Tsai61968ce2019-04-01 12:59:24 -0700201func (x *Scalars) GetSFixed64() uint64 {
202 if x != nil {
203 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800204 }
205 return 0
206}
207
Joe Tsai61968ce2019-04-01 12:59:24 -0700208func (x *Scalars) GetSSfixed32() int32 {
209 if x != nil {
210 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800211 }
212 return 0
213}
214
Joe Tsai61968ce2019-04-01 12:59:24 -0700215func (x *Scalars) GetSSfixed64() int64 {
216 if x != nil {
217 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800218 }
219 return 0
220}
221
Joe Tsai61968ce2019-04-01 12:59:24 -0700222func (x *Scalars) GetSFloat() float32 {
223 if x != nil {
224 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800225 }
226 return 0
227}
228
Joe Tsai61968ce2019-04-01 12:59:24 -0700229func (x *Scalars) GetSDouble() float64 {
230 if x != nil {
231 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800232 }
233 return 0
234}
235
Joe Tsai61968ce2019-04-01 12:59:24 -0700236func (x *Scalars) GetSBytes() []byte {
237 if x != nil {
238 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800239 }
240 return nil
241}
242
Joe Tsai61968ce2019-04-01 12:59:24 -0700243func (x *Scalars) GetSString() string {
244 if x != nil {
245 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800246 }
247 return ""
248}
249
250// Message contains enum fields.
251type Enums struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700252 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
253 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
254 XXX_NoUnkeyedLiteral struct{} `json:"-"`
255 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
256 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800257}
258
Joe Tsai61968ce2019-04-01 12:59:24 -0700259func (x *Enums) Reset() {
260 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800261}
Joe Tsai61968ce2019-04-01 12:59:24 -0700262
263func (x *Enums) String() string {
264 return protoimpl.X.MessageStringOf(x)
265}
266
267func (*Enums) ProtoMessage() {}
268
269func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700270 return file_pb3_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700271}
Joe Tsai8e506a82019-03-16 00:05:34 -0700272
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700273func (m *Enums) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700274 return file_pb3_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700275}
276
Joe Tsai8e506a82019-03-16 00:05:34 -0700277// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800278func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700279 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800280}
281
Joe Tsai61968ce2019-04-01 12:59:24 -0700282func (x *Enums) GetSEnum() Enum {
283 if x != nil {
284 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800285 }
286 return Enum_ZERO
287}
288
Joe Tsai61968ce2019-04-01 12:59:24 -0700289func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
290 if x != nil {
291 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800292 }
293 return Enums_CERO
294}
295
296// Message contains nested message field.
297type Nests struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700298 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
299 XXX_NoUnkeyedLiteral struct{} `json:"-"`
300 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
301 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800302}
303
Joe Tsai61968ce2019-04-01 12:59:24 -0700304func (x *Nests) Reset() {
305 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800306}
Joe Tsai61968ce2019-04-01 12:59:24 -0700307
308func (x *Nests) String() string {
309 return protoimpl.X.MessageStringOf(x)
310}
311
312func (*Nests) ProtoMessage() {}
313
314func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700315 return file_pb3_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700316}
Joe Tsai8e506a82019-03-16 00:05:34 -0700317
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700318func (m *Nests) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700319 return file_pb3_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700320}
321
Joe Tsai8e506a82019-03-16 00:05:34 -0700322// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800323func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700324 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800325}
326
Joe Tsai61968ce2019-04-01 12:59:24 -0700327func (x *Nests) GetSNested() *Nested {
328 if x != nil {
329 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800330 }
331 return nil
332}
333
334// Message type used as submessage.
335type Nested struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700336 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
337 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
338 XXX_NoUnkeyedLiteral struct{} `json:"-"`
339 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
340 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800341}
342
Joe Tsai61968ce2019-04-01 12:59:24 -0700343func (x *Nested) Reset() {
344 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800345}
Joe Tsai61968ce2019-04-01 12:59:24 -0700346
347func (x *Nested) String() string {
348 return protoimpl.X.MessageStringOf(x)
349}
350
351func (*Nested) ProtoMessage() {}
352
353func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700354 return file_pb3_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700355}
Joe Tsai8e506a82019-03-16 00:05:34 -0700356
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700357func (m *Nested) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700358 return file_pb3_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700359}
360
Joe Tsai8e506a82019-03-16 00:05:34 -0700361// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800362func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700363 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800364}
365
Joe Tsai61968ce2019-04-01 12:59:24 -0700366func (x *Nested) GetSString() string {
367 if x != nil {
368 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800369 }
370 return ""
371}
372
Joe Tsai61968ce2019-04-01 12:59:24 -0700373func (x *Nested) GetSNested() *Nested {
374 if x != nil {
375 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800376 }
377 return nil
378}
379
380// Message contains oneof field.
381type Oneofs struct {
382 // Types that are valid to be assigned to Union:
383 // *Oneofs_OneofEnum
384 // *Oneofs_OneofString
385 // *Oneofs_OneofNested
Joe Tsai5e71dc92019-04-16 13:22:20 -0700386 Union isOneofs_Union `protobuf_oneof:"union"`
387 XXX_NoUnkeyedLiteral struct{} `json:"-"`
388 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
389 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800390}
391
Joe Tsai61968ce2019-04-01 12:59:24 -0700392func (x *Oneofs) Reset() {
393 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800394}
Joe Tsai61968ce2019-04-01 12:59:24 -0700395
396func (x *Oneofs) String() string {
397 return protoimpl.X.MessageStringOf(x)
398}
399
400func (*Oneofs) ProtoMessage() {}
401
402func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700403 return file_pb3_test_proto_msgTypes[4].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700404}
Joe Tsai8e506a82019-03-16 00:05:34 -0700405
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700406func (m *Oneofs) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700407 return file_pb3_test_proto_msgTypes[4].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700408}
409
Joe Tsai8e506a82019-03-16 00:05:34 -0700410// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800411func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700412 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800413}
414
Herbie Ong8170d692019-02-13 14:13:21 -0800415func (m *Oneofs) GetUnion() isOneofs_Union {
416 if m != nil {
417 return m.Union
418 }
419 return nil
420}
421
Joe Tsai61968ce2019-04-01 12:59:24 -0700422func (x *Oneofs) GetOneofEnum() Enum {
423 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800424 return x.OneofEnum
425 }
426 return Enum_ZERO
427}
428
Joe Tsai61968ce2019-04-01 12:59:24 -0700429func (x *Oneofs) GetOneofString() string {
430 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800431 return x.OneofString
432 }
433 return ""
434}
435
Joe Tsai61968ce2019-04-01 12:59:24 -0700436func (x *Oneofs) GetOneofNested() *Nested {
437 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800438 return x.OneofNested
439 }
440 return nil
441}
442
443// XXX_OneofWrappers is for the internal use of the proto package.
444func (*Oneofs) XXX_OneofWrappers() []interface{} {
445 return []interface{}{
446 (*Oneofs_OneofEnum)(nil),
447 (*Oneofs_OneofString)(nil),
448 (*Oneofs_OneofNested)(nil),
449 }
450}
451
Joe Tsai872b5002019-04-08 14:03:15 -0700452type isOneofs_Union interface {
453 isOneofs_Union()
454}
455
456type Oneofs_OneofEnum struct {
457 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
458}
459
460type Oneofs_OneofString struct {
461 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
462}
463
464type Oneofs_OneofNested struct {
465 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
466}
467
468func (*Oneofs_OneofEnum) isOneofs_Union() {}
469
470func (*Oneofs_OneofString) isOneofs_Union() {}
471
472func (*Oneofs_OneofNested) isOneofs_Union() {}
473
Herbie Ong8170d692019-02-13 14:13:21 -0800474// Message contains map fields.
475type Maps struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700476 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"`
477 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"`
478 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"`
479 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"`
480 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"`
481 XXX_NoUnkeyedLiteral struct{} `json:"-"`
482 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
483 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800484}
485
Joe Tsai61968ce2019-04-01 12:59:24 -0700486func (x *Maps) Reset() {
487 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800488}
Joe Tsai61968ce2019-04-01 12:59:24 -0700489
490func (x *Maps) String() string {
491 return protoimpl.X.MessageStringOf(x)
492}
493
494func (*Maps) ProtoMessage() {}
495
496func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700497 return file_pb3_test_proto_msgTypes[5].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700498}
Joe Tsai8e506a82019-03-16 00:05:34 -0700499
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700500func (m *Maps) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700501 return file_pb3_test_proto_msgTypes[5].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700502}
503
Joe Tsai8e506a82019-03-16 00:05:34 -0700504// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800505func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700506 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800507}
508
Joe Tsai61968ce2019-04-01 12:59:24 -0700509func (x *Maps) GetInt32ToStr() map[int32]string {
510 if x != nil {
511 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800512 }
513 return nil
514}
515
Joe Tsai61968ce2019-04-01 12:59:24 -0700516func (x *Maps) GetBoolToUint32() map[bool]uint32 {
517 if x != nil {
518 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800519 }
520 return nil
521}
522
Joe Tsai61968ce2019-04-01 12:59:24 -0700523func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
524 if x != nil {
525 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800526 }
527 return nil
528}
529
Joe Tsai61968ce2019-04-01 12:59:24 -0700530func (x *Maps) GetStrToNested() map[string]*Nested {
531 if x != nil {
532 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800533 }
534 return nil
535}
536
Joe Tsai61968ce2019-04-01 12:59:24 -0700537func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
538 if x != nil {
539 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800540 }
541 return nil
542}
543
Herbie Ong7b828bc2019-02-08 19:56:24 -0800544// Message for testing json_name option.
545type JSONNames struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700546 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
547 XXX_NoUnkeyedLiteral struct{} `json:"-"`
548 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
549 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800550}
551
Joe Tsai61968ce2019-04-01 12:59:24 -0700552func (x *JSONNames) Reset() {
553 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800554}
Joe Tsai61968ce2019-04-01 12:59:24 -0700555
556func (x *JSONNames) String() string {
557 return protoimpl.X.MessageStringOf(x)
558}
559
560func (*JSONNames) ProtoMessage() {}
561
562func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700563 return file_pb3_test_proto_msgTypes[6].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700564}
Joe Tsai8e506a82019-03-16 00:05:34 -0700565
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700566func (m *JSONNames) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700567 return file_pb3_test_proto_msgTypes[6].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700568}
569
Joe Tsai8e506a82019-03-16 00:05:34 -0700570// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800571func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700572 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800573}
574
Joe Tsai61968ce2019-04-01 12:59:24 -0700575func (x *JSONNames) GetSString() string {
576 if x != nil {
577 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800578 }
579 return ""
580}
581
Joe Tsai5d72cc22019-03-28 01:13:26 -0700582var File_pb3_test_proto protoreflect.FileDescriptor
583
Joe Tsai7ca70982019-04-15 13:57:56 -0700584var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800585 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
586 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
587 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
588 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
589 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
590 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
591 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
592 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
593 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
594 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
595 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
596 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
597 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
598 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
599 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
600 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
601 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
602 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
603 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
604 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
605 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
606 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
607 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
608 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
609 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
610 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
611 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
612 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
613 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
614 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
615 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
616 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
617 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
618 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
619 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
620 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
621 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
622 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
623 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
624 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
625 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
626 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
627 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
628 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
629 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
630 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
631 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
632 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
633 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
634 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
635 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
636 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
637 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
638 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
639 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
640 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
641 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
642 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
643 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
644 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
645 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
646 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
647 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
648 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
649 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
650 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
651 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
652 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
653 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
654 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
655 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
656 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
657 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
658 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
659 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
660 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
661 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
662 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
663 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
664 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
665 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
666 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
667 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
668 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
669 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
670 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
671 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
672 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
673 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
674 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
675 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
676 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
677 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
678 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
679 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
680 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
681 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
682 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
683 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
684 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
685 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
686 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
687 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a,
688 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
689 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65,
690 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
691 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800692}
693
Joe Tsai5d72cc22019-03-28 01:13:26 -0700694var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700695 file_pb3_test_proto_rawDescOnce sync.Once
696 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700697)
Herbie Ong8170d692019-02-13 14:13:21 -0800698
Joe Tsai7ca70982019-04-15 13:57:56 -0700699func file_pb3_test_proto_rawDescGZIP() []byte {
700 file_pb3_test_proto_rawDescOnce.Do(func() {
701 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700702 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700703 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700704}
Herbie Ong8170d692019-02-13 14:13:21 -0800705
Joe Tsai7ca70982019-04-15 13:57:56 -0700706var file_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
707var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageType, 12)
708var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800709 (Enum)(0), // 0: pb3.Enum
710 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
711 (*Scalars)(nil), // 2: pb3.Scalars
712 (*Enums)(nil), // 3: pb3.Enums
713 (*Nests)(nil), // 4: pb3.Nests
714 (*Nested)(nil), // 5: pb3.Nested
715 (*Oneofs)(nil), // 6: pb3.Oneofs
716 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800717 (*JSONNames)(nil), // 8: pb3.JSONNames
718 nil, // 9: pb3.Maps.Int32ToStrEntry
719 nil, // 10: pb3.Maps.BoolToUint32Entry
720 nil, // 11: pb3.Maps.Uint64ToEnumEntry
721 nil, // 12: pb3.Maps.StrToNestedEntry
722 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800723}
Joe Tsai7ca70982019-04-15 13:57:56 -0700724var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800725 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
726 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
727 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
728 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
729 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
730 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800731 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
732 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
733 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
734 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
735 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800736 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
737 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
738 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
739}
740
Joe Tsai7ca70982019-04-15 13:57:56 -0700741func init() { file_pb3_test_proto_init() }
742func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800743 if File_pb3_test_proto != nil {
744 return
745 }
Joe Tsai19058432019-02-27 21:46:29 -0800746 File_pb3_test_proto = protoimpl.FileBuilder{
Joe Tsai7ca70982019-04-15 13:57:56 -0700747 RawDescriptor: file_pb3_test_proto_rawDesc,
748 GoTypes: file_pb3_test_proto_goTypes,
749 DependencyIndexes: file_pb3_test_proto_depIdxs,
750 EnumOutputTypes: file_pb3_test_proto_enumTypes,
751 MessageOutputTypes: file_pb3_test_proto_msgTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700752 FilesRegistry: protoregistry.GlobalFiles,
753 TypesRegistry: protoregistry.GlobalTypes,
Herbie Ong8170d692019-02-13 14:13:21 -0800754 }.Init()
Joe Tsai7ca70982019-04-15 13:57:56 -0700755 file_pb3_test_proto_rawDesc = nil
756 file_pb3_test_proto_goTypes = nil
757 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800758}