1
2
3
4
5
6
7
8 package test
9
10 import (
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 type ImportEnum int32
18
19 const (
20 ImportEnum_IMPORT_ZERO ImportEnum = 0
21 )
22
23
24 var (
25 ImportEnum_name = map[int32]string{
26 0: "IMPORT_ZERO",
27 }
28 ImportEnum_value = map[string]int32{
29 "IMPORT_ZERO": 0,
30 }
31 )
32
33 func (x ImportEnum) Enum() *ImportEnum {
34 p := new(ImportEnum)
35 *p = x
36 return p
37 }
38
39 func (x ImportEnum) String() string {
40 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
41 }
42
43 func (ImportEnum) Descriptor() protoreflect.EnumDescriptor {
44 return file_internal_testprotos_test_test_import_proto_enumTypes[0].Descriptor()
45 }
46
47 func (ImportEnum) Type() protoreflect.EnumType {
48 return &file_internal_testprotos_test_test_import_proto_enumTypes[0]
49 }
50
51 func (x ImportEnum) Number() protoreflect.EnumNumber {
52 return protoreflect.EnumNumber(x)
53 }
54
55
56 func (x *ImportEnum) UnmarshalJSON(b []byte) error {
57 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
58 if err != nil {
59 return err
60 }
61 *x = ImportEnum(num)
62 return nil
63 }
64
65
66 func (ImportEnum) EnumDescriptor() ([]byte, []int) {
67 return file_internal_testprotos_test_test_import_proto_rawDescGZIP(), []int{0}
68 }
69
70 type ImportMessage struct {
71 state protoimpl.MessageState
72 sizeCache protoimpl.SizeCache
73 unknownFields protoimpl.UnknownFields
74 }
75
76 func (x *ImportMessage) Reset() {
77 *x = ImportMessage{}
78 if protoimpl.UnsafeEnabled {
79 mi := &file_internal_testprotos_test_test_import_proto_msgTypes[0]
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 ms.StoreMessageInfo(mi)
82 }
83 }
84
85 func (x *ImportMessage) String() string {
86 return protoimpl.X.MessageStringOf(x)
87 }
88
89 func (*ImportMessage) ProtoMessage() {}
90
91 func (x *ImportMessage) ProtoReflect() protoreflect.Message {
92 mi := &file_internal_testprotos_test_test_import_proto_msgTypes[0]
93 if protoimpl.UnsafeEnabled && x != nil {
94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
95 if ms.LoadMessageInfo() == nil {
96 ms.StoreMessageInfo(mi)
97 }
98 return ms
99 }
100 return mi.MessageOf(x)
101 }
102
103
104 func (*ImportMessage) Descriptor() ([]byte, []int) {
105 return file_internal_testprotos_test_test_import_proto_rawDescGZIP(), []int{0}
106 }
107
108 var File_internal_testprotos_test_test_import_proto protoreflect.FileDescriptor
109
110 var file_internal_testprotos_test_test_import_proto_rawDesc = []byte{
111 0x0a, 0x2a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
112 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f,
113 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f,
114 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74,
115 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
116 0x65, 0x2a, 0x1d, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12,
117 0x0f, 0x0a, 0x0b, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00,
118 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
119 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
120 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
121 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74,
122 }
123
124 var (
125 file_internal_testprotos_test_test_import_proto_rawDescOnce sync.Once
126 file_internal_testprotos_test_test_import_proto_rawDescData = file_internal_testprotos_test_test_import_proto_rawDesc
127 )
128
129 func file_internal_testprotos_test_test_import_proto_rawDescGZIP() []byte {
130 file_internal_testprotos_test_test_import_proto_rawDescOnce.Do(func() {
131 file_internal_testprotos_test_test_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_test_test_import_proto_rawDescData)
132 })
133 return file_internal_testprotos_test_test_import_proto_rawDescData
134 }
135
136 var file_internal_testprotos_test_test_import_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
137 var file_internal_testprotos_test_test_import_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
138 var file_internal_testprotos_test_test_import_proto_goTypes = []interface{}{
139 (ImportEnum)(0),
140 (*ImportMessage)(nil),
141 }
142 var file_internal_testprotos_test_test_import_proto_depIdxs = []int32{
143 0,
144 0,
145 0,
146 0,
147 0,
148 }
149
150 func init() { file_internal_testprotos_test_test_import_proto_init() }
151 func file_internal_testprotos_test_test_import_proto_init() {
152 if File_internal_testprotos_test_test_import_proto != nil {
153 return
154 }
155 if !protoimpl.UnsafeEnabled {
156 file_internal_testprotos_test_test_import_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
157 switch v := v.(*ImportMessage); i {
158 case 0:
159 return &v.state
160 case 1:
161 return &v.sizeCache
162 case 2:
163 return &v.unknownFields
164 default:
165 return nil
166 }
167 }
168 }
169 type x struct{}
170 out := protoimpl.TypeBuilder{
171 File: protoimpl.DescBuilder{
172 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
173 RawDescriptor: file_internal_testprotos_test_test_import_proto_rawDesc,
174 NumEnums: 1,
175 NumMessages: 1,
176 NumExtensions: 0,
177 NumServices: 0,
178 },
179 GoTypes: file_internal_testprotos_test_test_import_proto_goTypes,
180 DependencyIndexes: file_internal_testprotos_test_test_import_proto_depIdxs,
181 EnumInfos: file_internal_testprotos_test_test_import_proto_enumTypes,
182 MessageInfos: file_internal_testprotos_test_test_import_proto_msgTypes,
183 }.Build()
184 File_internal_testprotos_test_test_import_proto = out.File
185 file_internal_testprotos_test_test_import_proto_rawDesc = nil
186 file_internal_testprotos_test_test_import_proto_goTypes = nil
187 file_internal_testprotos_test_test_import_proto_depIdxs = nil
188 }
189
View as plain text