-
Notifications
You must be signed in to change notification settings - Fork 2
/
antidote.pb.go
2118 lines (1862 loc) · 74.4 KB
/
antidote.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.
// source: antidote.proto
package antidoteclient
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type CRDTType int32
const (
CRDTType_COUNTER CRDTType = 3
CRDTType_ORSET CRDTType = 4
CRDTType_LWWREG CRDTType = 5
CRDTType_MVREG CRDTType = 6
CRDTType_GMAP CRDTType = 8
CRDTType_RWSET CRDTType = 10
CRDTType_RRMAP CRDTType = 11
CRDTType_FATCOUNTER CRDTType = 12
CRDTType_FLAG_EW CRDTType = 13
CRDTType_FLAG_DW CRDTType = 14
CRDTType_BCOUNTER CRDTType = 15
)
var CRDTType_name = map[int32]string{
3: "COUNTER",
4: "ORSET",
5: "LWWREG",
6: "MVREG",
8: "GMAP",
10: "RWSET",
11: "RRMAP",
12: "FATCOUNTER",
13: "FLAG_EW",
14: "FLAG_DW",
15: "BCOUNTER",
}
var CRDTType_value = map[string]int32{
"COUNTER": 3,
"ORSET": 4,
"LWWREG": 5,
"MVREG": 6,
"GMAP": 8,
"RWSET": 10,
"RRMAP": 11,
"FATCOUNTER": 12,
"FLAG_EW": 13,
"FLAG_DW": 14,
"BCOUNTER": 15,
}
func (x CRDTType) Enum() *CRDTType {
p := new(CRDTType)
*p = x
return p
}
func (x CRDTType) String() string {
return proto.EnumName(CRDTType_name, int32(x))
}
func (x *CRDTType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(CRDTType_value, data, "CRDTType")
if err != nil {
return err
}
*x = CRDTType(value)
return nil
}
func (CRDTType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{0}
}
type ApbSetUpdate_SetOpType int32
const (
ApbSetUpdate_ADD ApbSetUpdate_SetOpType = 1
ApbSetUpdate_REMOVE ApbSetUpdate_SetOpType = 2
)
var ApbSetUpdate_SetOpType_name = map[int32]string{
1: "ADD",
2: "REMOVE",
}
var ApbSetUpdate_SetOpType_value = map[string]int32{
"ADD": 1,
"REMOVE": 2,
}
func (x ApbSetUpdate_SetOpType) Enum() *ApbSetUpdate_SetOpType {
p := new(ApbSetUpdate_SetOpType)
*p = x
return p
}
func (x ApbSetUpdate_SetOpType) String() string {
return proto.EnumName(ApbSetUpdate_SetOpType_name, int32(x))
}
func (x *ApbSetUpdate_SetOpType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(ApbSetUpdate_SetOpType_value, data, "ApbSetUpdate_SetOpType")
if err != nil {
return err
}
*x = ApbSetUpdate_SetOpType(value)
return nil
}
func (ApbSetUpdate_SetOpType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{3, 0}
}
// Riak Error response
type ApbErrorResp struct {
Errmsg []byte `protobuf:"bytes,1,req,name=errmsg" json:"errmsg,omitempty"`
Errcode *uint32 `protobuf:"varint,2,req,name=errcode" json:"errcode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbErrorResp) Reset() { *m = ApbErrorResp{} }
func (m *ApbErrorResp) String() string { return proto.CompactTextString(m) }
func (*ApbErrorResp) ProtoMessage() {}
func (*ApbErrorResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{0}
}
func (m *ApbErrorResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbErrorResp.Unmarshal(m, b)
}
func (m *ApbErrorResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbErrorResp.Marshal(b, m, deterministic)
}
func (m *ApbErrorResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbErrorResp.Merge(m, src)
}
func (m *ApbErrorResp) XXX_Size() int {
return xxx_messageInfo_ApbErrorResp.Size(m)
}
func (m *ApbErrorResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbErrorResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbErrorResp proto.InternalMessageInfo
func (m *ApbErrorResp) GetErrmsg() []byte {
if m != nil {
return m.Errmsg
}
return nil
}
func (m *ApbErrorResp) GetErrcode() uint32 {
if m != nil && m.Errcode != nil {
return *m.Errcode
}
return 0
}
// Counter increment request
type ApbCounterUpdate struct {
// inc indicates the value to be incremented. To decrement, use a negative value. If no value is given, it will be considered as an increment by 1
Inc *int64 `protobuf:"zigzag64,1,opt,name=inc" json:"inc,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbCounterUpdate) Reset() { *m = ApbCounterUpdate{} }
func (m *ApbCounterUpdate) String() string { return proto.CompactTextString(m) }
func (*ApbCounterUpdate) ProtoMessage() {}
func (*ApbCounterUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{1}
}
func (m *ApbCounterUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbCounterUpdate.Unmarshal(m, b)
}
func (m *ApbCounterUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbCounterUpdate.Marshal(b, m, deterministic)
}
func (m *ApbCounterUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbCounterUpdate.Merge(m, src)
}
func (m *ApbCounterUpdate) XXX_Size() int {
return xxx_messageInfo_ApbCounterUpdate.Size(m)
}
func (m *ApbCounterUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ApbCounterUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ApbCounterUpdate proto.InternalMessageInfo
func (m *ApbCounterUpdate) GetInc() int64 {
if m != nil && m.Inc != nil {
return *m.Inc
}
return 0
}
// Response operation
type ApbGetCounterResp struct {
Value *int32 `protobuf:"zigzag32,1,req,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbGetCounterResp) Reset() { *m = ApbGetCounterResp{} }
func (m *ApbGetCounterResp) String() string { return proto.CompactTextString(m) }
func (*ApbGetCounterResp) ProtoMessage() {}
func (*ApbGetCounterResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{2}
}
func (m *ApbGetCounterResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbGetCounterResp.Unmarshal(m, b)
}
func (m *ApbGetCounterResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbGetCounterResp.Marshal(b, m, deterministic)
}
func (m *ApbGetCounterResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbGetCounterResp.Merge(m, src)
}
func (m *ApbGetCounterResp) XXX_Size() int {
return xxx_messageInfo_ApbGetCounterResp.Size(m)
}
func (m *ApbGetCounterResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbGetCounterResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbGetCounterResp proto.InternalMessageInfo
func (m *ApbGetCounterResp) GetValue() int32 {
if m != nil && m.Value != nil {
return *m.Value
}
return 0
}
// Set updates request
type ApbSetUpdate struct {
Optype *ApbSetUpdate_SetOpType `protobuf:"varint,1,req,name=optype,enum=ApbSetUpdate_SetOpType" json:"optype,omitempty"`
Adds [][]byte `protobuf:"bytes,2,rep,name=adds" json:"adds,omitempty"`
Rems [][]byte `protobuf:"bytes,3,rep,name=rems" json:"rems,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbSetUpdate) Reset() { *m = ApbSetUpdate{} }
func (m *ApbSetUpdate) String() string { return proto.CompactTextString(m) }
func (*ApbSetUpdate) ProtoMessage() {}
func (*ApbSetUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{3}
}
func (m *ApbSetUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbSetUpdate.Unmarshal(m, b)
}
func (m *ApbSetUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbSetUpdate.Marshal(b, m, deterministic)
}
func (m *ApbSetUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbSetUpdate.Merge(m, src)
}
func (m *ApbSetUpdate) XXX_Size() int {
return xxx_messageInfo_ApbSetUpdate.Size(m)
}
func (m *ApbSetUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ApbSetUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ApbSetUpdate proto.InternalMessageInfo
func (m *ApbSetUpdate) GetOptype() ApbSetUpdate_SetOpType {
if m != nil && m.Optype != nil {
return *m.Optype
}
return ApbSetUpdate_ADD
}
func (m *ApbSetUpdate) GetAdds() [][]byte {
if m != nil {
return m.Adds
}
return nil
}
func (m *ApbSetUpdate) GetRems() [][]byte {
if m != nil {
return m.Rems
}
return nil
}
// Get set request
type ApbGetSetResp struct {
Value [][]byte `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbGetSetResp) Reset() { *m = ApbGetSetResp{} }
func (m *ApbGetSetResp) String() string { return proto.CompactTextString(m) }
func (*ApbGetSetResp) ProtoMessage() {}
func (*ApbGetSetResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{4}
}
func (m *ApbGetSetResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbGetSetResp.Unmarshal(m, b)
}
func (m *ApbGetSetResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbGetSetResp.Marshal(b, m, deterministic)
}
func (m *ApbGetSetResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbGetSetResp.Merge(m, src)
}
func (m *ApbGetSetResp) XXX_Size() int {
return xxx_messageInfo_ApbGetSetResp.Size(m)
}
func (m *ApbGetSetResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbGetSetResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbGetSetResp proto.InternalMessageInfo
func (m *ApbGetSetResp) GetValue() [][]byte {
if m != nil {
return m.Value
}
return nil
}
// Register update
type ApbRegUpdate struct {
Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbRegUpdate) Reset() { *m = ApbRegUpdate{} }
func (m *ApbRegUpdate) String() string { return proto.CompactTextString(m) }
func (*ApbRegUpdate) ProtoMessage() {}
func (*ApbRegUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{5}
}
func (m *ApbRegUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbRegUpdate.Unmarshal(m, b)
}
func (m *ApbRegUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbRegUpdate.Marshal(b, m, deterministic)
}
func (m *ApbRegUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbRegUpdate.Merge(m, src)
}
func (m *ApbRegUpdate) XXX_Size() int {
return xxx_messageInfo_ApbRegUpdate.Size(m)
}
func (m *ApbRegUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ApbRegUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ApbRegUpdate proto.InternalMessageInfo
func (m *ApbRegUpdate) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
// Response operation
type ApbGetRegResp struct {
Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbGetRegResp) Reset() { *m = ApbGetRegResp{} }
func (m *ApbGetRegResp) String() string { return proto.CompactTextString(m) }
func (*ApbGetRegResp) ProtoMessage() {}
func (*ApbGetRegResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{6}
}
func (m *ApbGetRegResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbGetRegResp.Unmarshal(m, b)
}
func (m *ApbGetRegResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbGetRegResp.Marshal(b, m, deterministic)
}
func (m *ApbGetRegResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbGetRegResp.Merge(m, src)
}
func (m *ApbGetRegResp) XXX_Size() int {
return xxx_messageInfo_ApbGetRegResp.Size(m)
}
func (m *ApbGetRegResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbGetRegResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbGetRegResp proto.InternalMessageInfo
func (m *ApbGetRegResp) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
// response:
type ApbGetMVRegResp struct {
Values [][]byte `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbGetMVRegResp) Reset() { *m = ApbGetMVRegResp{} }
func (m *ApbGetMVRegResp) String() string { return proto.CompactTextString(m) }
func (*ApbGetMVRegResp) ProtoMessage() {}
func (*ApbGetMVRegResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{7}
}
func (m *ApbGetMVRegResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbGetMVRegResp.Unmarshal(m, b)
}
func (m *ApbGetMVRegResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbGetMVRegResp.Marshal(b, m, deterministic)
}
func (m *ApbGetMVRegResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbGetMVRegResp.Merge(m, src)
}
func (m *ApbGetMVRegResp) XXX_Size() int {
return xxx_messageInfo_ApbGetMVRegResp.Size(m)
}
func (m *ApbGetMVRegResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbGetMVRegResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbGetMVRegResp proto.InternalMessageInfo
func (m *ApbGetMVRegResp) GetValues() [][]byte {
if m != nil {
return m.Values
}
return nil
}
type ApbMapKey struct {
Key []byte `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Type *CRDTType `protobuf:"varint,2,req,name=type,enum=CRDTType" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbMapKey) Reset() { *m = ApbMapKey{} }
func (m *ApbMapKey) String() string { return proto.CompactTextString(m) }
func (*ApbMapKey) ProtoMessage() {}
func (*ApbMapKey) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{8}
}
func (m *ApbMapKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbMapKey.Unmarshal(m, b)
}
func (m *ApbMapKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbMapKey.Marshal(b, m, deterministic)
}
func (m *ApbMapKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbMapKey.Merge(m, src)
}
func (m *ApbMapKey) XXX_Size() int {
return xxx_messageInfo_ApbMapKey.Size(m)
}
func (m *ApbMapKey) XXX_DiscardUnknown() {
xxx_messageInfo_ApbMapKey.DiscardUnknown(m)
}
var xxx_messageInfo_ApbMapKey proto.InternalMessageInfo
func (m *ApbMapKey) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *ApbMapKey) GetType() CRDTType {
if m != nil && m.Type != nil {
return *m.Type
}
return CRDTType_COUNTER
}
type ApbMapUpdate struct {
Updates []*ApbMapNestedUpdate `protobuf:"bytes,1,rep,name=updates" json:"updates,omitempty"`
RemovedKeys []*ApbMapKey `protobuf:"bytes,2,rep,name=removedKeys" json:"removedKeys,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbMapUpdate) Reset() { *m = ApbMapUpdate{} }
func (m *ApbMapUpdate) String() string { return proto.CompactTextString(m) }
func (*ApbMapUpdate) ProtoMessage() {}
func (*ApbMapUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{9}
}
func (m *ApbMapUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbMapUpdate.Unmarshal(m, b)
}
func (m *ApbMapUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbMapUpdate.Marshal(b, m, deterministic)
}
func (m *ApbMapUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbMapUpdate.Merge(m, src)
}
func (m *ApbMapUpdate) XXX_Size() int {
return xxx_messageInfo_ApbMapUpdate.Size(m)
}
func (m *ApbMapUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ApbMapUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ApbMapUpdate proto.InternalMessageInfo
func (m *ApbMapUpdate) GetUpdates() []*ApbMapNestedUpdate {
if m != nil {
return m.Updates
}
return nil
}
func (m *ApbMapUpdate) GetRemovedKeys() []*ApbMapKey {
if m != nil {
return m.RemovedKeys
}
return nil
}
type ApbMapNestedUpdate struct {
Key *ApbMapKey `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Update *ApbUpdateOperation `protobuf:"bytes,2,req,name=update" json:"update,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbMapNestedUpdate) Reset() { *m = ApbMapNestedUpdate{} }
func (m *ApbMapNestedUpdate) String() string { return proto.CompactTextString(m) }
func (*ApbMapNestedUpdate) ProtoMessage() {}
func (*ApbMapNestedUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{10}
}
func (m *ApbMapNestedUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbMapNestedUpdate.Unmarshal(m, b)
}
func (m *ApbMapNestedUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbMapNestedUpdate.Marshal(b, m, deterministic)
}
func (m *ApbMapNestedUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbMapNestedUpdate.Merge(m, src)
}
func (m *ApbMapNestedUpdate) XXX_Size() int {
return xxx_messageInfo_ApbMapNestedUpdate.Size(m)
}
func (m *ApbMapNestedUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ApbMapNestedUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ApbMapNestedUpdate proto.InternalMessageInfo
func (m *ApbMapNestedUpdate) GetKey() *ApbMapKey {
if m != nil {
return m.Key
}
return nil
}
func (m *ApbMapNestedUpdate) GetUpdate() *ApbUpdateOperation {
if m != nil {
return m.Update
}
return nil
}
type ApbGetMapResp struct {
Entries []*ApbMapEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbGetMapResp) Reset() { *m = ApbGetMapResp{} }
func (m *ApbGetMapResp) String() string { return proto.CompactTextString(m) }
func (*ApbGetMapResp) ProtoMessage() {}
func (*ApbGetMapResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{11}
}
func (m *ApbGetMapResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbGetMapResp.Unmarshal(m, b)
}
func (m *ApbGetMapResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbGetMapResp.Marshal(b, m, deterministic)
}
func (m *ApbGetMapResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbGetMapResp.Merge(m, src)
}
func (m *ApbGetMapResp) XXX_Size() int {
return xxx_messageInfo_ApbGetMapResp.Size(m)
}
func (m *ApbGetMapResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbGetMapResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbGetMapResp proto.InternalMessageInfo
func (m *ApbGetMapResp) GetEntries() []*ApbMapEntry {
if m != nil {
return m.Entries
}
return nil
}
type ApbMapEntry struct {
Key *ApbMapKey `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value *ApbReadObjectResp `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbMapEntry) Reset() { *m = ApbMapEntry{} }
func (m *ApbMapEntry) String() string { return proto.CompactTextString(m) }
func (*ApbMapEntry) ProtoMessage() {}
func (*ApbMapEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{12}
}
func (m *ApbMapEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbMapEntry.Unmarshal(m, b)
}
func (m *ApbMapEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbMapEntry.Marshal(b, m, deterministic)
}
func (m *ApbMapEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbMapEntry.Merge(m, src)
}
func (m *ApbMapEntry) XXX_Size() int {
return xxx_messageInfo_ApbMapEntry.Size(m)
}
func (m *ApbMapEntry) XXX_DiscardUnknown() {
xxx_messageInfo_ApbMapEntry.DiscardUnknown(m)
}
var xxx_messageInfo_ApbMapEntry proto.InternalMessageInfo
func (m *ApbMapEntry) GetKey() *ApbMapKey {
if m != nil {
return m.Key
}
return nil
}
func (m *ApbMapEntry) GetValue() *ApbReadObjectResp {
if m != nil {
return m.Value
}
return nil
}
type ApbFlagUpdate struct {
Value *bool `protobuf:"varint,1,req,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbFlagUpdate) Reset() { *m = ApbFlagUpdate{} }
func (m *ApbFlagUpdate) String() string { return proto.CompactTextString(m) }
func (*ApbFlagUpdate) ProtoMessage() {}
func (*ApbFlagUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{13}
}
func (m *ApbFlagUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbFlagUpdate.Unmarshal(m, b)
}
func (m *ApbFlagUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbFlagUpdate.Marshal(b, m, deterministic)
}
func (m *ApbFlagUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbFlagUpdate.Merge(m, src)
}
func (m *ApbFlagUpdate) XXX_Size() int {
return xxx_messageInfo_ApbFlagUpdate.Size(m)
}
func (m *ApbFlagUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ApbFlagUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ApbFlagUpdate proto.InternalMessageInfo
func (m *ApbFlagUpdate) GetValue() bool {
if m != nil && m.Value != nil {
return *m.Value
}
return false
}
type ApbGetFlagResp struct {
Value *bool `protobuf:"varint,1,req,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbGetFlagResp) Reset() { *m = ApbGetFlagResp{} }
func (m *ApbGetFlagResp) String() string { return proto.CompactTextString(m) }
func (*ApbGetFlagResp) ProtoMessage() {}
func (*ApbGetFlagResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{14}
}
func (m *ApbGetFlagResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbGetFlagResp.Unmarshal(m, b)
}
func (m *ApbGetFlagResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbGetFlagResp.Marshal(b, m, deterministic)
}
func (m *ApbGetFlagResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbGetFlagResp.Merge(m, src)
}
func (m *ApbGetFlagResp) XXX_Size() int {
return xxx_messageInfo_ApbGetFlagResp.Size(m)
}
func (m *ApbGetFlagResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbGetFlagResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbGetFlagResp proto.InternalMessageInfo
func (m *ApbGetFlagResp) GetValue() bool {
if m != nil && m.Value != nil {
return *m.Value
}
return false
}
// General reset operation
type ApbCrdtReset struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbCrdtReset) Reset() { *m = ApbCrdtReset{} }
func (m *ApbCrdtReset) String() string { return proto.CompactTextString(m) }
func (*ApbCrdtReset) ProtoMessage() {}
func (*ApbCrdtReset) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{15}
}
func (m *ApbCrdtReset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbCrdtReset.Unmarshal(m, b)
}
func (m *ApbCrdtReset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbCrdtReset.Marshal(b, m, deterministic)
}
func (m *ApbCrdtReset) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbCrdtReset.Merge(m, src)
}
func (m *ApbCrdtReset) XXX_Size() int {
return xxx_messageInfo_ApbCrdtReset.Size(m)
}
func (m *ApbCrdtReset) XXX_DiscardUnknown() {
xxx_messageInfo_ApbCrdtReset.DiscardUnknown(m)
}
var xxx_messageInfo_ApbCrdtReset proto.InternalMessageInfo
// Response operation
type ApbOperationResp struct {
Success *bool `protobuf:"varint,1,req,name=success" json:"success,omitempty"`
Errorcode *uint32 `protobuf:"varint,2,opt,name=errorcode" json:"errorcode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbOperationResp) Reset() { *m = ApbOperationResp{} }
func (m *ApbOperationResp) String() string { return proto.CompactTextString(m) }
func (*ApbOperationResp) ProtoMessage() {}
func (*ApbOperationResp) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{16}
}
func (m *ApbOperationResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbOperationResp.Unmarshal(m, b)
}
func (m *ApbOperationResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbOperationResp.Marshal(b, m, deterministic)
}
func (m *ApbOperationResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbOperationResp.Merge(m, src)
}
func (m *ApbOperationResp) XXX_Size() int {
return xxx_messageInfo_ApbOperationResp.Size(m)
}
func (m *ApbOperationResp) XXX_DiscardUnknown() {
xxx_messageInfo_ApbOperationResp.DiscardUnknown(m)
}
var xxx_messageInfo_ApbOperationResp proto.InternalMessageInfo
func (m *ApbOperationResp) GetSuccess() bool {
if m != nil && m.Success != nil {
return *m.Success
}
return false
}
func (m *ApbOperationResp) GetErrorcode() uint32 {
if m != nil && m.Errorcode != nil {
return *m.Errorcode
}
return 0
}
// Properties parameters of a transaction
type ApbTxnProperties struct {
ReadWrite *uint32 `protobuf:"varint,1,opt,name=read_write,json=readWrite" json:"read_write,omitempty"`
RedBlue *uint32 `protobuf:"varint,2,opt,name=red_blue,json=redBlue" json:"red_blue,omitempty"`
SharedLocks [][]byte `protobuf:"bytes,3,rep,name=shared_locks,json=sharedLocks" json:"shared_locks,omitempty"`
ExclusiveLocks [][]byte `protobuf:"bytes,4,rep,name=exclusive_locks,json=exclusiveLocks" json:"exclusive_locks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbTxnProperties) Reset() { *m = ApbTxnProperties{} }
func (m *ApbTxnProperties) String() string { return proto.CompactTextString(m) }
func (*ApbTxnProperties) ProtoMessage() {}
func (*ApbTxnProperties) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{17}
}
func (m *ApbTxnProperties) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbTxnProperties.Unmarshal(m, b)
}
func (m *ApbTxnProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbTxnProperties.Marshal(b, m, deterministic)
}
func (m *ApbTxnProperties) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbTxnProperties.Merge(m, src)
}
func (m *ApbTxnProperties) XXX_Size() int {
return xxx_messageInfo_ApbTxnProperties.Size(m)
}
func (m *ApbTxnProperties) XXX_DiscardUnknown() {
xxx_messageInfo_ApbTxnProperties.DiscardUnknown(m)
}
var xxx_messageInfo_ApbTxnProperties proto.InternalMessageInfo
func (m *ApbTxnProperties) GetReadWrite() uint32 {
if m != nil && m.ReadWrite != nil {
return *m.ReadWrite
}
return 0
}
func (m *ApbTxnProperties) GetRedBlue() uint32 {
if m != nil && m.RedBlue != nil {
return *m.RedBlue
}
return 0
}
func (m *ApbTxnProperties) GetSharedLocks() [][]byte {
if m != nil {
return m.SharedLocks
}
return nil
}
func (m *ApbTxnProperties) GetExclusiveLocks() [][]byte {
if m != nil {
return m.ExclusiveLocks
}
return nil
}
// Object (Key) representation
type ApbBoundObject struct {
Key []byte `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Type *CRDTType `protobuf:"varint,2,req,name=type,enum=CRDTType" json:"type,omitempty"`
Bucket []byte `protobuf:"bytes,3,req,name=bucket" json:"bucket,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbBoundObject) Reset() { *m = ApbBoundObject{} }
func (m *ApbBoundObject) String() string { return proto.CompactTextString(m) }
func (*ApbBoundObject) ProtoMessage() {}
func (*ApbBoundObject) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{18}
}
func (m *ApbBoundObject) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbBoundObject.Unmarshal(m, b)
}
func (m *ApbBoundObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbBoundObject.Marshal(b, m, deterministic)
}
func (m *ApbBoundObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApbBoundObject.Merge(m, src)
}
func (m *ApbBoundObject) XXX_Size() int {
return xxx_messageInfo_ApbBoundObject.Size(m)
}
func (m *ApbBoundObject) XXX_DiscardUnknown() {
xxx_messageInfo_ApbBoundObject.DiscardUnknown(m)
}
var xxx_messageInfo_ApbBoundObject proto.InternalMessageInfo
func (m *ApbBoundObject) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *ApbBoundObject) GetType() CRDTType {
if m != nil && m.Type != nil {
return *m.Type
}
return CRDTType_COUNTER
}
func (m *ApbBoundObject) GetBucket() []byte {
if m != nil {
return m.Bucket
}
return nil
}
// Objects to be read
type ApbReadObjects struct {
Boundobjects []*ApbBoundObject `protobuf:"bytes,1,rep,name=boundobjects" json:"boundobjects,omitempty"`
TransactionDescriptor []byte `protobuf:"bytes,2,req,name=transaction_descriptor,json=transactionDescriptor" json:"transaction_descriptor,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApbReadObjects) Reset() { *m = ApbReadObjects{} }
func (m *ApbReadObjects) String() string { return proto.CompactTextString(m) }
func (*ApbReadObjects) ProtoMessage() {}
func (*ApbReadObjects) Descriptor() ([]byte, []int) {
return fileDescriptor_97d48018c08bbbb3, []int{19}
}
func (m *ApbReadObjects) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApbReadObjects.Unmarshal(m, b)
}
func (m *ApbReadObjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApbReadObjects.Marshal(b, m, deterministic)