跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

driver.pb.go

807 行 · 26.9 KB历史下载
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go [version omitted for reproducibility]
4// protoc [version omitted for reproducibility]
5// source: driver.proto
6
7package external
8
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 emptypb "google.golang.org/protobuf/types/known/emptypb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16)
17
18const (
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// BootScriptsResponse carries the boot scripts injected into the VM.
26type BootScriptsResponse struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 // Maps a script path to its content. Each key must be
29 // "boot.<OS>/<SCRIPT>", or "<SCRIPT>" as a deprecated alias for
30 // "boot.Linux/<SCRIPT>".
31 Scripts map[string][]byte `protobuf:"bytes,1,rep,name=scripts,proto3" json:"scripts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
32 unknownFields protoimpl.UnknownFields
33 sizeCache protoimpl.SizeCache
34}
35
36func (x *BootScriptsResponse) Reset() {
37 *x = BootScriptsResponse{}
38 mi := &file_driver_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41}
42
43func (x *BootScriptsResponse) String() string {
44 return protoimpl.X.MessageStringOf(x)
45}
46
47func (*BootScriptsResponse) ProtoMessage() {}
48
49func (x *BootScriptsResponse) ProtoReflect() protoreflect.Message {
50 mi := &file_driver_proto_msgTypes[0]
51 if x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59}
60
61// Deprecated: Use BootScriptsResponse.ProtoReflect.Descriptor instead.
62func (*BootScriptsResponse) Descriptor() ([]byte, []int) {
63 return file_driver_proto_rawDescGZIP(), []int{0}
64}
65
66func (x *BootScriptsResponse) GetScripts() map[string][]byte {
67 if x != nil {
68 return x.Scripts
69 }
70 return nil
71}
72
73// SSHAddressResponse carries the guest SSH address.
74type SSHAddressResponse struct {
75 state protoimpl.MessageState `protogen:"open.v1"`
76 // Host/IP used to SSH into the guest.
77 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
78 unknownFields protoimpl.UnknownFields
79 sizeCache protoimpl.SizeCache
80}
81
82func (x *SSHAddressResponse) Reset() {
83 *x = SSHAddressResponse{}
84 mi := &file_driver_proto_msgTypes[1]
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 ms.StoreMessageInfo(mi)
87}
88
89func (x *SSHAddressResponse) String() string {
90 return protoimpl.X.MessageStringOf(x)
91}
92
93func (*SSHAddressResponse) ProtoMessage() {}
94
95func (x *SSHAddressResponse) ProtoReflect() protoreflect.Message {
96 mi := &file_driver_proto_msgTypes[1]
97 if x != nil {
98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
99 if ms.LoadMessageInfo() == nil {
100 ms.StoreMessageInfo(mi)
101 }
102 return ms
103 }
104 return mi.MessageOf(x)
105}
106
107// Deprecated: Use SSHAddressResponse.ProtoReflect.Descriptor instead.
108func (*SSHAddressResponse) Descriptor() ([]byte, []int) {
109 return file_driver_proto_rawDescGZIP(), []int{1}
110}
111
112func (x *SSHAddressResponse) GetAddress() string {
113 if x != nil {
114 return x.Address
115 }
116 return ""
117}
118
119// InfoResponse carries driver metadata and capability flags.
120type InfoResponse struct {
121 state protoimpl.MessageState `protogen:"open.v1"`
122 // JSON-encoded driver.Info (name, ports, instance dir and feature flags).
123 // JSON keeps it in sync with the Go type. The full set of fields is defined at
124 // https://pkg.go.dev/github.com/lima-vm/lima/v2/pkg/driver#Info
125 InfoJson []byte `protobuf:"bytes,1,opt,name=info_json,json=infoJson,proto3" json:"info_json,omitempty"`
126 unknownFields protoimpl.UnknownFields
127 sizeCache protoimpl.SizeCache
128}
129
130func (x *InfoResponse) Reset() {
131 *x = InfoResponse{}
132 mi := &file_driver_proto_msgTypes[2]
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 ms.StoreMessageInfo(mi)
135}
136
137func (x *InfoResponse) String() string {
138 return protoimpl.X.MessageStringOf(x)
139}
140
141func (*InfoResponse) ProtoMessage() {}
142
143func (x *InfoResponse) ProtoReflect() protoreflect.Message {
144 mi := &file_driver_proto_msgTypes[2]
145 if x != nil {
146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147 if ms.LoadMessageInfo() == nil {
148 ms.StoreMessageInfo(mi)
149 }
150 return ms
151 }
152 return mi.MessageOf(x)
153}
154
155// Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
156func (*InfoResponse) Descriptor() ([]byte, []int) {
157 return file_driver_proto_rawDescGZIP(), []int{2}
158}
159
160func (x *InfoResponse) GetInfoJson() []byte {
161 if x != nil {
162 return x.InfoJson
163 }
164 return nil
165}
166
167// StartResponse is a streamed response for the Start RPC. It mimics the
168// errChan from pkg/driver/driver.go. The server sends an initial response with
169// success=true once Start is initiated (this unblocks the client). If errors
170// occur they are sent as success=false with the error field populated. When the
171// error channel closes, a final success=true message is sent and the stream ends.
172type StartResponse struct {
173 state protoimpl.MessageState `protogen:"open.v1"`
174 // True for the initial "started" message and the final "done" message, and
175 // false for each streamed error.
176 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
177 // Error message when success is false; empty otherwise.
178 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
179 unknownFields protoimpl.UnknownFields
180 sizeCache protoimpl.SizeCache
181}
182
183func (x *StartResponse) Reset() {
184 *x = StartResponse{}
185 mi := &file_driver_proto_msgTypes[3]
186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
187 ms.StoreMessageInfo(mi)
188}
189
190func (x *StartResponse) String() string {
191 return protoimpl.X.MessageStringOf(x)
192}
193
194func (*StartResponse) ProtoMessage() {}
195
196func (x *StartResponse) ProtoReflect() protoreflect.Message {
197 mi := &file_driver_proto_msgTypes[3]
198 if x != nil {
199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200 if ms.LoadMessageInfo() == nil {
201 ms.StoreMessageInfo(mi)
202 }
203 return ms
204 }
205 return mi.MessageOf(x)
206}
207
208// Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.
209func (*StartResponse) Descriptor() ([]byte, []int) {
210 return file_driver_proto_rawDescGZIP(), []int{3}
211}
212
213func (x *StartResponse) GetSuccess() bool {
214 if x != nil {
215 return x.Success
216 }
217 return false
218}
219
220func (x *StartResponse) GetError() string {
221 if x != nil {
222 return x.Error
223 }
224 return ""
225}
226
227// SetConfigRequest carries the instance configuration for Configure.
228type SetConfigRequest struct {
229 state protoimpl.MessageState `protogen:"open.v1"`
230 // JSON-encoded limatype.Instance. JSON keeps it in sync with the Go type.
231 InstanceConfigJson []byte `protobuf:"bytes,1,opt,name=instance_config_json,json=instanceConfigJson,proto3" json:"instance_config_json,omitempty"`
232 unknownFields protoimpl.UnknownFields
233 sizeCache protoimpl.SizeCache
234}
235
236func (x *SetConfigRequest) Reset() {
237 *x = SetConfigRequest{}
238 mi := &file_driver_proto_msgTypes[4]
239 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
240 ms.StoreMessageInfo(mi)
241}
242
243func (x *SetConfigRequest) String() string {
244 return protoimpl.X.MessageStringOf(x)
245}
246
247func (*SetConfigRequest) ProtoMessage() {}
248
249func (x *SetConfigRequest) ProtoReflect() protoreflect.Message {
250 mi := &file_driver_proto_msgTypes[4]
251 if x != nil {
252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
253 if ms.LoadMessageInfo() == nil {
254 ms.StoreMessageInfo(mi)
255 }
256 return ms
257 }
258 return mi.MessageOf(x)
259}
260
261// Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
262func (*SetConfigRequest) Descriptor() ([]byte, []int) {
263 return file_driver_proto_rawDescGZIP(), []int{4}
264}
265
266func (x *SetConfigRequest) GetInstanceConfigJson() []byte {
267 if x != nil {
268 return x.InstanceConfigJson
269 }
270 return nil
271}
272
273// SetConfigResponse carries the instance configuration after Configure applied
274// the driver's defaults and validation. It is returned so the caller picks up
275// those changes (the in-process interface mutates the instance in place).
276type SetConfigResponse struct {
277 state protoimpl.MessageState `protogen:"open.v1"`
278 // JSON-encoded limatype.Instance after Configure applied the driver's defaults
279 // and validation. JSON keeps it in sync with the Go type.
280 InstanceConfigJson []byte `protobuf:"bytes,1,opt,name=instance_config_json,json=instanceConfigJson,proto3" json:"instance_config_json,omitempty"`
281 unknownFields protoimpl.UnknownFields
282 sizeCache protoimpl.SizeCache
283}
284
285func (x *SetConfigResponse) Reset() {
286 *x = SetConfigResponse{}
287 mi := &file_driver_proto_msgTypes[5]
288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
289 ms.StoreMessageInfo(mi)
290}
291
292func (x *SetConfigResponse) String() string {
293 return protoimpl.X.MessageStringOf(x)
294}
295
296func (*SetConfigResponse) ProtoMessage() {}
297
298func (x *SetConfigResponse) ProtoReflect() protoreflect.Message {
299 mi := &file_driver_proto_msgTypes[5]
300 if x != nil {
301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
302 if ms.LoadMessageInfo() == nil {
303 ms.StoreMessageInfo(mi)
304 }
305 return ms
306 }
307 return mi.MessageOf(x)
308}
309
310// Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead.
311func (*SetConfigResponse) Descriptor() ([]byte, []int) {
312 return file_driver_proto_rawDescGZIP(), []int{5}
313}
314
315func (x *SetConfigResponse) GetInstanceConfigJson() []byte {
316 if x != nil {
317 return x.InstanceConfigJson
318 }
319 return nil
320}
321
322// ChangeDisplayPasswordRequest carries the new display password.
323type ChangeDisplayPasswordRequest struct {
324 state protoimpl.MessageState `protogen:"open.v1"`
325 // New VM display (e.g. VNC) password.
326 Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
327 unknownFields protoimpl.UnknownFields
328 sizeCache protoimpl.SizeCache
329}
330
331func (x *ChangeDisplayPasswordRequest) Reset() {
332 *x = ChangeDisplayPasswordRequest{}
333 mi := &file_driver_proto_msgTypes[6]
334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
335 ms.StoreMessageInfo(mi)
336}
337
338func (x *ChangeDisplayPasswordRequest) String() string {
339 return protoimpl.X.MessageStringOf(x)
340}
341
342func (*ChangeDisplayPasswordRequest) ProtoMessage() {}
343
344func (x *ChangeDisplayPasswordRequest) ProtoReflect() protoreflect.Message {
345 mi := &file_driver_proto_msgTypes[6]
346 if x != nil {
347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
348 if ms.LoadMessageInfo() == nil {
349 ms.StoreMessageInfo(mi)
350 }
351 return ms
352 }
353 return mi.MessageOf(x)
354}
355
356// Deprecated: Use ChangeDisplayPasswordRequest.ProtoReflect.Descriptor instead.
357func (*ChangeDisplayPasswordRequest) Descriptor() ([]byte, []int) {
358 return file_driver_proto_rawDescGZIP(), []int{6}
359}
360
361func (x *ChangeDisplayPasswordRequest) GetPassword() string {
362 if x != nil {
363 return x.Password
364 }
365 return ""
366}
367
368// GetDisplayConnectionResponse carries the VM display connection string.
369type GetDisplayConnectionResponse struct {
370 state protoimpl.MessageState `protogen:"open.v1"`
371 // Driver-specific display connection string.
372 Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
373 unknownFields protoimpl.UnknownFields
374 sizeCache protoimpl.SizeCache
375}
376
377func (x *GetDisplayConnectionResponse) Reset() {
378 *x = GetDisplayConnectionResponse{}
379 mi := &file_driver_proto_msgTypes[7]
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 ms.StoreMessageInfo(mi)
382}
383
384func (x *GetDisplayConnectionResponse) String() string {
385 return protoimpl.X.MessageStringOf(x)
386}
387
388func (*GetDisplayConnectionResponse) ProtoMessage() {}
389
390func (x *GetDisplayConnectionResponse) ProtoReflect() protoreflect.Message {
391 mi := &file_driver_proto_msgTypes[7]
392 if x != nil {
393 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
394 if ms.LoadMessageInfo() == nil {
395 ms.StoreMessageInfo(mi)
396 }
397 return ms
398 }
399 return mi.MessageOf(x)
400}
401
402// Deprecated: Use GetDisplayConnectionResponse.ProtoReflect.Descriptor instead.
403func (*GetDisplayConnectionResponse) Descriptor() ([]byte, []int) {
404 return file_driver_proto_rawDescGZIP(), []int{7}
405}
406
407func (x *GetDisplayConnectionResponse) GetConnection() string {
408 if x != nil {
409 return x.Connection
410 }
411 return ""
412}
413
414// CreateSnapshotRequest identifies the snapshot to create.
415type CreateSnapshotRequest struct {
416 state protoimpl.MessageState `protogen:"open.v1"`
417 // Names the snapshot.
418 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
419 unknownFields protoimpl.UnknownFields
420 sizeCache protoimpl.SizeCache
421}
422
423func (x *CreateSnapshotRequest) Reset() {
424 *x = CreateSnapshotRequest{}
425 mi := &file_driver_proto_msgTypes[8]
426 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
427 ms.StoreMessageInfo(mi)
428}
429
430func (x *CreateSnapshotRequest) String() string {
431 return protoimpl.X.MessageStringOf(x)
432}
433
434func (*CreateSnapshotRequest) ProtoMessage() {}
435
436func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message {
437 mi := &file_driver_proto_msgTypes[8]
438 if x != nil {
439 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
440 if ms.LoadMessageInfo() == nil {
441 ms.StoreMessageInfo(mi)
442 }
443 return ms
444 }
445 return mi.MessageOf(x)
446}
447
448// Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.
449func (*CreateSnapshotRequest) Descriptor() ([]byte, []int) {
450 return file_driver_proto_rawDescGZIP(), []int{8}
451}
452
453func (x *CreateSnapshotRequest) GetTag() string {
454 if x != nil {
455 return x.Tag
456 }
457 return ""
458}
459
460// ApplySnapshotRequest identifies the snapshot to restore.
461type ApplySnapshotRequest struct {
462 state protoimpl.MessageState `protogen:"open.v1"`
463 // Names the snapshot to restore.
464 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
465 unknownFields protoimpl.UnknownFields
466 sizeCache protoimpl.SizeCache
467}
468
469func (x *ApplySnapshotRequest) Reset() {
470 *x = ApplySnapshotRequest{}
471 mi := &file_driver_proto_msgTypes[9]
472 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
473 ms.StoreMessageInfo(mi)
474}
475
476func (x *ApplySnapshotRequest) String() string {
477 return protoimpl.X.MessageStringOf(x)
478}
479
480func (*ApplySnapshotRequest) ProtoMessage() {}
481
482func (x *ApplySnapshotRequest) ProtoReflect() protoreflect.Message {
483 mi := &file_driver_proto_msgTypes[9]
484 if x != nil {
485 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
486 if ms.LoadMessageInfo() == nil {
487 ms.StoreMessageInfo(mi)
488 }
489 return ms
490 }
491 return mi.MessageOf(x)
492}
493
494// Deprecated: Use ApplySnapshotRequest.ProtoReflect.Descriptor instead.
495func (*ApplySnapshotRequest) Descriptor() ([]byte, []int) {
496 return file_driver_proto_rawDescGZIP(), []int{9}
497}
498
499func (x *ApplySnapshotRequest) GetTag() string {
500 if x != nil {
501 return x.Tag
502 }
503 return ""
504}
505
506// DeleteSnapshotRequest identifies the snapshot to delete.
507type DeleteSnapshotRequest struct {
508 state protoimpl.MessageState `protogen:"open.v1"`
509 // Names the snapshot to delete.
510 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
511 unknownFields protoimpl.UnknownFields
512 sizeCache protoimpl.SizeCache
513}
514
515func (x *DeleteSnapshotRequest) Reset() {
516 *x = DeleteSnapshotRequest{}
517 mi := &file_driver_proto_msgTypes[10]
518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
519 ms.StoreMessageInfo(mi)
520}
521
522func (x *DeleteSnapshotRequest) String() string {
523 return protoimpl.X.MessageStringOf(x)
524}
525
526func (*DeleteSnapshotRequest) ProtoMessage() {}
527
528func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message {
529 mi := &file_driver_proto_msgTypes[10]
530 if x != nil {
531 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
532 if ms.LoadMessageInfo() == nil {
533 ms.StoreMessageInfo(mi)
534 }
535 return ms
536 }
537 return mi.MessageOf(x)
538}
539
540// Deprecated: Use DeleteSnapshotRequest.ProtoReflect.Descriptor instead.
541func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int) {
542 return file_driver_proto_rawDescGZIP(), []int{10}
543}
544
545func (x *DeleteSnapshotRequest) GetTag() string {
546 if x != nil {
547 return x.Tag
548 }
549 return ""
550}
551
552// ListSnapshotsResponse carries the existing snapshots.
553type ListSnapshotsResponse struct {
554 state protoimpl.MessageState `protogen:"open.v1"`
555 // Driver-formatted list of existing snapshots.
556 Snapshots string `protobuf:"bytes,1,opt,name=snapshots,proto3" json:"snapshots,omitempty"`
557 unknownFields protoimpl.UnknownFields
558 sizeCache protoimpl.SizeCache
559}
560
561func (x *ListSnapshotsResponse) Reset() {
562 *x = ListSnapshotsResponse{}
563 mi := &file_driver_proto_msgTypes[11]
564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
565 ms.StoreMessageInfo(mi)
566}
567
568func (x *ListSnapshotsResponse) String() string {
569 return protoimpl.X.MessageStringOf(x)
570}
571
572func (*ListSnapshotsResponse) ProtoMessage() {}
573
574func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message {
575 mi := &file_driver_proto_msgTypes[11]
576 if x != nil {
577 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
578 if ms.LoadMessageInfo() == nil {
579 ms.StoreMessageInfo(mi)
580 }
581 return ms
582 }
583 return mi.MessageOf(x)
584}
585
586// Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead.
587func (*ListSnapshotsResponse) Descriptor() ([]byte, []int) {
588 return file_driver_proto_rawDescGZIP(), []int{11}
589}
590
591func (x *ListSnapshotsResponse) GetSnapshots() string {
592 if x != nil {
593 return x.Snapshots
594 }
595 return ""
596}
597
598// ForwardGuestAgentResponse reports how the guest agent is reached.
599type ForwardGuestAgentResponse struct {
600 state protoimpl.MessageState `protogen:"open.v1"`
601 // True when the host agent forwards the guest agent socket over SSH; false
602 // means the driver provides a direct connection via GuestAgentConn.
603 ShouldForward bool `protobuf:"varint,1,opt,name=should_forward,json=shouldForward,proto3" json:"should_forward,omitempty"`
604 unknownFields protoimpl.UnknownFields
605 sizeCache protoimpl.SizeCache
606}
607
608func (x *ForwardGuestAgentResponse) Reset() {
609 *x = ForwardGuestAgentResponse{}
610 mi := &file_driver_proto_msgTypes[12]
611 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
612 ms.StoreMessageInfo(mi)
613}
614
615func (x *ForwardGuestAgentResponse) String() string {
616 return protoimpl.X.MessageStringOf(x)
617}
618
619func (*ForwardGuestAgentResponse) ProtoMessage() {}
620
621func (x *ForwardGuestAgentResponse) ProtoReflect() protoreflect.Message {
622 mi := &file_driver_proto_msgTypes[12]
623 if x != nil {
624 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
625 if ms.LoadMessageInfo() == nil {
626 ms.StoreMessageInfo(mi)
627 }
628 return ms
629 }
630 return mi.MessageOf(x)
631}
632
633// Deprecated: Use ForwardGuestAgentResponse.ProtoReflect.Descriptor instead.
634func (*ForwardGuestAgentResponse) Descriptor() ([]byte, []int) {
635 return file_driver_proto_rawDescGZIP(), []int{12}
636}
637
638func (x *ForwardGuestAgentResponse) GetShouldForward() bool {
639 if x != nil {
640 return x.ShouldForward
641 }
642 return false
643}
644
645var File_driver_proto protoreflect.FileDescriptor
646
647const file_driver_proto_rawDesc = "" +
648 "\n" +
649 "\fdriver.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x8e\x01\n" +
650 "\x13BootScriptsResponse\x12;\n" +
651 "\ascripts\x18\x01 \x03(\v2!.BootScriptsResponse.ScriptsEntryR\ascripts\x1a:\n" +
652 "\fScriptsEntry\x12\x10\n" +
653 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
654 "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\".\n" +
655 "\x12SSHAddressResponse\x12\x18\n" +
656 "\aaddress\x18\x01 \x01(\tR\aaddress\"+\n" +
657 "\fInfoResponse\x12\x1b\n" +
658 "\tinfo_json\x18\x01 \x01(\fR\binfoJson\"?\n" +
659 "\rStartResponse\x12\x18\n" +
660 "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
661 "\x05error\x18\x02 \x01(\tR\x05error\"D\n" +
662 "\x10SetConfigRequest\x120\n" +
663 "\x14instance_config_json\x18\x01 \x01(\fR\x12instanceConfigJson\"E\n" +
664 "\x11SetConfigResponse\x120\n" +
665 "\x14instance_config_json\x18\x01 \x01(\fR\x12instanceConfigJson\":\n" +
666 "\x1cChangeDisplayPasswordRequest\x12\x1a\n" +
667 "\bpassword\x18\x01 \x01(\tR\bpassword\">\n" +
668 "\x1cGetDisplayConnectionResponse\x12\x1e\n" +
669 "\n" +
670 "connection\x18\x01 \x01(\tR\n" +
671 "connection\")\n" +
672 "\x15CreateSnapshotRequest\x12\x10\n" +
673 "\x03tag\x18\x01 \x01(\tR\x03tag\"(\n" +
674 "\x14ApplySnapshotRequest\x12\x10\n" +
675 "\x03tag\x18\x01 \x01(\tR\x03tag\")\n" +
676 "\x15DeleteSnapshotRequest\x12\x10\n" +
677 "\x03tag\x18\x01 \x01(\tR\x03tag\"5\n" +
678 "\x15ListSnapshotsResponse\x12\x1c\n" +
679 "\tsnapshots\x18\x01 \x01(\tR\tsnapshots\"B\n" +
680 "\x19ForwardGuestAgentResponse\x12%\n" +
681 "\x0eshould_forward\x18\x01 \x01(\bR\rshouldForward2\xee\t\n" +
682 "\x06Driver\x12:\n" +
683 "\bValidate\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x128\n" +
684 "\x06Create\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12<\n" +
685 "\n" +
686 "CreateDisk\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x121\n" +
687 "\x05Start\x12\x16.google.protobuf.Empty\x1a\x0e.StartResponse0\x01\x126\n" +
688 "\x04Stop\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x128\n" +
689 "\x06Delete\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12;\n" +
690 "\vBootScripts\x12\x16.google.protobuf.Empty\x1a\x14.BootScriptsResponse\x128\n" +
691 "\x06RunGUI\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12N\n" +
692 "\x15ChangeDisplayPassword\x12\x1d.ChangeDisplayPasswordRequest\x1a\x16.google.protobuf.Empty\x12M\n" +
693 "\x14GetDisplayConnection\x12\x16.google.protobuf.Empty\x1a\x1d.GetDisplayConnectionResponse\x12@\n" +
694 "\x0eCreateSnapshot\x12\x16.CreateSnapshotRequest\x1a\x16.google.protobuf.Empty\x12>\n" +
695 "\rApplySnapshot\x12\x15.ApplySnapshotRequest\x1a\x16.google.protobuf.Empty\x12@\n" +
696 "\x0eDeleteSnapshot\x12\x16.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\x12?\n" +
697 "\rListSnapshots\x12\x16.google.protobuf.Empty\x1a\x16.ListSnapshotsResponse\x12G\n" +
698 "\x11ForwardGuestAgent\x12\x16.google.protobuf.Empty\x1a\x1a.ForwardGuestAgentResponse\x12@\n" +
699 "\x0eGuestAgentConn\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x122\n" +
700 "\tConfigure\x12\x11.SetConfigRequest\x1a\x12.SetConfigResponse\x12-\n" +
701 "\x04Info\x12\x16.google.protobuf.Empty\x1a\r.InfoResponse\x129\n" +
702 "\n" +
703 "SSHAddress\x12\x16.google.protobuf.Empty\x1a\x13.SSHAddressResponse\x12G\n" +
704 "\x15AdditionalSetupForSSH\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.EmptyB0Z.github.com/lima-vm/lima/v2/pkg/driver/externalb\x06proto3"
705
706var (
707 file_driver_proto_rawDescOnce sync.Once
708 file_driver_proto_rawDescData []byte
709)
710
711func file_driver_proto_rawDescGZIP() []byte {
712 file_driver_proto_rawDescOnce.Do(func() {
713 file_driver_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_driver_proto_rawDesc), len(file_driver_proto_rawDesc)))
714 })
715 return file_driver_proto_rawDescData
716}
717
718var file_driver_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
719var file_driver_proto_goTypes = []any{
720 (*BootScriptsResponse)(nil), // 0: BootScriptsResponse
721 (*SSHAddressResponse)(nil), // 1: SSHAddressResponse
722 (*InfoResponse)(nil), // 2: InfoResponse
723 (*StartResponse)(nil), // 3: StartResponse
724 (*SetConfigRequest)(nil), // 4: SetConfigRequest
725 (*SetConfigResponse)(nil), // 5: SetConfigResponse
726 (*ChangeDisplayPasswordRequest)(nil), // 6: ChangeDisplayPasswordRequest
727 (*GetDisplayConnectionResponse)(nil), // 7: GetDisplayConnectionResponse
728 (*CreateSnapshotRequest)(nil), // 8: CreateSnapshotRequest
729 (*ApplySnapshotRequest)(nil), // 9: ApplySnapshotRequest
730 (*DeleteSnapshotRequest)(nil), // 10: DeleteSnapshotRequest
731 (*ListSnapshotsResponse)(nil), // 11: ListSnapshotsResponse
732 (*ForwardGuestAgentResponse)(nil), // 12: ForwardGuestAgentResponse
733 nil, // 13: BootScriptsResponse.ScriptsEntry
734 (*emptypb.Empty)(nil), // 14: google.protobuf.Empty
735}
736var file_driver_proto_depIdxs = []int32{
737 13, // 0: BootScriptsResponse.scripts:type_name -> BootScriptsResponse.ScriptsEntry
738 14, // 1: Driver.Validate:input_type -> google.protobuf.Empty
739 14, // 2: Driver.Create:input_type -> google.protobuf.Empty
740 14, // 3: Driver.CreateDisk:input_type -> google.protobuf.Empty
741 14, // 4: Driver.Start:input_type -> google.protobuf.Empty
742 14, // 5: Driver.Stop:input_type -> google.protobuf.Empty
743 14, // 6: Driver.Delete:input_type -> google.protobuf.Empty
744 14, // 7: Driver.BootScripts:input_type -> google.protobuf.Empty
745 14, // 8: Driver.RunGUI:input_type -> google.protobuf.Empty
746 6, // 9: Driver.ChangeDisplayPassword:input_type -> ChangeDisplayPasswordRequest
747 14, // 10: Driver.GetDisplayConnection:input_type -> google.protobuf.Empty
748 8, // 11: Driver.CreateSnapshot:input_type -> CreateSnapshotRequest
749 9, // 12: Driver.ApplySnapshot:input_type -> ApplySnapshotRequest
750 10, // 13: Driver.DeleteSnapshot:input_type -> DeleteSnapshotRequest
751 14, // 14: Driver.ListSnapshots:input_type -> google.protobuf.Empty
752 14, // 15: Driver.ForwardGuestAgent:input_type -> google.protobuf.Empty
753 14, // 16: Driver.GuestAgentConn:input_type -> google.protobuf.Empty
754 4, // 17: Driver.Configure:input_type -> SetConfigRequest
755 14, // 18: Driver.Info:input_type -> google.protobuf.Empty
756 14, // 19: Driver.SSHAddress:input_type -> google.protobuf.Empty
757 14, // 20: Driver.AdditionalSetupForSSH:input_type -> google.protobuf.Empty
758 14, // 21: Driver.Validate:output_type -> google.protobuf.Empty
759 14, // 22: Driver.Create:output_type -> google.protobuf.Empty
760 14, // 23: Driver.CreateDisk:output_type -> google.protobuf.Empty
761 3, // 24: Driver.Start:output_type -> StartResponse
762 14, // 25: Driver.Stop:output_type -> google.protobuf.Empty
763 14, // 26: Driver.Delete:output_type -> google.protobuf.Empty
764 0, // 27: Driver.BootScripts:output_type -> BootScriptsResponse
765 14, // 28: Driver.RunGUI:output_type -> google.protobuf.Empty
766 14, // 29: Driver.ChangeDisplayPassword:output_type -> google.protobuf.Empty
767 7, // 30: Driver.GetDisplayConnection:output_type -> GetDisplayConnectionResponse
768 14, // 31: Driver.CreateSnapshot:output_type -> google.protobuf.Empty
769 14, // 32: Driver.ApplySnapshot:output_type -> google.protobuf.Empty
770 14, // 33: Driver.DeleteSnapshot:output_type -> google.protobuf.Empty
771 11, // 34: Driver.ListSnapshots:output_type -> ListSnapshotsResponse
772 12, // 35: Driver.ForwardGuestAgent:output_type -> ForwardGuestAgentResponse
773 14, // 36: Driver.GuestAgentConn:output_type -> google.protobuf.Empty
774 5, // 37: Driver.Configure:output_type -> SetConfigResponse
775 2, // 38: Driver.Info:output_type -> InfoResponse
776 1, // 39: Driver.SSHAddress:output_type -> SSHAddressResponse
777 14, // 40: Driver.AdditionalSetupForSSH:output_type -> google.protobuf.Empty
778 21, // [21:41] is the sub-list for method output_type
779 1, // [1:21] is the sub-list for method input_type
780 1, // [1:1] is the sub-list for extension type_name
781 1, // [1:1] is the sub-list for extension extendee
782 0, // [0:1] is the sub-list for field type_name
783}
784
785func init() { file_driver_proto_init() }
786func file_driver_proto_init() {
787 if File_driver_proto != nil {
788 return
789 }
790 type x struct{}
791 out := protoimpl.TypeBuilder{
792 File: protoimpl.DescBuilder{
793 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
794 RawDescriptor: unsafe.Slice(unsafe.StringData(file_driver_proto_rawDesc), len(file_driver_proto_rawDesc)),
795 NumEnums: 0,
796 NumMessages: 14,
797 NumExtensions: 0,
798 NumServices: 1,
799 },
800 GoTypes: file_driver_proto_goTypes,
801 DependencyIndexes: file_driver_proto_depIdxs,
802 MessageInfos: file_driver_proto_msgTypes,
803 }.Build()
804 File_driver_proto = out.File
805 file_driver_proto_goTypes = nil
806 file_driver_proto_depIdxs = nil
807}