Debian Codegraph @

crit/images/fh/fh.pb.go

raw symbols SCIP
1 // SPDX-License-Identifier: MIT
2
3 // Code generated by protoc-gen-go. DO NOT EDIT.
4 // versions:
5 // protoc-gen-go v1.30.0
6 // protoc v4.23.4
7 // source: fh.proto
8
9 package fh
10
11 import (
12 _ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts"
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 type FhEntrySizes int32
27
28 const (
29 FhEntrySizes_min_entries FhEntrySizes = 16
30 )
31
32 // Enum value maps for FhEntrySizes.
33 var (
34 FhEntrySizes_name = map[int32]string{
35 16: "min_entries",
36 }
37 FhEntrySizes_value = map[string]int32{
38 "min_entries": 16,
39 }
40 )
41
42 func (x FhEntrySizes) Enum() *FhEntrySizes {
43 p := new(FhEntrySizes)
44 *p = x
45 return p
46 }
47
48 func (x FhEntrySizes) String() string {
49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
50 }
51
52 func (FhEntrySizes) Descriptor() protoreflect.EnumDescriptor {
53 return file_fh_proto_enumTypes[0].Descriptor()
54 }
55
56 func (FhEntrySizes) Type() protoreflect.EnumType {
57 return &file_fh_proto_enumTypes[0]
58 }
59
60 func (x FhEntrySizes) Number() protoreflect.EnumNumber {
61 return protoreflect.EnumNumber(x)
62 }
63
64 // Deprecated: Do not use.
65 func (x *FhEntrySizes) UnmarshalJSON(b []byte) error {
66 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
67 if err != nil {
68 return err
69 }
70 *x = FhEntrySizes(num)
71 return nil
72 }
73
74 // Deprecated: Use FhEntrySizes.Descriptor instead.
75 func (FhEntrySizes) EnumDescriptor() ([]byte, []int) {
76 return file_fh_proto_rawDescGZIP(), []int{0}
77 }
78
79 type FhEntry struct {
80 state protoimpl.MessageState
81 sizeCache protoimpl.SizeCache
82 unknownFields protoimpl.UnknownFields
83
84 Bytes *uint32 `protobuf:"varint,1,req,name=bytes" json:"bytes,omitempty"`
85 Type *uint32 `protobuf:"varint,2,req,name=type" json:"type,omitempty"`
86 // The minimum is fh_n_handle repetitions
87 Handle []uint64 `protobuf:"varint,3,rep,name=handle" json:"handle,omitempty"`
88 Path *string `protobuf:"bytes,4,opt,name=path" json:"path,omitempty"`
89 MntId *uint32 `protobuf:"varint,5,opt,name=mnt_id,json=mntId" json:"mnt_id,omitempty"`
90 }
91
92 func (x *FhEntry) Reset() {
93 *x = FhEntry{}
94 if protoimpl.UnsafeEnabled {
95 mi := &file_fh_proto_msgTypes[0]
96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97 ms.StoreMessageInfo(mi)
98 }
99 }
100
101 func (x *FhEntry) String() string {
102 return protoimpl.X.MessageStringOf(x)
103 }
104
105 func (*FhEntry) ProtoMessage() {}
106
107 func (x *FhEntry) ProtoReflect() protoreflect.Message {
108 mi := &file_fh_proto_msgTypes[0]
109 if protoimpl.UnsafeEnabled && x != nil {
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 if ms.LoadMessageInfo() == nil {
112 ms.StoreMessageInfo(mi)
113 }
114 return ms
115 }
116 return mi.MessageOf(x)
117 }
118
119 // Deprecated: Use FhEntry.ProtoReflect.Descriptor instead.
120 func (*FhEntry) Descriptor() ([]byte, []int) {
121 return file_fh_proto_rawDescGZIP(), []int{0}
122 }
123
124 func (x *FhEntry) GetBytes() uint32 {
125 if x != nil && x.Bytes != nil {
126 return *x.Bytes
127 }
128 return 0
129 }
130
131 func (x *FhEntry) GetType() uint32 {
132 if x != nil && x.Type != nil {
133 return *x.Type
134 }
135 return 0
136 }
137
138 func (x *FhEntry) GetHandle() []uint64 {
139 if x != nil {
140 return x.Handle
141 }
142 return nil
143 }
144
145 func (x *FhEntry) GetPath() string {
146 if x != nil && x.Path != nil {
147 return *x.Path
148 }
149 return ""
150 }
151
152 func (x *FhEntry) GetMntId() uint32 {
153 if x != nil && x.MntId != nil {
154 return *x.MntId
155 }
156 return 0
157 }
158
159 type IrmapCacheEntry struct {
160 state protoimpl.MessageState
161 sizeCache protoimpl.SizeCache
162 unknownFields protoimpl.UnknownFields
163
164 Dev *uint32 `protobuf:"varint,1,req,name=dev" json:"dev,omitempty"`
165 Inode *uint64 `protobuf:"varint,2,req,name=inode" json:"inode,omitempty"`
166 Path *string `protobuf:"bytes,3,req,name=path" json:"path,omitempty"`
167 }
168
169 func (x *IrmapCacheEntry) Reset() {
170 *x = IrmapCacheEntry{}
171 if protoimpl.UnsafeEnabled {
172 mi := &file_fh_proto_msgTypes[1]
173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174 ms.StoreMessageInfo(mi)
175 }
176 }
177
178 func (x *IrmapCacheEntry) String() string {
179 return protoimpl.X.MessageStringOf(x)
180 }
181
182 func (*IrmapCacheEntry) ProtoMessage() {}
183
184 func (x *IrmapCacheEntry) ProtoReflect() protoreflect.Message {
185 mi := &file_fh_proto_msgTypes[1]
186 if protoimpl.UnsafeEnabled && x != nil {
187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188 if ms.LoadMessageInfo() == nil {
189 ms.StoreMessageInfo(mi)
190 }
191 return ms
192 }
193 return mi.MessageOf(x)
194 }
195
196 // Deprecated: Use IrmapCacheEntry.ProtoReflect.Descriptor instead.
197 func (*IrmapCacheEntry) Descriptor() ([]byte, []int) {
198 return file_fh_proto_rawDescGZIP(), []int{1}
199 }
200
201 func (x *IrmapCacheEntry) GetDev() uint32 {
202 if x != nil && x.Dev != nil {
203 return *x.Dev
204 }
205 return 0
206 }
207
208 func (x *IrmapCacheEntry) GetInode() uint64 {
209 if x != nil && x.Inode != nil {
210 return *x.Inode
211 }
212 return 0
213 }
214
215 func (x *IrmapCacheEntry) GetPath() string {
216 if x != nil && x.Path != nil {
217 return *x.Path
218 }
219 return ""
220 }
221
222 var File_fh_proto protoreflect.FileDescriptor
223
224 var file_fh_proto_rawDesc = []byte{
225 0x0a, 0x08, 0x66, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, 0x74, 0x73,
226 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x08, 0x66, 0x68, 0x5f, 0x65, 0x6e, 0x74,
227 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x02, 0x28,
228 0x0d, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
229 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
230 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x06, 0x68, 0x61,
231 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01,
232 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x6d, 0x6e, 0x74, 0x5f,
233 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x6e, 0x74, 0x49, 0x64, 0x22,
234 0x58, 0x0a, 0x11, 0x69, 0x72, 0x6d, 0x61, 0x70, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x65,
235 0x6e, 0x74, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x03, 0x64, 0x65, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28,
236 0x0d, 0x42, 0x07, 0xd2, 0x3f, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x64, 0x65, 0x76, 0x12,
237 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x04, 0x52, 0x05,
238 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20,
239 0x02, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x2a, 0x21, 0x0a, 0x0e, 0x66, 0x68, 0x5f,
240 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x6d,
241 0x69, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x10, 0x10,
242 }
243
244 var (
245 file_fh_proto_rawDescOnce sync.Once
246 file_fh_proto_rawDescData = file_fh_proto_rawDesc
247 )
248
249 func file_fh_proto_rawDescGZIP() []byte {
250 file_fh_proto_rawDescOnce.Do(func() {
251 file_fh_proto_rawDescData = protoimpl.X.CompressGZIP(file_fh_proto_rawDescData)
252 })
253 return file_fh_proto_rawDescData
254 }
255
256 var file_fh_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
257 var file_fh_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
258 var file_fh_proto_goTypes = []interface{}{
259 (FhEntrySizes)(0), // 0: fh_entry_sizes
260 (*FhEntry)(nil), // 1: fh_entry
261 (*IrmapCacheEntry)(nil), // 2: irmap_cache_entry
262 }
263 var file_fh_proto_depIdxs = []int32{
264 0, // [0:0] is the sub-list for method output_type
265 0, // [0:0] is the sub-list for method input_type
266 0, // [0:0] is the sub-list for extension type_name
267 0, // [0:0] is the sub-list for extension extendee
268 0, // [0:0] is the sub-list for field type_name
269 }
270
271 func init() { file_fh_proto_init() }
272 func file_fh_proto_init() {
273 if File_fh_proto != nil {
274 return
275 }
276 if !protoimpl.UnsafeEnabled {
277 file_fh_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
278 switch v := v.(*FhEntry); i {
279 case 0:
280 return &v.state
281 case 1:
282 return &v.sizeCache
283 case 2:
284 return &v.unknownFields
285 default:
286 return nil
287 }
288 }
289 file_fh_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
290 switch v := v.(*IrmapCacheEntry); i {
291 case 0:
292 return &v.state
293 case 1:
294 return &v.sizeCache
295 case 2:
296 return &v.unknownFields
297 default:
298 return nil
299 }
300 }
301 }
302 type x struct{}
303 out := protoimpl.TypeBuilder{
304 File: protoimpl.DescBuilder{
305 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
306 RawDescriptor: file_fh_proto_rawDesc,
307 NumEnums: 1,
308 NumMessages: 2,
309 NumExtensions: 0,
310 NumServices: 0,
311 },
312 GoTypes: file_fh_proto_goTypes,
313 DependencyIndexes: file_fh_proto_depIdxs,
314 EnumInfos: file_fh_proto_enumTypes,
315 MessageInfos: file_fh_proto_msgTypes,
316 }.Build()
317 File_fh_proto = out.File
318 file_fh_proto_rawDesc = nil
319 file_fh_proto_goTypes = nil
320 file_fh_proto_depIdxs = nil
321 }