blob: 049a051de60da6c25ee93a274699dfd0acc7f824 [file] [log] [blame]
Joe Tsai8d5e6d62019-08-06 01:15:48 -07001// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Test Protobuf definitions with proto3 syntax.
6
Herbie Ong8170d692019-02-13 14:13:21 -08007// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai19058432019-02-27 21:46:29 -08008// source: pb3/test.proto
Herbie Ong8170d692019-02-13 14:13:21 -08009
10package pb3
11
12import (
Damien Neile89e6242019-05-13 23:55:40 -070013 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Joe Tsaid8881392019-06-06 13:01:53 -070014 prototype "google.golang.org/protobuf/reflect/prototype"
Damien Neile89e6242019-05-13 23:55:40 -070015 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070016 reflect "reflect"
Joe Tsai5d72cc22019-03-28 01:13:26 -070017 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080018)
19
Joe Tsai58b42d82019-05-22 16:27:51 -040020const (
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
23 // Verify that this generated code is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
25)
Joe Tsai5d72cc22019-03-28 01:13:26 -070026
Herbie Ong8170d692019-02-13 14:13:21 -080027type Enum int32
28
29const (
30 Enum_ZERO Enum = 0
31 Enum_ONE Enum = 1
32 Enum_TWO Enum = 2
33 Enum_TEN Enum = 10
34)
35
Joe Tsai9b8a4332019-08-05 18:38:48 -070036// Enum value maps for Enum.
37var (
38 Enum_name = map[int32]string{
39 0: "ZERO",
40 1: "ONE",
41 2: "TWO",
42 10: "TEN",
43 }
44 Enum_value = map[string]int32{
45 "ZERO": 0,
46 "ONE": 1,
47 "TWO": 2,
48 "TEN": 10,
49 }
50)
Herbie Ong8170d692019-02-13 14:13:21 -080051
Joe Tsaidbab6c02019-05-14 15:06:03 -070052func (x Enum) Enum() *Enum {
53 p := new(Enum)
54 *p = x
55 return p
56}
57
Herbie Ong8170d692019-02-13 14:13:21 -080058func (x Enum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070059 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080060}
61
Joe Tsai0fc49f82019-05-01 12:29:25 -070062func (Enum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070063 return file_pb3_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070064}
65
Joe Tsaid4211502019-07-02 14:58:02 -070066func (Enum) Type() protoreflect.EnumType {
67 return &file_pb3_test_proto_enumTypes[0]
68}
69
Joe Tsai61968ce2019-04-01 12:59:24 -070070func (x Enum) Number() protoreflect.EnumNumber {
71 return protoreflect.EnumNumber(x)
72}
73
Joe Tsai43761bd2019-07-17 18:06:47 -070074// Deprecated: Use Enum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -080075func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070076 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080077}
78
79type Enums_NestedEnum int32
80
81const (
82 Enums_CERO Enums_NestedEnum = 0
83 Enums_UNO Enums_NestedEnum = 1
84 Enums_DOS Enums_NestedEnum = 2
85 Enums_DIEZ Enums_NestedEnum = 10
86)
87
Joe Tsai9b8a4332019-08-05 18:38:48 -070088// Enum value maps for Enums_NestedEnum.
89var (
90 Enums_NestedEnum_name = map[int32]string{
91 0: "CERO",
92 1: "UNO",
93 2: "DOS",
94 10: "DIEZ",
95 }
96 Enums_NestedEnum_value = map[string]int32{
97 "CERO": 0,
98 "UNO": 1,
99 "DOS": 2,
100 "DIEZ": 10,
101 }
102)
Herbie Ong8170d692019-02-13 14:13:21 -0800103
Joe Tsaidbab6c02019-05-14 15:06:03 -0700104func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
105 p := new(Enums_NestedEnum)
106 *p = x
107 return p
108}
109
Herbie Ong8170d692019-02-13 14:13:21 -0800110func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700111 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800112}
113
Joe Tsai0fc49f82019-05-01 12:29:25 -0700114func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700115 return file_pb3_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700116}
117
Joe Tsaid4211502019-07-02 14:58:02 -0700118func (Enums_NestedEnum) Type() protoreflect.EnumType {
119 return &file_pb3_test_proto_enumTypes[1]
120}
121
Joe Tsai61968ce2019-04-01 12:59:24 -0700122func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
123 return protoreflect.EnumNumber(x)
124}
125
Joe Tsai43761bd2019-07-17 18:06:47 -0700126// Deprecated: Use Enums_NestedEnum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800127func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700128 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800129}
130
131// Scalars contains scalar field types.
132type Scalars struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700133 state protoimpl.MessageState
Joe Tsai38b61962019-08-05 13:09:30 -0700134 sizeCache protoimpl.SizeCache
135 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700136
137 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
138 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
139 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
140 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
141 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
142 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
143 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
144 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
145 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
146 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
147 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
148 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
149 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
150 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
151 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800152}
153
Joe Tsai61968ce2019-04-01 12:59:24 -0700154func (x *Scalars) Reset() {
155 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800156}
Joe Tsai61968ce2019-04-01 12:59:24 -0700157
158func (x *Scalars) String() string {
159 return protoimpl.X.MessageStringOf(x)
160}
161
162func (*Scalars) ProtoMessage() {}
163
164func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700165 mi := &file_pb3_test_proto_msgTypes[0]
166 if protoimpl.UnsafeEnabled && x != nil {
167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
168 if ms.LoadMessageInfo() == nil {
169 ms.StoreMessageInfo(mi)
170 }
171 return ms
172 }
173 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700174}
Joe Tsai8e506a82019-03-16 00:05:34 -0700175
Joe Tsai43761bd2019-07-17 18:06:47 -0700176// Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800177func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700178 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800179}
180
Joe Tsai61968ce2019-04-01 12:59:24 -0700181func (x *Scalars) GetSBool() bool {
182 if x != nil {
183 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800184 }
185 return false
186}
187
Joe Tsai61968ce2019-04-01 12:59:24 -0700188func (x *Scalars) GetSInt32() int32 {
189 if x != nil {
190 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800191 }
192 return 0
193}
194
Joe Tsai61968ce2019-04-01 12:59:24 -0700195func (x *Scalars) GetSInt64() int64 {
196 if x != nil {
197 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800198 }
199 return 0
200}
201
Joe Tsai61968ce2019-04-01 12:59:24 -0700202func (x *Scalars) GetSUint32() uint32 {
203 if x != nil {
204 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800205 }
206 return 0
207}
208
Joe Tsai61968ce2019-04-01 12:59:24 -0700209func (x *Scalars) GetSUint64() uint64 {
210 if x != nil {
211 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800212 }
213 return 0
214}
215
Joe Tsai61968ce2019-04-01 12:59:24 -0700216func (x *Scalars) GetSSint32() int32 {
217 if x != nil {
218 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800219 }
220 return 0
221}
222
Joe Tsai61968ce2019-04-01 12:59:24 -0700223func (x *Scalars) GetSSint64() int64 {
224 if x != nil {
225 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800226 }
227 return 0
228}
229
Joe Tsai61968ce2019-04-01 12:59:24 -0700230func (x *Scalars) GetSFixed32() uint32 {
231 if x != nil {
232 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800233 }
234 return 0
235}
236
Joe Tsai61968ce2019-04-01 12:59:24 -0700237func (x *Scalars) GetSFixed64() uint64 {
238 if x != nil {
239 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800240 }
241 return 0
242}
243
Joe Tsai61968ce2019-04-01 12:59:24 -0700244func (x *Scalars) GetSSfixed32() int32 {
245 if x != nil {
246 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800247 }
248 return 0
249}
250
Joe Tsai61968ce2019-04-01 12:59:24 -0700251func (x *Scalars) GetSSfixed64() int64 {
252 if x != nil {
253 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800254 }
255 return 0
256}
257
Joe Tsai61968ce2019-04-01 12:59:24 -0700258func (x *Scalars) GetSFloat() float32 {
259 if x != nil {
260 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800261 }
262 return 0
263}
264
Joe Tsai61968ce2019-04-01 12:59:24 -0700265func (x *Scalars) GetSDouble() float64 {
266 if x != nil {
267 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800268 }
269 return 0
270}
271
Joe Tsai61968ce2019-04-01 12:59:24 -0700272func (x *Scalars) GetSBytes() []byte {
273 if x != nil {
274 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800275 }
276 return nil
277}
278
Joe Tsai61968ce2019-04-01 12:59:24 -0700279func (x *Scalars) GetSString() string {
280 if x != nil {
281 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800282 }
283 return ""
284}
285
286// Message contains enum fields.
287type Enums struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700288 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700289 sizeCache protoimpl.SizeCache
290 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700291
292 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
293 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800294}
295
Joe Tsai61968ce2019-04-01 12:59:24 -0700296func (x *Enums) Reset() {
297 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800298}
Joe Tsai61968ce2019-04-01 12:59:24 -0700299
300func (x *Enums) String() string {
301 return protoimpl.X.MessageStringOf(x)
302}
303
304func (*Enums) ProtoMessage() {}
305
306func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700307 mi := &file_pb3_test_proto_msgTypes[1]
308 if protoimpl.UnsafeEnabled && x != nil {
309 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
310 if ms.LoadMessageInfo() == nil {
311 ms.StoreMessageInfo(mi)
312 }
313 return ms
314 }
315 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700316}
Joe Tsai8e506a82019-03-16 00:05:34 -0700317
Joe Tsai43761bd2019-07-17 18:06:47 -0700318// Deprecated: Use Enums.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800319func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700320 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800321}
322
Joe Tsai61968ce2019-04-01 12:59:24 -0700323func (x *Enums) GetSEnum() Enum {
324 if x != nil {
325 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800326 }
327 return Enum_ZERO
328}
329
Joe Tsai61968ce2019-04-01 12:59:24 -0700330func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
331 if x != nil {
332 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800333 }
334 return Enums_CERO
335}
336
337// Message contains nested message field.
338type Nests struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700339 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700340 sizeCache protoimpl.SizeCache
341 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700342
343 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800344}
345
Joe Tsai61968ce2019-04-01 12:59:24 -0700346func (x *Nests) Reset() {
347 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800348}
Joe Tsai61968ce2019-04-01 12:59:24 -0700349
350func (x *Nests) String() string {
351 return protoimpl.X.MessageStringOf(x)
352}
353
354func (*Nests) ProtoMessage() {}
355
356func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700357 mi := &file_pb3_test_proto_msgTypes[2]
358 if protoimpl.UnsafeEnabled && x != nil {
359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
360 if ms.LoadMessageInfo() == nil {
361 ms.StoreMessageInfo(mi)
362 }
363 return ms
364 }
365 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700366}
Joe Tsai8e506a82019-03-16 00:05:34 -0700367
Joe Tsai43761bd2019-07-17 18:06:47 -0700368// Deprecated: Use Nests.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800369func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700370 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800371}
372
Joe Tsai61968ce2019-04-01 12:59:24 -0700373func (x *Nests) GetSNested() *Nested {
374 if x != nil {
375 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800376 }
377 return nil
378}
379
380// Message type used as submessage.
381type Nested struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700382 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700383 sizeCache protoimpl.SizeCache
384 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700385
386 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
387 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800388}
389
Joe Tsai61968ce2019-04-01 12:59:24 -0700390func (x *Nested) Reset() {
391 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800392}
Joe Tsai61968ce2019-04-01 12:59:24 -0700393
394func (x *Nested) String() string {
395 return protoimpl.X.MessageStringOf(x)
396}
397
398func (*Nested) ProtoMessage() {}
399
400func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700401 mi := &file_pb3_test_proto_msgTypes[3]
402 if protoimpl.UnsafeEnabled && x != nil {
403 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
404 if ms.LoadMessageInfo() == nil {
405 ms.StoreMessageInfo(mi)
406 }
407 return ms
408 }
409 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700410}
Joe Tsai8e506a82019-03-16 00:05:34 -0700411
Joe Tsai43761bd2019-07-17 18:06:47 -0700412// Deprecated: Use Nested.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800413func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700414 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800415}
416
Joe Tsai61968ce2019-04-01 12:59:24 -0700417func (x *Nested) GetSString() string {
418 if x != nil {
419 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800420 }
421 return ""
422}
423
Joe Tsai61968ce2019-04-01 12:59:24 -0700424func (x *Nested) GetSNested() *Nested {
425 if x != nil {
426 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800427 }
428 return nil
429}
430
431// Message contains oneof field.
432type Oneofs struct {
Joe Tsai38b61962019-08-05 13:09:30 -0700433 state protoimpl.MessageState
434 sizeCache protoimpl.SizeCache
435 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700436
437 // Types that are assignable to Union:
Herbie Ong8170d692019-02-13 14:13:21 -0800438 // *Oneofs_OneofEnum
439 // *Oneofs_OneofString
440 // *Oneofs_OneofNested
Joe Tsai38b61962019-08-05 13:09:30 -0700441 Union isOneofs_Union `protobuf_oneof:"union"`
Herbie Ong8170d692019-02-13 14:13:21 -0800442}
443
Joe Tsai61968ce2019-04-01 12:59:24 -0700444func (x *Oneofs) Reset() {
445 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800446}
Joe Tsai61968ce2019-04-01 12:59:24 -0700447
448func (x *Oneofs) String() string {
449 return protoimpl.X.MessageStringOf(x)
450}
451
452func (*Oneofs) ProtoMessage() {}
453
454func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700455 mi := &file_pb3_test_proto_msgTypes[4]
456 if protoimpl.UnsafeEnabled && x != nil {
457 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
458 if ms.LoadMessageInfo() == nil {
459 ms.StoreMessageInfo(mi)
460 }
461 return ms
462 }
463 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700464}
Joe Tsai8e506a82019-03-16 00:05:34 -0700465
Joe Tsai43761bd2019-07-17 18:06:47 -0700466// Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800467func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700468 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800469}
470
Herbie Ong8170d692019-02-13 14:13:21 -0800471func (m *Oneofs) GetUnion() isOneofs_Union {
472 if m != nil {
473 return m.Union
474 }
475 return nil
476}
477
Joe Tsai61968ce2019-04-01 12:59:24 -0700478func (x *Oneofs) GetOneofEnum() Enum {
479 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800480 return x.OneofEnum
481 }
482 return Enum_ZERO
483}
484
Joe Tsai61968ce2019-04-01 12:59:24 -0700485func (x *Oneofs) GetOneofString() string {
486 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800487 return x.OneofString
488 }
489 return ""
490}
491
Joe Tsai61968ce2019-04-01 12:59:24 -0700492func (x *Oneofs) GetOneofNested() *Nested {
493 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800494 return x.OneofNested
495 }
496 return nil
497}
498
Joe Tsai872b5002019-04-08 14:03:15 -0700499type isOneofs_Union interface {
500 isOneofs_Union()
501}
502
503type Oneofs_OneofEnum struct {
504 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
505}
506
507type Oneofs_OneofString struct {
508 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
509}
510
511type Oneofs_OneofNested struct {
512 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
513}
514
515func (*Oneofs_OneofEnum) isOneofs_Union() {}
516
517func (*Oneofs_OneofString) isOneofs_Union() {}
518
519func (*Oneofs_OneofNested) isOneofs_Union() {}
520
Herbie Ong8170d692019-02-13 14:13:21 -0800521// Message contains map fields.
522type Maps struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700523 state protoimpl.MessageState
Joe Tsai38b61962019-08-05 13:09:30 -0700524 sizeCache protoimpl.SizeCache
525 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700526
527 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"`
528 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"`
529 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"`
530 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"`
531 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"`
Herbie Ong8170d692019-02-13 14:13:21 -0800532}
533
Joe Tsai61968ce2019-04-01 12:59:24 -0700534func (x *Maps) Reset() {
535 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800536}
Joe Tsai61968ce2019-04-01 12:59:24 -0700537
538func (x *Maps) String() string {
539 return protoimpl.X.MessageStringOf(x)
540}
541
542func (*Maps) ProtoMessage() {}
543
544func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700545 mi := &file_pb3_test_proto_msgTypes[5]
546 if protoimpl.UnsafeEnabled && x != nil {
547 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
548 if ms.LoadMessageInfo() == nil {
549 ms.StoreMessageInfo(mi)
550 }
551 return ms
552 }
553 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700554}
Joe Tsai8e506a82019-03-16 00:05:34 -0700555
Joe Tsai43761bd2019-07-17 18:06:47 -0700556// Deprecated: Use Maps.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800557func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700558 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800559}
560
Joe Tsai61968ce2019-04-01 12:59:24 -0700561func (x *Maps) GetInt32ToStr() map[int32]string {
562 if x != nil {
563 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800564 }
565 return nil
566}
567
Joe Tsai61968ce2019-04-01 12:59:24 -0700568func (x *Maps) GetBoolToUint32() map[bool]uint32 {
569 if x != nil {
570 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800571 }
572 return nil
573}
574
Joe Tsai61968ce2019-04-01 12:59:24 -0700575func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
576 if x != nil {
577 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800578 }
579 return nil
580}
581
Joe Tsai61968ce2019-04-01 12:59:24 -0700582func (x *Maps) GetStrToNested() map[string]*Nested {
583 if x != nil {
584 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800585 }
586 return nil
587}
588
Joe Tsai61968ce2019-04-01 12:59:24 -0700589func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
590 if x != nil {
591 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800592 }
593 return nil
594}
595
Herbie Ong7b828bc2019-02-08 19:56:24 -0800596// Message for testing json_name option.
597type JSONNames struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700598 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700599 sizeCache protoimpl.SizeCache
600 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700601
602 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800603}
604
Joe Tsai61968ce2019-04-01 12:59:24 -0700605func (x *JSONNames) Reset() {
606 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800607}
Joe Tsai61968ce2019-04-01 12:59:24 -0700608
609func (x *JSONNames) String() string {
610 return protoimpl.X.MessageStringOf(x)
611}
612
613func (*JSONNames) ProtoMessage() {}
614
615func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700616 mi := &file_pb3_test_proto_msgTypes[6]
617 if protoimpl.UnsafeEnabled && x != nil {
618 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
619 if ms.LoadMessageInfo() == nil {
620 ms.StoreMessageInfo(mi)
621 }
622 return ms
623 }
624 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700625}
Joe Tsai8e506a82019-03-16 00:05:34 -0700626
Joe Tsai43761bd2019-07-17 18:06:47 -0700627// Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800628func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700629 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800630}
631
Joe Tsai61968ce2019-04-01 12:59:24 -0700632func (x *JSONNames) GetSString() string {
633 if x != nil {
634 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800635 }
636 return ""
637}
638
Joe Tsai5d72cc22019-03-28 01:13:26 -0700639var File_pb3_test_proto protoreflect.FileDescriptor
640
Joe Tsai7ca70982019-04-15 13:57:56 -0700641var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800642 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
643 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
644 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
645 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
646 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
647 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
648 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
649 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
650 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
651 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
652 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
653 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
654 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
655 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
656 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
657 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
658 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
659 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
660 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
661 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
662 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
663 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
664 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
665 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
666 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
667 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
668 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
669 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
670 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
671 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
672 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
673 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
674 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
675 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
676 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
677 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
678 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
679 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
680 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
681 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
682 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
683 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
684 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
685 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
686 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
687 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
688 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
689 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
690 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
691 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
692 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
693 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
694 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
695 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
696 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
697 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
698 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
699 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
700 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
701 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
702 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
703 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
704 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
705 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
706 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
707 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
708 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
709 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
710 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
711 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
712 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
713 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
714 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
715 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
716 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
717 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
718 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
719 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
720 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
721 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
722 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
723 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
724 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
725 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
726 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
727 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
728 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
729 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
730 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
731 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
732 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
733 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
734 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
735 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
736 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
737 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
738 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
739 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
740 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
741 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
742 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
743 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700744 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
745 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
746 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
747 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
748 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800749}
750
Joe Tsai5d72cc22019-03-28 01:13:26 -0700751var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700752 file_pb3_test_proto_rawDescOnce sync.Once
753 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700754)
Herbie Ong8170d692019-02-13 14:13:21 -0800755
Joe Tsai7ca70982019-04-15 13:57:56 -0700756func file_pb3_test_proto_rawDescGZIP() []byte {
757 file_pb3_test_proto_rawDescOnce.Do(func() {
758 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700759 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700760 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700761}
Herbie Ong8170d692019-02-13 14:13:21 -0800762
Joe Tsaid8881392019-06-06 13:01:53 -0700763var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400764var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700765var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800766 (Enum)(0), // 0: pb3.Enum
767 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
768 (*Scalars)(nil), // 2: pb3.Scalars
769 (*Enums)(nil), // 3: pb3.Enums
770 (*Nests)(nil), // 4: pb3.Nests
771 (*Nested)(nil), // 5: pb3.Nested
772 (*Oneofs)(nil), // 6: pb3.Oneofs
773 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800774 (*JSONNames)(nil), // 8: pb3.JSONNames
775 nil, // 9: pb3.Maps.Int32ToStrEntry
776 nil, // 10: pb3.Maps.BoolToUint32Entry
777 nil, // 11: pb3.Maps.Uint64ToEnumEntry
778 nil, // 12: pb3.Maps.StrToNestedEntry
779 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800780}
Joe Tsai7ca70982019-04-15 13:57:56 -0700781var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800782 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
783 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
784 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
785 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
786 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
787 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800788 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
789 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
790 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
791 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
792 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800793 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
794 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
795 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
Joe Tsaid8881392019-06-06 13:01:53 -0700796 14, // starting offset of method output_type sub-list
797 14, // starting offset of method input_type sub-list
798 14, // starting offset of extension type_name sub-list
799 14, // starting offset of extension extendee sub-list
800 0, // starting offset of field type_name sub-list
Herbie Ong8170d692019-02-13 14:13:21 -0800801}
802
Joe Tsai7ca70982019-04-15 13:57:56 -0700803func init() { file_pb3_test_proto_init() }
804func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800805 if File_pb3_test_proto != nil {
806 return
807 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700808 if !protoimpl.UnsafeEnabled {
809 file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
810 switch v := v.(*Scalars); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700811 case 0:
812 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700813 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700814 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700815 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700816 return &v.unknownFields
817 default:
818 return nil
819 }
820 }
821 file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
822 switch v := v.(*Enums); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700823 case 0:
824 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700825 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700826 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700827 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700828 return &v.unknownFields
829 default:
830 return nil
831 }
832 }
833 file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
834 switch v := v.(*Nests); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700835 case 0:
836 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700837 case 1:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700838 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700839 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700840 return &v.unknownFields
841 default:
842 return nil
843 }
844 }
Joe Tsai82760ce2019-06-20 03:09:57 -0700845 file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
846 switch v := v.(*Nested); i {
847 case 0:
848 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700849 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700850 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700851 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700852 return &v.unknownFields
853 default:
854 return nil
855 }
856 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700857 file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
858 switch v := v.(*Oneofs); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700859 case 0:
860 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700861 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700862 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700863 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700864 return &v.unknownFields
865 default:
866 return nil
867 }
868 }
869 file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
870 switch v := v.(*Maps); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700871 case 0:
872 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700873 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700874 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700875 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700876 return &v.unknownFields
877 default:
878 return nil
879 }
880 }
881 file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
882 switch v := v.(*JSONNames); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700883 case 0:
884 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700885 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700886 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700887 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700888 return &v.unknownFields
889 default:
890 return nil
891 }
892 }
893 }
Joe Tsai09912272019-07-08 10:38:11 -0700894 file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
895 (*Oneofs_OneofEnum)(nil),
896 (*Oneofs_OneofString)(nil),
897 (*Oneofs_OneofNested)(nil),
898 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700899 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700900 out := protoimpl.TypeBuilder{
901 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700902 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700903 RawDescriptor: file_pb3_test_proto_rawDesc,
904 NumEnums: 2,
905 NumMessages: 12,
906 NumExtensions: 0,
907 NumServices: 0,
908 },
909 GoTypes: file_pb3_test_proto_goTypes,
910 DependencyIndexes: file_pb3_test_proto_depIdxs,
911 MessageInfos: file_pb3_test_proto_msgTypes,
912 }.Build()
913 File_pb3_test_proto = out.File
914 file_pb3_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700915 file_pb3_test_proto_rawDesc = nil
916 file_pb3_test_proto_goTypes = nil
917 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800918}