Debian Codegraph @

crit/images/tun/tun.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: tun.proto
8
9 package tun
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 TunfileEntry struct {
27 state protoimpl.MessageState
28 sizeCache protoimpl.SizeCache
29 unknownFields protoimpl.UnknownFields
30
31 Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
32 Netdev *string `protobuf:"bytes,2,opt,name=netdev" json:"netdev,omitempty"`
33 Detached *bool `protobuf:"varint,3,opt,name=detached" json:"detached,omitempty"`
34 NsId *uint32 `protobuf:"varint,4,opt,name=ns_id,json=nsId" json:"ns_id,omitempty"`
35 }
36
37 func (x *TunfileEntry) Reset() {
38 *x = TunfileEntry{}
39 if protoimpl.UnsafeEnabled {
40 mi := &file_tun_proto_msgTypes[0]
41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42 ms.StoreMessageInfo(mi)
43 }
44 }
45
46 func (x *TunfileEntry) String() string {
47 return protoimpl.X.MessageStringOf(x)
48 }
49
50 func (*TunfileEntry) ProtoMessage() {}
51
52 func (x *TunfileEntry) ProtoReflect() protoreflect.Message {
53 mi := &file_tun_proto_msgTypes[0]
54 if protoimpl.UnsafeEnabled && x != nil {
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 if ms.LoadMessageInfo() == nil {
57 ms.StoreMessageInfo(mi)
58 }
59 return ms
60 }
61 return mi.MessageOf(x)
62 }
63
64 // Deprecated: Use TunfileEntry.ProtoReflect.Descriptor instead.
65 func (*TunfileEntry) Descriptor() ([]byte, []int) {
66 return file_tun_proto_rawDescGZIP(), []int{0}
67 }
68
69 func (x *TunfileEntry) GetId() uint32 {
70 if x != nil && x.Id != nil {
71 return *x.Id
72 }
73 return 0
74 }
75
76 func (x *TunfileEntry) GetNetdev() string {
77 if x != nil && x.Netdev != nil {
78 return *x.Netdev
79 }
80 return ""
81 }
82
83 func (x *TunfileEntry) GetDetached() bool {
84 if x != nil && x.Detached != nil {
85 return *x.Detached
86 }
87 return false
88 }
89
90 func (x *TunfileEntry) GetNsId() uint32 {
91 if x != nil && x.NsId != nil {
92 return *x.NsId
93 }
94 return 0
95 }
96
97 type TunLinkEntry struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 Flags *uint32 `protobuf:"varint,1,req,name=flags" json:"flags,omitempty"`
103 Owner *int32 `protobuf:"varint,2,req,name=owner" json:"owner,omitempty"`
104 Group *int32 `protobuf:"varint,3,req,name=group" json:"group,omitempty"`
105 Vnethdr *uint32 `protobuf:"varint,4,req,name=vnethdr" json:"vnethdr,omitempty"`
106 Sndbuf *uint32 `protobuf:"varint,5,req,name=sndbuf" json:"sndbuf,omitempty"`
107 }
108
109 func (x *TunLinkEntry) Reset() {
110 *x = TunLinkEntry{}
111 if protoimpl.UnsafeEnabled {
112 mi := &file_tun_proto_msgTypes[1]
113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114 ms.StoreMessageInfo(mi)
115 }
116 }
117
118 func (x *TunLinkEntry) String() string {
119 return protoimpl.X.MessageStringOf(x)
120 }
121
122 func (*TunLinkEntry) ProtoMessage() {}
123
124 func (x *TunLinkEntry) ProtoReflect() protoreflect.Message {
125 mi := &file_tun_proto_msgTypes[1]
126 if protoimpl.UnsafeEnabled && x != nil {
127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128 if ms.LoadMessageInfo() == nil {
129 ms.StoreMessageInfo(mi)
130 }
131 return ms
132 }
133 return mi.MessageOf(x)
134 }
135
136 // Deprecated: Use TunLinkEntry.ProtoReflect.Descriptor instead.
137 func (*TunLinkEntry) Descriptor() ([]byte, []int) {
138 return file_tun_proto_rawDescGZIP(), []int{1}
139 }
140
141 func (x *TunLinkEntry) GetFlags() uint32 {
142 if x != nil && x.Flags != nil {
143 return *x.Flags
144 }
145 return 0
146 }
147
148 func (x *TunLinkEntry) GetOwner() int32 {
149 if x != nil && x.Owner != nil {
150 return *x.Owner
151 }
152 return 0
153 }
154
155 func (x *TunLinkEntry) GetGroup() int32 {
156 if x != nil && x.Group != nil {
157 return *x.Group
158 }
159 return 0
160 }
161
162 func (x *TunLinkEntry) GetVnethdr() uint32 {
163 if x != nil && x.Vnethdr != nil {
164 return *x.Vnethdr
165 }
166 return 0
167 }
168
169 func (x *TunLinkEntry) GetSndbuf() uint32 {
170 if x != nil && x.Sndbuf != nil {
171 return *x.Sndbuf
172 }
173 return 0
174 }
175
176 var File_tun_proto protoreflect.FileDescriptor
177
178 var file_tun_proto_rawDesc = []byte{
179 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, 0x74,
180 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x68, 0x0a, 0x0d, 0x74, 0x75, 0x6e, 0x66, 0x69,
181 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
182 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x65, 0x74, 0x64,
183 0x65, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x65, 0x74, 0x64, 0x65, 0x76,
184 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01,
185 0x28, 0x08, 0x52, 0x08, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, 0x13, 0x0a, 0x05,
186 0x6e, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6e, 0x73, 0x49,
187 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x0e, 0x74, 0x75, 0x6e, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x65,
188 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20,
189 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67,
190 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x02, 0x28, 0x05,
191 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,
192 0x18, 0x03, 0x20, 0x02, 0x28, 0x05, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a,
193 0x07, 0x76, 0x6e, 0x65, 0x74, 0x68, 0x64, 0x72, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x07,
194 0x76, 0x6e, 0x65, 0x74, 0x68, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6e, 0x64, 0x62, 0x75,
195 0x66, 0x18, 0x05, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x6e, 0x64, 0x62, 0x75, 0x66,
196 }
197
198 var (
199 file_tun_proto_rawDescOnce sync.Once
200 file_tun_proto_rawDescData = file_tun_proto_rawDesc
201 )
202
203 func file_tun_proto_rawDescGZIP() []byte {
204 file_tun_proto_rawDescOnce.Do(func() {
205 file_tun_proto_rawDescData = protoimpl.X.CompressGZIP(file_tun_proto_rawDescData)
206 })
207 return file_tun_proto_rawDescData
208 }
209
210 var file_tun_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
211 var file_tun_proto_goTypes = []interface{}{
212 (*TunfileEntry)(nil), // 0: tunfile_entry
213 (*TunLinkEntry)(nil), // 1: tun_link_entry
214 }
215 var file_tun_proto_depIdxs = []int32{
216 0, // [0:0] is the sub-list for method output_type
217 0, // [0:0] is the sub-list for method input_type
218 0, // [0:0] is the sub-list for extension type_name
219 0, // [0:0] is the sub-list for extension extendee
220 0, // [0:0] is the sub-list for field type_name
221 }
222
223 func init() { file_tun_proto_init() }
224 func file_tun_proto_init() {
225 if File_tun_proto != nil {
226 return
227 }
228 if !protoimpl.UnsafeEnabled {
229 file_tun_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
230 switch v := v.(*TunfileEntry); i {
231 case 0:
232 return &v.state
233 case 1:
234 return &v.sizeCache
235 case 2:
236 return &v.unknownFields
237 default:
238 return nil
239 }
240 }
241 file_tun_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
242 switch v := v.(*TunLinkEntry); i {
243 case 0:
244 return &v.state
245 case 1:
246 return &v.sizeCache
247 case 2:
248 return &v.unknownFields
249 default:
250 return nil
251 }
252 }
253 }
254 type x struct{}
255 out := protoimpl.TypeBuilder{
256 File: protoimpl.DescBuilder{
257 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
258 RawDescriptor: file_tun_proto_rawDesc,
259 NumEnums: 0,
260 NumMessages: 2,
261 NumExtensions: 0,
262 NumServices: 0,
263 },
264 GoTypes: file_tun_proto_goTypes,
265 DependencyIndexes: file_tun_proto_depIdxs,
266 MessageInfos: file_tun_proto_msgTypes,
267 }.Build()
268 File_tun_proto = out.File
269 file_tun_proto_rawDesc = nil
270 file_tun_proto_goTypes = nil
271 file_tun_proto_depIdxs = nil
272 }