Debian Codegraph @

crit/images/img-streamer/img-streamer.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: img-streamer.proto
8
9 package img_streamer
10
11 import (
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 // This message is sent from CRIU to the streamer.
26 // - During dump, it communicates the name of the file that is about to be sent
27 // to the streamer.
28 // - During restore, CRIU requests image files from the streamer. The message is
29 // used to communicate the name of the desired file.
30 type ImgStreamerRequestEntry struct {
31 state protoimpl.MessageState
32 sizeCache protoimpl.SizeCache
33 unknownFields protoimpl.UnknownFields
34
35 Filename *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"`
36 }
37
38 func (x *ImgStreamerRequestEntry) Reset() {
39 *x = ImgStreamerRequestEntry{}
40 if protoimpl.UnsafeEnabled {
41 mi := &file_img_streamer_proto_msgTypes[0]
42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
43 ms.StoreMessageInfo(mi)
44 }
45 }
46
47 func (x *ImgStreamerRequestEntry) String() string {
48 return protoimpl.X.MessageStringOf(x)
49 }
50
51 func (*ImgStreamerRequestEntry) ProtoMessage() {}
52
53 func (x *ImgStreamerRequestEntry) ProtoReflect() protoreflect.Message {
54 mi := &file_img_streamer_proto_msgTypes[0]
55 if protoimpl.UnsafeEnabled && x != nil {
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 if ms.LoadMessageInfo() == nil {
58 ms.StoreMessageInfo(mi)
59 }
60 return ms
61 }
62 return mi.MessageOf(x)
63 }
64
65 // Deprecated: Use ImgStreamerRequestEntry.ProtoReflect.Descriptor instead.
66 func (*ImgStreamerRequestEntry) Descriptor() ([]byte, []int) {
67 return file_img_streamer_proto_rawDescGZIP(), []int{0}
68 }
69
70 func (x *ImgStreamerRequestEntry) GetFilename() string {
71 if x != nil && x.Filename != nil {
72 return *x.Filename
73 }
74 return ""
75 }
76
77 // This message is sent from the streamer to CRIU. It is only used during
78 // restore to report whether the requested file exists.
79 type ImgStreamerReplyEntry struct {
80 state protoimpl.MessageState
81 sizeCache protoimpl.SizeCache
82 unknownFields protoimpl.UnknownFields
83
84 Exists *bool `protobuf:"varint,1,req,name=exists" json:"exists,omitempty"`
85 }
86
87 func (x *ImgStreamerReplyEntry) Reset() {
88 *x = ImgStreamerReplyEntry{}
89 if protoimpl.UnsafeEnabled {
90 mi := &file_img_streamer_proto_msgTypes[1]
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 ms.StoreMessageInfo(mi)
93 }
94 }
95
96 func (x *ImgStreamerReplyEntry) String() string {
97 return protoimpl.X.MessageStringOf(x)
98 }
99
100 func (*ImgStreamerReplyEntry) ProtoMessage() {}
101
102 func (x *ImgStreamerReplyEntry) ProtoReflect() protoreflect.Message {
103 mi := &file_img_streamer_proto_msgTypes[1]
104 if protoimpl.UnsafeEnabled && x != nil {
105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
106 if ms.LoadMessageInfo() == nil {
107 ms.StoreMessageInfo(mi)
108 }
109 return ms
110 }
111 return mi.MessageOf(x)
112 }
113
114 // Deprecated: Use ImgStreamerReplyEntry.ProtoReflect.Descriptor instead.
115 func (*ImgStreamerReplyEntry) Descriptor() ([]byte, []int) {
116 return file_img_streamer_proto_rawDescGZIP(), []int{1}
117 }
118
119 func (x *ImgStreamerReplyEntry) GetExists() bool {
120 if x != nil && x.Exists != nil {
121 return *x.Exists
122 }
123 return false
124 }
125
126 var File_img_streamer_proto protoreflect.FileDescriptor
127
128 var file_img_streamer_proto_rawDesc = []byte{
129 0x0a, 0x12, 0x69, 0x6d, 0x67, 0x2d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72, 0x2e, 0x70,
130 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x1a, 0x69, 0x6d, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x65,
131 0x61, 0x6d, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74,
132 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
133 0x20, 0x02, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32,
134 0x0a, 0x18, 0x69, 0x6d, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72, 0x5f, 0x72,
135 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78,
136 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x02, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69, 0x73,
137 0x74, 0x73,
138 }
139
140 var (
141 file_img_streamer_proto_rawDescOnce sync.Once
142 file_img_streamer_proto_rawDescData = file_img_streamer_proto_rawDesc
143 )
144
145 func file_img_streamer_proto_rawDescGZIP() []byte {
146 file_img_streamer_proto_rawDescOnce.Do(func() {
147 file_img_streamer_proto_rawDescData = protoimpl.X.CompressGZIP(file_img_streamer_proto_rawDescData)
148 })
149 return file_img_streamer_proto_rawDescData
150 }
151
152 var file_img_streamer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
153 var file_img_streamer_proto_goTypes = []interface{}{
154 (*ImgStreamerRequestEntry)(nil), // 0: img_streamer_request_entry
155 (*ImgStreamerReplyEntry)(nil), // 1: img_streamer_reply_entry
156 }
157 var file_img_streamer_proto_depIdxs = []int32{
158 0, // [0:0] is the sub-list for method output_type
159 0, // [0:0] is the sub-list for method input_type
160 0, // [0:0] is the sub-list for extension type_name
161 0, // [0:0] is the sub-list for extension extendee
162 0, // [0:0] is the sub-list for field type_name
163 }
164
165 func init() { file_img_streamer_proto_init() }
166 func file_img_streamer_proto_init() {
167 if File_img_streamer_proto != nil {
168 return
169 }
170 if !protoimpl.UnsafeEnabled {
171 file_img_streamer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
172 switch v := v.(*ImgStreamerRequestEntry); i {
173 case 0:
174 return &v.state
175 case 1:
176 return &v.sizeCache
177 case 2:
178 return &v.unknownFields
179 default:
180 return nil
181 }
182 }
183 file_img_streamer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
184 switch v := v.(*ImgStreamerReplyEntry); i {
185 case 0:
186 return &v.state
187 case 1:
188 return &v.sizeCache
189 case 2:
190 return &v.unknownFields
191 default:
192 return nil
193 }
194 }
195 }
196 type x struct{}
197 out := protoimpl.TypeBuilder{
198 File: protoimpl.DescBuilder{
199 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
200 RawDescriptor: file_img_streamer_proto_rawDesc,
201 NumEnums: 0,
202 NumMessages: 2,
203 NumExtensions: 0,
204 NumServices: 0,
205 },
206 GoTypes: file_img_streamer_proto_goTypes,
207 DependencyIndexes: file_img_streamer_proto_depIdxs,
208 MessageInfos: file_img_streamer_proto_msgTypes,
209 }.Build()
210 File_img_streamer_proto = out.File
211 file_img_streamer_proto_rawDesc = nil
212 file_img_streamer_proto_goTypes = nil
213 file_img_streamer_proto_depIdxs = nil
214 }