Debian Codegraph @

crit/images/ghost-file/ghost-file.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: ghost-file.proto
8
9 package ghost_file
10
11 import (
12 _ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts"
13 time "github.com/checkpoint-restore/go-criu/v7/crit/images/time"
14 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16 reflect "reflect"
17 sync "sync"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 type GhostFileEntry struct {
28 state protoimpl.MessageState
29 sizeCache protoimpl.SizeCache
30 unknownFields protoimpl.UnknownFields
31
32 Uid *uint32 `protobuf:"varint,1,req,name=uid" json:"uid,omitempty"`
33 Gid *uint32 `protobuf:"varint,2,req,name=gid" json:"gid,omitempty"`
34 Mode *uint32 `protobuf:"varint,3,req,name=mode" json:"mode,omitempty"`
35 Dev *uint32 `protobuf:"varint,4,opt,name=dev" json:"dev,omitempty"`
36 Ino *uint64 `protobuf:"varint,5,opt,name=ino" json:"ino,omitempty"`
37 Rdev *uint32 `protobuf:"varint,6,opt,name=rdev" json:"rdev,omitempty"`
38 Atim *time.Timeval `protobuf:"bytes,7,opt,name=atim" json:"atim,omitempty"`
39 Mtim *time.Timeval `protobuf:"bytes,8,opt,name=mtim" json:"mtim,omitempty"`
40 Chunks *bool `protobuf:"varint,9,opt,name=chunks" json:"chunks,omitempty"`
41 Size *uint64 `protobuf:"varint,10,opt,name=size" json:"size,omitempty"`
42 // this field makes sense only when S_ISLNK(mode)
43 SymlnkTarget *string `protobuf:"bytes,11,opt,name=symlnk_target,json=symlnkTarget" json:"symlnk_target,omitempty"`
44 }
45
46 func (x *GhostFileEntry) Reset() {
47 *x = GhostFileEntry{}
48 if protoimpl.UnsafeEnabled {
49 mi := &file_ghost_file_proto_msgTypes[0]
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 ms.StoreMessageInfo(mi)
52 }
53 }
54
55 func (x *GhostFileEntry) String() string {
56 return protoimpl.X.MessageStringOf(x)
57 }
58
59 func (*GhostFileEntry) ProtoMessage() {}
60
61 func (x *GhostFileEntry) ProtoReflect() protoreflect.Message {
62 mi := &file_ghost_file_proto_msgTypes[0]
63 if protoimpl.UnsafeEnabled && x != nil {
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 if ms.LoadMessageInfo() == nil {
66 ms.StoreMessageInfo(mi)
67 }
68 return ms
69 }
70 return mi.MessageOf(x)
71 }
72
73 // Deprecated: Use GhostFileEntry.ProtoReflect.Descriptor instead.
74 func (*GhostFileEntry) Descriptor() ([]byte, []int) {
75 return file_ghost_file_proto_rawDescGZIP(), []int{0}
76 }
77
78 func (x *GhostFileEntry) GetUid() uint32 {
79 if x != nil && x.Uid != nil {
80 return *x.Uid
81 }
82 return 0
83 }
84
85 func (x *GhostFileEntry) GetGid() uint32 {
86 if x != nil && x.Gid != nil {
87 return *x.Gid
88 }
89 return 0
90 }
91
92 func (x *GhostFileEntry) GetMode() uint32 {
93 if x != nil && x.Mode != nil {
94 return *x.Mode
95 }
96 return 0
97 }
98
99 func (x *GhostFileEntry) GetDev() uint32 {
100 if x != nil && x.Dev != nil {
101 return *x.Dev
102 }
103 return 0
104 }
105
106 func (x *GhostFileEntry) GetIno() uint64 {
107 if x != nil && x.Ino != nil {
108 return *x.Ino
109 }
110 return 0
111 }
112
113 func (x *GhostFileEntry) GetRdev() uint32 {
114 if x != nil && x.Rdev != nil {
115 return *x.Rdev
116 }
117 return 0
118 }
119
120 func (x *GhostFileEntry) GetAtim() *time.Timeval {
121 if x != nil {
122 return x.Atim
123 }
124 return nil
125 }
126
127 func (x *GhostFileEntry) GetMtim() *time.Timeval {
128 if x != nil {
129 return x.Mtim
130 }
131 return nil
132 }
133
134 func (x *GhostFileEntry) GetChunks() bool {
135 if x != nil && x.Chunks != nil {
136 return *x.Chunks
137 }
138 return false
139 }
140
141 func (x *GhostFileEntry) GetSize() uint64 {
142 if x != nil && x.Size != nil {
143 return *x.Size
144 }
145 return 0
146 }
147
148 func (x *GhostFileEntry) GetSymlnkTarget() string {
149 if x != nil && x.SymlnkTarget != nil {
150 return *x.SymlnkTarget
151 }
152 return ""
153 }
154
155 type GhostChunkEntry struct {
156 state protoimpl.MessageState
157 sizeCache protoimpl.SizeCache
158 unknownFields protoimpl.UnknownFields
159
160 Len *uint64 `protobuf:"varint,1,req,name=len" json:"len,omitempty"`
161 Off *uint64 `protobuf:"varint,2,req,name=off" json:"off,omitempty"`
162 }
163
164 func (x *GhostChunkEntry) Reset() {
165 *x = GhostChunkEntry{}
166 if protoimpl.UnsafeEnabled {
167 mi := &file_ghost_file_proto_msgTypes[1]
168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
169 ms.StoreMessageInfo(mi)
170 }
171 }
172
173 func (x *GhostChunkEntry) String() string {
174 return protoimpl.X.MessageStringOf(x)
175 }
176
177 func (*GhostChunkEntry) ProtoMessage() {}
178
179 func (x *GhostChunkEntry) ProtoReflect() protoreflect.Message {
180 mi := &file_ghost_file_proto_msgTypes[1]
181 if protoimpl.UnsafeEnabled && x != nil {
182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
183 if ms.LoadMessageInfo() == nil {
184 ms.StoreMessageInfo(mi)
185 }
186 return ms
187 }
188 return mi.MessageOf(x)
189 }
190
191 // Deprecated: Use GhostChunkEntry.ProtoReflect.Descriptor instead.
192 func (*GhostChunkEntry) Descriptor() ([]byte, []int) {
193 return file_ghost_file_proto_rawDescGZIP(), []int{1}
194 }
195
196 func (x *GhostChunkEntry) GetLen() uint64 {
197 if x != nil && x.Len != nil {
198 return *x.Len
199 }
200 return 0
201 }
202
203 func (x *GhostChunkEntry) GetOff() uint64 {
204 if x != nil && x.Off != nil {
205 return *x.Off
206 }
207 return 0
208 }
209
210 var File_ghost_file_proto protoreflect.FileDescriptor
211
212 var file_ghost_file_proto_rawDesc = []byte{
213 0x0a, 0x10, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x2d, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
214 0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a,
215 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x02, 0x0a, 0x10, 0x67,
216 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12,
217 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69,
218 0x64, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03,
219 0x67, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28,
220 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x03, 0x64, 0x65, 0x76, 0x18, 0x04,
221 0x20, 0x01, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x20, 0x01, 0x52, 0x03, 0x64, 0x65, 0x76,
222 0x12, 0x10, 0x0a, 0x03, 0x69, 0x6e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x69,
223 0x6e, 0x6f, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x64, 0x65, 0x76, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d,
224 0x42, 0x07, 0xd2, 0x3f, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x72, 0x64, 0x65, 0x76, 0x12,
225 0x1c, 0x0a, 0x04, 0x61, 0x74, 0x69, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e,
226 0x74, 0x69, 0x6d, 0x65, 0x76, 0x61, 0x6c, 0x52, 0x04, 0x61, 0x74, 0x69, 0x6d, 0x12, 0x1c, 0x0a,
227 0x04, 0x6d, 0x74, 0x69, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x74, 0x69,
228 0x6d, 0x65, 0x76, 0x61, 0x6c, 0x52, 0x04, 0x6d, 0x74, 0x69, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x63,
229 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x68, 0x75,
230 0x6e, 0x6b, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
231 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x79, 0x6d, 0x6c, 0x6e,
232 0x6b, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
233 0x73, 0x79, 0x6d, 0x6c, 0x6e, 0x6b, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x37, 0x0a, 0x11,
234 0x67, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72,
235 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x02, 0x28, 0x04, 0x52, 0x03,
236 0x6c, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x66, 0x66, 0x18, 0x02, 0x20, 0x02, 0x28, 0x04,
237 0x52, 0x03, 0x6f, 0x66, 0x66,
238 }
239
240 var (
241 file_ghost_file_proto_rawDescOnce sync.Once
242 file_ghost_file_proto_rawDescData = file_ghost_file_proto_rawDesc
243 )
244
245 func file_ghost_file_proto_rawDescGZIP() []byte {
246 file_ghost_file_proto_rawDescOnce.Do(func() {
247 file_ghost_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_ghost_file_proto_rawDescData)
248 })
249 return file_ghost_file_proto_rawDescData
250 }
251
252 var file_ghost_file_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
253 var file_ghost_file_proto_goTypes = []interface{}{
254 (*GhostFileEntry)(nil), // 0: ghost_file_entry
255 (*GhostChunkEntry)(nil), // 1: ghost_chunk_entry
256 (*time.Timeval)(nil), // 2: timeval
257 }
258 var file_ghost_file_proto_depIdxs = []int32{
259 2, // 0: ghost_file_entry.atim:type_name -> timeval
260 2, // 1: ghost_file_entry.mtim:type_name -> timeval
261 2, // [2:2] is the sub-list for method output_type
262 2, // [2:2] is the sub-list for method input_type
263 2, // [2:2] is the sub-list for extension type_name
264 2, // [2:2] is the sub-list for extension extendee
265 0, // [0:2] is the sub-list for field type_name
266 }
267
268 func init() { file_ghost_file_proto_init() }
269 func file_ghost_file_proto_init() {
270 if File_ghost_file_proto != nil {
271 return
272 }
273 if !protoimpl.UnsafeEnabled {
274 file_ghost_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
275 switch v := v.(*GhostFileEntry); i {
276 case 0:
277 return &v.state
278 case 1:
279 return &v.sizeCache
280 case 2:
281 return &v.unknownFields
282 default:
283 return nil
284 }
285 }
286 file_ghost_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
287 switch v := v.(*GhostChunkEntry); i {
288 case 0:
289 return &v.state
290 case 1:
291 return &v.sizeCache
292 case 2:
293 return &v.unknownFields
294 default:
295 return nil
296 }
297 }
298 }
299 type x struct{}
300 out := protoimpl.TypeBuilder{
301 File: protoimpl.DescBuilder{
302 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
303 RawDescriptor: file_ghost_file_proto_rawDesc,
304 NumEnums: 0,
305 NumMessages: 2,
306 NumExtensions: 0,
307 NumServices: 0,
308 },
309 GoTypes: file_ghost_file_proto_goTypes,
310 DependencyIndexes: file_ghost_file_proto_depIdxs,
311 MessageInfos: file_ghost_file_proto_msgTypes,
312 }.Build()
313 File_ghost_file_proto = out.File
314 file_ghost_file_proto_rawDesc = nil
315 file_ghost_file_proto_goTypes = nil
316 file_ghost_file_proto_depIdxs = nil
317 }