github.com/syumai/protoreflect@v1.7.1-0.20200810020253-2ac7e3b3a321/internal/testprotos/desc_test2.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.12.0 5 // source: desc_test2.proto 6 7 package testprotos 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 nopkg "github.com/syumai/protoreflect/internal/testprotos/nopkg" 12 pkg "github.com/syumai/protoreflect/internal/testprotos/pkg" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 type Frobnitz struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 A *TestMessage `protobuf:"bytes,1,opt,name=a" json:"a,omitempty"` 36 B *AnotherTestMessage `protobuf:"bytes,2,opt,name=b" json:"b,omitempty"` 37 // Types that are assignable to Abc: 38 // *Frobnitz_C1 39 // *Frobnitz_C2 40 Abc isFrobnitz_Abc `protobuf_oneof:"abc"` 41 D *TestMessage_NestedMessage `protobuf:"bytes,5,opt,name=d" json:"d,omitempty"` 42 E *TestMessage_NestedEnum `protobuf:"varint,6,opt,name=e,enum=testprotos.TestMessage_NestedEnum,def=2" json:"e,omitempty"` 43 // Deprecated: Do not use. 44 F []string `protobuf:"bytes,7,rep,name=f" json:"f,omitempty"` 45 // Types that are assignable to Def: 46 // *Frobnitz_G1 47 // *Frobnitz_G2 48 // *Frobnitz_G3 49 Def isFrobnitz_Def `protobuf_oneof:"def"` 50 } 51 52 // Default values for Frobnitz fields. 53 const ( 54 Default_Frobnitz_E = TestMessage_VALUE2 55 ) 56 57 func (x *Frobnitz) Reset() { 58 *x = Frobnitz{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_desc_test2_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64 } 65 66 func (x *Frobnitz) String() string { 67 return protoimpl.X.MessageStringOf(x) 68 } 69 70 func (*Frobnitz) ProtoMessage() {} 71 72 func (x *Frobnitz) ProtoReflect() protoreflect.Message { 73 mi := &file_desc_test2_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82 } 83 84 // Deprecated: Use Frobnitz.ProtoReflect.Descriptor instead. 85 func (*Frobnitz) Descriptor() ([]byte, []int) { 86 return file_desc_test2_proto_rawDescGZIP(), []int{0} 87 } 88 89 func (x *Frobnitz) GetA() *TestMessage { 90 if x != nil { 91 return x.A 92 } 93 return nil 94 } 95 96 func (x *Frobnitz) GetB() *AnotherTestMessage { 97 if x != nil { 98 return x.B 99 } 100 return nil 101 } 102 103 func (m *Frobnitz) GetAbc() isFrobnitz_Abc { 104 if m != nil { 105 return m.Abc 106 } 107 return nil 108 } 109 110 func (x *Frobnitz) GetC1() *TestMessage_NestedMessage { 111 if x, ok := x.GetAbc().(*Frobnitz_C1); ok { 112 return x.C1 113 } 114 return nil 115 } 116 117 func (x *Frobnitz) GetC2() TestMessage_NestedEnum { 118 if x, ok := x.GetAbc().(*Frobnitz_C2); ok { 119 return x.C2 120 } 121 return TestMessage_VALUE1 122 } 123 124 func (x *Frobnitz) GetD() *TestMessage_NestedMessage { 125 if x != nil { 126 return x.D 127 } 128 return nil 129 } 130 131 func (x *Frobnitz) GetE() TestMessage_NestedEnum { 132 if x != nil && x.E != nil { 133 return *x.E 134 } 135 return Default_Frobnitz_E 136 } 137 138 // Deprecated: Do not use. 139 func (x *Frobnitz) GetF() []string { 140 if x != nil { 141 return x.F 142 } 143 return nil 144 } 145 146 func (m *Frobnitz) GetDef() isFrobnitz_Def { 147 if m != nil { 148 return m.Def 149 } 150 return nil 151 } 152 153 func (x *Frobnitz) GetG1() int32 { 154 if x, ok := x.GetDef().(*Frobnitz_G1); ok { 155 return x.G1 156 } 157 return 0 158 } 159 160 func (x *Frobnitz) GetG2() int32 { 161 if x, ok := x.GetDef().(*Frobnitz_G2); ok { 162 return x.G2 163 } 164 return 0 165 } 166 167 func (x *Frobnitz) GetG3() uint32 { 168 if x, ok := x.GetDef().(*Frobnitz_G3); ok { 169 return x.G3 170 } 171 return 0 172 } 173 174 type isFrobnitz_Abc interface { 175 isFrobnitz_Abc() 176 } 177 178 type Frobnitz_C1 struct { 179 C1 *TestMessage_NestedMessage `protobuf:"bytes,3,opt,name=c1,oneof"` 180 } 181 182 type Frobnitz_C2 struct { 183 C2 TestMessage_NestedEnum `protobuf:"varint,4,opt,name=c2,enum=testprotos.TestMessage_NestedEnum,oneof"` 184 } 185 186 func (*Frobnitz_C1) isFrobnitz_Abc() {} 187 188 func (*Frobnitz_C2) isFrobnitz_Abc() {} 189 190 type isFrobnitz_Def interface { 191 isFrobnitz_Def() 192 } 193 194 type Frobnitz_G1 struct { 195 G1 int32 `protobuf:"varint,8,opt,name=g1,oneof"` 196 } 197 198 type Frobnitz_G2 struct { 199 G2 int32 `protobuf:"zigzag32,9,opt,name=g2,oneof"` 200 } 201 202 type Frobnitz_G3 struct { 203 G3 uint32 `protobuf:"varint,10,opt,name=g3,oneof"` 204 } 205 206 func (*Frobnitz_G1) isFrobnitz_Def() {} 207 208 func (*Frobnitz_G2) isFrobnitz_Def() {} 209 210 func (*Frobnitz_G3) isFrobnitz_Def() {} 211 212 type Whatchamacallit struct { 213 state protoimpl.MessageState 214 sizeCache protoimpl.SizeCache 215 unknownFields protoimpl.UnknownFields 216 217 Foos *pkg.Foo `protobuf:"varint,1,req,name=foos,enum=jhump.protoreflect.desc.Foo" json:"foos,omitempty"` 218 } 219 220 func (x *Whatchamacallit) Reset() { 221 *x = Whatchamacallit{} 222 if protoimpl.UnsafeEnabled { 223 mi := &file_desc_test2_proto_msgTypes[1] 224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 225 ms.StoreMessageInfo(mi) 226 } 227 } 228 229 func (x *Whatchamacallit) String() string { 230 return protoimpl.X.MessageStringOf(x) 231 } 232 233 func (*Whatchamacallit) ProtoMessage() {} 234 235 func (x *Whatchamacallit) ProtoReflect() protoreflect.Message { 236 mi := &file_desc_test2_proto_msgTypes[1] 237 if protoimpl.UnsafeEnabled && x != nil { 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 if ms.LoadMessageInfo() == nil { 240 ms.StoreMessageInfo(mi) 241 } 242 return ms 243 } 244 return mi.MessageOf(x) 245 } 246 247 // Deprecated: Use Whatchamacallit.ProtoReflect.Descriptor instead. 248 func (*Whatchamacallit) Descriptor() ([]byte, []int) { 249 return file_desc_test2_proto_rawDescGZIP(), []int{1} 250 } 251 252 func (x *Whatchamacallit) GetFoos() pkg.Foo { 253 if x != nil && x.Foos != nil { 254 return *x.Foos 255 } 256 return pkg.Foo_ABC 257 } 258 259 type Whatzit struct { 260 state protoimpl.MessageState 261 sizeCache protoimpl.SizeCache 262 unknownFields protoimpl.UnknownFields 263 264 Gyzmeau []*pkg.Bar `protobuf:"bytes,1,rep,name=gyzmeau" json:"gyzmeau,omitempty"` 265 } 266 267 func (x *Whatzit) Reset() { 268 *x = Whatzit{} 269 if protoimpl.UnsafeEnabled { 270 mi := &file_desc_test2_proto_msgTypes[2] 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 ms.StoreMessageInfo(mi) 273 } 274 } 275 276 func (x *Whatzit) String() string { 277 return protoimpl.X.MessageStringOf(x) 278 } 279 280 func (*Whatzit) ProtoMessage() {} 281 282 func (x *Whatzit) ProtoReflect() protoreflect.Message { 283 mi := &file_desc_test2_proto_msgTypes[2] 284 if protoimpl.UnsafeEnabled && x != nil { 285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 286 if ms.LoadMessageInfo() == nil { 287 ms.StoreMessageInfo(mi) 288 } 289 return ms 290 } 291 return mi.MessageOf(x) 292 } 293 294 // Deprecated: Use Whatzit.ProtoReflect.Descriptor instead. 295 func (*Whatzit) Descriptor() ([]byte, []int) { 296 return file_desc_test2_proto_rawDescGZIP(), []int{2} 297 } 298 299 func (x *Whatzit) GetGyzmeau() []*pkg.Bar { 300 if x != nil { 301 return x.Gyzmeau 302 } 303 return nil 304 } 305 306 type GroupX struct { 307 state protoimpl.MessageState 308 sizeCache protoimpl.SizeCache 309 unknownFields protoimpl.UnknownFields 310 311 Groupxi *int64 `protobuf:"varint,1041,opt,name=groupxi" json:"groupxi,omitempty"` 312 Groupxs *string `protobuf:"bytes,1042,opt,name=groupxs" json:"groupxs,omitempty"` 313 } 314 315 func (x *GroupX) Reset() { 316 *x = GroupX{} 317 if protoimpl.UnsafeEnabled { 318 mi := &file_desc_test2_proto_msgTypes[3] 319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 320 ms.StoreMessageInfo(mi) 321 } 322 } 323 324 func (x *GroupX) String() string { 325 return protoimpl.X.MessageStringOf(x) 326 } 327 328 func (*GroupX) ProtoMessage() {} 329 330 func (x *GroupX) ProtoReflect() protoreflect.Message { 331 mi := &file_desc_test2_proto_msgTypes[3] 332 if protoimpl.UnsafeEnabled && x != nil { 333 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 334 if ms.LoadMessageInfo() == nil { 335 ms.StoreMessageInfo(mi) 336 } 337 return ms 338 } 339 return mi.MessageOf(x) 340 } 341 342 // Deprecated: Use GroupX.ProtoReflect.Descriptor instead. 343 func (*GroupX) Descriptor() ([]byte, []int) { 344 return file_desc_test2_proto_rawDescGZIP(), []int{3} 345 } 346 347 func (x *GroupX) GetGroupxi() int64 { 348 if x != nil && x.Groupxi != nil { 349 return *x.Groupxi 350 } 351 return 0 352 } 353 354 func (x *GroupX) GetGroupxs() string { 355 if x != nil && x.Groupxs != nil { 356 return *x.Groupxs 357 } 358 return "" 359 } 360 361 var file_desc_test2_proto_extTypes = []protoimpl.ExtensionInfo{ 362 { 363 ExtendedType: (*nopkg.TopLevel)(nil), 364 ExtensionType: (*nopkg.TopLevel)(nil), 365 Field: 100, 366 Name: "testprotos.otl", 367 Tag: "bytes,100,opt,name=otl", 368 Filename: "desc_test2.proto", 369 }, 370 { 371 ExtendedType: (*nopkg.TopLevel)(nil), 372 ExtensionType: (*GroupX)(nil), 373 Field: 104, 374 Name: "testprotos.groupx", 375 Tag: "group,104,opt,name=GroupX", 376 Filename: "desc_test2.proto", 377 }, 378 } 379 380 // Extension fields to nopkg.TopLevel. 381 var ( 382 // optional TopLevel otl = 100; 383 E_Otl = &file_desc_test2_proto_extTypes[0] 384 // optional testprotos.GroupX groupx = 104; 385 E_Groupx = &file_desc_test2_proto_extTypes[1] 386 ) 387 388 var File_desc_test2_proto protoreflect.FileDescriptor 389 390 var file_desc_test2_proto_rawDesc = []byte{ 391 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x32, 0x2e, 0x70, 0x72, 0x6f, 392 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x10, 393 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 394 0x1a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 395 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x6e, 0x6f, 0x70, 0x6b, 0x67, 396 0x2f, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x70, 0x6b, 0x67, 397 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x03, 0x0a, 0x08, 0x46, 0x72, 0x6f, 0x62, 0x6e, 398 0x69, 0x74, 0x7a, 0x12, 0x25, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 399 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 400 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x01, 0x61, 0x12, 0x2c, 0x0a, 0x01, 0x62, 0x18, 401 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 402 0x6f, 0x73, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 403 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x01, 0x62, 0x12, 0x37, 0x0a, 0x02, 0x63, 0x31, 0x18, 0x03, 404 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 405 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 406 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x02, 0x63, 407 0x31, 0x12, 0x34, 0x0a, 0x02, 0x63, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 408 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 409 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 410 0x6d, 0x48, 0x00, 0x52, 0x02, 0x63, 0x32, 0x12, 0x33, 0x0a, 0x01, 0x64, 0x18, 0x05, 0x20, 0x01, 411 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 412 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4e, 0x65, 0x73, 0x74, 413 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x01, 0x64, 0x12, 0x38, 0x0a, 0x01, 414 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 415 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 416 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x06, 0x56, 0x41, 0x4c, 417 0x55, 0x45, 0x32, 0x52, 0x01, 0x65, 0x12, 0x10, 0x0a, 0x01, 0x66, 0x18, 0x07, 0x20, 0x03, 0x28, 418 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x01, 0x66, 0x12, 0x10, 0x0a, 0x02, 0x67, 0x31, 0x18, 0x08, 419 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x02, 0x67, 0x31, 0x12, 0x10, 0x0a, 0x02, 0x67, 0x32, 420 0x18, 0x09, 0x20, 0x01, 0x28, 0x11, 0x48, 0x01, 0x52, 0x02, 0x67, 0x32, 0x12, 0x10, 0x0a, 0x02, 421 0x67, 0x33, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x02, 0x67, 0x33, 0x42, 0x05, 422 0x0a, 0x03, 0x61, 0x62, 0x63, 0x42, 0x05, 0x0a, 0x03, 0x64, 0x65, 0x66, 0x22, 0x43, 0x0a, 0x0f, 423 0x57, 0x68, 0x61, 0x74, 0x63, 0x68, 0x61, 0x6d, 0x61, 0x63, 0x61, 0x6c, 0x6c, 0x69, 0x74, 0x12, 424 0x30, 0x0a, 0x04, 0x66, 0x6f, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 425 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 426 0x63, 0x74, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x2e, 0x46, 0x6f, 0x6f, 0x52, 0x04, 0x66, 0x6f, 0x6f, 427 0x73, 0x22, 0x41, 0x0a, 0x07, 0x57, 0x68, 0x61, 0x74, 0x7a, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x07, 428 0x67, 0x79, 0x7a, 0x6d, 0x65, 0x61, 0x75, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 429 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 430 0x63, 0x74, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x2e, 0x42, 0x61, 0x72, 0x52, 0x07, 0x67, 0x79, 0x7a, 431 0x6d, 0x65, 0x61, 0x75, 0x22, 0x3e, 0x0a, 0x06, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x58, 0x12, 0x19, 432 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x78, 0x69, 0x18, 0x91, 0x08, 0x20, 0x01, 0x28, 0x03, 433 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x78, 0x69, 0x12, 0x19, 0x0a, 0x07, 0x67, 0x72, 0x6f, 434 0x75, 0x70, 0x78, 0x73, 0x18, 0x92, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 435 0x75, 0x70, 0x78, 0x73, 0x3a, 0x26, 0x0a, 0x03, 0x6f, 0x74, 0x6c, 0x12, 0x09, 0x2e, 0x54, 0x6f, 436 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x54, 437 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x03, 0x6f, 0x74, 0x6c, 0x3a, 0x35, 0x0a, 0x06, 438 0x67, 0x72, 0x6f, 0x75, 0x70, 0x78, 0x12, 0x09, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 439 0x6c, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 440 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x58, 0x52, 0x06, 0x67, 0x72, 0x6f, 441 0x75, 0x70, 0x78, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 442 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 443 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 444 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 445 } 446 447 var ( 448 file_desc_test2_proto_rawDescOnce sync.Once 449 file_desc_test2_proto_rawDescData = file_desc_test2_proto_rawDesc 450 ) 451 452 func file_desc_test2_proto_rawDescGZIP() []byte { 453 file_desc_test2_proto_rawDescOnce.Do(func() { 454 file_desc_test2_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test2_proto_rawDescData) 455 }) 456 return file_desc_test2_proto_rawDescData 457 } 458 459 var file_desc_test2_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 460 var file_desc_test2_proto_goTypes = []interface{}{ 461 (*Frobnitz)(nil), // 0: testprotos.Frobnitz 462 (*Whatchamacallit)(nil), // 1: testprotos.Whatchamacallit 463 (*Whatzit)(nil), // 2: testprotos.Whatzit 464 (*GroupX)(nil), // 3: testprotos.GroupX 465 (*TestMessage)(nil), // 4: testprotos.TestMessage 466 (*AnotherTestMessage)(nil), // 5: testprotos.AnotherTestMessage 467 (*TestMessage_NestedMessage)(nil), // 6: testprotos.TestMessage.NestedMessage 468 (TestMessage_NestedEnum)(0), // 7: testprotos.TestMessage.NestedEnum 469 (pkg.Foo)(0), // 8: jhump.protoreflect.desc.Foo 470 (*pkg.Bar)(nil), // 9: jhump.protoreflect.desc.Bar 471 (*nopkg.TopLevel)(nil), // 10: TopLevel 472 } 473 var file_desc_test2_proto_depIdxs = []int32{ 474 4, // 0: testprotos.Frobnitz.a:type_name -> testprotos.TestMessage 475 5, // 1: testprotos.Frobnitz.b:type_name -> testprotos.AnotherTestMessage 476 6, // 2: testprotos.Frobnitz.c1:type_name -> testprotos.TestMessage.NestedMessage 477 7, // 3: testprotos.Frobnitz.c2:type_name -> testprotos.TestMessage.NestedEnum 478 6, // 4: testprotos.Frobnitz.d:type_name -> testprotos.TestMessage.NestedMessage 479 7, // 5: testprotos.Frobnitz.e:type_name -> testprotos.TestMessage.NestedEnum 480 8, // 6: testprotos.Whatchamacallit.foos:type_name -> jhump.protoreflect.desc.Foo 481 9, // 7: testprotos.Whatzit.gyzmeau:type_name -> jhump.protoreflect.desc.Bar 482 10, // 8: testprotos.otl:extendee -> TopLevel 483 10, // 9: testprotos.groupx:extendee -> TopLevel 484 10, // 10: testprotos.otl:type_name -> TopLevel 485 3, // 11: testprotos.groupx:type_name -> testprotos.GroupX 486 12, // [12:12] is the sub-list for method output_type 487 12, // [12:12] is the sub-list for method input_type 488 10, // [10:12] is the sub-list for extension type_name 489 8, // [8:10] is the sub-list for extension extendee 490 0, // [0:8] is the sub-list for field type_name 491 } 492 493 func init() { file_desc_test2_proto_init() } 494 func file_desc_test2_proto_init() { 495 if File_desc_test2_proto != nil { 496 return 497 } 498 file_desc_test1_proto_init() 499 if !protoimpl.UnsafeEnabled { 500 file_desc_test2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 501 switch v := v.(*Frobnitz); i { 502 case 0: 503 return &v.state 504 case 1: 505 return &v.sizeCache 506 case 2: 507 return &v.unknownFields 508 default: 509 return nil 510 } 511 } 512 file_desc_test2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 513 switch v := v.(*Whatchamacallit); i { 514 case 0: 515 return &v.state 516 case 1: 517 return &v.sizeCache 518 case 2: 519 return &v.unknownFields 520 default: 521 return nil 522 } 523 } 524 file_desc_test2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 525 switch v := v.(*Whatzit); i { 526 case 0: 527 return &v.state 528 case 1: 529 return &v.sizeCache 530 case 2: 531 return &v.unknownFields 532 default: 533 return nil 534 } 535 } 536 file_desc_test2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 537 switch v := v.(*GroupX); i { 538 case 0: 539 return &v.state 540 case 1: 541 return &v.sizeCache 542 case 2: 543 return &v.unknownFields 544 default: 545 return nil 546 } 547 } 548 } 549 file_desc_test2_proto_msgTypes[0].OneofWrappers = []interface{}{ 550 (*Frobnitz_C1)(nil), 551 (*Frobnitz_C2)(nil), 552 (*Frobnitz_G1)(nil), 553 (*Frobnitz_G2)(nil), 554 (*Frobnitz_G3)(nil), 555 } 556 type x struct{} 557 out := protoimpl.TypeBuilder{ 558 File: protoimpl.DescBuilder{ 559 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 560 RawDescriptor: file_desc_test2_proto_rawDesc, 561 NumEnums: 0, 562 NumMessages: 4, 563 NumExtensions: 2, 564 NumServices: 0, 565 }, 566 GoTypes: file_desc_test2_proto_goTypes, 567 DependencyIndexes: file_desc_test2_proto_depIdxs, 568 MessageInfos: file_desc_test2_proto_msgTypes, 569 ExtensionInfos: file_desc_test2_proto_extTypes, 570 }.Build() 571 File_desc_test2_proto = out.File 572 file_desc_test2_proto_rawDesc = nil 573 file_desc_test2_proto_goTypes = nil 574 file_desc_test2_proto_depIdxs = nil 575 }