-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathprogress.pb.go
1425 lines (1275 loc) · 49.1 KB
/
progress.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.1
// protoc v3.21.12
// source: progress.proto
package progrock
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// LogStream is the standard stream that a log message was emitted to.
type LogStream int32
const (
// STDIN is /dev/stdin.
LogStream_STDIN LogStream = 0
// STDOUT is /dev/stdout.
LogStream_STDOUT LogStream = 1
// STDOUT is /dev/stderr.
LogStream_STDERR LogStream = 2
)
// Enum value maps for LogStream.
var (
LogStream_name = map[int32]string{
0: "STDIN",
1: "STDOUT",
2: "STDERR",
}
LogStream_value = map[string]int32{
"STDIN": 0,
"STDOUT": 1,
"STDERR": 2,
}
)
func (x LogStream) Enum() *LogStream {
p := new(LogStream)
*p = x
return p
}
func (x LogStream) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LogStream) Descriptor() protoreflect.EnumDescriptor {
return file_progress_proto_enumTypes[0].Descriptor()
}
func (LogStream) Type() protoreflect.EnumType {
return &file_progress_proto_enumTypes[0]
}
func (x LogStream) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LogStream.Descriptor instead.
func (LogStream) EnumDescriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{0}
}
// MessageLevel indicates the severity of a message.
//
// Note that there isn't an INFO level as Messages aren't meant to be used for
// general-purpose logging or updates; those should go through the regular
// vertex status update flow instead. Nevertheless, room has been left for more
// levels in the future, and the enum values are aligned with Go's log/slog
// package.
type MessageLevel int32
const (
// INVALID is not a valid message level. Protobuf requires the first enum
// value to be 0, so here we are.
//
// In the future this _may_ become INFO, which would match Go's log/slog
// package convention, but no promises!
MessageLevel_INVALID MessageLevel = 0
// DEBUG indicates that the message should only be shown if debugging is
// enabled.
MessageLevel_DEBUG MessageLevel = -4
// WARNING indicates that the message should be shown to the user at all
// times, but that execution of the program can continue as normal.
MessageLevel_WARNING MessageLevel = 4
// ERROR indicates that the message should be shown to the user, and that
// executation of the program cannot continue.
MessageLevel_ERROR MessageLevel = 8
)
// Enum value maps for MessageLevel.
var (
MessageLevel_name = map[int32]string{
0: "INVALID",
-4: "DEBUG",
4: "WARNING",
8: "ERROR",
}
MessageLevel_value = map[string]int32{
"INVALID": 0,
"DEBUG": -4,
"WARNING": 4,
"ERROR": 8,
}
)
func (x MessageLevel) Enum() *MessageLevel {
p := new(MessageLevel)
*p = x
return p
}
func (x MessageLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MessageLevel) Descriptor() protoreflect.EnumDescriptor {
return file_progress_proto_enumTypes[1].Descriptor()
}
func (MessageLevel) Type() protoreflect.EnumType {
return &file_progress_proto_enumTypes[1]
}
func (x MessageLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MessageLevel.Descriptor instead.
func (MessageLevel) EnumDescriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{1}
}
// StatusUpdate contains a snapshot of state updates for the graph.
type StatusUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Vertexes contains the set of vertex updates.
Vertexes []*Vertex `protobuf:"bytes,1,rep,name=vertexes,proto3" json:"vertexes,omitempty"`
// Tasks contains the set of tasks updates.
Tasks []*VertexTask `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`
// Logs contains the set of new log output.
Logs []*VertexLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
// Metas contains a set of vertex metadata.
Metas []*VertexMeta `protobuf:"bytes,9,rep,name=metas,proto3" json:"metas,omitempty"`
// Groups contains a set of groups updates.
Groups []*Group `protobuf:"bytes,4,rep,name=groups,proto3" json:"groups,omitempty"`
// Memberships contains a set of group membership updates.
Memberships []*Membership `protobuf:"bytes,5,rep,name=memberships,proto3" json:"memberships,omitempty"`
// Children contains a set of parent-child vertex updates.
Children []*Children `protobuf:"bytes,10,rep,name=children,proto3" json:"children,omitempty"`
// Messages contains global messages to show to the user.
Messages []*Message `protobuf:"bytes,6,rep,name=messages,proto3" json:"messages,omitempty"`
// Sent is an optional timestamp that the status update was emitted.
Sent *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=sent,proto3,oneof" json:"sent,omitempty"`
// Received is an optional timestamp that the status update was received.
Received *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=received,proto3,oneof" json:"received,omitempty"`
}
func (x *StatusUpdate) Reset() {
*x = StatusUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StatusUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StatusUpdate) ProtoMessage() {}
func (x *StatusUpdate) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StatusUpdate.ProtoReflect.Descriptor instead.
func (*StatusUpdate) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{0}
}
func (x *StatusUpdate) GetVertexes() []*Vertex {
if x != nil {
return x.Vertexes
}
return nil
}
func (x *StatusUpdate) GetTasks() []*VertexTask {
if x != nil {
return x.Tasks
}
return nil
}
func (x *StatusUpdate) GetLogs() []*VertexLog {
if x != nil {
return x.Logs
}
return nil
}
func (x *StatusUpdate) GetMetas() []*VertexMeta {
if x != nil {
return x.Metas
}
return nil
}
func (x *StatusUpdate) GetGroups() []*Group {
if x != nil {
return x.Groups
}
return nil
}
func (x *StatusUpdate) GetMemberships() []*Membership {
if x != nil {
return x.Memberships
}
return nil
}
func (x *StatusUpdate) GetChildren() []*Children {
if x != nil {
return x.Children
}
return nil
}
func (x *StatusUpdate) GetMessages() []*Message {
if x != nil {
return x.Messages
}
return nil
}
func (x *StatusUpdate) GetSent() *timestamppb.Timestamp {
if x != nil {
return x.Sent
}
return nil
}
func (x *StatusUpdate) GetReceived() *timestamppb.Timestamp {
if x != nil {
return x.Received
}
return nil
}
// Membership declares a set of vertexes to be members of a group.
type Membership struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Group is the ID of the group.
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
// Vertexes is the set of vertex IDs that are members of the group.
Vertexes []string `protobuf:"bytes,2,rep,name=vertexes,proto3" json:"vertexes,omitempty"`
}
func (x *Membership) Reset() {
*x = Membership{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Membership) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Membership) ProtoMessage() {}
func (x *Membership) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Membership.ProtoReflect.Descriptor instead.
func (*Membership) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{1}
}
func (x *Membership) GetGroup() string {
if x != nil {
return x.Group
}
return ""
}
func (x *Membership) GetVertexes() []string {
if x != nil {
return x.Vertexes
}
return nil
}
// Children declares a set of vertexes to be children of another vertex.
type Children struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Vertex is the ID of the parent.
Vertex string `protobuf:"bytes,1,opt,name=vertex,proto3" json:"vertex,omitempty"`
// Vertexes is the set of vertex IDs that are children of the parent.
Vertexes []string `protobuf:"bytes,2,rep,name=vertexes,proto3" json:"vertexes,omitempty"`
}
func (x *Children) Reset() {
*x = Children{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Children) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Children) ProtoMessage() {}
func (x *Children) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Children.ProtoReflect.Descriptor instead.
func (*Children) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{2}
}
func (x *Children) GetVertex() string {
if x != nil {
return x.Vertex
}
return ""
}
func (x *Children) GetVertexes() []string {
if x != nil {
return x.Vertexes
}
return nil
}
// Group is used to group related vertexes.
type Group struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID is an arbitrary identifier for the group.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Parent is the ID of a parent group.
Parent *string `protobuf:"bytes,2,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
// Name is a name for this group, relative to its parent.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Labels contains a series of name/value pairs.
Labels []*Label `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
// Started is the timestamp that the group started.
Started *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started,proto3" json:"started,omitempty"`
// Completed is the timestamp that the group completed.
Completed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completed,proto3,oneof" json:"completed,omitempty"`
// Weak indicates that the group should not be considered equal to non-weak
// groups. Weak groups may be used to group together vertexes that correspond
// to a single API (e.g. a Dockerfile build), as opposed to "strong" groups
// explicitly configured by the user (e.g. "test", "build", etc).
Weak bool `protobuf:"varint,7,opt,name=weak,proto3" json:"weak,omitempty"`
}
func (x *Group) Reset() {
*x = Group{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Group) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Group) ProtoMessage() {}
func (x *Group) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{3}
}
func (x *Group) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Group) GetParent() string {
if x != nil && x.Parent != nil {
return *x.Parent
}
return ""
}
func (x *Group) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Group) GetLabels() []*Label {
if x != nil {
return x.Labels
}
return nil
}
func (x *Group) GetStarted() *timestamppb.Timestamp {
if x != nil {
return x.Started
}
return nil
}
func (x *Group) GetCompleted() *timestamppb.Timestamp {
if x != nil {
return x.Completed
}
return nil
}
func (x *Group) GetWeak() bool {
if x != nil {
return x.Weak
}
return false
}
// Label is a name/value pair used for annotation.
type Label struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name is the name of the label.
//
// Domain prefixes are a convention for disambiguation, such as
// progrock.io/foo.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Value is the value of the label.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *Label) Reset() {
*x = Label{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Label) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Label) ProtoMessage() {}
func (x *Label) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Label.ProtoReflect.Descriptor instead.
func (*Label) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{4}
}
func (x *Label) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Label) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
// Vertex is a node in the graph of work to be done.
type Vertex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID is a unique identifier for the vertex, such as a digest.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name is a user-visible name for the vertex.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Inputs contains IDs of vertices that this vertex depends on.
Inputs []string `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
// Outputs contains IDs of vertices that this vertex created.
//
// The intention is to allow a vertex to express that it created other
// vertexes which may not maintain an input relationship to its creator, for
// example an API request that created an object that may have otherwise been
// created in some other way.
Outputs []string `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
// Started is the time that the vertex started evaluating.
Started *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started,proto3,oneof" json:"started,omitempty"`
// Completed is the time that the vertex finished evaluating.
Completed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completed,proto3,oneof" json:"completed,omitempty"`
// Cached indicates whether the vertex resulted in a cache hit.
Cached bool `protobuf:"varint,7,opt,name=cached,proto3" json:"cached,omitempty"`
// Error is the error message, if any, that occurred while evaluating the
// vertex.
Error *string `protobuf:"bytes,8,opt,name=error,proto3,oneof" json:"error,omitempty"`
// Canceled indicates whether the vertex was interrupted.
Canceled bool `protobuf:"varint,9,opt,name=canceled,proto3" json:"canceled,omitempty"`
// Internal indicates that the vertex should not visible to the user by
// default, but may be revealed with a flag.
Internal bool `protobuf:"varint,10,opt,name=internal,proto3" json:"internal,omitempty"`
// Focused indicates that the vertex is more important than other vertices,
// and should perhaps be displayed more prominently. For example, this might
// be used to mark the command that actually "does the thing" - runs the
// tests, does a build, whatever.
Focused bool `protobuf:"varint,11,opt,name=focused,proto3" json:"focused,omitempty"`
// Zoomed indicates that this vertex should take up as much
// screen real estate as possible. For example, this might
// be used for running an interactive shell, or running
// anything where there is a single primary output.
Zoomed bool `protobuf:"varint,12,opt,name=zoomed,proto3" json:"zoomed,omitempty"`
// Labels contains a series of name/value pairs.
Labels []*Label `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty"`
}
func (x *Vertex) Reset() {
*x = Vertex{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Vertex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Vertex) ProtoMessage() {}
func (x *Vertex) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Vertex.ProtoReflect.Descriptor instead.
func (*Vertex) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{5}
}
func (x *Vertex) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Vertex) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Vertex) GetInputs() []string {
if x != nil {
return x.Inputs
}
return nil
}
func (x *Vertex) GetOutputs() []string {
if x != nil {
return x.Outputs
}
return nil
}
func (x *Vertex) GetStarted() *timestamppb.Timestamp {
if x != nil {
return x.Started
}
return nil
}
func (x *Vertex) GetCompleted() *timestamppb.Timestamp {
if x != nil {
return x.Completed
}
return nil
}
func (x *Vertex) GetCached() bool {
if x != nil {
return x.Cached
}
return false
}
func (x *Vertex) GetError() string {
if x != nil && x.Error != nil {
return *x.Error
}
return ""
}
func (x *Vertex) GetCanceled() bool {
if x != nil {
return x.Canceled
}
return false
}
func (x *Vertex) GetInternal() bool {
if x != nil {
return x.Internal
}
return false
}
func (x *Vertex) GetFocused() bool {
if x != nil {
return x.Focused
}
return false
}
func (x *Vertex) GetZoomed() bool {
if x != nil {
return x.Zoomed
}
return false
}
func (x *Vertex) GetLabels() []*Label {
if x != nil {
return x.Labels
}
return nil
}
// VertexTask is a task that a vertex is performing.
type VertexTask struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Vertex is the ID of the vertex that is performing the task.
Vertex string `protobuf:"bytes,1,opt,name=vertex,proto3" json:"vertex,omitempty"`
// Name is the user-visible name of the task.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Total is the total number of units of work to be done, such as the number
// of bytes to be downloaded.
Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
// Current is the number of units of work that have been completed.
Current int64 `protobuf:"varint,4,opt,name=current,proto3" json:"current,omitempty"`
// Started is the time that the task started.
Started *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started,proto3,oneof" json:"started,omitempty"`
// Completed is the time that the task finished.
Completed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completed,proto3,oneof" json:"completed,omitempty"`
}
func (x *VertexTask) Reset() {
*x = VertexTask{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VertexTask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VertexTask) ProtoMessage() {}
func (x *VertexTask) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VertexTask.ProtoReflect.Descriptor instead.
func (*VertexTask) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{6}
}
func (x *VertexTask) GetVertex() string {
if x != nil {
return x.Vertex
}
return ""
}
func (x *VertexTask) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *VertexTask) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *VertexTask) GetCurrent() int64 {
if x != nil {
return x.Current
}
return 0
}
func (x *VertexTask) GetStarted() *timestamppb.Timestamp {
if x != nil {
return x.Started
}
return nil
}
func (x *VertexTask) GetCompleted() *timestamppb.Timestamp {
if x != nil {
return x.Completed
}
return nil
}
// VertexLog is a log message from a vertex.
type VertexLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Vertex is the ID of the vertex that emitted the log message.
Vertex string `protobuf:"bytes,1,opt,name=vertex,proto3" json:"vertex,omitempty"`
// Stream is the stream that the log message was emitted to.
Stream LogStream `protobuf:"varint,2,opt,name=stream,proto3,enum=progrock.LogStream" json:"stream,omitempty"`
// Data is the chunk of log output.
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// Timestamp is the time that the log message was emitted.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}
func (x *VertexLog) Reset() {
*x = VertexLog{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VertexLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VertexLog) ProtoMessage() {}
func (x *VertexLog) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VertexLog.ProtoReflect.Descriptor instead.
func (*VertexLog) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{7}
}
func (x *VertexLog) GetVertex() string {
if x != nil {
return x.Vertex
}
return ""
}
func (x *VertexLog) GetStream() LogStream {
if x != nil {
return x.Stream
}
return LogStream_STDIN
}
func (x *VertexLog) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *VertexLog) GetTimestamp() *timestamppb.Timestamp {
if x != nil {
return x.Timestamp
}
return nil
}
// VertexMeta is a message for associated arbitrary data with a vertex.
//
// This is primarily used to help UIs.
type VertexMeta struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Vertex is the ID of the vertex that the payload pertains to.
Vertex string `protobuf:"bytes,1,opt,name=vertex,proto3" json:"vertex,omitempty"`
// Name is a simple word that describes the payload.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Data is an optional payload of arbitrary data.
Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
}
func (x *VertexMeta) Reset() {
*x = VertexMeta{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VertexMeta) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VertexMeta) ProtoMessage() {}
func (x *VertexMeta) ProtoReflect() protoreflect.Message {
mi := &file_progress_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VertexMeta.ProtoReflect.Descriptor instead.
func (*VertexMeta) Descriptor() ([]byte, []int) {
return file_progress_proto_rawDescGZIP(), []int{8}
}
func (x *VertexMeta) GetVertex() string {
if x != nil {
return x.Vertex
}
return ""
}
func (x *VertexMeta) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *VertexMeta) GetData() *anypb.Any {
if x != nil {
return x.Data
}
return nil
}
// Message is a message to display to the user at a global level.
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Message is the human-readable content of the message.
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Level indicates the severity of the message.
Level MessageLevel `protobuf:"varint,2,opt,name=level,proto3,enum=progrock.MessageLevel" json:"level,omitempty"`
// Code is an optional machine-readable name for the message, such as an
// error code. It may be included for i10n.
Code *string `protobuf:"bytes,3,opt,name=code,proto3,oneof" json:"code,omitempty"`
// Labels contains a series of name/value pairs.
Labels []*Label `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
}
func (x *Message) Reset() {
*x = Message{}
if protoimpl.UnsafeEnabled {
mi := &file_progress_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Message) String() string {
return protoimpl.X.MessageStringOf(x)
}