Debian Codegraph @

crit/images/memfd/memfd.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: memfd.proto
8
9 package memfd
10
11 import (
12 fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown"
13 _ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts"
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 MemfdFileEntry struct {
28 state protoimpl.MessageState
29 sizeCache protoimpl.SizeCache
30 unknownFields protoimpl.UnknownFields
31
32 Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
33 Flags *uint32 `protobuf:"varint,2,req,name=flags" json:"flags,omitempty"`
34 Pos *uint64 `protobuf:"varint,3,req,name=pos" json:"pos,omitempty"`
35 Fown *fown.FownEntry `protobuf:"bytes,4,req,name=fown" json:"fown,omitempty"`
36 InodeId *uint32 `protobuf:"varint,5,req,name=inode_id,json=inodeId" json:"inode_id,omitempty"`
37 }
38
39 func (x *MemfdFileEntry) Reset() {
40 *x = MemfdFileEntry{}
41 if protoimpl.UnsafeEnabled {
42 mi := &file_memfd_proto_msgTypes[0]
43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44 ms.StoreMessageInfo(mi)
45 }
46 }
47
48 func (x *MemfdFileEntry) String() string {
49 return protoimpl.X.MessageStringOf(x)
50 }
51
52 func (*MemfdFileEntry) ProtoMessage() {}
53
54 func (x *MemfdFileEntry) ProtoReflect() protoreflect.Message {
55 mi := &file_memfd_proto_msgTypes[0]
56 if protoimpl.UnsafeEnabled && x != nil {
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 if ms.LoadMessageInfo() == nil {
59 ms.StoreMessageInfo(mi)
60 }
61 return ms
62 }
63 return mi.MessageOf(x)
64 }
65
66 // Deprecated: Use MemfdFileEntry.ProtoReflect.Descriptor instead.
67 func (*MemfdFileEntry) Descriptor() ([]byte, []int) {
68 return file_memfd_proto_rawDescGZIP(), []int{0}
69 }
70
71 func (x *MemfdFileEntry) GetId() uint32 {
72 if x != nil && x.Id != nil {
73 return *x.Id
74 }
75 return 0
76 }
77
78 func (x *MemfdFileEntry) GetFlags() uint32 {
79 if x != nil && x.Flags != nil {
80 return *x.Flags
81 }
82 return 0
83 }
84
85 func (x *MemfdFileEntry) GetPos() uint64 {
86 if x != nil && x.Pos != nil {
87 return *x.Pos
88 }
89 return 0
90 }
91
92 func (x *MemfdFileEntry) GetFown() *fown.FownEntry {
93 if x != nil {
94 return x.Fown
95 }
96 return nil
97 }
98
99 func (x *MemfdFileEntry) GetInodeId() uint32 {
100 if x != nil && x.InodeId != nil {
101 return *x.InodeId
102 }
103 return 0
104 }
105
106 type MemfdInodeEntry struct {
107 state protoimpl.MessageState
108 sizeCache protoimpl.SizeCache
109 unknownFields protoimpl.UnknownFields
110
111 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
112 Uid *uint32 `protobuf:"varint,2,req,name=uid" json:"uid,omitempty"`
113 Gid *uint32 `protobuf:"varint,3,req,name=gid" json:"gid,omitempty"`
114 Size *uint64 `protobuf:"varint,4,req,name=size" json:"size,omitempty"`
115 Shmid *uint32 `protobuf:"varint,5,req,name=shmid" json:"shmid,omitempty"`
116 Seals *uint32 `protobuf:"varint,6,req,name=seals" json:"seals,omitempty"`
117 InodeId *uint64 `protobuf:"varint,7,req,name=inode_id,json=inodeId" json:"inode_id,omitempty"`
118 HugetlbFlag *uint32 `protobuf:"varint,8,opt,name=hugetlb_flag,json=hugetlbFlag" json:"hugetlb_flag,omitempty"`
119 }
120
121 func (x *MemfdInodeEntry) Reset() {
122 *x = MemfdInodeEntry{}
123 if protoimpl.UnsafeEnabled {
124 mi := &file_memfd_proto_msgTypes[1]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128 }
129
130 func (x *MemfdInodeEntry) String() string {
131 return protoimpl.X.MessageStringOf(x)
132 }
133
134 func (*MemfdInodeEntry) ProtoMessage() {}
135
136 func (x *MemfdInodeEntry) ProtoReflect() protoreflect.Message {
137 mi := &file_memfd_proto_msgTypes[1]
138 if protoimpl.UnsafeEnabled && x != nil {
139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140 if ms.LoadMessageInfo() == nil {
141 ms.StoreMessageInfo(mi)
142 }
143 return ms
144 }
145 return mi.MessageOf(x)
146 }
147
148 // Deprecated: Use MemfdInodeEntry.ProtoReflect.Descriptor instead.
149 func (*MemfdInodeEntry) Descriptor() ([]byte, []int) {
150 return file_memfd_proto_rawDescGZIP(), []int{1}
151 }
152
153 func (x *MemfdInodeEntry) GetName() string {
154 if x != nil && x.Name != nil {
155 return *x.Name
156 }
157 return ""
158 }
159
160 func (x *MemfdInodeEntry) GetUid() uint32 {
161 if x != nil && x.Uid != nil {
162 return *x.Uid
163 }
164 return 0
165 }
166
167 func (x *MemfdInodeEntry) GetGid() uint32 {
168 if x != nil && x.Gid != nil {
169 return *x.Gid
170 }
171 return 0
172 }
173
174 func (x *MemfdInodeEntry) GetSize() uint64 {
175 if x != nil && x.Size != nil {
176 return *x.Size
177 }
178 return 0
179 }
180
181 func (x *MemfdInodeEntry) GetShmid() uint32 {
182 if x != nil && x.Shmid != nil {
183 return *x.Shmid
184 }
185 return 0
186 }
187
188 func (x *MemfdInodeEntry) GetSeals() uint32 {
189 if x != nil && x.Seals != nil {
190 return *x.Seals
191 }
192 return 0
193 }
194
195 func (x *MemfdInodeEntry) GetInodeId() uint64 {
196 if x != nil && x.InodeId != nil {
197 return *x.InodeId
198 }
199 return 0
200 }
201
202 func (x *MemfdInodeEntry) GetHugetlbFlag() uint32 {
203 if x != nil && x.HugetlbFlag != nil {
204 return *x.HugetlbFlag
205 }
206 return 0
207 }
208
209 var File_memfd_proto protoreflect.FileDescriptor
210
211 var file_memfd_proto_rawDesc = []byte{
212 0x0a, 0x0b, 0x6d, 0x65, 0x6d, 0x66, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f,
213 0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x66, 0x6f, 0x77, 0x6e, 0x2e,
214 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x10, 0x6d, 0x65, 0x6d, 0x66, 0x64, 0x5f,
215 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
216 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x05, 0x66, 0x6c,
217 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x10, 0xd2, 0x3f, 0x0d, 0x1a, 0x0b,
218 0x72, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x05, 0x66, 0x6c, 0x61,
219 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x02, 0x28, 0x04, 0x52,
220 0x03, 0x70, 0x6f, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x18, 0x04, 0x20, 0x02,
221 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52,
222 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69,
223 0x64, 0x18, 0x05, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x07, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64,
224 0x22, 0xdb, 0x01, 0x0a, 0x11, 0x6d, 0x65, 0x6d, 0x66, 0x64, 0x5f, 0x69, 0x6e, 0x6f, 0x64, 0x65,
225 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
226 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
227 0x64, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03,
228 0x67, 0x69, 0x64, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x12,
229 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x02, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69,
230 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x6d, 0x69, 0x64, 0x18, 0x05, 0x20, 0x02, 0x28,
231 0x0d, 0x52, 0x05, 0x73, 0x68, 0x6d, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x05, 0x73, 0x65, 0x61, 0x6c,
232 0x73, 0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x10, 0xd2, 0x3f, 0x0d, 0x1a, 0x0b, 0x73, 0x65,
233 0x61, 0x6c, 0x73, 0x2e, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x05, 0x73, 0x65, 0x61, 0x6c, 0x73,
234 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x02,
235 0x28, 0x04, 0x52, 0x07, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x68,
236 0x75, 0x67, 0x65, 0x74, 0x6c, 0x62, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28,
237 0x0d, 0x52, 0x0b, 0x68, 0x75, 0x67, 0x65, 0x74, 0x6c, 0x62, 0x46, 0x6c, 0x61, 0x67,
238 }
239
240 var (
241 file_memfd_proto_rawDescOnce sync.Once
242 file_memfd_proto_rawDescData = file_memfd_proto_rawDesc
243 )
244
245 func file_memfd_proto_rawDescGZIP() []byte {
246 file_memfd_proto_rawDescOnce.Do(func() {
247 file_memfd_proto_rawDescData = protoimpl.X.CompressGZIP(file_memfd_proto_rawDescData)
248 })
249 return file_memfd_proto_rawDescData
250 }
251
252 var file_memfd_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
253 var file_memfd_proto_goTypes = []interface{}{
254 (*MemfdFileEntry)(nil), // 0: memfd_file_entry
255 (*MemfdInodeEntry)(nil), // 1: memfd_inode_entry
256 (*fown.FownEntry)(nil), // 2: fown_entry
257 }
258 var file_memfd_proto_depIdxs = []int32{
259 2, // 0: memfd_file_entry.fown:type_name -> fown_entry
260 1, // [1:1] is the sub-list for method output_type
261 1, // [1:1] is the sub-list for method input_type
262 1, // [1:1] is the sub-list for extension type_name
263 1, // [1:1] is the sub-list for extension extendee
264 0, // [0:1] is the sub-list for field type_name
265 }
266
267 func init() { file_memfd_proto_init() }
268 func file_memfd_proto_init() {
269 if File_memfd_proto != nil {
270 return
271 }
272 if !protoimpl.UnsafeEnabled {
273 file_memfd_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
274 switch v := v.(*MemfdFileEntry); i {
275 case 0:
276 return &v.state
277 case 1:
278 return &v.sizeCache
279 case 2:
280 return &v.unknownFields
281 default:
282 return nil
283 }
284 }
285 file_memfd_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
286 switch v := v.(*MemfdInodeEntry); i {
287 case 0:
288 return &v.state
289 case 1:
290 return &v.sizeCache
291 case 2:
292 return &v.unknownFields
293 default:
294 return nil
295 }
296 }
297 }
298 type x struct{}
299 out := protoimpl.TypeBuilder{
300 File: protoimpl.DescBuilder{
301 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
302 RawDescriptor: file_memfd_proto_rawDesc,
303 NumEnums: 0,
304 NumMessages: 2,
305 NumExtensions: 0,
306 NumServices: 0,
307 },
308 GoTypes: file_memfd_proto_goTypes,
309 DependencyIndexes: file_memfd_proto_depIdxs,
310 MessageInfos: file_memfd_proto_msgTypes,
311 }.Build()
312 File_memfd_proto = out.File
313 file_memfd_proto_rawDesc = nil
314 file_memfd_proto_goTypes = nil
315 file_memfd_proto_depIdxs = nil
316 }