1// 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// Code generated by protoc-gen-go. DO NOT EDIT. 6// source: cmd/protoc-gen-go/testdata/import_public/sub/a.proto 7 8package sub 9 10import ( 11 sub2 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 math "math" 15 reflect "reflect" 16 sync "sync" 17) 18 19// Symbols defined in public import of cmd/protoc-gen-go/testdata/import_public/sub2/a.proto. 20 21type Sub2Message = sub2.Sub2Message 22 23type E int32 24 25const ( 26 E_ZERO E = 0 27) 28 29// Enum value maps for E. 30var ( 31 E_name = map[int32]string{ 32 0: "ZERO", 33 } 34 E_value = map[string]int32{ 35 "ZERO": 0, 36 } 37) 38 39func (x E) Enum() *E { 40 p := new(E) 41 *p = x 42 return p 43} 44 45func (x E) String() string { 46 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 47} 48 49func (E) Descriptor() protoreflect.EnumDescriptor { 50 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[0].Descriptor() 51} 52 53func (E) Type() protoreflect.EnumType { 54 return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[0] 55} 56 57func (x E) Number() protoreflect.EnumNumber { 58 return protoreflect.EnumNumber(x) 59} 60 61// Deprecated: Do not use. 62func (x *E) UnmarshalJSON(b []byte) error { 63 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 64 if err != nil { 65 return err 66 } 67 *x = E(num) 68 return nil 69} 70 71// Deprecated: Use E.Descriptor instead. 72func (E) EnumDescriptor() ([]byte, []int) { 73 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0} 74} 75 76type M_Subenum int32 77 78const ( 79 M_M_ZERO M_Subenum = 0 80) 81 82// Enum value maps for M_Subenum. 83var ( 84 M_Subenum_name = map[int32]string{ 85 0: "M_ZERO", 86 } 87 M_Subenum_value = map[string]int32{ 88 "M_ZERO": 0, 89 } 90) 91 92func (x M_Subenum) Enum() *M_Subenum { 93 p := new(M_Subenum) 94 *p = x 95 return p 96} 97 98func (x M_Subenum) String() string { 99 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 100} 101 102func (M_Subenum) Descriptor() protoreflect.EnumDescriptor { 103 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[1].Descriptor() 104} 105 106func (M_Subenum) Type() protoreflect.EnumType { 107 return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[1] 108} 109 110func (x M_Subenum) Number() protoreflect.EnumNumber { 111 return protoreflect.EnumNumber(x) 112} 113 114// Deprecated: Do not use. 115func (x *M_Subenum) UnmarshalJSON(b []byte) error { 116 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 117 if err != nil { 118 return err 119 } 120 *x = M_Subenum(num) 121 return nil 122} 123 124// Deprecated: Use M_Subenum.Descriptor instead. 125func (M_Subenum) EnumDescriptor() ([]byte, []int) { 126 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0} 127} 128 129type M_Submessage_Submessage_Subenum int32 130 131const ( 132 M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0 133) 134 135// Enum value maps for M_Submessage_Submessage_Subenum. 136var ( 137 M_Submessage_Submessage_Subenum_name = map[int32]string{ 138 0: "M_SUBMESSAGE_ZERO", 139 } 140 M_Submessage_Submessage_Subenum_value = map[string]int32{ 141 "M_SUBMESSAGE_ZERO": 0, 142 } 143) 144 145func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum { 146 p := new(M_Submessage_Submessage_Subenum) 147 *p = x 148 return p 149} 150 151func (x M_Submessage_Submessage_Subenum) String() string { 152 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 153} 154 155func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor { 156 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[2].Descriptor() 157} 158 159func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType { 160 return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[2] 161} 162 163func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber { 164 return protoreflect.EnumNumber(x) 165} 166 167// Deprecated: Do not use. 168func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error { 169 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 170 if err != nil { 171 return err 172 } 173 *x = M_Submessage_Submessage_Subenum(num) 174 return nil 175} 176 177// Deprecated: Use M_Submessage_Submessage_Subenum.Descriptor instead. 178func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) { 179 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0} 180} 181 182type M struct { 183 state protoimpl.MessageState 184 sizeCache protoimpl.SizeCache 185 unknownFields protoimpl.UnknownFields 186 extensionFields protoimpl.ExtensionFields 187 188 // Field using a type in the same Go package, but a different source file. 189 M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"` 190 S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"` 191 B []byte `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"` 192 F *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"` 193 // Types that are assignable to OneofField: 194 // 195 // *M_OneofInt32 196 // *M_OneofInt64 197 OneofField isM_OneofField `protobuf_oneof:"oneof_field"` 198} 199 200// Default values for M fields. 201const ( 202 Default_M_S = string("default") 203) 204 205// Default values for M fields. 206var ( 207 Default_M_B = []byte("default") 208 Default_M_F = float64(math.NaN()) 209) 210 211func (x *M) Reset() { 212 *x = M{} 213 if protoimpl.UnsafeEnabled { 214 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] 215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 ms.StoreMessageInfo(mi) 217 } 218} 219 220func (x *M) String() string { 221 return protoimpl.X.MessageStringOf(x) 222} 223 224func (*M) ProtoMessage() {} 225 226func (x *M) ProtoReflect() protoreflect.Message { 227 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] 228 if protoimpl.UnsafeEnabled && x != nil { 229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 230 if ms.LoadMessageInfo() == nil { 231 ms.StoreMessageInfo(mi) 232 } 233 return ms 234 } 235 return mi.MessageOf(x) 236} 237 238// Deprecated: Use M.ProtoReflect.Descriptor instead. 239func (*M) Descriptor() ([]byte, []int) { 240 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0} 241} 242 243func (x *M) GetM2() *M2 { 244 if x != nil { 245 return x.M2 246 } 247 return nil 248} 249 250func (x *M) GetS() string { 251 if x != nil && x.S != nil { 252 return *x.S 253 } 254 return Default_M_S 255} 256 257func (x *M) GetB() []byte { 258 if x != nil && x.B != nil { 259 return x.B 260 } 261 return append([]byte(nil), Default_M_B...) 262} 263 264func (x *M) GetF() float64 { 265 if x != nil && x.F != nil { 266 return *x.F 267 } 268 return Default_M_F 269} 270 271func (m *M) GetOneofField() isM_OneofField { 272 if m != nil { 273 return m.OneofField 274 } 275 return nil 276} 277 278func (x *M) GetOneofInt32() int32 { 279 if x, ok := x.GetOneofField().(*M_OneofInt32); ok { 280 return x.OneofInt32 281 } 282 return 0 283} 284 285func (x *M) GetOneofInt64() int64 { 286 if x, ok := x.GetOneofField().(*M_OneofInt64); ok { 287 return x.OneofInt64 288 } 289 return 0 290} 291 292type isM_OneofField interface { 293 isM_OneofField() 294} 295 296type M_OneofInt32 struct { 297 OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"` 298} 299 300type M_OneofInt64 struct { 301 OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"` 302} 303 304func (*M_OneofInt32) isM_OneofField() {} 305 306func (*M_OneofInt64) isM_OneofField() {} 307 308type M_Submessage struct { 309 state protoimpl.MessageState 310 sizeCache protoimpl.SizeCache 311 unknownFields protoimpl.UnknownFields 312 313 // Types that are assignable to SubmessageOneofField: 314 // 315 // *M_Submessage_SubmessageOneofInt32 316 // *M_Submessage_SubmessageOneofInt64 317 SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"` 318} 319 320func (x *M_Submessage) Reset() { 321 *x = M_Submessage{} 322 if protoimpl.UnsafeEnabled { 323 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1] 324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 325 ms.StoreMessageInfo(mi) 326 } 327} 328 329func (x *M_Submessage) String() string { 330 return protoimpl.X.MessageStringOf(x) 331} 332 333func (*M_Submessage) ProtoMessage() {} 334 335func (x *M_Submessage) ProtoReflect() protoreflect.Message { 336 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1] 337 if protoimpl.UnsafeEnabled && x != nil { 338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 339 if ms.LoadMessageInfo() == nil { 340 ms.StoreMessageInfo(mi) 341 } 342 return ms 343 } 344 return mi.MessageOf(x) 345} 346 347// Deprecated: Use M_Submessage.ProtoReflect.Descriptor instead. 348func (*M_Submessage) Descriptor() ([]byte, []int) { 349 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0} 350} 351 352func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField { 353 if m != nil { 354 return m.SubmessageOneofField 355 } 356 return nil 357} 358 359func (x *M_Submessage) GetSubmessageOneofInt32() int32 { 360 if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt32); ok { 361 return x.SubmessageOneofInt32 362 } 363 return 0 364} 365 366func (x *M_Submessage) GetSubmessageOneofInt64() int64 { 367 if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt64); ok { 368 return x.SubmessageOneofInt64 369 } 370 return 0 371} 372 373type isM_Submessage_SubmessageOneofField interface { 374 isM_Submessage_SubmessageOneofField() 375} 376 377type M_Submessage_SubmessageOneofInt32 struct { 378 SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"` 379} 380 381type M_Submessage_SubmessageOneofInt64 struct { 382 SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"` 383} 384 385func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {} 386 387func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {} 388 389var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes = []protoimpl.ExtensionInfo{ 390 { 391 ExtendedType: (*M)(nil), 392 ExtensionType: (*string)(nil), 393 Field: 100, 394 Name: "goproto.protoc.import_public.sub.extension_field", 395 Tag: "bytes,100,opt,name=extension_field", 396 Filename: "cmd/protoc-gen-go/testdata/import_public/sub/a.proto", 397 }, 398} 399 400// Extension fields to M. 401var ( 402 // optional string extension_field = 100; 403 E_ExtensionField = &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes[0] 404) 405 406var File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto protoreflect.FileDescriptor 407 408var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc = []byte{ 409 0x0a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 410 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 411 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x61, 412 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 413 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 414 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 415 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 416 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 417 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35, 418 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 419 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 420 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x32, 0x2f, 0x61, 0x2e, 421 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x03, 0x0a, 0x01, 0x4d, 0x12, 0x34, 0x0a, 0x02, 0x6d, 422 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 423 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 424 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x32, 0x52, 0x02, 0x6d, 425 0x32, 0x12, 0x15, 0x0a, 0x01, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x07, 0x64, 0x65, 426 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x73, 0x12, 0x15, 0x0a, 0x01, 0x62, 0x18, 0x05, 0x20, 427 0x01, 0x28, 0x0c, 0x3a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x62, 0x12, 428 0x11, 0x0a, 0x01, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x03, 0x6e, 0x61, 0x6e, 0x52, 429 0x01, 0x66, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33, 430 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 431 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 432 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 433 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x1a, 0xc3, 0x01, 0x0a, 0x0a, 0x53, 0x75, 0x62, 434 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 435 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33, 436 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 437 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 438 0x36, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 439 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 440 0x00, 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 441 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x2b, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x6d, 0x65, 442 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x15, 0x0a, 443 0x11, 0x4d, 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x5a, 0x45, 444 0x52, 0x4f, 0x10, 0x00, 0x42, 0x18, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 445 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x15, 446 0x0a, 0x07, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x5f, 0x5a, 447 0x45, 0x52, 0x4f, 0x10, 0x00, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x42, 448 0x0d, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x0d, 449 0x0a, 0x01, 0x45, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x3a, 0x4c, 0x0a, 450 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 451 0x12, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 452 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 453 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x18, 0x64, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x74, 454 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x49, 0x5a, 0x47, 0x67, 455 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 456 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 457 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 458 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 459 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x50, 0x01, 460} 461 462var ( 463 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescOnce sync.Once 464 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData = file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc 465) 466 467func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP() []byte { 468 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescOnce.Do(func() { 469 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData) 470 }) 471 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData 472} 473 474var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 475var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 476var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = []interface{}{ 477 (E)(0), // 0: goproto.protoc.import_public.sub.E 478 (M_Subenum)(0), // 1: goproto.protoc.import_public.sub.M.Subenum 479 (M_Submessage_Submessage_Subenum)(0), // 2: goproto.protoc.import_public.sub.M.Submessage.Submessage_Subenum 480 (*M)(nil), // 3: goproto.protoc.import_public.sub.M 481 (*M_Submessage)(nil), // 4: goproto.protoc.import_public.sub.M.Submessage 482 (*M2)(nil), // 5: goproto.protoc.import_public.sub.M2 483} 484var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs = []int32{ 485 5, // 0: goproto.protoc.import_public.sub.M.m2:type_name -> goproto.protoc.import_public.sub.M2 486 3, // 1: goproto.protoc.import_public.sub.extension_field:extendee -> goproto.protoc.import_public.sub.M 487 2, // [2:2] is the sub-list for method output_type 488 2, // [2:2] is the sub-list for method input_type 489 2, // [2:2] is the sub-list for extension type_name 490 1, // [1:2] is the sub-list for extension extendee 491 0, // [0:1] is the sub-list for field type_name 492} 493 494func init() { file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() } 495func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() { 496 if File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto != nil { 497 return 498 } 499 file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init() 500 if !protoimpl.UnsafeEnabled { 501 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 502 switch v := v.(*M); i { 503 case 0: 504 return &v.state 505 case 1: 506 return &v.sizeCache 507 case 2: 508 return &v.unknownFields 509 case 3: 510 return &v.extensionFields 511 default: 512 return nil 513 } 514 } 515 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 516 switch v := v.(*M_Submessage); i { 517 case 0: 518 return &v.state 519 case 1: 520 return &v.sizeCache 521 case 2: 522 return &v.unknownFields 523 default: 524 return nil 525 } 526 } 527 } 528 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []interface{}{ 529 (*M_OneofInt32)(nil), 530 (*M_OneofInt64)(nil), 531 } 532 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []interface{}{ 533 (*M_Submessage_SubmessageOneofInt32)(nil), 534 (*M_Submessage_SubmessageOneofInt64)(nil), 535 } 536 type x struct{} 537 out := protoimpl.TypeBuilder{ 538 File: protoimpl.DescBuilder{ 539 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 540 RawDescriptor: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc, 541 NumEnums: 3, 542 NumMessages: 2, 543 NumExtensions: 1, 544 NumServices: 0, 545 }, 546 GoTypes: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes, 547 DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs, 548 EnumInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes, 549 MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes, 550 ExtensionInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes, 551 }.Build() 552 File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto = out.File 553 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc = nil 554 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = nil 555 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs = nil 556} 557