| 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 |
|
| 8 |
package sub |
| 9 |
|
| 10 |
import ( |
| 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 |
unsafe "unsafe" |
| 18 |
) |
| 19 |
|
| 20 |
// Symbols defined in public import of cmd/protoc-gen-go/testdata/import_public/sub2/a.proto. |
| 21 |
|
| 22 |
type Sub2Message = sub2.Sub2Message |
| 23 |
|
| 24 |
type E int32 |
| 25 |
|
| 26 |
const ( |
| 27 |
E_ZERO E = 0 |
| 28 |
) |
| 29 |
|
| 30 |
// Enum value maps for E. |
| 31 |
var ( |
| 32 |
E_name = map[int32]string{ |
| 33 |
0: "ZERO", |
| 34 |
} |
| 35 |
E_value = map[string]int32{ |
| 36 |
"ZERO": 0, |
| 37 |
} |
| 38 |
) |
| 39 |
|
| 40 |
func (x E) Enum() *E { |
| 41 |
p := new(E) |
| 42 |
*p = x |
| 43 |
return p |
| 44 |
} |
| 45 |
|
| 46 |
func (x E) String() string { |
| 47 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 48 |
} |
| 49 |
|
| 50 |
func (E) Descriptor() protoreflect.EnumDescriptor { |
| 51 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[0].Descriptor() |
| 52 |
} |
| 53 |
|
| 54 |
func (E) Type() protoreflect.EnumType { |
| 55 |
return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[0] |
| 56 |
} |
| 57 |
|
| 58 |
func (x E) Number() protoreflect.EnumNumber { |
| 59 |
return protoreflect.EnumNumber(x) |
| 60 |
} |
| 61 |
|
| 62 |
// Deprecated: Do not use. |
| 63 |
func (x *E) UnmarshalJSON(b []byte) error { |
| 64 |
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
| 65 |
if err != nil { |
| 66 |
return err |
| 67 |
} |
| 68 |
*x = E(num) |
| 69 |
return nil |
| 70 |
} |
| 71 |
|
| 72 |
// Deprecated: Use E.Descriptor instead. |
| 73 |
func (E) EnumDescriptor() ([]byte, []int) { |
| 74 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0} |
| 75 |
} |
| 76 |
|
| 77 |
type M_Subenum int32 |
| 78 |
|
| 79 |
const ( |
| 80 |
M_M_ZERO M_Subenum = 0 |
| 81 |
) |
| 82 |
|
| 83 |
// Enum value maps for M_Subenum. |
| 84 |
var ( |
| 85 |
M_Subenum_name = map[int32]string{ |
| 86 |
0: "M_ZERO", |
| 87 |
} |
| 88 |
M_Subenum_value = map[string]int32{ |
| 89 |
"M_ZERO": 0, |
| 90 |
} |
| 91 |
) |
| 92 |
|
| 93 |
func (x M_Subenum) Enum() *M_Subenum { |
| 94 |
p := new(M_Subenum) |
| 95 |
*p = x |
| 96 |
return p |
| 97 |
} |
| 98 |
|
| 99 |
func (x M_Subenum) String() string { |
| 100 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 101 |
} |
| 102 |
|
| 103 |
func (M_Subenum) Descriptor() protoreflect.EnumDescriptor { |
| 104 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[1].Descriptor() |
| 105 |
} |
| 106 |
|
| 107 |
func (M_Subenum) Type() protoreflect.EnumType { |
| 108 |
return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[1] |
| 109 |
} |
| 110 |
|
| 111 |
func (x M_Subenum) Number() protoreflect.EnumNumber { |
| 112 |
return protoreflect.EnumNumber(x) |
| 113 |
} |
| 114 |
|
| 115 |
// Deprecated: Do not use. |
| 116 |
func (x *M_Subenum) UnmarshalJSON(b []byte) error { |
| 117 |
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
| 118 |
if err != nil { |
| 119 |
return err |
| 120 |
} |
| 121 |
*x = M_Subenum(num) |
| 122 |
return nil |
| 123 |
} |
| 124 |
|
| 125 |
// Deprecated: Use M_Subenum.Descriptor instead. |
| 126 |
func (M_Subenum) EnumDescriptor() ([]byte, []int) { |
| 127 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0} |
| 128 |
} |
| 129 |
|
| 130 |
type M_Submessage_Submessage_Subenum int32 |
| 131 |
|
| 132 |
const ( |
| 133 |
M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0 |
| 134 |
) |
| 135 |
|
| 136 |
// Enum value maps for M_Submessage_Submessage_Subenum. |
| 137 |
var ( |
| 138 |
M_Submessage_Submessage_Subenum_name = map[int32]string{ |
| 139 |
0: "M_SUBMESSAGE_ZERO", |
| 140 |
} |
| 141 |
M_Submessage_Submessage_Subenum_value = map[string]int32{ |
| 142 |
"M_SUBMESSAGE_ZERO": 0, |
| 143 |
} |
| 144 |
) |
| 145 |
|
| 146 |
func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum { |
| 147 |
p := new(M_Submessage_Submessage_Subenum) |
| 148 |
*p = x |
| 149 |
return p |
| 150 |
} |
| 151 |
|
| 152 |
func (x M_Submessage_Submessage_Subenum) String() string { |
| 153 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 154 |
} |
| 155 |
|
| 156 |
func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor { |
| 157 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[2].Descriptor() |
| 158 |
} |
| 159 |
|
| 160 |
func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType { |
| 161 |
return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[2] |
| 162 |
} |
| 163 |
|
| 164 |
func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber { |
| 165 |
return protoreflect.EnumNumber(x) |
| 166 |
} |
| 167 |
|
| 168 |
// Deprecated: Do not use. |
| 169 |
func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error { |
| 170 |
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
| 171 |
if err != nil { |
| 172 |
return err |
| 173 |
} |
| 174 |
*x = M_Submessage_Submessage_Subenum(num) |
| 175 |
return nil |
| 176 |
} |
| 177 |
|
| 178 |
// Deprecated: Use M_Submessage_Submessage_Subenum.Descriptor instead. |
| 179 |
func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) { |
| 180 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0} |
| 181 |
} |
| 182 |
|
| 183 |
type M struct { |
| 184 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 185 |
// Field using a type in the same Go package, but a different source file. |
| 186 |
M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"` |
| 187 |
S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"` |
| 188 |
B []byte `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"` |
| 189 |
F *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"` |
| 190 |
// Types that are valid to be assigned to OneofField: |
| 191 |
// |
| 192 |
// *M_OneofInt32 |
| 193 |
// *M_OneofInt64 |
| 194 |
OneofField isM_OneofField `protobuf_oneof:"oneof_field"` |
| 195 |
extensionFields protoimpl.ExtensionFields |
| 196 |
unknownFields protoimpl.UnknownFields |
| 197 |
sizeCache protoimpl.SizeCache |
| 198 |
} |
| 199 |
|
| 200 |
// Default values for M fields. |
| 201 |
const ( |
| 202 |
Default_M_S = string("default") |
| 203 |
) |
| 204 |
|
| 205 |
// Default values for M fields. |
| 206 |
var ( |
| 207 |
Default_M_B = []byte("default") |
| 208 |
Default_M_F = float64(math.NaN()) |
| 209 |
) |
| 210 |
|
| 211 |
func (x *M) Reset() { |
| 212 |
*x = M{} |
| 213 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] |
| 214 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 215 |
ms.StoreMessageInfo(mi) |
| 216 |
} |
| 217 |
|
| 218 |
func (x *M) String() string { |
| 219 |
return protoimpl.X.MessageStringOf(x) |
| 220 |
} |
| 221 |
|
| 222 |
func (*M) ProtoMessage() {} |
| 223 |
|
| 224 |
func (x *M) ProtoReflect() protoreflect.Message { |
| 225 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] |
| 226 |
if x != nil { |
| 227 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 228 |
if ms.LoadMessageInfo() == nil { |
| 229 |
ms.StoreMessageInfo(mi) |
| 230 |
} |
| 231 |
return ms |
| 232 |
} |
| 233 |
return mi.MessageOf(x) |
| 234 |
} |
| 235 |
|
| 236 |
// Deprecated: Use M.ProtoReflect.Descriptor instead. |
| 237 |
func (*M) Descriptor() ([]byte, []int) { |
| 238 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0} |
| 239 |
} |
| 240 |
|
| 241 |
func (x *M) GetM2() *M2 { |
| 242 |
if x != nil { |
| 243 |
return x.M2 |
| 244 |
} |
| 245 |
return nil |
| 246 |
} |
| 247 |
|
| 248 |
func (x *M) GetS() string { |
| 249 |
if x != nil && x.S != nil { |
| 250 |
return *x.S |
| 251 |
} |
| 252 |
return Default_M_S |
| 253 |
} |
| 254 |
|
| 255 |
func (x *M) GetB() []byte { |
| 256 |
if x != nil && x.B != nil { |
| 257 |
return x.B |
| 258 |
} |
| 259 |
return append([]byte(nil), Default_M_B...) |
| 260 |
} |
| 261 |
|
| 262 |
func (x *M) GetF() float64 { |
| 263 |
if x != nil && x.F != nil { |
| 264 |
return *x.F |
| 265 |
} |
| 266 |
return Default_M_F |
| 267 |
} |
| 268 |
|
| 269 |
func (x *M) GetOneofField() isM_OneofField { |
| 270 |
if x != nil { |
| 271 |
return x.OneofField |
| 272 |
} |
| 273 |
return nil |
| 274 |
} |
| 275 |
|
| 276 |
func (x *M) GetOneofInt32() int32 { |
| 277 |
if x != nil { |
| 278 |
if x, ok := x.OneofField.(*M_OneofInt32); ok { |
| 279 |
return x.OneofInt32 |
| 280 |
} |
| 281 |
} |
| 282 |
return 0 |
| 283 |
} |
| 284 |
|
| 285 |
func (x *M) GetOneofInt64() int64 { |
| 286 |
if x != nil { |
| 287 |
if x, ok := x.OneofField.(*M_OneofInt64); ok { |
| 288 |
return x.OneofInt64 |
| 289 |
} |
| 290 |
} |
| 291 |
return 0 |
| 292 |
} |
| 293 |
|
| 294 |
type isM_OneofField interface { |
| 295 |
isM_OneofField() |
| 296 |
} |
| 297 |
|
| 298 |
type M_OneofInt32 struct { |
| 299 |
OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"` |
| 300 |
} |
| 301 |
|
| 302 |
type M_OneofInt64 struct { |
| 303 |
OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"` |
| 304 |
} |
| 305 |
|
| 306 |
func (*M_OneofInt32) isM_OneofField() {} |
| 307 |
|
| 308 |
func (*M_OneofInt64) isM_OneofField() {} |
| 309 |
|
| 310 |
type M_Submessage struct { |
| 311 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 312 |
// Types that are valid to be assigned to SubmessageOneofField: |
| 313 |
// |
| 314 |
// *M_Submessage_SubmessageOneofInt32 |
| 315 |
// *M_Submessage_SubmessageOneofInt64 |
| 316 |
SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"` |
| 317 |
unknownFields protoimpl.UnknownFields |
| 318 |
sizeCache protoimpl.SizeCache |
| 319 |
} |
| 320 |
|
| 321 |
func (x *M_Submessage) Reset() { |
| 322 |
*x = M_Submessage{} |
| 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 |
func (x *M_Submessage) String() string { |
| 329 |
return protoimpl.X.MessageStringOf(x) |
| 330 |
} |
| 331 |
|
| 332 |
func (*M_Submessage) ProtoMessage() {} |
| 333 |
|
| 334 |
func (x *M_Submessage) ProtoReflect() protoreflect.Message { |
| 335 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1] |
| 336 |
if x != nil { |
| 337 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 338 |
if ms.LoadMessageInfo() == nil { |
| 339 |
ms.StoreMessageInfo(mi) |
| 340 |
} |
| 341 |
return ms |
| 342 |
} |
| 343 |
return mi.MessageOf(x) |
| 344 |
} |
| 345 |
|
| 346 |
// Deprecated: Use M_Submessage.ProtoReflect.Descriptor instead. |
| 347 |
func (*M_Submessage) Descriptor() ([]byte, []int) { |
| 348 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0} |
| 349 |
} |
| 350 |
|
| 351 |
func (x *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField { |
| 352 |
if x != nil { |
| 353 |
return x.SubmessageOneofField |
| 354 |
} |
| 355 |
return nil |
| 356 |
} |
| 357 |
|
| 358 |
func (x *M_Submessage) GetSubmessageOneofInt32() int32 { |
| 359 |
if x != nil { |
| 360 |
if x, ok := x.SubmessageOneofField.(*M_Submessage_SubmessageOneofInt32); ok { |
| 361 |
return x.SubmessageOneofInt32 |
| 362 |
} |
| 363 |
} |
| 364 |
return 0 |
| 365 |
} |
| 366 |
|
| 367 |
func (x *M_Submessage) GetSubmessageOneofInt64() int64 { |
| 368 |
if x != nil { |
| 369 |
if x, ok := x.SubmessageOneofField.(*M_Submessage_SubmessageOneofInt64); ok { |
| 370 |
return x.SubmessageOneofInt64 |
| 371 |
} |
| 372 |
} |
| 373 |
return 0 |
| 374 |
} |
| 375 |
|
| 376 |
type isM_Submessage_SubmessageOneofField interface { |
| 377 |
isM_Submessage_SubmessageOneofField() |
| 378 |
} |
| 379 |
|
| 380 |
type M_Submessage_SubmessageOneofInt32 struct { |
| 381 |
SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"` |
| 382 |
} |
| 383 |
|
| 384 |
type M_Submessage_SubmessageOneofInt64 struct { |
| 385 |
SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"` |
| 386 |
} |
| 387 |
|
| 388 |
func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {} |
| 389 |
|
| 390 |
func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {} |
| 391 |
|
| 392 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes = []protoimpl.ExtensionInfo{ |
| 393 |
{ |
| 394 |
ExtendedType: (*M)(nil), |
| 395 |
ExtensionType: (*string)(nil), |
| 396 |
Field: 100, |
| 397 |
Name: "goproto.protoc.import_public.sub.extension_field", |
| 398 |
Tag: "bytes,100,opt,name=extension_field", |
| 399 |
Filename: "cmd/protoc-gen-go/testdata/import_public/sub/a.proto", |
| 400 |
}, |
| 401 |
} |
| 402 |
|
| 403 |
// Extension fields to M. |
| 404 |
var ( |
| 405 |
// optional string extension_field = 100; |
| 406 |
E_ExtensionField = &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes[0] |
| 407 |
) |
| 408 |
|
| 409 |
var File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto protoreflect.FileDescriptor |
| 410 |
|
| 411 |
const file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc = "" + |
| 412 |
"\n" + |
| 413 |
"4cmd/protoc-gen-go/testdata/import_public/sub/a.proto\x12 goproto.protoc.import_public.sub\x1a5cmd/protoc-gen-go/testdata/import_public/sub2/a.proto\x1a4cmd/protoc-gen-go/testdata/import_public/sub/b.proto\"\xb6\x03\n" + |
| 414 |
"\x01M\x124\n" + |
| 415 |
"\x02m2\x18\x01 \x01(\v2$.goproto.protoc.import_public.sub.M2R\x02m2\x12\x15\n" + |
| 416 |
"\x01s\x18\x04 \x01(\t:\adefaultR\x01s\x12\x15\n" + |
| 417 |
"\x01b\x18\x05 \x01(\f:\adefaultR\x01b\x12\x11\n" + |
| 418 |
"\x01f\x18\x06 \x01(\x01:\x03nanR\x01f\x12!\n" + |
| 419 |
"\voneof_int32\x18\x02 \x01(\x05H\x00R\n" + |
| 420 |
"oneofInt32\x12!\n" + |
| 421 |
"\voneof_int64\x18\x03 \x01(\x03H\x00R\n" + |
| 422 |
"oneofInt64\x1a\xc3\x01\n" + |
| 423 |
"\n" + |
| 424 |
"Submessage\x126\n" + |
| 425 |
"\x16submessage_oneof_int32\x18\x01 \x01(\x05H\x00R\x14submessageOneofInt32\x126\n" + |
| 426 |
"\x16submessage_oneof_int64\x18\x02 \x01(\x03H\x00R\x14submessageOneofInt64\"+\n" + |
| 427 |
"\x12Submessage_Subenum\x12\x15\n" + |
| 428 |
"\x11M_SUBMESSAGE_ZERO\x10\x00B\x18\n" + |
| 429 |
"\x16submessage_oneof_field\"\x15\n" + |
| 430 |
"\aSubenum\x12\n" + |
| 431 |
"\n" + |
| 432 |
"\x06M_ZERO\x10\x00*\b\bd\x10\x80\x80\x80\x80\x02B\r\n" + |
| 433 |
"\voneof_field*\r\n" + |
| 434 |
"\x01E\x12\b\n" + |
| 435 |
"\x04ZERO\x10\x00:L\n" + |
| 436 |
"\x0fextension_field\x12#.goproto.protoc.import_public.sub.M\x18d \x01(\tR\x0eextensionFieldBIZGgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/subP\x00" |
| 437 |
|
| 438 |
var ( |
| 439 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescOnce sync.Once |
| 440 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData []byte |
| 441 |
) |
| 442 |
|
| 443 |
func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP() []byte { |
| 444 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescOnce.Do(func() { |
| 445 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc))) |
| 446 |
}) |
| 447 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData |
| 448 |
} |
| 449 |
|
| 450 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes = make([]protoimpl.EnumInfo, 3) |
| 451 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 452 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = []any{ |
| 453 |
(E)(0), // 0: goproto.protoc.import_public.sub.E |
| 454 |
(M_Subenum)(0), // 1: goproto.protoc.import_public.sub.M.Subenum |
| 455 |
(M_Submessage_Submessage_Subenum)(0), // 2: goproto.protoc.import_public.sub.M.Submessage.Submessage_Subenum |
| 456 |
(*M)(nil), // 3: goproto.protoc.import_public.sub.M |
| 457 |
(*M_Submessage)(nil), // 4: goproto.protoc.import_public.sub.M.Submessage |
| 458 |
(*M2)(nil), // 5: goproto.protoc.import_public.sub.M2 |
| 459 |
} |
| 460 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs = []int32{ |
| 461 |
5, // 0: goproto.protoc.import_public.sub.M.m2:type_name -> goproto.protoc.import_public.sub.M2 |
| 462 |
3, // 1: goproto.protoc.import_public.sub.extension_field:extendee -> goproto.protoc.import_public.sub.M |
| 463 |
2, // [2:2] is the sub-list for method output_type |
| 464 |
2, // [2:2] is the sub-list for method input_type |
| 465 |
2, // [2:2] is the sub-list for extension type_name |
| 466 |
1, // [1:2] is the sub-list for extension extendee |
| 467 |
0, // [0:1] is the sub-list for field type_name |
| 468 |
} |
| 469 |
|
| 470 |
func init() { file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() } |
| 471 |
func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() { |
| 472 |
if File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto != nil { |
| 473 |
return |
| 474 |
} |
| 475 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init() |
| 476 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []any{ |
| 477 |
(*M_OneofInt32)(nil), |
| 478 |
(*M_OneofInt64)(nil), |
| 479 |
} |
| 480 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []any{ |
| 481 |
(*M_Submessage_SubmessageOneofInt32)(nil), |
| 482 |
(*M_Submessage_SubmessageOneofInt64)(nil), |
| 483 |
} |
| 484 |
type x struct{} |
| 485 |
out := protoimpl.TypeBuilder{ |
| 486 |
File: protoimpl.DescBuilder{ |
| 487 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 488 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc)), |
| 489 |
NumEnums: 3, |
| 490 |
NumMessages: 2, |
| 491 |
NumExtensions: 1, |
| 492 |
NumServices: 0, |
| 493 |
}, |
| 494 |
GoTypes: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes, |
| 495 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs, |
| 496 |
EnumInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes, |
| 497 |
MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes, |
| 498 |
ExtensionInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes, |
| 499 |
}.Build() |
| 500 |
File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto = out.File |
| 501 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = nil |
| 502 |
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs = nil |
| 503 |
} |