blob: 533cd3cbfc299ca9e0b18af1062273321b8e6ade [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.
Damien Neil3c5fb5f2020-02-04 15:03:30 -08008// source: internal/testprotos/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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080047 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080051 return &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080070 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800100 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800104 return &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800123 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800153 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800157 return &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800176 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800189 mi := &file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800202 mi := &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800215 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800236 mi := &file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800249 mi := &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800262 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800274 mi := &file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800287 mi := &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800300 return file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800314 mi := &file_internal_testprotos_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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800327 mi := &file_internal_testprotos_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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800340 return file_internal_testprotos_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
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800350var file_internal_testprotos_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",
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800357 Filename: "internal/testprotos/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",
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800365 Filename: "internal/testprotos/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",
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800373 Filename: "internal/testprotos/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",
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800381 Filename: "internal/testprotos/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",
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800389 Filename: "internal/testprotos/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",
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800397 Filename: "internal/testprotos/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;
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800404 E_StringField = &file_internal_testprotos_registry_test_proto_extTypes[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700405 // optional testprotos.Enum1 enum_field = 12;
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800406 E_EnumField = &file_internal_testprotos_registry_test_proto_extTypes[1]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700407 // optional testprotos.Message2 message_field = 13;
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800408 E_MessageField = &file_internal_testprotos_registry_test_proto_extTypes[2]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700409 // optional testprotos.Message2 message_field = 21;
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800410 E_Message4_MessageField = &file_internal_testprotos_registry_test_proto_extTypes[3]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700411 // optional testprotos.Enum1 enum_field = 22;
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800412 E_Message4_EnumField = &file_internal_testprotos_registry_test_proto_extTypes[4]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700413 // optional string string_field = 23;
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800414 E_Message4_StringField = &file_internal_testprotos_registry_test_proto_extTypes[5]
Joe Tsaiafb455e2019-03-14 16:08:22 -0700415)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700416
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800417var File_internal_testprotos_registry_test_proto protoreflect.FileDescriptor
Joe Tsai5d72cc22019-03-28 01:13:26 -0700418
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800419var file_internal_testprotos_registry_test_proto_rawDesc = []byte{
420 0x0a, 0x27, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
421 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x74,
422 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70,
423 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
424 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, 0x0a, 0x08, 0x4d,
425 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
426 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x34,
427 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1e,
428 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32,
429 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
430 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
431 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74,
Joe Tsai94e730b2020-01-10 23:31:25 -0800432 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800433 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64,
434 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14,
435 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73,
436 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73,
437 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, 0x09, 0x65,
438 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69,
439 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70,
440 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x17,
441 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c,
442 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e,
443 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, 0x07, 0x0a, 0x03,
444 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x33, 0x12, 0x06,
445 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
446 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f,
447 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0b, 0x20, 0x01,
448 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a,
449 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e,
450 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
451 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74,
452 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, 0x09, 0x65, 0x6e,
453 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61,
454 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70,
455 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0d,
456 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
457 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73,
458 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67,
459 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72,
460 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
461 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73,
462 0x74, 0x72, 0x79,
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800463}
464
Joe Tsai5d72cc22019-03-28 01:13:26 -0700465var (
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800466 file_internal_testprotos_registry_test_proto_rawDescOnce sync.Once
467 file_internal_testprotos_registry_test_proto_rawDescData = file_internal_testprotos_registry_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700468)
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800469
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800470func file_internal_testprotos_registry_test_proto_rawDescGZIP() []byte {
471 file_internal_testprotos_registry_test_proto_rawDescOnce.Do(func() {
472 file_internal_testprotos_registry_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_registry_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700473 })
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800474 return file_internal_testprotos_registry_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700475}
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800476
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800477var file_internal_testprotos_registry_test_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
478var file_internal_testprotos_registry_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
479var file_internal_testprotos_registry_test_proto_goTypes = []interface{}{
Damien Neil8012b442019-01-18 09:32:24 -0800480 (Enum1)(0), // 0: testprotos.Enum1
481 (Enum2)(0), // 1: testprotos.Enum2
482 (Enum3)(0), // 2: testprotos.Enum3
483 (*Message1)(nil), // 3: testprotos.Message1
484 (*Message2)(nil), // 4: testprotos.Message2
485 (*Message3)(nil), // 5: testprotos.Message3
486 (*Message4)(nil), // 6: testprotos.Message4
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800487}
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800488var file_internal_testprotos_registry_test_proto_depIdxs = []int32{
Joe Tsai73288392019-08-14 11:55:31 -0700489 3, // 0: testprotos.string_field:extendee -> testprotos.Message1
490 3, // 1: testprotos.enum_field:extendee -> testprotos.Message1
491 3, // 2: testprotos.message_field:extendee -> testprotos.Message1
492 3, // 3: testprotos.Message4.message_field:extendee -> testprotos.Message1
493 3, // 4: testprotos.Message4.enum_field:extendee -> testprotos.Message1
494 3, // 5: testprotos.Message4.string_field:extendee -> testprotos.Message1
495 0, // 6: testprotos.enum_field:type_name -> testprotos.Enum1
496 4, // 7: testprotos.message_field:type_name -> testprotos.Message2
497 4, // 8: testprotos.Message4.message_field:type_name -> testprotos.Message2
498 0, // 9: testprotos.Message4.enum_field:type_name -> testprotos.Enum1
499 10, // [10:10] is the sub-list for method output_type
500 10, // [10:10] is the sub-list for method input_type
501 6, // [6:10] is the sub-list for extension type_name
502 0, // [0:6] is the sub-list for extension extendee
503 0, // [0:0] is the sub-list for field type_name
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800504}
Damien Neil8012b442019-01-18 09:32:24 -0800505
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800506func init() { file_internal_testprotos_registry_test_proto_init() }
507func file_internal_testprotos_registry_test_proto_init() {
508 if File_internal_testprotos_registry_test_proto != nil {
Damien Neil0fc22452019-03-08 17:18:11 -0800509 return
510 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700511 if !protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800512 file_internal_testprotos_registry_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700513 switch v := v.(*Message1); i {
514 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700515 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700516 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700517 return &v.sizeCache
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700518 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700519 return &v.unknownFields
520 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700521 return &v.extensionFields
522 default:
523 return nil
524 }
525 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800526 file_internal_testprotos_registry_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700527 switch v := v.(*Message2); i {
528 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700529 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700530 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700531 return &v.sizeCache
532 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700533 return &v.unknownFields
534 default:
535 return nil
536 }
537 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800538 file_internal_testprotos_registry_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700539 switch v := v.(*Message3); i {
540 case 0:
Joe Tsai82760ce2019-06-20 03:09:57 -0700541 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700542 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700543 return &v.sizeCache
544 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700545 return &v.unknownFields
546 default:
547 return nil
548 }
549 }
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800550 file_internal_testprotos_registry_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700551 switch v := v.(*Message4); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700552 case 0:
553 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700554 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700555 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700556 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700557 return &v.unknownFields
558 default:
559 return nil
560 }
561 }
562 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700563 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700564 out := protoimpl.TypeBuilder{
565 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700566 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800567 RawDescriptor: file_internal_testprotos_registry_test_proto_rawDesc,
Joe Tsaid8881392019-06-06 13:01:53 -0700568 NumEnums: 3,
569 NumMessages: 4,
570 NumExtensions: 6,
571 NumServices: 0,
572 },
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800573 GoTypes: file_internal_testprotos_registry_test_proto_goTypes,
574 DependencyIndexes: file_internal_testprotos_registry_test_proto_depIdxs,
575 EnumInfos: file_internal_testprotos_registry_test_proto_enumTypes,
576 MessageInfos: file_internal_testprotos_registry_test_proto_msgTypes,
577 ExtensionInfos: file_internal_testprotos_registry_test_proto_extTypes,
Joe Tsaid8881392019-06-06 13:01:53 -0700578 }.Build()
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800579 File_internal_testprotos_registry_test_proto = out.File
580 file_internal_testprotos_registry_test_proto_rawDesc = nil
581 file_internal_testprotos_registry_test_proto_goTypes = nil
582 file_internal_testprotos_registry_test_proto_depIdxs = nil
Herbie Ong6e67a1d2018-12-26 15:57:16 -0800583}