blob: 0ec0eaffb77a544ffee98689fe9709ecbba39b58 [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
Joe Tsai61968ce2019-04-01 12:59:24 -070060func (x Enum) Number() protoreflect.EnumNumber {
61 return protoreflect.EnumNumber(x)
62}
63
Joe Tsai8e506a82019-03-16 00:05:34 -070064// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080065func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070066 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080067}
68
69type Enums_NestedEnum int32
70
71const (
72 Enums_CERO Enums_NestedEnum = 0
73 Enums_UNO Enums_NestedEnum = 1
74 Enums_DOS Enums_NestedEnum = 2
75 Enums_DIEZ Enums_NestedEnum = 10
76)
77
Joe Tsai8e506a82019-03-16 00:05:34 -070078// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080079var Enums_NestedEnum_name = map[int32]string{
80 0: "CERO",
81 1: "UNO",
82 2: "DOS",
83 10: "DIEZ",
84}
85
Joe Tsai8e506a82019-03-16 00:05:34 -070086// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080087var Enums_NestedEnum_value = map[string]int32{
88 "CERO": 0,
89 "UNO": 1,
90 "DOS": 2,
91 "DIEZ": 10,
92}
93
Joe Tsaidbab6c02019-05-14 15:06:03 -070094func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
95 p := new(Enums_NestedEnum)
96 *p = x
97 return p
98}
99
Herbie Ong8170d692019-02-13 14:13:21 -0800100func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700101 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800102}
103
Joe Tsai0fc49f82019-05-01 12:29:25 -0700104func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
105 return file_pb3_test_proto_enumTypes[1].Descriptor()
106}
107
Joe Tsai61968ce2019-04-01 12:59:24 -0700108func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
109 return protoreflect.EnumNumber(x)
110}
111
Joe Tsai8e506a82019-03-16 00:05:34 -0700112// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800113func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700114 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800115}
116
117// Scalars contains scalar field types.
118type Scalars struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700119 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
120 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
121 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
122 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
123 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
124 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
125 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
126 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
127 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
128 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
129 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
130 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
131 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
132 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
133 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
134 XXX_NoUnkeyedLiteral struct{} `json:"-"`
135 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
136 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800137}
138
Joe Tsai61968ce2019-04-01 12:59:24 -0700139func (x *Scalars) Reset() {
140 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800141}
Joe Tsai61968ce2019-04-01 12:59:24 -0700142
143func (x *Scalars) String() string {
144 return protoimpl.X.MessageStringOf(x)
145}
146
147func (*Scalars) ProtoMessage() {}
148
149func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700150 return file_pb3_test_proto_msgTypes[0].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700151}
Joe Tsai8e506a82019-03-16 00:05:34 -0700152
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700153func (m *Scalars) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700154 return file_pb3_test_proto_msgTypes[0].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700155}
156
Joe Tsai8e506a82019-03-16 00:05:34 -0700157// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800158func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700159 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800160}
161
Joe Tsai61968ce2019-04-01 12:59:24 -0700162func (x *Scalars) GetSBool() bool {
163 if x != nil {
164 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800165 }
166 return false
167}
168
Joe Tsai61968ce2019-04-01 12:59:24 -0700169func (x *Scalars) GetSInt32() int32 {
170 if x != nil {
171 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800172 }
173 return 0
174}
175
Joe Tsai61968ce2019-04-01 12:59:24 -0700176func (x *Scalars) GetSInt64() int64 {
177 if x != nil {
178 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800179 }
180 return 0
181}
182
Joe Tsai61968ce2019-04-01 12:59:24 -0700183func (x *Scalars) GetSUint32() uint32 {
184 if x != nil {
185 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800186 }
187 return 0
188}
189
Joe Tsai61968ce2019-04-01 12:59:24 -0700190func (x *Scalars) GetSUint64() uint64 {
191 if x != nil {
192 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800193 }
194 return 0
195}
196
Joe Tsai61968ce2019-04-01 12:59:24 -0700197func (x *Scalars) GetSSint32() int32 {
198 if x != nil {
199 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800200 }
201 return 0
202}
203
Joe Tsai61968ce2019-04-01 12:59:24 -0700204func (x *Scalars) GetSSint64() int64 {
205 if x != nil {
206 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800207 }
208 return 0
209}
210
Joe Tsai61968ce2019-04-01 12:59:24 -0700211func (x *Scalars) GetSFixed32() uint32 {
212 if x != nil {
213 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800214 }
215 return 0
216}
217
Joe Tsai61968ce2019-04-01 12:59:24 -0700218func (x *Scalars) GetSFixed64() uint64 {
219 if x != nil {
220 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800221 }
222 return 0
223}
224
Joe Tsai61968ce2019-04-01 12:59:24 -0700225func (x *Scalars) GetSSfixed32() int32 {
226 if x != nil {
227 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800228 }
229 return 0
230}
231
Joe Tsai61968ce2019-04-01 12:59:24 -0700232func (x *Scalars) GetSSfixed64() int64 {
233 if x != nil {
234 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800235 }
236 return 0
237}
238
Joe Tsai61968ce2019-04-01 12:59:24 -0700239func (x *Scalars) GetSFloat() float32 {
240 if x != nil {
241 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800242 }
243 return 0
244}
245
Joe Tsai61968ce2019-04-01 12:59:24 -0700246func (x *Scalars) GetSDouble() float64 {
247 if x != nil {
248 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800249 }
250 return 0
251}
252
Joe Tsai61968ce2019-04-01 12:59:24 -0700253func (x *Scalars) GetSBytes() []byte {
254 if x != nil {
255 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800256 }
257 return nil
258}
259
Joe Tsai61968ce2019-04-01 12:59:24 -0700260func (x *Scalars) GetSString() string {
261 if x != nil {
262 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800263 }
264 return ""
265}
266
267// Message contains enum fields.
268type Enums struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700269 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
270 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
271 XXX_NoUnkeyedLiteral struct{} `json:"-"`
272 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
273 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800274}
275
Joe Tsai61968ce2019-04-01 12:59:24 -0700276func (x *Enums) Reset() {
277 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800278}
Joe Tsai61968ce2019-04-01 12:59:24 -0700279
280func (x *Enums) String() string {
281 return protoimpl.X.MessageStringOf(x)
282}
283
284func (*Enums) ProtoMessage() {}
285
286func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700287 return file_pb3_test_proto_msgTypes[1].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700288}
Joe Tsai8e506a82019-03-16 00:05:34 -0700289
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700290func (m *Enums) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700291 return file_pb3_test_proto_msgTypes[1].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700292}
293
Joe Tsai8e506a82019-03-16 00:05:34 -0700294// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800295func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700296 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800297}
298
Joe Tsai61968ce2019-04-01 12:59:24 -0700299func (x *Enums) GetSEnum() Enum {
300 if x != nil {
301 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800302 }
303 return Enum_ZERO
304}
305
Joe Tsai61968ce2019-04-01 12:59:24 -0700306func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
307 if x != nil {
308 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800309 }
310 return Enums_CERO
311}
312
313// Message contains nested message field.
314type Nests struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700315 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
316 XXX_NoUnkeyedLiteral struct{} `json:"-"`
317 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
318 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800319}
320
Joe Tsai61968ce2019-04-01 12:59:24 -0700321func (x *Nests) Reset() {
322 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800323}
Joe Tsai61968ce2019-04-01 12:59:24 -0700324
325func (x *Nests) String() string {
326 return protoimpl.X.MessageStringOf(x)
327}
328
329func (*Nests) ProtoMessage() {}
330
331func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700332 return file_pb3_test_proto_msgTypes[2].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700333}
Joe Tsai8e506a82019-03-16 00:05:34 -0700334
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700335func (m *Nests) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700336 return file_pb3_test_proto_msgTypes[2].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700337}
338
Joe Tsai8e506a82019-03-16 00:05:34 -0700339// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800340func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700341 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800342}
343
Joe Tsai61968ce2019-04-01 12:59:24 -0700344func (x *Nests) GetSNested() *Nested {
345 if x != nil {
346 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800347 }
348 return nil
349}
350
351// Message type used as submessage.
352type Nested struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700353 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
354 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
355 XXX_NoUnkeyedLiteral struct{} `json:"-"`
356 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
357 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800358}
359
Joe Tsai61968ce2019-04-01 12:59:24 -0700360func (x *Nested) Reset() {
361 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800362}
Joe Tsai61968ce2019-04-01 12:59:24 -0700363
364func (x *Nested) String() string {
365 return protoimpl.X.MessageStringOf(x)
366}
367
368func (*Nested) ProtoMessage() {}
369
370func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700371 return file_pb3_test_proto_msgTypes[3].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700372}
Joe Tsai8e506a82019-03-16 00:05:34 -0700373
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700374func (m *Nested) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700375 return file_pb3_test_proto_msgTypes[3].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700376}
377
Joe Tsai8e506a82019-03-16 00:05:34 -0700378// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800379func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700380 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800381}
382
Joe Tsai61968ce2019-04-01 12:59:24 -0700383func (x *Nested) GetSString() string {
384 if x != nil {
385 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800386 }
387 return ""
388}
389
Joe Tsai61968ce2019-04-01 12:59:24 -0700390func (x *Nested) GetSNested() *Nested {
391 if x != nil {
392 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800393 }
394 return nil
395}
396
397// Message contains oneof field.
398type Oneofs struct {
399 // Types that are valid to be assigned to Union:
400 // *Oneofs_OneofEnum
401 // *Oneofs_OneofString
402 // *Oneofs_OneofNested
Joe Tsai5e71dc92019-04-16 13:22:20 -0700403 Union isOneofs_Union `protobuf_oneof:"union"`
404 XXX_NoUnkeyedLiteral struct{} `json:"-"`
405 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
406 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800407}
408
Joe Tsai61968ce2019-04-01 12:59:24 -0700409func (x *Oneofs) Reset() {
410 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800411}
Joe Tsai61968ce2019-04-01 12:59:24 -0700412
413func (x *Oneofs) String() string {
414 return protoimpl.X.MessageStringOf(x)
415}
416
417func (*Oneofs) ProtoMessage() {}
418
419func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700420 return file_pb3_test_proto_msgTypes[4].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700421}
Joe Tsai8e506a82019-03-16 00:05:34 -0700422
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700423func (m *Oneofs) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700424 return file_pb3_test_proto_msgTypes[4].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700425}
426
Joe Tsai8e506a82019-03-16 00:05:34 -0700427// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800428func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700429 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800430}
431
Herbie Ong8170d692019-02-13 14:13:21 -0800432func (m *Oneofs) GetUnion() isOneofs_Union {
433 if m != nil {
434 return m.Union
435 }
436 return nil
437}
438
Joe Tsai61968ce2019-04-01 12:59:24 -0700439func (x *Oneofs) GetOneofEnum() Enum {
440 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800441 return x.OneofEnum
442 }
443 return Enum_ZERO
444}
445
Joe Tsai61968ce2019-04-01 12:59:24 -0700446func (x *Oneofs) GetOneofString() string {
447 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800448 return x.OneofString
449 }
450 return ""
451}
452
Joe Tsai61968ce2019-04-01 12:59:24 -0700453func (x *Oneofs) GetOneofNested() *Nested {
454 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800455 return x.OneofNested
456 }
457 return nil
458}
459
460// XXX_OneofWrappers is for the internal use of the proto package.
461func (*Oneofs) XXX_OneofWrappers() []interface{} {
462 return []interface{}{
463 (*Oneofs_OneofEnum)(nil),
464 (*Oneofs_OneofString)(nil),
465 (*Oneofs_OneofNested)(nil),
466 }
467}
468
Joe Tsai872b5002019-04-08 14:03:15 -0700469type isOneofs_Union interface {
470 isOneofs_Union()
471}
472
473type Oneofs_OneofEnum struct {
474 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
475}
476
477type Oneofs_OneofString struct {
478 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
479}
480
481type Oneofs_OneofNested struct {
482 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
483}
484
485func (*Oneofs_OneofEnum) isOneofs_Union() {}
486
487func (*Oneofs_OneofString) isOneofs_Union() {}
488
489func (*Oneofs_OneofNested) isOneofs_Union() {}
490
Herbie Ong8170d692019-02-13 14:13:21 -0800491// Message contains map fields.
492type Maps struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700493 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"`
494 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"`
495 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"`
496 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"`
497 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"`
498 XXX_NoUnkeyedLiteral struct{} `json:"-"`
499 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
500 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong8170d692019-02-13 14:13:21 -0800501}
502
Joe Tsai61968ce2019-04-01 12:59:24 -0700503func (x *Maps) Reset() {
504 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800505}
Joe Tsai61968ce2019-04-01 12:59:24 -0700506
507func (x *Maps) String() string {
508 return protoimpl.X.MessageStringOf(x)
509}
510
511func (*Maps) ProtoMessage() {}
512
513func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700514 return file_pb3_test_proto_msgTypes[5].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700515}
Joe Tsai8e506a82019-03-16 00:05:34 -0700516
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700517func (m *Maps) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700518 return file_pb3_test_proto_msgTypes[5].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700519}
520
Joe Tsai8e506a82019-03-16 00:05:34 -0700521// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800522func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700523 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800524}
525
Joe Tsai61968ce2019-04-01 12:59:24 -0700526func (x *Maps) GetInt32ToStr() map[int32]string {
527 if x != nil {
528 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800529 }
530 return nil
531}
532
Joe Tsai61968ce2019-04-01 12:59:24 -0700533func (x *Maps) GetBoolToUint32() map[bool]uint32 {
534 if x != nil {
535 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800536 }
537 return nil
538}
539
Joe Tsai61968ce2019-04-01 12:59:24 -0700540func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
541 if x != nil {
542 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800543 }
544 return nil
545}
546
Joe Tsai61968ce2019-04-01 12:59:24 -0700547func (x *Maps) GetStrToNested() map[string]*Nested {
548 if x != nil {
549 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800550 }
551 return nil
552}
553
Joe Tsai61968ce2019-04-01 12:59:24 -0700554func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
555 if x != nil {
556 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800557 }
558 return nil
559}
560
Herbie Ong7b828bc2019-02-08 19:56:24 -0800561// Message for testing json_name option.
562type JSONNames struct {
Joe Tsai5e71dc92019-04-16 13:22:20 -0700563 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
564 XXX_NoUnkeyedLiteral struct{} `json:"-"`
565 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
566 XXX_sizecache protoimpl.SizeCache `json:"-"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800567}
568
Joe Tsai61968ce2019-04-01 12:59:24 -0700569func (x *JSONNames) Reset() {
570 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800571}
Joe Tsai61968ce2019-04-01 12:59:24 -0700572
573func (x *JSONNames) String() string {
574 return protoimpl.X.MessageStringOf(x)
575}
576
577func (*JSONNames) ProtoMessage() {}
578
579func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai7ca70982019-04-15 13:57:56 -0700580 return file_pb3_test_proto_msgTypes[6].MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700581}
Joe Tsai8e506a82019-03-16 00:05:34 -0700582
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700583func (m *JSONNames) XXX_Methods() *protoiface.Methods {
Joe Tsai7ca70982019-04-15 13:57:56 -0700584 return file_pb3_test_proto_msgTypes[6].Methods()
Damien Neil0d3e8cc2019-04-01 13:31:55 -0700585}
586
Joe Tsai8e506a82019-03-16 00:05:34 -0700587// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800588func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700589 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800590}
591
Joe Tsai61968ce2019-04-01 12:59:24 -0700592func (x *JSONNames) GetSString() string {
593 if x != nil {
594 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800595 }
596 return ""
597}
598
Joe Tsai5d72cc22019-03-28 01:13:26 -0700599var File_pb3_test_proto protoreflect.FileDescriptor
600
Joe Tsai7ca70982019-04-15 13:57:56 -0700601var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800602 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
603 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
604 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
605 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
606 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
607 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
608 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
609 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
610 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
611 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
612 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
613 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
614 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
615 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
616 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
617 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
618 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
619 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
620 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
621 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
622 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
623 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
624 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
625 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
626 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
627 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
628 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
629 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
630 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
631 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
632 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
633 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
634 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
635 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
636 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
637 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
638 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
639 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
640 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
641 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
642 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
643 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
644 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
645 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
646 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
647 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
648 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
649 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
650 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
651 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
652 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
653 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
654 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
655 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
656 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
657 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
658 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
659 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
660 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
661 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
662 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
663 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
664 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
665 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
666 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
667 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
668 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
669 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
670 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
671 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
672 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
673 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
674 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
675 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
676 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
677 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
678 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
679 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
680 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
681 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
682 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
683 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
684 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
685 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
686 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
687 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
688 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
689 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
690 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
691 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
692 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
693 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
694 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
695 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
696 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
697 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
698 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
699 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
700 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
701 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
702 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
703 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700704 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
705 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
706 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
707 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
708 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800709}
710
Joe Tsai5d72cc22019-03-28 01:13:26 -0700711var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700712 file_pb3_test_proto_rawDescOnce sync.Once
713 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700714)
Herbie Ong8170d692019-02-13 14:13:21 -0800715
Joe Tsai7ca70982019-04-15 13:57:56 -0700716func file_pb3_test_proto_rawDescGZIP() []byte {
717 file_pb3_test_proto_rawDescOnce.Do(func() {
718 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700719 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700720 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700721}
Herbie Ong8170d692019-02-13 14:13:21 -0800722
Joe Tsai7ca70982019-04-15 13:57:56 -0700723var file_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400724var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700725var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800726 (Enum)(0), // 0: pb3.Enum
727 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
728 (*Scalars)(nil), // 2: pb3.Scalars
729 (*Enums)(nil), // 3: pb3.Enums
730 (*Nests)(nil), // 4: pb3.Nests
731 (*Nested)(nil), // 5: pb3.Nested
732 (*Oneofs)(nil), // 6: pb3.Oneofs
733 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800734 (*JSONNames)(nil), // 8: pb3.JSONNames
735 nil, // 9: pb3.Maps.Int32ToStrEntry
736 nil, // 10: pb3.Maps.BoolToUint32Entry
737 nil, // 11: pb3.Maps.Uint64ToEnumEntry
738 nil, // 12: pb3.Maps.StrToNestedEntry
739 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800740}
Joe Tsai7ca70982019-04-15 13:57:56 -0700741var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800742 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
743 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
744 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
745 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
746 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
747 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800748 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
749 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
750 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
751 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
752 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800753 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
754 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
755 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
756}
757
Joe Tsai7ca70982019-04-15 13:57:56 -0700758func init() { file_pb3_test_proto_init() }
759func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800760 if File_pb3_test_proto != nil {
761 return
762 }
Joe Tsai19058432019-02-27 21:46:29 -0800763 File_pb3_test_proto = protoimpl.FileBuilder{
Joe Tsai7ca70982019-04-15 13:57:56 -0700764 RawDescriptor: file_pb3_test_proto_rawDesc,
765 GoTypes: file_pb3_test_proto_goTypes,
766 DependencyIndexes: file_pb3_test_proto_depIdxs,
767 EnumOutputTypes: file_pb3_test_proto_enumTypes,
768 MessageOutputTypes: file_pb3_test_proto_msgTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700769 FilesRegistry: protoregistry.GlobalFiles,
770 TypesRegistry: protoregistry.GlobalTypes,
Herbie Ong8170d692019-02-13 14:13:21 -0800771 }.Init()
Joe Tsai7ca70982019-04-15 13:57:56 -0700772 file_pb3_test_proto_rawDesc = nil
773 file_pb3_test_proto_goTypes = nil
774 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800775}