blob: c919a67badceecbd4f8be99eb0cef809f3a67740 [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 (
Damien Neile89e6242019-05-13 23:55:40 -07007 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
8 protoregistry "google.golang.org/protobuf/reflect/protoregistry"
9 protoiface "google.golang.org/protobuf/runtime/protoiface"
10 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsai5d72cc22019-03-28 01:13:26 -070011 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080012)
13
Joe Tsai58b42d82019-05-22 16:27:51 -040014const (
15 // Verify that runtime/protoimpl is sufficiently up-to-date.
16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
17 // Verify that this generated code is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
19)
Joe Tsai5d72cc22019-03-28 01:13:26 -070020
Herbie Ong8170d692019-02-13 14:13:21 -080021type Enum int32
22
23const (
24 Enum_ZERO Enum = 0
25 Enum_ONE Enum = 1
26 Enum_TWO Enum = 2
27 Enum_TEN Enum = 10
28)
29
Joe Tsai8e506a82019-03-16 00:05:34 -070030// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080031var Enum_name = map[int32]string{
32 0: "ZERO",
33 1: "ONE",
34 2: "TWO",
35 10: "TEN",
36}
37
Joe Tsai8e506a82019-03-16 00:05:34 -070038// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080039var Enum_value = map[string]int32{
40 "ZERO": 0,
41 "ONE": 1,
42 "TWO": 2,
43 "TEN": 10,
44}
45
Joe Tsaidbab6c02019-05-14 15:06:03 -070046func (x Enum) Enum() *Enum {
47 p := new(Enum)
48 *p = x
49 return p
50}
51
Herbie Ong8170d692019-02-13 14:13:21 -080052func (x Enum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070053 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080054}
55
Joe Tsai0fc49f82019-05-01 12:29:25 -070056func (Enum) Descriptor() protoreflect.EnumDescriptor {
57 return file_pb3_test_proto_enumTypes[0].Descriptor()
58}
59
60// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -070061func (Enum) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -070062 return file_pb3_test_proto_enumTypes[0]
Joe Tsai61968ce2019-04-01 12:59:24 -070063}
64
65func (x Enum) Number() protoreflect.EnumNumber {
66 return protoreflect.EnumNumber(x)
67}
68
Joe Tsai8e506a82019-03-16 00:05:34 -070069// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080070func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070071 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080072}
73
74type Enums_NestedEnum int32
75
76const (
77 Enums_CERO Enums_NestedEnum = 0
78 Enums_UNO Enums_NestedEnum = 1
79 Enums_DOS Enums_NestedEnum = 2
80 Enums_DIEZ Enums_NestedEnum = 10
81)
82
Joe Tsai8e506a82019-03-16 00:05:34 -070083// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080084var Enums_NestedEnum_name = map[int32]string{
85 0: "CERO",
86 1: "UNO",
87 2: "DOS",
88 10: "DIEZ",
89}
90
Joe Tsai8e506a82019-03-16 00:05:34 -070091// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080092var Enums_NestedEnum_value = map[string]int32{
93 "CERO": 0,
94 "UNO": 1,
95 "DOS": 2,
96 "DIEZ": 10,
97}
98
Joe Tsaidbab6c02019-05-14 15:06:03 -070099func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
100 p := new(Enums_NestedEnum)
101 *p = x
102 return p
103}
104
Herbie Ong8170d692019-02-13 14:13:21 -0800105func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700106 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800107}
108
Joe Tsai0fc49f82019-05-01 12:29:25 -0700109func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
110 return file_pb3_test_proto_enumTypes[1].Descriptor()
111}
112
113// Deprecated: Use Descriptor instead.
Joe Tsai61968ce2019-04-01 12:59:24 -0700114func (Enums_NestedEnum) Type() protoreflect.EnumType {
Joe Tsai7ca70982019-04-15 13:57:56 -0700115 return file_pb3_test_proto_enumTypes[1]
Joe Tsai61968ce2019-04-01 12:59:24 -0700116}
117
118func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
119 return protoreflect.EnumNumber(x)
120}
121
Joe Tsai8e506a82019-03-16 00:05:34 -0700122// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800123func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700124 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800125}
126
127// Scalars contains scalar field types.
128type Scalars struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700129 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 XXX_NoUnkeyedLiteral struct{} `json:"-"`
145 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
146 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800147}
148
Joe Tsai61968ce2019-04-01 12:59:24 -0700149func (x *Scalars) Reset() {
150 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800151}
Joe Tsai61968ce2019-04-01 12:59:24 -0700152
153func (x *Scalars) String() string {
154 return protoimpl.X.MessageStringOf(x)
155}
156
157func (*Scalars) ProtoMessage() {}
158
159func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700160 return file_pb3_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700161}
Joe Tsai8e506a82019-03-16 00:05:34 -0700162
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700163func (m *Scalars) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700164 return file_pb3_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700165}
166
Joe Tsai8e506a82019-03-16 00:05:34 -0700167// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800168func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700169 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800170}
171
Joe Tsai61968ce2019-04-01 12:59:24 -0700172func (x *Scalars) GetSBool() bool {
173 if x != nil {
174 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800175 }
176 return false
177}
178
Joe Tsai61968ce2019-04-01 12:59:24 -0700179func (x *Scalars) GetSInt32() int32 {
180 if x != nil {
181 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800182 }
183 return 0
184}
185
Joe Tsai61968ce2019-04-01 12:59:24 -0700186func (x *Scalars) GetSInt64() int64 {
187 if x != nil {
188 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800189 }
190 return 0
191}
192
Joe Tsai61968ce2019-04-01 12:59:24 -0700193func (x *Scalars) GetSUint32() uint32 {
194 if x != nil {
195 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800196 }
197 return 0
198}
199
Joe Tsai61968ce2019-04-01 12:59:24 -0700200func (x *Scalars) GetSUint64() uint64 {
201 if x != nil {
202 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800203 }
204 return 0
205}
206
Joe Tsai61968ce2019-04-01 12:59:24 -0700207func (x *Scalars) GetSSint32() int32 {
208 if x != nil {
209 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800210 }
211 return 0
212}
213
Joe Tsai61968ce2019-04-01 12:59:24 -0700214func (x *Scalars) GetSSint64() int64 {
215 if x != nil {
216 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800217 }
218 return 0
219}
220
Joe Tsai61968ce2019-04-01 12:59:24 -0700221func (x *Scalars) GetSFixed32() uint32 {
222 if x != nil {
223 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800224 }
225 return 0
226}
227
Joe Tsai61968ce2019-04-01 12:59:24 -0700228func (x *Scalars) GetSFixed64() uint64 {
229 if x != nil {
230 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800231 }
232 return 0
233}
234
Joe Tsai61968ce2019-04-01 12:59:24 -0700235func (x *Scalars) GetSSfixed32() int32 {
236 if x != nil {
237 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800238 }
239 return 0
240}
241
Joe Tsai61968ce2019-04-01 12:59:24 -0700242func (x *Scalars) GetSSfixed64() int64 {
243 if x != nil {
244 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800245 }
246 return 0
247}
248
Joe Tsai61968ce2019-04-01 12:59:24 -0700249func (x *Scalars) GetSFloat() float32 {
250 if x != nil {
251 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800252 }
253 return 0
254}
255
Joe Tsai61968ce2019-04-01 12:59:24 -0700256func (x *Scalars) GetSDouble() float64 {
257 if x != nil {
258 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800259 }
260 return 0
261}
262
Joe Tsai61968ce2019-04-01 12:59:24 -0700263func (x *Scalars) GetSBytes() []byte {
264 if x != nil {
265 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800266 }
267 return nil
268}
269
Joe Tsai61968ce2019-04-01 12:59:24 -0700270func (x *Scalars) GetSString() string {
271 if x != nil {
272 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800273 }
274 return ""
275}
276
277// Message contains enum fields.
278type Enums struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700279 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
280 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
281 XXX_NoUnkeyedLiteral struct{} `json:"-"`
282 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
283 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800284}
285
Joe Tsai61968ce2019-04-01 12:59:24 -0700286func (x *Enums) Reset() {
287 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800288}
Joe Tsai61968ce2019-04-01 12:59:24 -0700289
290func (x *Enums) String() string {
291 return protoimpl.X.MessageStringOf(x)
292}
293
294func (*Enums) ProtoMessage() {}
295
296func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700297 return file_pb3_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700298}
Joe Tsai8e506a82019-03-16 00:05:34 -0700299
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700300func (m *Enums) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700301 return file_pb3_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700302}
303
Joe Tsai8e506a82019-03-16 00:05:34 -0700304// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800305func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700306 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800307}
308
Joe Tsai61968ce2019-04-01 12:59:24 -0700309func (x *Enums) GetSEnum() Enum {
310 if x != nil {
311 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800312 }
313 return Enum_ZERO
314}
315
Joe Tsai61968ce2019-04-01 12:59:24 -0700316func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
317 if x != nil {
318 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800319 }
320 return Enums_CERO
321}
322
323// Message contains nested message field.
324type Nests struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700325 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
326 XXX_NoUnkeyedLiteral struct{} `json:"-"`
327 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
328 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800329}
330
Joe Tsai61968ce2019-04-01 12:59:24 -0700331func (x *Nests) Reset() {
332 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800333}
Joe Tsai61968ce2019-04-01 12:59:24 -0700334
335func (x *Nests) String() string {
336 return protoimpl.X.MessageStringOf(x)
337}
338
339func (*Nests) ProtoMessage() {}
340
341func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700342 return file_pb3_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700343}
Joe Tsai8e506a82019-03-16 00:05:34 -0700344
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700345func (m *Nests) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700346 return file_pb3_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700347}
348
Joe Tsai8e506a82019-03-16 00:05:34 -0700349// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800350func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700351 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800352}
353
Joe Tsai61968ce2019-04-01 12:59:24 -0700354func (x *Nests) GetSNested() *Nested {
355 if x != nil {
356 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800357 }
358 return nil
359}
360
361// Message type used as submessage.
362type Nested struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700363 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
364 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
365 XXX_NoUnkeyedLiteral struct{} `json:"-"`
366 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
367 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800368}
369
Joe Tsai61968ce2019-04-01 12:59:24 -0700370func (x *Nested) Reset() {
371 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800372}
Joe Tsai61968ce2019-04-01 12:59:24 -0700373
374func (x *Nested) String() string {
375 return protoimpl.X.MessageStringOf(x)
376}
377
378func (*Nested) ProtoMessage() {}
379
380func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700381 return file_pb3_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700382}
Joe Tsai8e506a82019-03-16 00:05:34 -0700383
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700384func (m *Nested) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700385 return file_pb3_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700386}
387
Joe Tsai8e506a82019-03-16 00:05:34 -0700388// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800389func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700390 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800391}
392
Joe Tsai61968ce2019-04-01 12:59:24 -0700393func (x *Nested) GetSString() string {
394 if x != nil {
395 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800396 }
397 return ""
398}
399
Joe Tsai61968ce2019-04-01 12:59:24 -0700400func (x *Nested) GetSNested() *Nested {
401 if x != nil {
402 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800403 }
404 return nil
405}
406
407// Message contains oneof field.
408type Oneofs struct {
409 // Types that are valid to be assigned to Union:
410 // *Oneofs_OneofEnum
411 // *Oneofs_OneofString
412 // *Oneofs_OneofNested
Joe Tsai5e71dc92019-04-16 13:22:20 -0700413 Union isOneofs_Union `protobuf_oneof:"union"`
414 XXX_NoUnkeyedLiteral struct{} `json:"-"`
415 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
416 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800417}
418
Joe Tsai61968ce2019-04-01 12:59:24 -0700419func (x *Oneofs) Reset() {
420 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800421}
Joe Tsai61968ce2019-04-01 12:59:24 -0700422
423func (x *Oneofs) String() string {
424 return protoimpl.X.MessageStringOf(x)
425}
426
427func (*Oneofs) ProtoMessage() {}
428
429func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700430 return file_pb3_test_proto_msgTypes[4].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700431}
Joe Tsai8e506a82019-03-16 00:05:34 -0700432
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700433func (m *Oneofs) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700434 return file_pb3_test_proto_msgTypes[4].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700435}
436
Joe Tsai8e506a82019-03-16 00:05:34 -0700437// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800438func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700439 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800440}
441
Herbie Ong8170d692019-02-13 14:13:21 -0800442func (m *Oneofs) GetUnion() isOneofs_Union {
443 if m != nil {
444 return m.Union
445 }
446 return nil
447}
448
Joe Tsai61968ce2019-04-01 12:59:24 -0700449func (x *Oneofs) GetOneofEnum() Enum {
450 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800451 return x.OneofEnum
452 }
453 return Enum_ZERO
454}
455
Joe Tsai61968ce2019-04-01 12:59:24 -0700456func (x *Oneofs) GetOneofString() string {
457 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800458 return x.OneofString
459 }
460 return ""
461}
462
Joe Tsai61968ce2019-04-01 12:59:24 -0700463func (x *Oneofs) GetOneofNested() *Nested {
464 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800465 return x.OneofNested
466 }
467 return nil
468}
469
470// XXX_OneofWrappers is for the internal use of the proto package.
471func (*Oneofs) XXX_OneofWrappers() []interface{} {
472 return []interface{}{
473 (*Oneofs_OneofEnum)(nil),
474 (*Oneofs_OneofString)(nil),
475 (*Oneofs_OneofNested)(nil),
476 }
477}
478
Joe Tsai872b5002019-04-08 14:03:15 -0700479type isOneofs_Union interface {
480 isOneofs_Union()
481}
482
483type Oneofs_OneofEnum struct {
484 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
485}
486
487type Oneofs_OneofString struct {
488 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
489}
490
491type Oneofs_OneofNested struct {
492 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
493}
494
495func (*Oneofs_OneofEnum) isOneofs_Union() {}
496
497func (*Oneofs_OneofString) isOneofs_Union() {}
498
499func (*Oneofs_OneofNested) isOneofs_Union() {}
500
Herbie Ong8170d692019-02-13 14:13:21 -0800501// Message contains map fields.
502type Maps struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700503 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"`
504 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"`
505 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"`
506 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"`
507 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"`
508 XXX_NoUnkeyedLiteral struct{} `json:"-"`
509 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
510 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800511}
512
Joe Tsai61968ce2019-04-01 12:59:24 -0700513func (x *Maps) Reset() {
514 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800515}
Joe Tsai61968ce2019-04-01 12:59:24 -0700516
517func (x *Maps) String() string {
518 return protoimpl.X.MessageStringOf(x)
519}
520
521func (*Maps) ProtoMessage() {}
522
523func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700524 return file_pb3_test_proto_msgTypes[5].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700525}
Joe Tsai8e506a82019-03-16 00:05:34 -0700526
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700527func (m *Maps) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700528 return file_pb3_test_proto_msgTypes[5].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700529}
530
Joe Tsai8e506a82019-03-16 00:05:34 -0700531// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800532func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700533 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800534}
535
Joe Tsai61968ce2019-04-01 12:59:24 -0700536func (x *Maps) GetInt32ToStr() map[int32]string {
537 if x != nil {
538 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800539 }
540 return nil
541}
542
Joe Tsai61968ce2019-04-01 12:59:24 -0700543func (x *Maps) GetBoolToUint32() map[bool]uint32 {
544 if x != nil {
545 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800546 }
547 return nil
548}
549
Joe Tsai61968ce2019-04-01 12:59:24 -0700550func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
551 if x != nil {
552 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800553 }
554 return nil
555}
556
Joe Tsai61968ce2019-04-01 12:59:24 -0700557func (x *Maps) GetStrToNested() map[string]*Nested {
558 if x != nil {
559 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800560 }
561 return nil
562}
563
Joe Tsai61968ce2019-04-01 12:59:24 -0700564func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
565 if x != nil {
566 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800567 }
568 return nil
569}
570
Herbie Ong7b828bc2019-02-08 19:56:24 -0800571// Message for testing json_name option.
572type JSONNames struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700573 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
574 XXX_NoUnkeyedLiteral struct{} `json:"-"`
575 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
576 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800577}
578
Joe Tsai61968ce2019-04-01 12:59:24 -0700579func (x *JSONNames) Reset() {
580 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800581}
Joe Tsai61968ce2019-04-01 12:59:24 -0700582
583func (x *JSONNames) String() string {
584 return protoimpl.X.MessageStringOf(x)
585}
586
587func (*JSONNames) ProtoMessage() {}
588
589func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700590 return file_pb3_test_proto_msgTypes[6].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700591}
Joe Tsai8e506a82019-03-16 00:05:34 -0700592
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700593func (m *JSONNames) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700594 return file_pb3_test_proto_msgTypes[6].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700595}
596
Joe Tsai8e506a82019-03-16 00:05:34 -0700597// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800598func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700599 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800600}
601
Joe Tsai61968ce2019-04-01 12:59:24 -0700602func (x *JSONNames) GetSString() string {
603 if x != nil {
604 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800605 }
606 return ""
607}
608
Joe Tsai5d72cc22019-03-28 01:13:26 -0700609var File_pb3_test_proto protoreflect.FileDescriptor
610
Joe Tsai7ca70982019-04-15 13:57:56 -0700611var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800612 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
613 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
614 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
615 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
616 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
617 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
618 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
619 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
620 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
621 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
622 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
623 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
624 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
625 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
626 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
627 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
628 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
629 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
630 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
631 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
632 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
633 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
634 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
635 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
636 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
637 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
638 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
639 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
640 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
641 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
642 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
643 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
644 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
645 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
646 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
647 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
648 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
649 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
650 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
651 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
652 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
653 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
654 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
655 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
656 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
657 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
658 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
659 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
660 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
661 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
662 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
663 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
664 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
665 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
666 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
667 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
668 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
669 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
670 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
671 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
672 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
673 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
674 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
675 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
676 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
677 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
678 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
679 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
680 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
681 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
682 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
683 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
684 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
685 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
686 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
687 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
688 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
689 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
690 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
691 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
692 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
693 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
694 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
695 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
696 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
697 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
698 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
699 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
700 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
701 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
702 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
703 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
704 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
705 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
706 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
707 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
708 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
709 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
710 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
711 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
712 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
713 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700714 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
715 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
716 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
717 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
718 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800719}
720
Joe Tsai5d72cc22019-03-28 01:13:26 -0700721var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700722 file_pb3_test_proto_rawDescOnce sync.Once
723 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700724)
Herbie Ong8170d692019-02-13 14:13:21 -0800725
Joe Tsai7ca70982019-04-15 13:57:56 -0700726func file_pb3_test_proto_rawDescGZIP() []byte {
727 file_pb3_test_proto_rawDescOnce.Do(func() {
728 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700729 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700730 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700731}
Herbie Ong8170d692019-02-13 14:13:21 -0800732
Joe Tsai7ca70982019-04-15 13:57:56 -0700733var file_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400734var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700735var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800736 (Enum)(0), // 0: pb3.Enum
737 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
738 (*Scalars)(nil), // 2: pb3.Scalars
739 (*Enums)(nil), // 3: pb3.Enums
740 (*Nests)(nil), // 4: pb3.Nests
741 (*Nested)(nil), // 5: pb3.Nested
742 (*Oneofs)(nil), // 6: pb3.Oneofs
743 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800744 (*JSONNames)(nil), // 8: pb3.JSONNames
745 nil, // 9: pb3.Maps.Int32ToStrEntry
746 nil, // 10: pb3.Maps.BoolToUint32Entry
747 nil, // 11: pb3.Maps.Uint64ToEnumEntry
748 nil, // 12: pb3.Maps.StrToNestedEntry
749 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800750}
Joe Tsai7ca70982019-04-15 13:57:56 -0700751var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800752 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
753 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
754 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
755 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
756 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
757 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800758 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
759 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
760 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
761 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
762 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800763 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
764 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
765 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
766}
767
Joe Tsai7ca70982019-04-15 13:57:56 -0700768func init() { file_pb3_test_proto_init() }
769func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800770 if File_pb3_test_proto != nil {
771 return
772 }
Joe Tsai19058432019-02-27 21:46:29 -0800773 File_pb3_test_proto = protoimpl.FileBuilder{
Joe Tsai7ca70982019-04-15 13:57:56 -0700774 RawDescriptor: file_pb3_test_proto_rawDesc,
775 GoTypes: file_pb3_test_proto_goTypes,
776 DependencyIndexes: file_pb3_test_proto_depIdxs,
777 EnumOutputTypes: file_pb3_test_proto_enumTypes,
778 MessageOutputTypes: file_pb3_test_proto_msgTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700779 FilesRegistry: protoregistry.GlobalFiles,
780 TypesRegistry: protoregistry.GlobalTypes,
Herbie Ong8170d692019-02-13 14:13:21 -0800781 }.Init()
Joe Tsai7ca70982019-04-15 13:57:56 -0700782 file_pb3_test_proto_rawDesc = nil
783 file_pb3_test_proto_goTypes = nil
784 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800785}