-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathfiles.pb.go
More file actions
1820 lines (1598 loc) · 58.3 KB
/
files.pb.go
File metadata and controls
1820 lines (1598 loc) · 58.3 KB
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
// Copyright (c) F5, Inc.
//
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: mpi/v1/files.proto
package v1
import (
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
// Enum to represent the possible signature algorithms used for certificates
type SignatureAlgorithm int32
const (
// Default, unknown or unsupported algorithm
SignatureAlgorithm_SIGNATURE_ALGORITHM_UNKNOWN SignatureAlgorithm = 0
// MD2 with RSA (Unsupported)
SignatureAlgorithm_MD2_WITH_RSA SignatureAlgorithm = 1
// MD5 with RSA (Only supported for signing, not verification)
SignatureAlgorithm_MD5_WITH_RSA SignatureAlgorithm = 2
// SHA-1 with RSA (Only supported for signing and for verification of CRLs, CSRs, and OCSP responses)
SignatureAlgorithm_SHA1_WITH_RSA SignatureAlgorithm = 3
// SHA-256 with RSA
SignatureAlgorithm_SHA256_WITH_RSA SignatureAlgorithm = 4
// SHA-384 with RSA
SignatureAlgorithm_SHA384_WITH_RSA SignatureAlgorithm = 5
// SHA-512 with RSA
SignatureAlgorithm_SHA512_WITH_RSA SignatureAlgorithm = 6
// DSA with SHA-1 (Unsupported)
SignatureAlgorithm_DSA_WITH_SHA1 SignatureAlgorithm = 7
// DSA with SHA-256 (Unsupported)
SignatureAlgorithm_DSA_WITH_SHA256 SignatureAlgorithm = 8
// ECDSA with SHA-1 (Only supported for signing and for verification of CRLs, CSRs, and OCSP responses)
SignatureAlgorithm_ECDSA_WITH_SHA1 SignatureAlgorithm = 9
// ECDSA with SHA-256
SignatureAlgorithm_ECDSA_WITH_SHA256 SignatureAlgorithm = 10
// ECDSA with SHA-384
SignatureAlgorithm_ECDSA_WITH_SHA384 SignatureAlgorithm = 11
// ECDSA with SHA-512
SignatureAlgorithm_ECDSA_WITH_SHA512 SignatureAlgorithm = 12
// SHA-256 with RSA-PSS
SignatureAlgorithm_SHA256_WITH_RSA_PSS SignatureAlgorithm = 13
// SHA-384 with RSA-PSS
SignatureAlgorithm_SHA384_WITH_RSA_PSS SignatureAlgorithm = 14
// SHA-512 with RSA-PSS
SignatureAlgorithm_SHA512_WITH_RSA_PSS SignatureAlgorithm = 15
// Pure Ed25519
SignatureAlgorithm_PURE_ED25519 SignatureAlgorithm = 16
)
// Enum value maps for SignatureAlgorithm.
var (
SignatureAlgorithm_name = map[int32]string{
0: "SIGNATURE_ALGORITHM_UNKNOWN",
1: "MD2_WITH_RSA",
2: "MD5_WITH_RSA",
3: "SHA1_WITH_RSA",
4: "SHA256_WITH_RSA",
5: "SHA384_WITH_RSA",
6: "SHA512_WITH_RSA",
7: "DSA_WITH_SHA1",
8: "DSA_WITH_SHA256",
9: "ECDSA_WITH_SHA1",
10: "ECDSA_WITH_SHA256",
11: "ECDSA_WITH_SHA384",
12: "ECDSA_WITH_SHA512",
13: "SHA256_WITH_RSA_PSS",
14: "SHA384_WITH_RSA_PSS",
15: "SHA512_WITH_RSA_PSS",
16: "PURE_ED25519",
}
SignatureAlgorithm_value = map[string]int32{
"SIGNATURE_ALGORITHM_UNKNOWN": 0,
"MD2_WITH_RSA": 1,
"MD5_WITH_RSA": 2,
"SHA1_WITH_RSA": 3,
"SHA256_WITH_RSA": 4,
"SHA384_WITH_RSA": 5,
"SHA512_WITH_RSA": 6,
"DSA_WITH_SHA1": 7,
"DSA_WITH_SHA256": 8,
"ECDSA_WITH_SHA1": 9,
"ECDSA_WITH_SHA256": 10,
"ECDSA_WITH_SHA384": 11,
"ECDSA_WITH_SHA512": 12,
"SHA256_WITH_RSA_PSS": 13,
"SHA384_WITH_RSA_PSS": 14,
"SHA512_WITH_RSA_PSS": 15,
"PURE_ED25519": 16,
}
)
func (x SignatureAlgorithm) Enum() *SignatureAlgorithm {
p := new(SignatureAlgorithm)
*p = x
return p
}
func (x SignatureAlgorithm) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor {
return file_mpi_v1_files_proto_enumTypes[0].Descriptor()
}
func (SignatureAlgorithm) Type() protoreflect.EnumType {
return &file_mpi_v1_files_proto_enumTypes[0]
}
func (x SignatureAlgorithm) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SignatureAlgorithm.Descriptor instead.
func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{0}
}
// Represents a data chunk for streaming file transfer.
// For any Stream file transfer, following assumptions should be asserted (by implementation):
// - invalid to contain more or less than one FileDataChunkHeaders
// - invalid to have FileDataChunkContents before FileDataChunkHeaders
// - invalid to have more/fewer FileDataChunkContents than FileDataChunkHeader.chunks
// - invalid to have two FileDataChunkContents with same chunk_id
// - invalid to have FileDataChunkContent with zero-length data
// - invalid to have FileDataChunk message without either header or content
// - hash of the combined contents should match FileDataChunkHeader.file_meta.hash
// - total size of the combined contents should match FileDataChunkHeader.file_meta.size
// - chunk_size should be less than the gRPC max message size
type FileDataChunk struct {
state protoimpl.MessageState `protogen:"open.v1"`
// meta regarding the transfer request
Meta *MessageMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
// Types that are valid to be assigned to Chunk:
//
// *FileDataChunk_Header
// *FileDataChunk_Content
Chunk isFileDataChunk_Chunk `protobuf_oneof:"chunk"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileDataChunk) Reset() {
*x = FileDataChunk{}
mi := &file_mpi_v1_files_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileDataChunk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileDataChunk) ProtoMessage() {}
func (x *FileDataChunk) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileDataChunk.ProtoReflect.Descriptor instead.
func (*FileDataChunk) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{0}
}
func (x *FileDataChunk) GetMeta() *MessageMeta {
if x != nil {
return x.Meta
}
return nil
}
func (x *FileDataChunk) GetChunk() isFileDataChunk_Chunk {
if x != nil {
return x.Chunk
}
return nil
}
func (x *FileDataChunk) GetHeader() *FileDataChunkHeader {
if x != nil {
if x, ok := x.Chunk.(*FileDataChunk_Header); ok {
return x.Header
}
}
return nil
}
func (x *FileDataChunk) GetContent() *FileDataChunkContent {
if x != nil {
if x, ok := x.Chunk.(*FileDataChunk_Content); ok {
return x.Content
}
}
return nil
}
type isFileDataChunk_Chunk interface {
isFileDataChunk_Chunk()
}
type FileDataChunk_Header struct {
// Chunk header
Header *FileDataChunkHeader `protobuf:"bytes,2,opt,name=header,proto3,oneof"`
}
type FileDataChunk_Content struct {
// Chunk data
Content *FileDataChunkContent `protobuf:"bytes,3,opt,name=content,proto3,oneof"`
}
func (*FileDataChunk_Header) isFileDataChunk_Chunk() {}
func (*FileDataChunk_Content) isFileDataChunk_Chunk() {}
// Represents a chunked resource Header
type FileDataChunkHeader struct {
state protoimpl.MessageState `protogen:"open.v1"`
// meta regarding the file, help identity the file name, size, hash, perm
// receiver should validate the hash against the combined contents
FileMeta *FileMeta `protobuf:"bytes,1,opt,name=file_meta,json=fileMeta,proto3" json:"file_meta,omitempty"`
// total number of chunks expected in the transfer
Chunks uint32 `protobuf:"varint,2,opt,name=chunks,proto3" json:"chunks,omitempty"`
// max size of individual chunks, can be undersized if EOF
ChunkSize uint32 `protobuf:"varint,3,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileDataChunkHeader) Reset() {
*x = FileDataChunkHeader{}
mi := &file_mpi_v1_files_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileDataChunkHeader) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileDataChunkHeader) ProtoMessage() {}
func (x *FileDataChunkHeader) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileDataChunkHeader.ProtoReflect.Descriptor instead.
func (*FileDataChunkHeader) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{1}
}
func (x *FileDataChunkHeader) GetFileMeta() *FileMeta {
if x != nil {
return x.FileMeta
}
return nil
}
func (x *FileDataChunkHeader) GetChunks() uint32 {
if x != nil {
return x.Chunks
}
return 0
}
func (x *FileDataChunkHeader) GetChunkSize() uint32 {
if x != nil {
return x.ChunkSize
}
return 0
}
// Represents a chunked resource chunk
type FileDataChunkContent struct {
state protoimpl.MessageState `protogen:"open.v1"`
// chunk id, i.e. x of y, zero-indexed
ChunkId uint32 `protobuf:"varint,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
// chunk data, should be at most chunk_size
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileDataChunkContent) Reset() {
*x = FileDataChunkContent{}
mi := &file_mpi_v1_files_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileDataChunkContent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileDataChunkContent) ProtoMessage() {}
func (x *FileDataChunkContent) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileDataChunkContent.ProtoReflect.Descriptor instead.
func (*FileDataChunkContent) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{2}
}
func (x *FileDataChunkContent) GetChunkId() uint32 {
if x != nil {
return x.ChunkId
}
return 0
}
func (x *FileDataChunkContent) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
// Represents a request payload for a file overview
type GetOverviewRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Meta-information associated with a message
MessageMeta *MessageMeta `protobuf:"bytes,1,opt,name=message_meta,json=messageMeta,proto3" json:"message_meta,omitempty"`
// The config version of the overview you are requesting
ConfigVersion *ConfigVersion `protobuf:"bytes,2,opt,name=config_version,json=configVersion,proto3" json:"config_version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetOverviewRequest) Reset() {
*x = GetOverviewRequest{}
mi := &file_mpi_v1_files_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetOverviewRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOverviewRequest) ProtoMessage() {}
func (x *GetOverviewRequest) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetOverviewRequest.ProtoReflect.Descriptor instead.
func (*GetOverviewRequest) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{3}
}
func (x *GetOverviewRequest) GetMessageMeta() *MessageMeta {
if x != nil {
return x.MessageMeta
}
return nil
}
func (x *GetOverviewRequest) GetConfigVersion() *ConfigVersion {
if x != nil {
return x.ConfigVersion
}
return nil
}
// Represents the response payload to a GetOverviewRequest, requesting a list of logically grouped files e.g. configuration payload
type GetOverviewResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The file overview of an instance
Overview *FileOverview `protobuf:"bytes,1,opt,name=overview,proto3" json:"overview,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetOverviewResponse) Reset() {
*x = GetOverviewResponse{}
mi := &file_mpi_v1_files_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetOverviewResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOverviewResponse) ProtoMessage() {}
func (x *GetOverviewResponse) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetOverviewResponse.ProtoReflect.Descriptor instead.
func (*GetOverviewResponse) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{4}
}
func (x *GetOverviewResponse) GetOverview() *FileOverview {
if x != nil {
return x.Overview
}
return nil
}
// Represents a list of logically grouped files that have changed e.g. configuration payload
type UpdateOverviewRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Meta-information associated with a message
MessageMeta *MessageMeta `protobuf:"bytes,1,opt,name=message_meta,json=messageMeta,proto3" json:"message_meta,omitempty"`
// The file overview of an instance
Overview *FileOverview `protobuf:"bytes,2,opt,name=overview,proto3" json:"overview,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateOverviewRequest) Reset() {
*x = UpdateOverviewRequest{}
mi := &file_mpi_v1_files_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateOverviewRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateOverviewRequest) ProtoMessage() {}
func (x *UpdateOverviewRequest) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateOverviewRequest.ProtoReflect.Descriptor instead.
func (*UpdateOverviewRequest) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{5}
}
func (x *UpdateOverviewRequest) GetMessageMeta() *MessageMeta {
if x != nil {
return x.MessageMeta
}
return nil
}
func (x *UpdateOverviewRequest) GetOverview() *FileOverview {
if x != nil {
return x.Overview
}
return nil
}
// Represents a the response from an UpdateOverviewRequest
type UpdateOverviewResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The file overview with the list of files that were uploaded
Overview *FileOverview `protobuf:"bytes,1,opt,name=overview,proto3" json:"overview,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateOverviewResponse) Reset() {
*x = UpdateOverviewResponse{}
mi := &file_mpi_v1_files_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateOverviewResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateOverviewResponse) ProtoMessage() {}
func (x *UpdateOverviewResponse) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateOverviewResponse.ProtoReflect.Descriptor instead.
func (*UpdateOverviewResponse) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateOverviewResponse) GetOverview() *FileOverview {
if x != nil {
return x.Overview
}
return nil
}
// Represents a specific configuration version associated with an instance
type ConfigVersion struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The instance identifier
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// The version of the configuration
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConfigVersion) Reset() {
*x = ConfigVersion{}
mi := &file_mpi_v1_files_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ConfigVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConfigVersion) ProtoMessage() {}
func (x *ConfigVersion) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConfigVersion.ProtoReflect.Descriptor instead.
func (*ConfigVersion) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{7}
}
func (x *ConfigVersion) GetInstanceId() string {
if x != nil {
return x.InstanceId
}
return ""
}
func (x *ConfigVersion) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
// Represents a collection of files
type FileOverview struct {
state protoimpl.MessageState `protogen:"open.v1"`
// A list of files
Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// The configuration version of the current set of files
ConfigVersion *ConfigVersion `protobuf:"bytes,2,opt,name=config_version,json=configVersion,proto3" json:"config_version,omitempty"`
// The config file path of an instance
ConfigPath string `protobuf:"bytes,3,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileOverview) Reset() {
*x = FileOverview{}
mi := &file_mpi_v1_files_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileOverview) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileOverview) ProtoMessage() {}
func (x *FileOverview) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileOverview.ProtoReflect.Descriptor instead.
func (*FileOverview) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{8}
}
func (x *FileOverview) GetFiles() []*File {
if x != nil {
return x.Files
}
return nil
}
func (x *FileOverview) GetConfigVersion() *ConfigVersion {
if x != nil {
return x.ConfigVersion
}
return nil
}
func (x *FileOverview) GetConfigPath() string {
if x != nil {
return x.ConfigPath
}
return ""
}
// Represents meta data about a file
type File struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Meta information about the file, the name (including path) and hash
FileMeta *FileMeta `protobuf:"bytes,1,opt,name=file_meta,json=fileMeta,proto3" json:"file_meta,omitempty"`
// Unmanaged files will not be modified
Unmanaged bool `protobuf:"varint,2,opt,name=unmanaged,proto3" json:"unmanaged,omitempty"`
// external file source
ExternalDataSource *ExternalDataSource `protobuf:"bytes,3,opt,name=external_data_source,json=externalDataSource,proto3,oneof" json:"external_data_source,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *File) Reset() {
*x = File{}
mi := &file_mpi_v1_files_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *File) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*File) ProtoMessage() {}
func (x *File) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use File.ProtoReflect.Descriptor instead.
func (*File) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{9}
}
func (x *File) GetFileMeta() *FileMeta {
if x != nil {
return x.FileMeta
}
return nil
}
func (x *File) GetUnmanaged() bool {
if x != nil {
return x.Unmanaged
}
return false
}
func (x *File) GetExternalDataSource() *ExternalDataSource {
if x != nil {
return x.ExternalDataSource
}
return nil
}
type ExternalDataSource struct {
state protoimpl.MessageState `protogen:"open.v1"`
// URL to the location of an external file
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExternalDataSource) Reset() {
*x = ExternalDataSource{}
mi := &file_mpi_v1_files_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExternalDataSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExternalDataSource) ProtoMessage() {}
func (x *ExternalDataSource) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExternalDataSource.ProtoReflect.Descriptor instead.
func (*ExternalDataSource) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{10}
}
func (x *ExternalDataSource) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
// Represents the get file request
type GetFileRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Meta-information associated with a message
MessageMeta *MessageMeta `protobuf:"bytes,1,opt,name=message_meta,json=messageMeta,proto3" json:"message_meta,omitempty"`
// Meta-information associated with the file
FileMeta *FileMeta `protobuf:"bytes,2,opt,name=file_meta,json=fileMeta,proto3" json:"file_meta,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFileRequest) Reset() {
*x = GetFileRequest{}
mi := &file_mpi_v1_files_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFileRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFileRequest) ProtoMessage() {}
func (x *GetFileRequest) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.
func (*GetFileRequest) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{11}
}
func (x *GetFileRequest) GetMessageMeta() *MessageMeta {
if x != nil {
return x.MessageMeta
}
return nil
}
func (x *GetFileRequest) GetFileMeta() *FileMeta {
if x != nil {
return x.FileMeta
}
return nil
}
// Represents the response to a get file request
type GetFileResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The contents of a file
Contents *FileContents `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFileResponse) Reset() {
*x = GetFileResponse{}
mi := &file_mpi_v1_files_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFileResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFileResponse) ProtoMessage() {}
func (x *GetFileResponse) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFileResponse.ProtoReflect.Descriptor instead.
func (*GetFileResponse) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{12}
}
func (x *GetFileResponse) GetContents() *FileContents {
if x != nil {
return x.Contents
}
return nil
}
// Represents the bytes contents of the file https://protobuf.dev/programming-guides/api/#dont-encode-data-in-a-string
type FileContents struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Byte representation of a file without encoding
Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileContents) Reset() {
*x = FileContents{}
mi := &file_mpi_v1_files_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileContents) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileContents) ProtoMessage() {}
func (x *FileContents) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileContents.ProtoReflect.Descriptor instead.
func (*FileContents) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{13}
}
func (x *FileContents) GetContents() []byte {
if x != nil {
return x.Contents
}
return nil
}
// Meta information about the file, the name (including path) and hash
type FileMeta struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The full path of the file
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The hash of the file contents sha256, hex encoded
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// Last modified time of the file (created time if never modified)
ModifiedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified_time,json=modifiedTime,proto3" json:"modified_time,omitempty"`
// The permission set associated with a particular file
Permissions string `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
// The size of the file in bytes
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
// additional file information
//
// Types that are valid to be assigned to FileType:
//
// *FileMeta_CertificateMeta
FileType isFileMeta_FileType `protobuf_oneof:"file_type"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileMeta) Reset() {
*x = FileMeta{}
mi := &file_mpi_v1_files_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileMeta) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileMeta) ProtoMessage() {}
func (x *FileMeta) ProtoReflect() protoreflect.Message {
mi := &file_mpi_v1_files_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileMeta.ProtoReflect.Descriptor instead.
func (*FileMeta) Descriptor() ([]byte, []int) {
return file_mpi_v1_files_proto_rawDescGZIP(), []int{14}
}
func (x *FileMeta) GetName() string {
if x != nil {
return x.Name
}
return ""
}