blob: 5e4ad66934baf6310f692e6393df4eba1abc0e70 [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// Different proto type definitions for testing the Types registry.
6
Herbie Ong6e67a1d2018-12-26 15:57:16 -08007// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai94e730b2020-01-10 23:31:25 -08008// source: registry/test.proto
Herbie Ong6e67a1d2018-12-26 15:57:16 -08009
Joe Tsai94e730b2020-01-10 23:31:25 -080010package registry
Herbie Ong6e67a1d2018-12-26 15:57:16 -080011
12import (
Damien Neile89e6242019-05-13 23:55:40 -070013 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Damien Neile89e6242019-05-13 23:55:40 -070014 protoiface "google.golang.org/protobuf/runtime/protoiface"
15 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 Ong6e67a1d2018-12-26 15:57:16 -080018)
19
Herbie Ong6e67a1d2018-12-26 15:57:16 -080020type Enum1 int32
21
22const (
23 Enum1_ONE Enum1 = 1
24)
25
Joe Tsai9b8a4332019-08-05 18:38:48 -070026// Enum value maps for Enum1.
27var (
28 Enum1_name = map[int32]string{
29 1: "ONE",
30 }
31 Enum1_value = map[string]int32{
32 "ONE": 1,
33 }
34)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080035
36func (x Enum1) Enum() *Enum1 {
Joe Tsai09b5b462019-04-10 15:29:01 -070037 p := new(Enum1)
38 *p = x
39 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080040}
41
42func (x Enum1) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070043 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080044}
45
Joe Tsai0fc49f82019-05-01 12:29:25 -070046func (Enum1) Descriptor() protoreflect.EnumDescriptor {
Joe Tsai94e730b2020-01-10 23:31:25 -080047 return file_registry_test_proto_enumTypes[0].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -070048}
49
Joe Tsaid4211502019-07-02 14:58:02 -070050func (Enum1) Type() protoreflect.EnumType {
Joe Tsai94e730b2020-01-10 23:31:25 -080051 return &file_registry_test_proto_enumTypes[0]
Joe Tsaid4211502019-07-02 14:58:02 -070052}
53
Joe Tsai61968ce2019-04-01 12:59:24 -070054func (x Enum1) Number() protoreflect.EnumNumber {
55 return protoreflect.EnumNumber(x)
56}
57
Joe Tsai8e506a82019-03-16 00:05:34 -070058// Deprecated: Do not use.
59func (x *Enum1) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -070060 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080061 if err != nil {
62 return err
63 }
Joe Tsai8e506a82019-03-16 00:05:34 -070064 *x = Enum1(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080065 return nil
66}
67
Joe Tsai43761bd2019-07-17 18:06:47 -070068// Deprecated: Use Enum1.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -080069func (Enum1) EnumDescriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -080070 return file_registry_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -080071}
72
73type Enum2 int32
74
75const (
76 Enum2_UNO Enum2 = 1
77)
78
Joe Tsai9b8a4332019-08-05 18:38:48 -070079// Enum value maps for Enum2.
80var (
81 Enum2_name = map[int32]string{
82 1: "UNO",
83 }
84 Enum2_value = map[string]int32{
85 "UNO": 1,
86 }
87)
Herbie Ong6e67a1d2018-12-26 15:57:16 -080088
89func (x Enum2) Enum() *Enum2 {
Joe Tsai09b5b462019-04-10 15:29:01 -070090 p := new(Enum2)
91 *p = x
92 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -080093}
94
95func (x Enum2) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070096 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -080097}
98
Joe Tsai0fc49f82019-05-01 12:29:25 -070099func (Enum2) Descriptor() protoreflect.EnumDescriptor {
Joe Tsai94e730b2020-01-10 23:31:25 -0800100 return file_registry_test_proto_enumTypes[1].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -0700101}
102
Joe Tsaid4211502019-07-02 14:58:02 -0700103func (Enum2) Type() protoreflect.EnumType {
Joe Tsai94e730b2020-01-10 23:31:25 -0800104 return &file_registry_test_proto_enumTypes[1]
Joe Tsaid4211502019-07-02 14:58:02 -0700105}
106
Joe Tsai61968ce2019-04-01 12:59:24 -0700107func (x Enum2) Number() protoreflect.EnumNumber {
108 return protoreflect.EnumNumber(x)
109}
110
Joe Tsai8e506a82019-03-16 00:05:34 -0700111// Deprecated: Do not use.
112func (x *Enum2) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700113 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800114 if err != nil {
115 return err
116 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700117 *x = Enum2(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800118 return nil
119}
120
Joe Tsai43761bd2019-07-17 18:06:47 -0700121// Deprecated: Use Enum2.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800122func (Enum2) EnumDescriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -0800123 return file_registry_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800124}
125
126type Enum3 int32
127
128const (
129 Enum3_YI Enum3 = 1
130)
131
Joe Tsai9b8a4332019-08-05 18:38:48 -0700132// Enum value maps for Enum3.
133var (
134 Enum3_name = map[int32]string{
135 1: "YI",
136 }
137 Enum3_value = map[string]int32{
138 "YI": 1,
139 }
140)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800141
142func (x Enum3) Enum() *Enum3 {
Joe Tsai09b5b462019-04-10 15:29:01 -0700143 p := new(Enum3)
144 *p = x
145 return p
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800146}
147
148func (x Enum3) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700149 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800150}
151
Joe Tsai0fc49f82019-05-01 12:29:25 -0700152func (Enum3) Descriptor() protoreflect.EnumDescriptor {
Joe Tsai94e730b2020-01-10 23:31:25 -0800153 return file_registry_test_proto_enumTypes[2].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -0700154}
155
Joe Tsaid4211502019-07-02 14:58:02 -0700156func (Enum3) Type() protoreflect.EnumType {
Joe Tsai94e730b2020-01-10 23:31:25 -0800157 return &file_registry_test_proto_enumTypes[2]
Joe Tsaid4211502019-07-02 14:58:02 -0700158}
159
Joe Tsai61968ce2019-04-01 12:59:24 -0700160func (x Enum3) Number() protoreflect.EnumNumber {
161 return protoreflect.EnumNumber(x)
162}
163
Joe Tsai8e506a82019-03-16 00:05:34 -0700164// Deprecated: Do not use.
165func (x *Enum3) UnmarshalJSON(b []byte) error {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700166 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800167 if err != nil {
168 return err
169 }
Joe Tsai8e506a82019-03-16 00:05:34 -0700170 *x = Enum3(num)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800171 return nil
172}
173
Joe Tsai43761bd2019-07-17 18:06:47 -0700174// Deprecated: Use Enum3.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800175func (Enum3) EnumDescriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -0800176 return file_registry_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800177}
178
179type Message1 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700180 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700181 sizeCache protoimpl.SizeCache
182 unknownFields protoimpl.UnknownFields
Joe Tsai6ceeaab2019-07-08 12:31:21 -0700183 extensionFields protoimpl.ExtensionFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800184}
185
Joe Tsai61968ce2019-04-01 12:59:24 -0700186func (x *Message1) Reset() {
187 *x = Message1{}
Joe Tsaiae313d42019-10-16 10:25:54 -0700188 if protoimpl.UnsafeEnabled {
Joe Tsai94e730b2020-01-10 23:31:25 -0800189 mi := &file_registry_test_proto_msgTypes[0]
Joe Tsaiae313d42019-10-16 10:25:54 -0700190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
191 ms.StoreMessageInfo(mi)
192 }
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800193}
Joe Tsai61968ce2019-04-01 12:59:24 -0700194
195func (x *Message1) String() string {
196 return protoimpl.X.MessageStringOf(x)
197}
198
199func (*Message1) ProtoMessage() {}
200
201func (x *Message1) ProtoReflect() protoreflect.Message {
Joe Tsai94e730b2020-01-10 23:31:25 -0800202 mi := &file_registry_test_proto_msgTypes[0]
Joe Tsai82760ce2019-06-20 03:09:57 -0700203 if protoimpl.UnsafeEnabled && x != nil {
204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
205 if ms.LoadMessageInfo() == nil {
206 ms.StoreMessageInfo(mi)
207 }
208 return ms
209 }
210 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700211}
Joe Tsai8e506a82019-03-16 00:05:34 -0700212
Joe Tsai43761bd2019-07-17 18:06:47 -0700213// Deprecated: Use Message1.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800214func (*Message1) Descriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -0800215 return file_registry_test_proto_rawDescGZIP(), []int{0}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800216}
217
Joe Tsai4fddeba2019-03-20 18:29:32 -0700218var extRange_Message1 = []protoiface.ExtensionRangeV1{
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800219 {Start: 10, End: 536870911},
220}
221
Joe Tsai43761bd2019-07-17 18:06:47 -0700222// Deprecated: Use Message1.ProtoReflect.Descriptor.ExtensionRanges instead.
Joe Tsai4fddeba2019-03-20 18:29:32 -0700223func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800224 return extRange_Message1
225}
226
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800227type Message2 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700228 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700229 sizeCache protoimpl.SizeCache
230 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800231}
232
Joe Tsai61968ce2019-04-01 12:59:24 -0700233func (x *Message2) Reset() {
234 *x = Message2{}
Joe Tsaiae313d42019-10-16 10:25:54 -0700235 if protoimpl.UnsafeEnabled {
Joe Tsai94e730b2020-01-10 23:31:25 -0800236 mi := &file_registry_test_proto_msgTypes[1]
Joe Tsaiae313d42019-10-16 10:25:54 -0700237 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
238 ms.StoreMessageInfo(mi)
239 }
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800240}
Joe Tsai61968ce2019-04-01 12:59:24 -0700241
242func (x *Message2) String() string {
243 return protoimpl.X.MessageStringOf(x)
244}
245
246func (*Message2) ProtoMessage() {}
247
248func (x *Message2) ProtoReflect() protoreflect.Message {
Joe Tsai94e730b2020-01-10 23:31:25 -0800249 mi := &file_registry_test_proto_msgTypes[1]
Joe Tsai82760ce2019-06-20 03:09:57 -0700250 if protoimpl.UnsafeEnabled && x != nil {
251 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
252 if ms.LoadMessageInfo() == nil {
253 ms.StoreMessageInfo(mi)
254 }
255 return ms
256 }
257 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700258}
Joe Tsai8e506a82019-03-16 00:05:34 -0700259
Joe Tsai43761bd2019-07-17 18:06:47 -0700260// Deprecated: Use Message2.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800261func (*Message2) Descriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -0800262 return file_registry_test_proto_rawDescGZIP(), []int{1}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800263}
264
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800265type Message3 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700266 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700267 sizeCache protoimpl.SizeCache
268 unknownFields protoimpl.UnknownFields
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800269}
270
Joe Tsai61968ce2019-04-01 12:59:24 -0700271func (x *Message3) Reset() {
272 *x = Message3{}
Joe Tsaiae313d42019-10-16 10:25:54 -0700273 if protoimpl.UnsafeEnabled {
Joe Tsai94e730b2020-01-10 23:31:25 -0800274 mi := &file_registry_test_proto_msgTypes[2]
Joe Tsaiae313d42019-10-16 10:25:54 -0700275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
276 ms.StoreMessageInfo(mi)
277 }
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800278}
Joe Tsai61968ce2019-04-01 12:59:24 -0700279
280func (x *Message3) String() string {
281 return protoimpl.X.MessageStringOf(x)
282}
283
284func (*Message3) ProtoMessage() {}
285
286func (x *Message3) ProtoReflect() protoreflect.Message {
Joe Tsai94e730b2020-01-10 23:31:25 -0800287 mi := &file_registry_test_proto_msgTypes[2]
Joe Tsai82760ce2019-06-20 03:09:57 -0700288 if protoimpl.UnsafeEnabled && x != nil {
289 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
290 if ms.LoadMessageInfo() == nil {
291 ms.StoreMessageInfo(mi)
292 }
293 return ms
294 }
295 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700296}
Joe Tsai8e506a82019-03-16 00:05:34 -0700297
Joe Tsai43761bd2019-07-17 18:06:47 -0700298// Deprecated: Use Message3.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800299func (*Message3) Descriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -0800300 return file_registry_test_proto_rawDescGZIP(), []int{2}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800301}
302
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800303type Message4 struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700304 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700305 sizeCache protoimpl.SizeCache
306 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700307
308 BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800309}
310
Joe Tsai61968ce2019-04-01 12:59:24 -0700311func (x *Message4) Reset() {
312 *x = Message4{}
Joe Tsaiae313d42019-10-16 10:25:54 -0700313 if protoimpl.UnsafeEnabled {
Joe Tsai94e730b2020-01-10 23:31:25 -0800314 mi := &file_registry_test_proto_msgTypes[3]
Joe Tsaiae313d42019-10-16 10:25:54 -0700315 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
316 ms.StoreMessageInfo(mi)
317 }
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800318}
Joe Tsai61968ce2019-04-01 12:59:24 -0700319
320func (x *Message4) String() string {
321 return protoimpl.X.MessageStringOf(x)
322}
323
324func (*Message4) ProtoMessage() {}
325
326func (x *Message4) ProtoReflect() protoreflect.Message {
Joe Tsai94e730b2020-01-10 23:31:25 -0800327 mi := &file_registry_test_proto_msgTypes[3]
Joe Tsai82760ce2019-06-20 03:09:57 -0700328 if protoimpl.UnsafeEnabled && x != nil {
329 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
330 if ms.LoadMessageInfo() == nil {
331 ms.StoreMessageInfo(mi)
332 }
333 return ms
334 }
335 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700336}
Joe Tsai8e506a82019-03-16 00:05:34 -0700337
Joe Tsai43761bd2019-07-17 18:06:47 -0700338// Deprecated: Use Message4.ProtoReflect.Descriptor instead.
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800339func (*Message4) Descriptor() ([]byte, []int) {
Joe Tsai94e730b2020-01-10 23:31:25 -0800340 return file_registry_test_proto_rawDescGZIP(), []int{3}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800341}
342
Joe Tsai61968ce2019-04-01 12:59:24 -0700343func (x *Message4) GetBoolField() bool {
344 if x != nil && x.BoolField != nil {
345 return *x.BoolField
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800346 }
347 return false
348}
349
Joe Tsai94e730b2020-01-10 23:31:25 -0800350var file_registry_test_proto_extTypes = []protoimpl.ExtensionInfo{
Joe Tsaiafb455e2019-03-14 16:08:22 -0700351 {
352 ExtendedType: (*Message1)(nil),
353 ExtensionType: (*string)(nil),
354 Field: 11,
355 Name: "testprotos.string_field",
356 Tag: "bytes,11,opt,name=string_field",
Joe Tsai94e730b2020-01-10 23:31:25 -0800357 Filename: "registry/test.proto",
Joe Tsaiafb455e2019-03-14 16:08:22 -0700358 },
359 {
360 ExtendedType: (*Message1)(nil),
361 ExtensionType: (*Enum1)(nil),
362 Field: 12,
363 Name: "testprotos.enum_field",
364 Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
Joe Tsai94e730b2020-01-10 23:31:25 -0800365 Filename: "registry/test.proto",
Joe Tsaiafb455e2019-03-14 16:08:22 -0700366 },
367 {
368 ExtendedType: (*Message1)(nil),
369 ExtensionType: (*Message2)(nil),
370 Field: 13,
371 Name: "testprotos.message_field",
372 Tag: "bytes,13,opt,name=message_field",
Joe Tsai94e730b2020-01-10 23:31:25 -0800373 Filename: "registry/test.proto",
Joe Tsaiafb455e2019-03-14 16:08:22 -0700374 },
375 {
376 ExtendedType: (*Message1)(nil),
377 ExtensionType: (*Message2)(nil),
378 Field: 21,
379 Name: "testprotos.Message4.message_field",
380 Tag: "bytes,21,opt,name=message_field",
Joe Tsai94e730b2020-01-10 23:31:25 -0800381 Filename: "registry/test.proto",
Joe Tsaiafb455e2019-03-14 16:08:22 -0700382 },
383 {
384 ExtendedType: (*Message1)(nil),
385 ExtensionType: (*Enum1)(nil),
386 Field: 22,
387 Name: "testprotos.Message4.enum_field",
388 Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
Joe Tsai94e730b2020-01-10 23:31:25 -0800389 Filename: "registry/test.proto",
Joe Tsaiafb455e2019-03-14 16:08:22 -0700390 },
391 {
392 ExtendedType: (*Message1)(nil),
393 ExtensionType: (*string)(nil),
394 Field: 23,
395 Name: "testprotos.Message4.string_field",
396 Tag: "bytes,23,opt,name=string_field",
Joe Tsai94e730b2020-01-10 23:31:25 -0800397 Filename: "registry/test.proto",
Joe Tsaiafb455e2019-03-14 16:08:22 -0700398 },
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800399}
Joe Tsai4a7d6332019-08-06 16:45:11 -0700400
401// Extension fields to Message1.
Joe Tsaiafb455e2019-03-14 16:08:22 -0700402var (
Joe Tsai4a7d6332019-08-06 16:45:11 -0700403 // optional string string_field = 11;
Joe Tsai94e730b2020-01-10 23:31:25 -0800404 E_StringField = &file_registry_test_proto_extTypes[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700405 // optional testprotos.Enum1 enum_field = 12;
Joe Tsai94e730b2020-01-10 23:31:25 -0800406 E_EnumField = &file_registry_test_proto_extTypes[1]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700407 // optional testprotos.Message2 message_field = 13;
Joe Tsai94e730b2020-01-10 23:31:25 -0800408 E_MessageField = &file_registry_test_proto_extTypes[2]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700409 // optional testprotos.Message2 message_field = 21;
Joe Tsai94e730b2020-01-10 23:31:25 -0800410 E_Message4_MessageField = &file_registry_test_proto_extTypes[3]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700411 // optional testprotos.Enum1 enum_field = 22;
Joe Tsai94e730b2020-01-10 23:31:25 -0800412 E_Message4_EnumField = &file_registry_test_proto_extTypes[4]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700413 // optional string string_field = 23;
Joe Tsai94e730b2020-01-10 23:31:25 -0800414 E_Message4_StringField = &file_registry_test_proto_extTypes[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700415)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700416
Joe Tsai94e730b2020-01-10 23:31:25 -0800417var File_registry_test_proto protoreflect.FileDescriptor
Joe Tsai5d72cc22019-03-28 01:13:26 -0700418
Joe Tsai94e730b2020-01-10 23:31:25 -0800419var file_registry_test_proto_rawDesc = []byte{
420 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e,
421 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
422 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08,
423 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
424 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22,
425 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a,
426 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08,
427 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d,
428 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74,
429 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
430 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70,
431 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c,
432 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a,
433 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73,
434 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31,
435 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f,
436 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46,
437 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66,
438 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
439 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09,
440 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a,
441 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a,
442 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10,
443 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49,
444 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65,
445 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e,
446 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
447 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65,
448 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74,
Joe Tsai19058432019-02-27 21:46:29 -0800449 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18,
Joe Tsai94e730b2020-01-10 23:31:25 -0800450 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
451 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69,
452 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66,
453 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
454 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b,
455 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
456 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46,
457 0x69, 0x65, 0x6c, 0x64, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
458 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
459 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74,
460 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800461}
462
Joe Tsai5d72cc22019-03-28 01:13:26 -0700463var (
Joe Tsai94e730b2020-01-10 23:31:25 -0800464 file_registry_test_proto_rawDescOnce sync.Once
465 file_registry_test_proto_rawDescData = file_registry_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700466)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800467
Joe Tsai94e730b2020-01-10 23:31:25 -0800468func file_registry_test_proto_rawDescGZIP() []byte {
469 file_registry_test_proto_rawDescOnce.Do(func() {
470 file_registry_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700471 })
Joe Tsai94e730b2020-01-10 23:31:25 -0800472 return file_registry_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700473}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800474
Joe Tsai94e730b2020-01-10 23:31:25 -0800475var file_registry_test_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
476var file_registry_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
477var file_registry_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800478 (Enum1)(0), // 0: testprotos.Enum1
479 (Enum2)(0), // 1: testprotos.Enum2
480 (Enum3)(0), // 2: testprotos.Enum3
481 (*Message1)(nil), // 3: testprotos.Message1
482 (*Message2)(nil), // 4: testprotos.Message2
483 (*Message3)(nil), // 5: testprotos.Message3
484 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800485}
Joe Tsai94e730b2020-01-10 23:31:25 -0800486var file_registry_test_proto_depIdxs = []int32{
Joe Tsai73288392019-08-14 11:55:31 -0700487 3, // 0: testprotos.string_field:extendee -> testprotos.Message1
488 3, // 1: testprotos.enum_field:extendee -> testprotos.Message1
489 3, // 2: testprotos.message_field:extendee -> testprotos.Message1
490 3, // 3: testprotos.Message4.message_field:extendee -> testprotos.Message1
491 3, // 4: testprotos.Message4.enum_field:extendee -> testprotos.Message1
492 3, // 5: testprotos.Message4.string_field:extendee -> testprotos.Message1
493 0, // 6: testprotos.enum_field:type_name -> testprotos.Enum1
494 4, // 7: testprotos.message_field:type_name -> testprotos.Message2
495 4, // 8: testprotos.Message4.message_field:type_name -> testprotos.Message2
496 0, // 9: testprotos.Message4.enum_field:type_name -> testprotos.Enum1
497 10, // [10:10] is the sub-list for method output_type
498 10, // [10:10] is the sub-list for method input_type
499 6, // [6:10] is the sub-list for extension type_name
500 0, // [0:6] is the sub-list for extension extendee
501 0, // [0:0] is the sub-list for field type_name
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800502}
Damien Neil8012b442019-01-18 09:32:24 -0800503
Joe Tsai94e730b2020-01-10 23:31:25 -0800504func init() { file_registry_test_proto_init() }
505func file_registry_test_proto_init() {
506 if File_registry_test_proto != nil {
Damien Neil0fc22452019-03-08 17:18:11 -0800507 return
508 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700509 if !protoimpl.UnsafeEnabled {
Joe Tsai94e730b2020-01-10 23:31:25 -0800510 file_registry_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700511 switch v := v.(*Message1); i {
512 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700513 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700514 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700515 return &v.sizeCache
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700516 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700517 return &v.unknownFields
518 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700519 return &v.extensionFields
520 default:
521 return nil
522 }
523 }
Joe Tsai94e730b2020-01-10 23:31:25 -0800524 file_registry_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700525 switch v := v.(*Message2); i {
526 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700527 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700528 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700529 return &v.sizeCache
530 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700531 return &v.unknownFields
532 default:
533 return nil
534 }
535 }
Joe Tsai94e730b2020-01-10 23:31:25 -0800536 file_registry_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700537 switch v := v.(*Message3); i {
538 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700539 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700540 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700541 return &v.sizeCache
542 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700543 return &v.unknownFields
544 default:
545 return nil
546 }
547 }
Joe Tsai94e730b2020-01-10 23:31:25 -0800548 file_registry_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700549 switch v := v.(*Message4); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700550 case 0:
551 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700552 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700553 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700554 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700555 return &v.unknownFields
556 default:
557 return nil
558 }
559 }
560 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700561 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700562 out := protoimpl.TypeBuilder{
563 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700564 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsai94e730b2020-01-10 23:31:25 -0800565 RawDescriptor: file_registry_test_proto_rawDesc,
Joe Tsaid8881392019-06-06 13:01:53 -0700566 NumEnums: 3,
567 NumMessages: 4,
568 NumExtensions: 6,
569 NumServices: 0,
570 },
Joe Tsai94e730b2020-01-10 23:31:25 -0800571 GoTypes: file_registry_test_proto_goTypes,
572 DependencyIndexes: file_registry_test_proto_depIdxs,
573 EnumInfos: file_registry_test_proto_enumTypes,
574 MessageInfos: file_registry_test_proto_msgTypes,
575 ExtensionInfos: file_registry_test_proto_extTypes,
Joe Tsaid8881392019-06-06 13:01:53 -0700576 }.Build()
Joe Tsai94e730b2020-01-10 23:31:25 -0800577 File_registry_test_proto = out.File
578 file_registry_test_proto_rawDesc = nil
579 file_registry_test_proto_goTypes = nil
580 file_registry_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800581}