| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package proto3pb |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
reflect "reflect" |
| 13 |
sync "sync" |
| 14 |
) |
| 15 |
|
| 16 |
const ( |
| 17 |
|
| 18 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 19 |
|
| 20 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 21 |
) |
| 22 |
|
| 23 |
type ImportedGlobalEnum int32 |
| 24 |
|
| 25 |
const ( |
| 26 |
ImportedGlobalEnum_IMPORT_FOO ImportedGlobalEnum = 0 |
| 27 |
ImportedGlobalEnum_IMPORT_BAR ImportedGlobalEnum = 1 |
| 28 |
ImportedGlobalEnum_IMPORT_BAZ ImportedGlobalEnum = 2 |
| 29 |
) |
| 30 |
|
| 31 |
|
| 32 |
var ( |
| 33 |
ImportedGlobalEnum_name = map[int32]string{ |
| 34 |
0: "IMPORT_FOO", |
| 35 |
1: "IMPORT_BAR", |
| 36 |
2: "IMPORT_BAZ", |
| 37 |
} |
| 38 |
ImportedGlobalEnum_value = map[string]int32{ |
| 39 |
"IMPORT_FOO": 0, |
| 40 |
"IMPORT_BAR": 1, |
| 41 |
"IMPORT_BAZ": 2, |
| 42 |
} |
| 43 |
) |
| 44 |
|
| 45 |
func (x ImportedGlobalEnum) Enum() *ImportedGlobalEnum { |
| 46 |
p := new(ImportedGlobalEnum) |
| 47 |
*p = x |
| 48 |
return p |
| 49 |
} |
| 50 |
|
| 51 |
func (x ImportedGlobalEnum) String() string { |
| 52 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 53 |
} |
| 54 |
|
| 55 |
func (ImportedGlobalEnum) Descriptor() protoreflect.EnumDescriptor { |
| 56 |
return file_test_proto3pb_test_import_proto_enumTypes[0].Descriptor() |
| 57 |
} |
| 58 |
|
| 59 |
func (ImportedGlobalEnum) Type() protoreflect.EnumType { |
| 60 |
return &file_test_proto3pb_test_import_proto_enumTypes[0] |
| 61 |
} |
| 62 |
|
| 63 |
func (x ImportedGlobalEnum) Number() protoreflect.EnumNumber { |
| 64 |
return protoreflect.EnumNumber(x) |
| 65 |
} |
| 66 |
|
| 67 |
|
| 68 |
func (ImportedGlobalEnum) EnumDescriptor() ([]byte, []int) { |
| 69 |
return file_test_proto3pb_test_import_proto_rawDescGZIP(), []int{0} |
| 70 |
} |
| 71 |
|
| 72 |
var File_test_proto3pb_test_import_proto protoreflect.FileDescriptor |
| 73 |
|
| 74 |
var file_test_proto3pb_test_import_proto_rawDesc = []byte{ |
| 75 |
0x0a, 0x1f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x70, 0x62, 0x2f, |
| 76 |
0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 77 |
0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, |
| 78 |
0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2a, 0x44, 0x0a, 0x12, 0x49, 0x6d, |
| 79 |
0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, |
| 80 |
0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x4f, 0x10, 0x00, |
| 81 |
0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x41, 0x52, 0x10, 0x01, |
| 82 |
0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x41, 0x5a, 0x10, 0x02, |
| 83 |
0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, |
| 84 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, 0x6c, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, |
| 85 |
0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 86 |
0x6f, 0x33, |
| 87 |
} |
| 88 |
|
| 89 |
var ( |
| 90 |
file_test_proto3pb_test_import_proto_rawDescOnce sync.Once |
| 91 |
file_test_proto3pb_test_import_proto_rawDescData = file_test_proto3pb_test_import_proto_rawDesc |
| 92 |
) |
| 93 |
|
| 94 |
func file_test_proto3pb_test_import_proto_rawDescGZIP() []byte { |
| 95 |
file_test_proto3pb_test_import_proto_rawDescOnce.Do(func() { |
| 96 |
file_test_proto3pb_test_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto3pb_test_import_proto_rawDescData) |
| 97 |
}) |
| 98 |
return file_test_proto3pb_test_import_proto_rawDescData |
| 99 |
} |
| 100 |
|
| 101 |
var file_test_proto3pb_test_import_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 102 |
var file_test_proto3pb_test_import_proto_goTypes = []interface{}{ |
| 103 |
(ImportedGlobalEnum)(0), |
| 104 |
} |
| 105 |
var file_test_proto3pb_test_import_proto_depIdxs = []int32{ |
| 106 |
0, |
| 107 |
0, |
| 108 |
0, |
| 109 |
0, |
| 110 |
0, |
| 111 |
} |
| 112 |
|
| 113 |
func init() { file_test_proto3pb_test_import_proto_init() } |
| 114 |
func file_test_proto3pb_test_import_proto_init() { |
| 115 |
if File_test_proto3pb_test_import_proto != nil { |
| 116 |
return |
| 117 |
} |
| 118 |
type x struct{} |
| 119 |
out := protoimpl.TypeBuilder{ |
| 120 |
File: protoimpl.DescBuilder{ |
| 121 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 122 |
RawDescriptor: file_test_proto3pb_test_import_proto_rawDesc, |
| 123 |
NumEnums: 1, |
| 124 |
NumMessages: 0, |
| 125 |
NumExtensions: 0, |
| 126 |
NumServices: 0, |
| 127 |
}, |
| 128 |
GoTypes: file_test_proto3pb_test_import_proto_goTypes, |
| 129 |
DependencyIndexes: file_test_proto3pb_test_import_proto_depIdxs, |
| 130 |
EnumInfos: file_test_proto3pb_test_import_proto_enumTypes, |
| 131 |
}.Build() |
| 132 |
File_test_proto3pb_test_import_proto = out.File |
| 133 |
file_test_proto3pb_test_import_proto_rawDesc = nil |
| 134 |
file_test_proto3pb_test_import_proto_goTypes = nil |
| 135 |
file_test_proto3pb_test_import_proto_depIdxs = nil |
| 136 |
} |