-
Notifications
You must be signed in to change notification settings - Fork 171
/
cellsapi-share.pb.go
1881 lines (1671 loc) · 66 KB
/
cellsapi-share.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.27.1
// protoc v3.18.1
// source: cellsapi-share.proto
package rest
import (
_ "github.com/mwitkow/go-proto-validators"
idm "github.com/pydio/cells/v4/common/proto/idm"
service "github.com/pydio/cells/v4/common/proto/service"
tree "github.com/pydio/cells/v4/common/proto/tree"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// Known values for link permissions
type ShareLinkAccessType int32
const (
ShareLinkAccessType_NoAccess ShareLinkAccessType = 0
ShareLinkAccessType_Preview ShareLinkAccessType = 1
ShareLinkAccessType_Download ShareLinkAccessType = 2
ShareLinkAccessType_Upload ShareLinkAccessType = 3
)
// Enum value maps for ShareLinkAccessType.
var (
ShareLinkAccessType_name = map[int32]string{
0: "NoAccess",
1: "Preview",
2: "Download",
3: "Upload",
}
ShareLinkAccessType_value = map[string]int32{
"NoAccess": 0,
"Preview": 1,
"Download": 2,
"Upload": 3,
}
)
func (x ShareLinkAccessType) Enum() *ShareLinkAccessType {
p := new(ShareLinkAccessType)
*p = x
return p
}
func (x ShareLinkAccessType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ShareLinkAccessType) Descriptor() protoreflect.EnumDescriptor {
return file_cellsapi_share_proto_enumTypes[0].Descriptor()
}
func (ShareLinkAccessType) Type() protoreflect.EnumType {
return &file_cellsapi_share_proto_enumTypes[0]
}
func (x ShareLinkAccessType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ShareLinkAccessType.Descriptor instead.
func (ShareLinkAccessType) EnumDescriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{0}
}
type ListSharedResourcesRequest_ListShareType int32
const (
ListSharedResourcesRequest_ANY ListSharedResourcesRequest_ListShareType = 0
ListSharedResourcesRequest_LINKS ListSharedResourcesRequest_ListShareType = 1
ListSharedResourcesRequest_CELLS ListSharedResourcesRequest_ListShareType = 2
)
// Enum value maps for ListSharedResourcesRequest_ListShareType.
var (
ListSharedResourcesRequest_ListShareType_name = map[int32]string{
0: "ANY",
1: "LINKS",
2: "CELLS",
}
ListSharedResourcesRequest_ListShareType_value = map[string]int32{
"ANY": 0,
"LINKS": 1,
"CELLS": 2,
}
)
func (x ListSharedResourcesRequest_ListShareType) Enum() *ListSharedResourcesRequest_ListShareType {
p := new(ListSharedResourcesRequest_ListShareType)
*p = x
return p
}
func (x ListSharedResourcesRequest_ListShareType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ListSharedResourcesRequest_ListShareType) Descriptor() protoreflect.EnumDescriptor {
return file_cellsapi_share_proto_enumTypes[1].Descriptor()
}
func (ListSharedResourcesRequest_ListShareType) Type() protoreflect.EnumType {
return &file_cellsapi_share_proto_enumTypes[1]
}
func (x ListSharedResourcesRequest_ListShareType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ListSharedResourcesRequest_ListShareType.Descriptor instead.
func (ListSharedResourcesRequest_ListShareType) EnumDescriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{12, 0}
}
// Group collected acls by subjects
type CellAcl struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Associated Role ID
RoleId string `protobuf:"bytes,1,opt,name=RoleId,proto3" json:"RoleId,omitempty"`
// List of Acl Actions and their effect
Actions []*idm.ACLAction `protobuf:"bytes,2,rep,name=Actions,proto3" json:"Actions,omitempty"`
// Flag for detecting if it's a user role or not
IsUserRole bool `protobuf:"varint,3,opt,name=IsUserRole,proto3" json:"IsUserRole,omitempty"`
// Associated User
User *idm.User `protobuf:"bytes,4,opt,name=User,proto3" json:"User,omitempty"`
// Associated Group
Group *idm.User `protobuf:"bytes,5,opt,name=Group,proto3" json:"Group,omitempty"`
// Associated Role
Role *idm.Role `protobuf:"bytes,6,opt,name=Role,proto3" json:"Role,omitempty"`
}
func (x *CellAcl) Reset() {
*x = CellAcl{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CellAcl) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CellAcl) ProtoMessage() {}
func (x *CellAcl) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 CellAcl.ProtoReflect.Descriptor instead.
func (*CellAcl) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{0}
}
func (x *CellAcl) GetRoleId() string {
if x != nil {
return x.RoleId
}
return ""
}
func (x *CellAcl) GetActions() []*idm.ACLAction {
if x != nil {
return x.Actions
}
return nil
}
func (x *CellAcl) GetIsUserRole() bool {
if x != nil {
return x.IsUserRole
}
return false
}
func (x *CellAcl) GetUser() *idm.User {
if x != nil {
return x.User
}
return nil
}
func (x *CellAcl) GetGroup() *idm.User {
if x != nil {
return x.Group
}
return nil
}
func (x *CellAcl) GetRole() *idm.Role {
if x != nil {
return x.Role
}
return nil
}
// Model for representing a Cell
type Cell struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Unique Id of the Cell
Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"`
// Label of the Cell (max 500 chars)
Label string `protobuf:"bytes,2,opt,name=Label,proto3" json:"Label,omitempty"`
// Long description of the Cell (max 1000 chars)
Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
// Nodes attached as roots to this Cell
RootNodes []*tree.Node `protobuf:"bytes,4,rep,name=RootNodes,proto3" json:"RootNodes,omitempty"`
// Access control for this Cell
ACLs map[string]*CellAcl `protobuf:"bytes,5,rep,name=ACLs,proto3" json:"ACLs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Associated access policies
Policies []*service.ResourcePolicy `protobuf:"bytes,6,rep,name=Policies,proto3" json:"Policies,omitempty"`
// Whether these policies are currently editable
PoliciesContextEditable bool `protobuf:"varint,7,opt,name=PoliciesContextEditable,proto3" json:"PoliciesContextEditable,omitempty"`
}
func (x *Cell) Reset() {
*x = Cell{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Cell) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Cell) ProtoMessage() {}
func (x *Cell) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 Cell.ProtoReflect.Descriptor instead.
func (*Cell) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{1}
}
func (x *Cell) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Cell) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *Cell) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Cell) GetRootNodes() []*tree.Node {
if x != nil {
return x.RootNodes
}
return nil
}
func (x *Cell) GetACLs() map[string]*CellAcl {
if x != nil {
return x.ACLs
}
return nil
}
func (x *Cell) GetPolicies() []*service.ResourcePolicy {
if x != nil {
return x.Policies
}
return nil
}
func (x *Cell) GetPoliciesContextEditable() bool {
if x != nil {
return x.PoliciesContextEditable
}
return false
}
type ShareLinkTargetUser struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Display string `protobuf:"bytes,1,opt,name=Display,proto3" json:"Display,omitempty"`
DownloadCount int32 `protobuf:"varint,2,opt,name=DownloadCount,proto3" json:"DownloadCount,omitempty"`
}
func (x *ShareLinkTargetUser) Reset() {
*x = ShareLinkTargetUser{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ShareLinkTargetUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShareLinkTargetUser) ProtoMessage() {}
func (x *ShareLinkTargetUser) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 ShareLinkTargetUser.ProtoReflect.Descriptor instead.
func (*ShareLinkTargetUser) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{2}
}
func (x *ShareLinkTargetUser) GetDisplay() string {
if x != nil {
return x.Display
}
return ""
}
func (x *ShareLinkTargetUser) GetDownloadCount() int32 {
if x != nil {
return x.DownloadCount
}
return 0
}
// Model for representing a public link
type ShareLink struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Internal identifier of the link
Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"`
// Unique Hash for accessing the link
LinkHash string `protobuf:"bytes,2,opt,name=LinkHash,proto3" json:"LinkHash,omitempty"`
// Full URL for accessing the link
LinkUrl string `protobuf:"bytes,3,opt,name=LinkUrl,proto3" json:"LinkUrl,omitempty"`
// Label of the Link (max 500 chars)
Label string `protobuf:"bytes,4,opt,name=Label,proto3" json:"Label,omitempty"`
// Description of the Link (max 1000 chars)
Description string `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
// Temporary user Uuid used to login automatically when accessing this link
UserUuid string `protobuf:"bytes,6,opt,name=UserUuid,proto3" json:"UserUuid,omitempty"`
// Temporary user Login used to login automatically when accessing this link
UserLogin string `protobuf:"bytes,7,opt,name=UserLogin,proto3" json:"UserLogin,omitempty"`
// Whether a password is required or not to access the link
PasswordRequired bool `protobuf:"varint,8,opt,name=PasswordRequired,proto3" json:"PasswordRequired,omitempty"`
// Timestamp of start date for enabling the share (not implemented yet)
AccessStart int64 `protobuf:"varint,9,opt,name=AccessStart,proto3" json:"AccessStart,omitempty"`
// Timestamp after which the share is disabled
AccessEnd int64 `protobuf:"varint,10,opt,name=AccessEnd,proto3" json:"AccessEnd,omitempty"`
// Maximum number of downloads until expiration
MaxDownloads int64 `protobuf:"varint,11,opt,name=MaxDownloads,proto3" json:"MaxDownloads,omitempty"`
// Current number of downloads
CurrentDownloads int64 `protobuf:"varint,12,opt,name=CurrentDownloads,proto3" json:"CurrentDownloads,omitempty"`
// Display Template for loading the public link
ViewTemplateName string `protobuf:"bytes,13,opt,name=ViewTemplateName,proto3" json:"ViewTemplateName,omitempty"`
// TargetUsers can be used to restrict access
TargetUsers map[string]*ShareLinkTargetUser `protobuf:"bytes,14,rep,name=TargetUsers,proto3" json:"TargetUsers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// RestrictToTargetUsers enable users restriction
RestrictToTargetUsers bool `protobuf:"varint,15,opt,name=RestrictToTargetUsers,proto3" json:"RestrictToTargetUsers,omitempty"`
// Nodes in the tree that serve as root to this link
RootNodes []*tree.Node `protobuf:"bytes,16,rep,name=RootNodes,proto3" json:"RootNodes,omitempty"`
// Specific permissions for public links
Permissions []ShareLinkAccessType `protobuf:"varint,17,rep,packed,name=Permissions,proto3,enum=rest.ShareLinkAccessType" json:"Permissions,omitempty"`
// Security policies
Policies []*service.ResourcePolicy `protobuf:"bytes,18,rep,name=Policies,proto3" json:"Policies,omitempty"`
// Whether policies are currently editable or not
PoliciesContextEditable bool `protobuf:"varint,19,opt,name=PoliciesContextEditable,proto3" json:"PoliciesContextEditable,omitempty"`
}
func (x *ShareLink) Reset() {
*x = ShareLink{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ShareLink) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShareLink) ProtoMessage() {}
func (x *ShareLink) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 ShareLink.ProtoReflect.Descriptor instead.
func (*ShareLink) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{3}
}
func (x *ShareLink) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *ShareLink) GetLinkHash() string {
if x != nil {
return x.LinkHash
}
return ""
}
func (x *ShareLink) GetLinkUrl() string {
if x != nil {
return x.LinkUrl
}
return ""
}
func (x *ShareLink) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *ShareLink) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *ShareLink) GetUserUuid() string {
if x != nil {
return x.UserUuid
}
return ""
}
func (x *ShareLink) GetUserLogin() string {
if x != nil {
return x.UserLogin
}
return ""
}
func (x *ShareLink) GetPasswordRequired() bool {
if x != nil {
return x.PasswordRequired
}
return false
}
func (x *ShareLink) GetAccessStart() int64 {
if x != nil {
return x.AccessStart
}
return 0
}
func (x *ShareLink) GetAccessEnd() int64 {
if x != nil {
return x.AccessEnd
}
return 0
}
func (x *ShareLink) GetMaxDownloads() int64 {
if x != nil {
return x.MaxDownloads
}
return 0
}
func (x *ShareLink) GetCurrentDownloads() int64 {
if x != nil {
return x.CurrentDownloads
}
return 0
}
func (x *ShareLink) GetViewTemplateName() string {
if x != nil {
return x.ViewTemplateName
}
return ""
}
func (x *ShareLink) GetTargetUsers() map[string]*ShareLinkTargetUser {
if x != nil {
return x.TargetUsers
}
return nil
}
func (x *ShareLink) GetRestrictToTargetUsers() bool {
if x != nil {
return x.RestrictToTargetUsers
}
return false
}
func (x *ShareLink) GetRootNodes() []*tree.Node {
if x != nil {
return x.RootNodes
}
return nil
}
func (x *ShareLink) GetPermissions() []ShareLinkAccessType {
if x != nil {
return x.Permissions
}
return nil
}
func (x *ShareLink) GetPolicies() []*service.ResourcePolicy {
if x != nil {
return x.Policies
}
return nil
}
func (x *ShareLink) GetPoliciesContextEditable() bool {
if x != nil {
return x.PoliciesContextEditable
}
return false
}
// Request for creating a Cell
type PutCellRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Content of the Cell (Room is legacy name)
Room *Cell `protobuf:"bytes,1,opt,name=Room,proto3" json:"Room,omitempty"`
// Whether to create a dedicated folder for this cell at creation
CreateEmptyRoot bool `protobuf:"varint,2,opt,name=CreateEmptyRoot,proto3" json:"CreateEmptyRoot,omitempty"`
}
func (x *PutCellRequest) Reset() {
*x = PutCellRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PutCellRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PutCellRequest) ProtoMessage() {}
func (x *PutCellRequest) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 PutCellRequest.ProtoReflect.Descriptor instead.
func (*PutCellRequest) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{4}
}
func (x *PutCellRequest) GetRoom() *Cell {
if x != nil {
return x.Room
}
return nil
}
func (x *PutCellRequest) GetCreateEmptyRoot() bool {
if x != nil {
return x.CreateEmptyRoot
}
return false
}
// Load a Cell request
type GetCellRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Cell Uuid
Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"`
}
func (x *GetCellRequest) Reset() {
*x = GetCellRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetCellRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCellRequest) ProtoMessage() {}
func (x *GetCellRequest) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 GetCellRequest.ProtoReflect.Descriptor instead.
func (*GetCellRequest) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{5}
}
func (x *GetCellRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
// Request for deleting a Cell
type DeleteCellRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Cell Uuid
Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"`
}
func (x *DeleteCellRequest) Reset() {
*x = DeleteCellRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteCellRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteCellRequest) ProtoMessage() {}
func (x *DeleteCellRequest) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 DeleteCellRequest.ProtoReflect.Descriptor instead.
func (*DeleteCellRequest) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteCellRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
type DeleteCellResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Delete result
Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
}
func (x *DeleteCellResponse) Reset() {
*x = DeleteCellResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteCellResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteCellResponse) ProtoMessage() {}
func (x *DeleteCellResponse) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 DeleteCellResponse.ProtoReflect.Descriptor instead.
func (*DeleteCellResponse) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{7}
}
func (x *DeleteCellResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
type GetShareLinkRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Link Uuid
Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"`
}
func (x *GetShareLinkRequest) Reset() {
*x = GetShareLinkRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetShareLinkRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetShareLinkRequest) ProtoMessage() {}
func (x *GetShareLinkRequest) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 GetShareLinkRequest.ProtoReflect.Descriptor instead.
func (*GetShareLinkRequest) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{8}
}
func (x *GetShareLinkRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
// Request for create/update a link
type PutShareLinkRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Content of the link to create
ShareLink *ShareLink `protobuf:"bytes,1,opt,name=ShareLink,proto3" json:"ShareLink,omitempty"`
// Whether it has Password enabled
PasswordEnabled bool `protobuf:"varint,2,opt,name=PasswordEnabled,proto3" json:"PasswordEnabled,omitempty"`
// Set if switching from no password to password
CreatePassword string `protobuf:"bytes,3,opt,name=CreatePassword,proto3" json:"CreatePassword,omitempty"`
// Set if updating an existing password
UpdatePassword string `protobuf:"bytes,4,opt,name=UpdatePassword,proto3" json:"UpdatePassword,omitempty"`
// Change the ShareLink Hash with a custom value
UpdateCustomHash string `protobuf:"bytes,5,opt,name=UpdateCustomHash,proto3" json:"UpdateCustomHash,omitempty"`
}
func (x *PutShareLinkRequest) Reset() {
*x = PutShareLinkRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PutShareLinkRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PutShareLinkRequest) ProtoMessage() {}
func (x *PutShareLinkRequest) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 PutShareLinkRequest.ProtoReflect.Descriptor instead.
func (*PutShareLinkRequest) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{9}
}
func (x *PutShareLinkRequest) GetShareLink() *ShareLink {
if x != nil {
return x.ShareLink
}
return nil
}
func (x *PutShareLinkRequest) GetPasswordEnabled() bool {
if x != nil {
return x.PasswordEnabled
}
return false
}
func (x *PutShareLinkRequest) GetCreatePassword() string {
if x != nil {
return x.CreatePassword
}
return ""
}
func (x *PutShareLinkRequest) GetUpdatePassword() string {
if x != nil {
return x.UpdatePassword
}
return ""
}
func (x *PutShareLinkRequest) GetUpdateCustomHash() string {
if x != nil {
return x.UpdateCustomHash
}
return ""
}
// Request for deleting a link
type DeleteShareLinkRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Id of Link to delete
Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"`
}
func (x *DeleteShareLinkRequest) Reset() {
*x = DeleteShareLinkRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteShareLinkRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteShareLinkRequest) ProtoMessage() {}
func (x *DeleteShareLinkRequest) ProtoReflect() protoreflect.Message {
mi := &file_cellsapi_share_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 DeleteShareLinkRequest.ProtoReflect.Descriptor instead.
func (*DeleteShareLinkRequest) Descriptor() ([]byte, []int) {
return file_cellsapi_share_proto_rawDescGZIP(), []int{10}
}
func (x *DeleteShareLinkRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
// Response for deleting a share link
type DeleteShareLinkResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// If delete sucess or failed
Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
}
func (x *DeleteShareLinkResponse) Reset() {
*x = DeleteShareLinkResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cellsapi_share_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteShareLinkResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}