blob: 980798691bdf3e63f45ffcba546f9d1afefe34fc [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"
Joe Tsaid8881392019-06-06 13:01:53 -07008 prototype "google.golang.org/protobuf/reflect/prototype"
Damien Neile89e6242019-05-13 23:55:40 -07009 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
Herbie Ong8170d692019-02-13 14:13:21 -080030var Enum_name = map[int32]string{
31 0: "ZERO",
32 1: "ONE",
33 2: "TWO",
34 10: "TEN",
35}
36
37var Enum_value = map[string]int32{
38 "ZERO": 0,
39 "ONE": 1,
40 "TWO": 2,
41 "TEN": 10,
42}
43
Joe Tsaidbab6c02019-05-14 15:06:03 -070044func (x Enum) Enum() *Enum {
45 p := new(Enum)
46 *p = x
47 return p
48}
49
Herbie Ong8170d692019-02-13 14:13:21 -080050func (x Enum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070051 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080052}
53
Joe Tsai0fc49f82019-05-01 12:29:25 -070054func (Enum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070055 return file_pb3_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070056}
57
Joe Tsai61968ce2019-04-01 12:59:24 -070058func (x Enum) Number() protoreflect.EnumNumber {
59 return protoreflect.EnumNumber(x)
60}
61
Joe Tsai8e506a82019-03-16 00:05:34 -070062// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080063func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070064 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080065}
66
67type Enums_NestedEnum int32
68
69const (
70 Enums_CERO Enums_NestedEnum = 0
71 Enums_UNO Enums_NestedEnum = 1
72 Enums_DOS Enums_NestedEnum = 2
73 Enums_DIEZ Enums_NestedEnum = 10
74)
75
Herbie Ong8170d692019-02-13 14:13:21 -080076var Enums_NestedEnum_name = map[int32]string{
77 0: "CERO",
78 1: "UNO",
79 2: "DOS",
80 10: "DIEZ",
81}
82
83var Enums_NestedEnum_value = map[string]int32{
84 "CERO": 0,
85 "UNO": 1,
86 "DOS": 2,
87 "DIEZ": 10,
88}
89
Joe Tsaidbab6c02019-05-14 15:06:03 -070090func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
91 p := new(Enums_NestedEnum)
92 *p = x
93 return p
94}
95
Herbie Ong8170d692019-02-13 14:13:21 -080096func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070097 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080098}
99
Joe Tsai0fc49f82019-05-01 12:29:25 -0700100func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700101 return file_pb3_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700102}
103
Joe Tsai61968ce2019-04-01 12:59:24 -0700104func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
105 return protoreflect.EnumNumber(x)
106}
107
Joe Tsai8e506a82019-03-16 00:05:34 -0700108// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800109func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700110 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800111}
112
113// Scalars contains scalar field types.
114type Scalars struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700115 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
116 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
117 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
118 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
119 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
120 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
121 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
122 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
123 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
124 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
125 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
126 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
127 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
128 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
129 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
130 XXX_NoUnkeyedLiteral struct{} `json:"-"`
131 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
132 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800133}
134
Joe Tsai61968ce2019-04-01 12:59:24 -0700135func (x *Scalars) Reset() {
136 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800137}
Joe Tsai61968ce2019-04-01 12:59:24 -0700138
139func (x *Scalars) String() string {
140 return protoimpl.X.MessageStringOf(x)
141}
142
143func (*Scalars) ProtoMessage() {}
144
145func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700146 return file_pb3_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700147}
Joe Tsai8e506a82019-03-16 00:05:34 -0700148
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700149func (m *Scalars) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700150 return file_pb3_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700151}
152
Joe Tsai8e506a82019-03-16 00:05:34 -0700153// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800154func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700155 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800156}
157
Joe Tsai61968ce2019-04-01 12:59:24 -0700158func (x *Scalars) GetSBool() bool {
159 if x != nil {
160 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800161 }
162 return false
163}
164
Joe Tsai61968ce2019-04-01 12:59:24 -0700165func (x *Scalars) GetSInt32() int32 {
166 if x != nil {
167 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800168 }
169 return 0
170}
171
Joe Tsai61968ce2019-04-01 12:59:24 -0700172func (x *Scalars) GetSInt64() int64 {
173 if x != nil {
174 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800175 }
176 return 0
177}
178
Joe Tsai61968ce2019-04-01 12:59:24 -0700179func (x *Scalars) GetSUint32() uint32 {
180 if x != nil {
181 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800182 }
183 return 0
184}
185
Joe Tsai61968ce2019-04-01 12:59:24 -0700186func (x *Scalars) GetSUint64() uint64 {
187 if x != nil {
188 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800189 }
190 return 0
191}
192
Joe Tsai61968ce2019-04-01 12:59:24 -0700193func (x *Scalars) GetSSint32() int32 {
194 if x != nil {
195 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800196 }
197 return 0
198}
199
Joe Tsai61968ce2019-04-01 12:59:24 -0700200func (x *Scalars) GetSSint64() int64 {
201 if x != nil {
202 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800203 }
204 return 0
205}
206
Joe Tsai61968ce2019-04-01 12:59:24 -0700207func (x *Scalars) GetSFixed32() uint32 {
208 if x != nil {
209 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800210 }
211 return 0
212}
213
Joe Tsai61968ce2019-04-01 12:59:24 -0700214func (x *Scalars) GetSFixed64() uint64 {
215 if x != nil {
216 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800217 }
218 return 0
219}
220
Joe Tsai61968ce2019-04-01 12:59:24 -0700221func (x *Scalars) GetSSfixed32() int32 {
222 if x != nil {
223 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800224 }
225 return 0
226}
227
Joe Tsai61968ce2019-04-01 12:59:24 -0700228func (x *Scalars) GetSSfixed64() int64 {
229 if x != nil {
230 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800231 }
232 return 0
233}
234
Joe Tsai61968ce2019-04-01 12:59:24 -0700235func (x *Scalars) GetSFloat() float32 {
236 if x != nil {
237 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800238 }
239 return 0
240}
241
Joe Tsai61968ce2019-04-01 12:59:24 -0700242func (x *Scalars) GetSDouble() float64 {
243 if x != nil {
244 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800245 }
246 return 0
247}
248
Joe Tsai61968ce2019-04-01 12:59:24 -0700249func (x *Scalars) GetSBytes() []byte {
250 if x != nil {
251 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800252 }
253 return nil
254}
255
Joe Tsai61968ce2019-04-01 12:59:24 -0700256func (x *Scalars) GetSString() string {
257 if x != nil {
258 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800259 }
260 return ""
261}
262
263// Message contains enum fields.
264type Enums struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700265 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
266 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
267 XXX_NoUnkeyedLiteral struct{} `json:"-"`
268 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
269 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800270}
271
Joe Tsai61968ce2019-04-01 12:59:24 -0700272func (x *Enums) Reset() {
273 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800274}
Joe Tsai61968ce2019-04-01 12:59:24 -0700275
276func (x *Enums) String() string {
277 return protoimpl.X.MessageStringOf(x)
278}
279
280func (*Enums) ProtoMessage() {}
281
282func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700283 return file_pb3_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700284}
Joe Tsai8e506a82019-03-16 00:05:34 -0700285
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700286func (m *Enums) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700287 return file_pb3_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700288}
289
Joe Tsai8e506a82019-03-16 00:05:34 -0700290// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800291func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700292 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800293}
294
Joe Tsai61968ce2019-04-01 12:59:24 -0700295func (x *Enums) GetSEnum() Enum {
296 if x != nil {
297 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800298 }
299 return Enum_ZERO
300}
301
Joe Tsai61968ce2019-04-01 12:59:24 -0700302func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
303 if x != nil {
304 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800305 }
306 return Enums_CERO
307}
308
309// Message contains nested message field.
310type Nests struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700311 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
312 XXX_NoUnkeyedLiteral struct{} `json:"-"`
313 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
314 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800315}
316
Joe Tsai61968ce2019-04-01 12:59:24 -0700317func (x *Nests) Reset() {
318 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800319}
Joe Tsai61968ce2019-04-01 12:59:24 -0700320
321func (x *Nests) String() string {
322 return protoimpl.X.MessageStringOf(x)
323}
324
325func (*Nests) ProtoMessage() {}
326
327func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700328 return file_pb3_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700329}
Joe Tsai8e506a82019-03-16 00:05:34 -0700330
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700331func (m *Nests) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700332 return file_pb3_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700333}
334
Joe Tsai8e506a82019-03-16 00:05:34 -0700335// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800336func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700337 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800338}
339
Joe Tsai61968ce2019-04-01 12:59:24 -0700340func (x *Nests) GetSNested() *Nested {
341 if x != nil {
342 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800343 }
344 return nil
345}
346
347// Message type used as submessage.
348type Nested struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700349 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
350 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
351 XXX_NoUnkeyedLiteral struct{} `json:"-"`
352 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
353 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800354}
355
Joe Tsai61968ce2019-04-01 12:59:24 -0700356func (x *Nested) Reset() {
357 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800358}
Joe Tsai61968ce2019-04-01 12:59:24 -0700359
360func (x *Nested) String() string {
361 return protoimpl.X.MessageStringOf(x)
362}
363
364func (*Nested) ProtoMessage() {}
365
366func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700367 return file_pb3_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700368}
Joe Tsai8e506a82019-03-16 00:05:34 -0700369
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700370func (m *Nested) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700371 return file_pb3_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700372}
373
Joe Tsai8e506a82019-03-16 00:05:34 -0700374// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800375func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700376 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800377}
378
Joe Tsai61968ce2019-04-01 12:59:24 -0700379func (x *Nested) GetSString() string {
380 if x != nil {
381 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800382 }
383 return ""
384}
385
Joe Tsai61968ce2019-04-01 12:59:24 -0700386func (x *Nested) GetSNested() *Nested {
387 if x != nil {
388 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800389 }
390 return nil
391}
392
393// Message contains oneof field.
394type Oneofs struct {
395 // Types that are valid to be assigned to Union:
396 // *Oneofs_OneofEnum
397 // *Oneofs_OneofString
398 // *Oneofs_OneofNested
Joe Tsai5e71dc92019-04-16 13:22:20 -0700399 Union isOneofs_Union `protobuf_oneof:"union"`
400 XXX_NoUnkeyedLiteral struct{} `json:"-"`
401 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
402 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800403}
404
Joe Tsai61968ce2019-04-01 12:59:24 -0700405func (x *Oneofs) Reset() {
406 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800407}
Joe Tsai61968ce2019-04-01 12:59:24 -0700408
409func (x *Oneofs) String() string {
410 return protoimpl.X.MessageStringOf(x)
411}
412
413func (*Oneofs) ProtoMessage() {}
414
415func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700416 return file_pb3_test_proto_msgTypes[4].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700417}
Joe Tsai8e506a82019-03-16 00:05:34 -0700418
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700419func (m *Oneofs) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700420 return file_pb3_test_proto_msgTypes[4].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700421}
422
Joe Tsai8e506a82019-03-16 00:05:34 -0700423// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800424func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700425 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800426}
427
Herbie Ong8170d692019-02-13 14:13:21 -0800428func (m *Oneofs) GetUnion() isOneofs_Union {
429 if m != nil {
430 return m.Union
431 }
432 return nil
433}
434
Joe Tsai61968ce2019-04-01 12:59:24 -0700435func (x *Oneofs) GetOneofEnum() Enum {
436 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800437 return x.OneofEnum
438 }
439 return Enum_ZERO
440}
441
Joe Tsai61968ce2019-04-01 12:59:24 -0700442func (x *Oneofs) GetOneofString() string {
443 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800444 return x.OneofString
445 }
446 return ""
447}
448
Joe Tsai61968ce2019-04-01 12:59:24 -0700449func (x *Oneofs) GetOneofNested() *Nested {
450 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800451 return x.OneofNested
452 }
453 return nil
454}
455
456// XXX_OneofWrappers is for the internal use of the proto package.
457func (*Oneofs) XXX_OneofWrappers() []interface{} {
458 return []interface{}{
459 (*Oneofs_OneofEnum)(nil),
460 (*Oneofs_OneofString)(nil),
461 (*Oneofs_OneofNested)(nil),
462 }
463}
464
Joe Tsai872b5002019-04-08 14:03:15 -0700465type isOneofs_Union interface {
466 isOneofs_Union()
467}
468
469type Oneofs_OneofEnum struct {
470 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
471}
472
473type Oneofs_OneofString struct {
474 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
475}
476
477type Oneofs_OneofNested struct {
478 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
479}
480
481func (*Oneofs_OneofEnum) isOneofs_Union() {}
482
483func (*Oneofs_OneofString) isOneofs_Union() {}
484
485func (*Oneofs_OneofNested) isOneofs_Union() {}
486
Herbie Ong8170d692019-02-13 14:13:21 -0800487// Message contains map fields.
488type Maps struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700489 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"`
490 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"`
491 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"`
492 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"`
493 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"`
494 XXX_NoUnkeyedLiteral struct{} `json:"-"`
495 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
496 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800497}
498
Joe Tsai61968ce2019-04-01 12:59:24 -0700499func (x *Maps) Reset() {
500 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800501}
Joe Tsai61968ce2019-04-01 12:59:24 -0700502
503func (x *Maps) String() string {
504 return protoimpl.X.MessageStringOf(x)
505}
506
507func (*Maps) ProtoMessage() {}
508
509func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700510 return file_pb3_test_proto_msgTypes[5].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700511}
Joe Tsai8e506a82019-03-16 00:05:34 -0700512
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700513func (m *Maps) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700514 return file_pb3_test_proto_msgTypes[5].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700515}
516
Joe Tsai8e506a82019-03-16 00:05:34 -0700517// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800518func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700519 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800520}
521
Joe Tsai61968ce2019-04-01 12:59:24 -0700522func (x *Maps) GetInt32ToStr() map[int32]string {
523 if x != nil {
524 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800525 }
526 return nil
527}
528
Joe Tsai61968ce2019-04-01 12:59:24 -0700529func (x *Maps) GetBoolToUint32() map[bool]uint32 {
530 if x != nil {
531 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800532 }
533 return nil
534}
535
Joe Tsai61968ce2019-04-01 12:59:24 -0700536func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
537 if x != nil {
538 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800539 }
540 return nil
541}
542
Joe Tsai61968ce2019-04-01 12:59:24 -0700543func (x *Maps) GetStrToNested() map[string]*Nested {
544 if x != nil {
545 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800546 }
547 return nil
548}
549
Joe Tsai61968ce2019-04-01 12:59:24 -0700550func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
551 if x != nil {
552 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800553 }
554 return nil
555}
556
Herbie Ong7b828bc2019-02-08 19:56:24 -0800557// Message for testing json_name option.
558type JSONNames struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700559 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
560 XXX_NoUnkeyedLiteral struct{} `json:"-"`
561 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
562 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800563}
564
Joe Tsai61968ce2019-04-01 12:59:24 -0700565func (x *JSONNames) Reset() {
566 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800567}
Joe Tsai61968ce2019-04-01 12:59:24 -0700568
569func (x *JSONNames) String() string {
570 return protoimpl.X.MessageStringOf(x)
571}
572
573func (*JSONNames) ProtoMessage() {}
574
575func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700576 return file_pb3_test_proto_msgTypes[6].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700577}
Joe Tsai8e506a82019-03-16 00:05:34 -0700578
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700579func (m *JSONNames) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700580 return file_pb3_test_proto_msgTypes[6].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700581}
582
Joe Tsai8e506a82019-03-16 00:05:34 -0700583// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800584func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700585 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800586}
587
Joe Tsai61968ce2019-04-01 12:59:24 -0700588func (x *JSONNames) GetSString() string {
589 if x != nil {
590 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800591 }
592 return ""
593}
594
Joe Tsai5d72cc22019-03-28 01:13:26 -0700595var File_pb3_test_proto protoreflect.FileDescriptor
596
Joe Tsai7ca70982019-04-15 13:57:56 -0700597var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800598 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
599 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
600 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
601 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
602 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
603 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
604 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
605 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
606 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
607 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
608 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
609 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
610 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
611 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
612 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
613 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
614 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
615 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
616 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
617 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
618 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
619 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
620 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
621 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
622 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
623 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
624 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
625 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
626 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
627 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
628 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
629 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
630 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
631 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
632 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
633 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
634 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
635 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
636 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
637 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
638 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
639 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
640 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
641 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
642 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
643 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
644 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
645 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
646 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
647 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
648 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
649 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
650 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
651 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
652 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
653 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
654 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
655 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
656 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
657 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
658 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
659 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
660 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
661 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
662 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
663 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
664 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
665 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
666 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
667 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
668 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
669 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
670 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
671 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
672 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
673 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
674 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
675 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
676 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
677 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
678 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
679 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
680 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
681 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
682 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
683 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
684 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
685 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
686 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
687 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
688 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
689 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
690 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
691 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
692 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
693 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
694 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
695 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
696 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
697 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
698 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
699 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700700 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
701 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
702 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
703 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
704 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800705}
706
Joe Tsai5d72cc22019-03-28 01:13:26 -0700707var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700708 file_pb3_test_proto_rawDescOnce sync.Once
709 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700710)
Herbie Ong8170d692019-02-13 14:13:21 -0800711
Joe Tsai7ca70982019-04-15 13:57:56 -0700712func file_pb3_test_proto_rawDescGZIP() []byte {
713 file_pb3_test_proto_rawDescOnce.Do(func() {
714 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700715 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700716 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700717}
Herbie Ong8170d692019-02-13 14:13:21 -0800718
Joe Tsaid8881392019-06-06 13:01:53 -0700719var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400720var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700721var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800722 (Enum)(0), // 0: pb3.Enum
723 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
724 (*Scalars)(nil), // 2: pb3.Scalars
725 (*Enums)(nil), // 3: pb3.Enums
726 (*Nests)(nil), // 4: pb3.Nests
727 (*Nested)(nil), // 5: pb3.Nested
728 (*Oneofs)(nil), // 6: pb3.Oneofs
729 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800730 (*JSONNames)(nil), // 8: pb3.JSONNames
731 nil, // 9: pb3.Maps.Int32ToStrEntry
732 nil, // 10: pb3.Maps.BoolToUint32Entry
733 nil, // 11: pb3.Maps.Uint64ToEnumEntry
734 nil, // 12: pb3.Maps.StrToNestedEntry
735 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800736}
Joe Tsai7ca70982019-04-15 13:57:56 -0700737var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800738 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
739 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
740 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
741 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
742 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
743 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800744 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
745 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
746 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
747 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
748 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800749 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
750 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
751 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
Joe Tsaid8881392019-06-06 13:01:53 -0700752 14, // starting offset of method output_type sub-list
753 14, // starting offset of method input_type sub-list
754 14, // starting offset of extension type_name sub-list
755 14, // starting offset of extension extendee sub-list
756 0, // starting offset of field type_name sub-list
Herbie Ong8170d692019-02-13 14:13:21 -0800757}
758
Joe Tsai7ca70982019-04-15 13:57:56 -0700759func init() { file_pb3_test_proto_init() }
760func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800761 if File_pb3_test_proto != nil {
762 return
763 }
Joe Tsaid8881392019-06-06 13:01:53 -0700764 out := protoimpl.TypeBuilder{
765 File: protoimpl.DescBuilder{
766 RawDescriptor: file_pb3_test_proto_rawDesc,
767 NumEnums: 2,
768 NumMessages: 12,
769 NumExtensions: 0,
770 NumServices: 0,
771 },
772 GoTypes: file_pb3_test_proto_goTypes,
773 DependencyIndexes: file_pb3_test_proto_depIdxs,
774 MessageInfos: file_pb3_test_proto_msgTypes,
775 }.Build()
776 File_pb3_test_proto = out.File
777 file_pb3_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700778 file_pb3_test_proto_rawDesc = nil
779 file_pb3_test_proto_goTypes = nil
780 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800781}