-
Notifications
You must be signed in to change notification settings - Fork 546
/
common.pb.go
2331 lines (2070 loc) · 82.2 KB
/
common.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.30.0
// protoc (unknown)
// source: flyteidl/admin/common.proto
package admin
import (
core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "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)
)
// The status of the named entity is used to control its visibility in the UI.
type NamedEntityState int32
const (
// By default, all named entities are considered active and under development.
NamedEntityState_NAMED_ENTITY_ACTIVE NamedEntityState = 0
// Archived named entities are no longer visible in the UI.
NamedEntityState_NAMED_ENTITY_ARCHIVED NamedEntityState = 1
// System generated entities that aren't explicitly created or managed by a user.
NamedEntityState_SYSTEM_GENERATED NamedEntityState = 2
)
// Enum value maps for NamedEntityState.
var (
NamedEntityState_name = map[int32]string{
0: "NAMED_ENTITY_ACTIVE",
1: "NAMED_ENTITY_ARCHIVED",
2: "SYSTEM_GENERATED",
}
NamedEntityState_value = map[string]int32{
"NAMED_ENTITY_ACTIVE": 0,
"NAMED_ENTITY_ARCHIVED": 1,
"SYSTEM_GENERATED": 2,
}
)
func (x NamedEntityState) Enum() *NamedEntityState {
p := new(NamedEntityState)
*p = x
return p
}
func (x NamedEntityState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NamedEntityState) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl_admin_common_proto_enumTypes[0].Descriptor()
}
func (NamedEntityState) Type() protoreflect.EnumType {
return &file_flyteidl_admin_common_proto_enumTypes[0]
}
func (x NamedEntityState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NamedEntityState.Descriptor instead.
func (NamedEntityState) EnumDescriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{0}
}
type Sort_Direction int32
const (
// By default, fields are sorted in descending order.
Sort_DESCENDING Sort_Direction = 0
Sort_ASCENDING Sort_Direction = 1
)
// Enum value maps for Sort_Direction.
var (
Sort_Direction_name = map[int32]string{
0: "DESCENDING",
1: "ASCENDING",
}
Sort_Direction_value = map[string]int32{
"DESCENDING": 0,
"ASCENDING": 1,
}
)
func (x Sort_Direction) Enum() *Sort_Direction {
p := new(Sort_Direction)
*p = x
return p
}
func (x Sort_Direction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Sort_Direction) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl_admin_common_proto_enumTypes[1].Descriptor()
}
func (Sort_Direction) Type() protoreflect.EnumType {
return &file_flyteidl_admin_common_proto_enumTypes[1]
}
func (x Sort_Direction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Sort_Direction.Descriptor instead.
func (Sort_Direction) EnumDescriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{3, 0}
}
// Encapsulation of fields that identifies a Flyte resource.
// A Flyte resource can be a task, workflow or launch plan.
// A resource can internally have multiple versions and is uniquely identified
// by project, domain, and name.
type NamedEntityIdentifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the project the resource belongs to.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// Name of the domain the resource belongs to.
// A domain can be considered as a subset within a specific project.
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
// User provided value for the resource.
// The combination of project + domain + name uniquely identifies the resource.
// +optional - in certain contexts - like 'List API', 'Launch plans'
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Optional, org key applied to the resource.
Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"`
}
func (x *NamedEntityIdentifier) Reset() {
*x = NamedEntityIdentifier{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityIdentifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityIdentifier) ProtoMessage() {}
func (x *NamedEntityIdentifier) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityIdentifier.ProtoReflect.Descriptor instead.
func (*NamedEntityIdentifier) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{0}
}
func (x *NamedEntityIdentifier) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *NamedEntityIdentifier) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *NamedEntityIdentifier) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NamedEntityIdentifier) GetOrg() string {
if x != nil {
return x.Org
}
return ""
}
// Additional metadata around a named entity.
type NamedEntityMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Common description across all versions of the entity
// +optional
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Shared state across all version of the entity
// At this point in time, only workflow entities can have their state archived.
State NamedEntityState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.NamedEntityState" json:"state,omitempty"`
}
func (x *NamedEntityMetadata) Reset() {
*x = NamedEntityMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityMetadata) ProtoMessage() {}
func (x *NamedEntityMetadata) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityMetadata.ProtoReflect.Descriptor instead.
func (*NamedEntityMetadata) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{1}
}
func (x *NamedEntityMetadata) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *NamedEntityMetadata) GetState() NamedEntityState {
if x != nil {
return x.State
}
return NamedEntityState_NAMED_ENTITY_ACTIVE
}
// Encapsulates information common to a NamedEntity, a Flyte resource such as a task,
// workflow or launch plan. A NamedEntity is exclusively identified by its resource type
// and identifier.
type NamedEntity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource type of the named entity. One of Task, Workflow or LaunchPlan.
ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"`
Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Additional metadata around a named entity.
Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}
func (x *NamedEntity) Reset() {
*x = NamedEntity{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntity) ProtoMessage() {}
func (x *NamedEntity) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntity.ProtoReflect.Descriptor instead.
func (*NamedEntity) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{2}
}
func (x *NamedEntity) GetResourceType() core.ResourceType {
if x != nil {
return x.ResourceType
}
return core.ResourceType(0)
}
func (x *NamedEntity) GetId() *NamedEntityIdentifier {
if x != nil {
return x.Id
}
return nil
}
func (x *NamedEntity) GetMetadata() *NamedEntityMetadata {
if x != nil {
return x.Metadata
}
return nil
}
// Specifies sort ordering in a list request.
type Sort struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Indicates an attribute to sort the response values.
// +required
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Indicates the direction to apply sort key for response values.
// +optional
Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.admin.Sort_Direction" json:"direction,omitempty"`
}
func (x *Sort) Reset() {
*x = Sort{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Sort) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Sort) ProtoMessage() {}
func (x *Sort) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 Sort.ProtoReflect.Descriptor instead.
func (*Sort) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{3}
}
func (x *Sort) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Sort) GetDirection() Sort_Direction {
if x != nil {
return x.Direction
}
return Sort_DESCENDING
}
// Represents a request structure to list NamedEntityIdentifiers.
type NamedEntityIdentifierListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the project that contains the identifiers.
// +required
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// Name of the domain the identifiers belongs to within the project.
// +required
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
// Indicates the number of resources to be returned.
// +required
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// In the case of multiple pages of results, the server-provided token can be used to fetch the next page
// in a query.
// +optional
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
// Specifies how listed entities should be sorted in the response.
// +optional
SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
// Indicates a list of filters passed as string.
// +optional
Filters string `protobuf:"bytes,6,opt,name=filters,proto3" json:"filters,omitempty"`
// Optional, org key applied to the resource.
Org string `protobuf:"bytes,7,opt,name=org,proto3" json:"org,omitempty"`
}
func (x *NamedEntityIdentifierListRequest) Reset() {
*x = NamedEntityIdentifierListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityIdentifierListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityIdentifierListRequest) ProtoMessage() {}
func (x *NamedEntityIdentifierListRequest) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityIdentifierListRequest.ProtoReflect.Descriptor instead.
func (*NamedEntityIdentifierListRequest) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{4}
}
func (x *NamedEntityIdentifierListRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *NamedEntityIdentifierListRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *NamedEntityIdentifierListRequest) GetLimit() uint32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *NamedEntityIdentifierListRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *NamedEntityIdentifierListRequest) GetSortBy() *Sort {
if x != nil {
return x.SortBy
}
return nil
}
func (x *NamedEntityIdentifierListRequest) GetFilters() string {
if x != nil {
return x.Filters
}
return ""
}
func (x *NamedEntityIdentifierListRequest) GetOrg() string {
if x != nil {
return x.Org
}
return ""
}
// Represents a request structure to list NamedEntity objects
type NamedEntityListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
// +required
ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"`
// Name of the project that contains the identifiers.
// +required
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// Name of the domain the identifiers belongs to within the project.
Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
// Indicates the number of resources to be returned.
Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// In the case of multiple pages of results, the server-provided token can be used to fetch the next page
// in a query.
// +optional
Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
// Specifies how listed entities should be sorted in the response.
// +optional
SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
// Indicates a list of filters passed as string.
// +optional
Filters string `protobuf:"bytes,7,opt,name=filters,proto3" json:"filters,omitempty"`
// Optional, org key applied to the resource.
Org string `protobuf:"bytes,8,opt,name=org,proto3" json:"org,omitempty"`
}
func (x *NamedEntityListRequest) Reset() {
*x = NamedEntityListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityListRequest) ProtoMessage() {}
func (x *NamedEntityListRequest) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityListRequest.ProtoReflect.Descriptor instead.
func (*NamedEntityListRequest) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{5}
}
func (x *NamedEntityListRequest) GetResourceType() core.ResourceType {
if x != nil {
return x.ResourceType
}
return core.ResourceType(0)
}
func (x *NamedEntityListRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *NamedEntityListRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *NamedEntityListRequest) GetLimit() uint32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *NamedEntityListRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *NamedEntityListRequest) GetSortBy() *Sort {
if x != nil {
return x.SortBy
}
return nil
}
func (x *NamedEntityListRequest) GetFilters() string {
if x != nil {
return x.Filters
}
return ""
}
func (x *NamedEntityListRequest) GetOrg() string {
if x != nil {
return x.Org
}
return ""
}
// Represents a list of NamedEntityIdentifiers.
type NamedEntityIdentifierList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A list of identifiers.
Entities []*NamedEntityIdentifier `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
// In the case of multiple pages of results, the server-provided token can be used to fetch the next page
// in a query. If there are no more results, this value will be empty.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
}
func (x *NamedEntityIdentifierList) Reset() {
*x = NamedEntityIdentifierList{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityIdentifierList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityIdentifierList) ProtoMessage() {}
func (x *NamedEntityIdentifierList) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityIdentifierList.ProtoReflect.Descriptor instead.
func (*NamedEntityIdentifierList) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{6}
}
func (x *NamedEntityIdentifierList) GetEntities() []*NamedEntityIdentifier {
if x != nil {
return x.Entities
}
return nil
}
func (x *NamedEntityIdentifierList) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
// Represents a list of NamedEntityIdentifiers.
type NamedEntityList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A list of NamedEntity objects
Entities []*NamedEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
// In the case of multiple pages of results, the server-provided token can be used to fetch the next page
// in a query. If there are no more results, this value will be empty.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
}
func (x *NamedEntityList) Reset() {
*x = NamedEntityList{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityList) ProtoMessage() {}
func (x *NamedEntityList) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityList.ProtoReflect.Descriptor instead.
func (*NamedEntityList) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{7}
}
func (x *NamedEntityList) GetEntities() []*NamedEntity {
if x != nil {
return x.Entities
}
return nil
}
func (x *NamedEntityList) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
// A request to retrieve the metadata associated with a NamedEntityIdentifier
type NamedEntityGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
// +required
ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"`
// The identifier for the named entity for which to fetch metadata.
// +required
Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *NamedEntityGetRequest) Reset() {
*x = NamedEntityGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityGetRequest) ProtoMessage() {}
func (x *NamedEntityGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_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 NamedEntityGetRequest.ProtoReflect.Descriptor instead.
func (*NamedEntityGetRequest) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{8}
}
func (x *NamedEntityGetRequest) GetResourceType() core.ResourceType {
if x != nil {
return x.ResourceType
}
return core.ResourceType(0)
}
func (x *NamedEntityGetRequest) GetId() *NamedEntityIdentifier {
if x != nil {
return x.Id
}
return nil
}
// Request to set the referenced named entity state to the configured value.
type NamedEntityUpdateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource type of the metadata to update
// +required
ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"`
// Identifier of the metadata to update
// +required
Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Metadata object to set as the new value
// +required
Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}
func (x *NamedEntityUpdateRequest) Reset() {
*x = NamedEntityUpdateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityUpdateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityUpdateRequest) ProtoMessage() {}
func (x *NamedEntityUpdateRequest) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_proto_msgTypes[9]
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 NamedEntityUpdateRequest.ProtoReflect.Descriptor instead.
func (*NamedEntityUpdateRequest) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{9}
}
func (x *NamedEntityUpdateRequest) GetResourceType() core.ResourceType {
if x != nil {
return x.ResourceType
}
return core.ResourceType(0)
}
func (x *NamedEntityUpdateRequest) GetId() *NamedEntityIdentifier {
if x != nil {
return x.Id
}
return nil
}
func (x *NamedEntityUpdateRequest) GetMetadata() *NamedEntityMetadata {
if x != nil {
return x.Metadata
}
return nil
}
// Purposefully empty, may be populated in the future.
type NamedEntityUpdateResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *NamedEntityUpdateResponse) Reset() {
*x = NamedEntityUpdateResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NamedEntityUpdateResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedEntityUpdateResponse) ProtoMessage() {}
func (x *NamedEntityUpdateResponse) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_proto_msgTypes[10]
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 NamedEntityUpdateResponse.ProtoReflect.Descriptor instead.
func (*NamedEntityUpdateResponse) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{10}
}
// Shared request structure to fetch a single resource.
// Resources include: Task, Workflow, LaunchPlan
type ObjectGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Indicates a unique version of resource.
// +required
Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *ObjectGetRequest) Reset() {
*x = ObjectGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ObjectGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ObjectGetRequest) ProtoMessage() {}
func (x *ObjectGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl_admin_common_proto_msgTypes[11]
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 ObjectGetRequest.ProtoReflect.Descriptor instead.
func (*ObjectGetRequest) Descriptor() ([]byte, []int) {
return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{11}
}
func (x *ObjectGetRequest) GetId() *core.Identifier {
if x != nil {
return x.Id
}
return nil
}
// Shared request structure to retrieve a list of resources.
// Resources include: Task, Workflow, LaunchPlan
type ResourceListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// id represents the unique identifier of the resource.
// +required
Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Indicates the number of resources to be returned.
// +required
Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// In the case of multiple pages of results, this server-provided token can be used to fetch the next page
// in a query.
// +optional
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
// Indicates a list of filters passed as string.
// More info on constructing filters : <Link>
// +optional
Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"`
// Sort ordering.
// +optional
SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
}
func (x *ResourceListRequest) Reset() {
*x = ResourceListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl_admin_common_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceListRequest) ProtoMessage() {}