forked from tpjg/goriakpbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriak.pb.go
2974 lines (2563 loc) · 77.9 KB
/
riak.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.
// source: riak.proto
// DO NOT EDIT!
/*
Package riak is a generated protocol buffer package.
It is generated from these files:
riak.proto
It has these top-level messages:
RpbErrorResp
RpbGetServerInfoResp
RpbPair
RpbGetBucketReq
RpbGetBucketResp
RpbSetBucketReq
RpbResetBucketReq
RpbGetBucketTypeReq
RpbSetBucketTypeReq
RpbModFun
RpbCommitHook
RpbBucketProps
RpbAuthReq
MapField
MapEntry
DtFetchReq
DtValue
DtFetchResp
CounterOp
SetOp
MapUpdate
MapOp
DtOp
DtUpdateReq
DtUpdateResp
RpbGetClientIdResp
RpbSetClientIdReq
RpbGetReq
RpbGetResp
RpbPutReq
RpbPutResp
RpbDelReq
RpbListBucketsReq
RpbListBucketsResp
RpbListKeysReq
RpbListKeysResp
RpbMapRedReq
RpbMapRedResp
RpbIndexReq
RpbIndexResp
RpbCSBucketReq
RpbCSBucketResp
RpbIndexObject
RpbContent
RpbLink
RpbCounterUpdateReq
RpbCounterUpdateResp
RpbCounterGetReq
RpbCounterGetResp
RpbSearchDoc
RpbSearchQueryReq
RpbSearchQueryResp
RpbYokozunaIndex
RpbYokozunaIndexGetReq
RpbYokozunaIndexGetResp
RpbYokozunaIndexPutReq
RpbYokozunaIndexDeleteReq
RpbYokozunaSchema
RpbYokozunaSchemaPutReq
RpbYokozunaSchemaGetReq
RpbYokozunaSchemaGetResp
*/
package pb
import proto "code.google.com/p/goprotobuf/proto"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = math.Inf
// Used by riak_repl bucket fixup
type RpbBucketProps_RpbReplMode int32
const (
RpbBucketProps_FALSE RpbBucketProps_RpbReplMode = 0
RpbBucketProps_REALTIME RpbBucketProps_RpbReplMode = 1
RpbBucketProps_FULLSYNC RpbBucketProps_RpbReplMode = 2
RpbBucketProps_TRUE RpbBucketProps_RpbReplMode = 3
)
var RpbBucketProps_RpbReplMode_name = map[int32]string{
0: "FALSE",
1: "REALTIME",
2: "FULLSYNC",
3: "TRUE",
}
var RpbBucketProps_RpbReplMode_value = map[string]int32{
"FALSE": 0,
"REALTIME": 1,
"FULLSYNC": 2,
"TRUE": 3,
}
func (x RpbBucketProps_RpbReplMode) Enum() *RpbBucketProps_RpbReplMode {
p := new(RpbBucketProps_RpbReplMode)
*p = x
return p
}
func (x RpbBucketProps_RpbReplMode) String() string {
return proto.EnumName(RpbBucketProps_RpbReplMode_name, int32(x))
}
func (x *RpbBucketProps_RpbReplMode) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(RpbBucketProps_RpbReplMode_value, data, "RpbBucketProps_RpbReplMode")
if err != nil {
return err
}
*x = RpbBucketProps_RpbReplMode(value)
return nil
}
//
// The types that can be stored in a map are limited to counters,
// sets, registers, flags, and maps.
type MapField_MapFieldType int32
const (
MapField_COUNTER MapField_MapFieldType = 1
MapField_SET MapField_MapFieldType = 2
MapField_REGISTER MapField_MapFieldType = 3
MapField_FLAG MapField_MapFieldType = 4
MapField_MAP MapField_MapFieldType = 5
)
var MapField_MapFieldType_name = map[int32]string{
1: "COUNTER",
2: "SET",
3: "REGISTER",
4: "FLAG",
5: "MAP",
}
var MapField_MapFieldType_value = map[string]int32{
"COUNTER": 1,
"SET": 2,
"REGISTER": 3,
"FLAG": 4,
"MAP": 5,
}
func (x MapField_MapFieldType) Enum() *MapField_MapFieldType {
p := new(MapField_MapFieldType)
*p = x
return p
}
func (x MapField_MapFieldType) String() string {
return proto.EnumName(MapField_MapFieldType_name, int32(x))
}
func (x *MapField_MapFieldType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(MapField_MapFieldType_value, data, "MapField_MapFieldType")
if err != nil {
return err
}
*x = MapField_MapFieldType(value)
return nil
}
type DtFetchResp_DataType int32
const (
DtFetchResp_COUNTER DtFetchResp_DataType = 1
DtFetchResp_SET DtFetchResp_DataType = 2
DtFetchResp_MAP DtFetchResp_DataType = 3
)
var DtFetchResp_DataType_name = map[int32]string{
1: "COUNTER",
2: "SET",
3: "MAP",
}
var DtFetchResp_DataType_value = map[string]int32{
"COUNTER": 1,
"SET": 2,
"MAP": 3,
}
func (x DtFetchResp_DataType) Enum() *DtFetchResp_DataType {
p := new(DtFetchResp_DataType)
*p = x
return p
}
func (x DtFetchResp_DataType) String() string {
return proto.EnumName(DtFetchResp_DataType_name, int32(x))
}
func (x *DtFetchResp_DataType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(DtFetchResp_DataType_value, data, "DtFetchResp_DataType")
if err != nil {
return err
}
*x = DtFetchResp_DataType(value)
return nil
}
//
// Flags only exist inside Maps and can only be enabled or
// disabled, and there are no arguments to the operations.
type MapUpdate_FlagOp int32
const (
MapUpdate_ENABLE MapUpdate_FlagOp = 1
MapUpdate_DISABLE MapUpdate_FlagOp = 2
)
var MapUpdate_FlagOp_name = map[int32]string{
1: "ENABLE",
2: "DISABLE",
}
var MapUpdate_FlagOp_value = map[string]int32{
"ENABLE": 1,
"DISABLE": 2,
}
func (x MapUpdate_FlagOp) Enum() *MapUpdate_FlagOp {
p := new(MapUpdate_FlagOp)
*p = x
return p
}
func (x MapUpdate_FlagOp) String() string {
return proto.EnumName(MapUpdate_FlagOp_name, int32(x))
}
func (x *MapUpdate_FlagOp) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(MapUpdate_FlagOp_value, data, "MapUpdate_FlagOp")
if err != nil {
return err
}
*x = MapUpdate_FlagOp(value)
return nil
}
type RpbIndexReq_IndexQueryType int32
const (
RpbIndexReq_eq RpbIndexReq_IndexQueryType = 0
RpbIndexReq_range RpbIndexReq_IndexQueryType = 1
)
var RpbIndexReq_IndexQueryType_name = map[int32]string{
0: "eq",
1: "range",
}
var RpbIndexReq_IndexQueryType_value = map[string]int32{
"eq": 0,
"range": 1,
}
func (x RpbIndexReq_IndexQueryType) Enum() *RpbIndexReq_IndexQueryType {
p := new(RpbIndexReq_IndexQueryType)
*p = x
return p
}
func (x RpbIndexReq_IndexQueryType) String() string {
return proto.EnumName(RpbIndexReq_IndexQueryType_name, int32(x))
}
func (x *RpbIndexReq_IndexQueryType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(RpbIndexReq_IndexQueryType_value, data, "RpbIndexReq_IndexQueryType")
if err != nil {
return err
}
*x = RpbIndexReq_IndexQueryType(value)
return nil
}
// Error response - may be generated for any Req
type RpbErrorResp struct {
Errmsg []byte `protobuf:"bytes,1,req,name=errmsg" json:"errmsg,omitempty"`
Errcode *uint32 `protobuf:"varint,2,req,name=errcode" json:"errcode,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbErrorResp) Reset() { *m = RpbErrorResp{} }
func (m *RpbErrorResp) String() string { return proto.CompactTextString(m) }
func (*RpbErrorResp) ProtoMessage() {}
func (m *RpbErrorResp) GetErrmsg() []byte {
if m != nil {
return m.Errmsg
}
return nil
}
func (m *RpbErrorResp) GetErrcode() uint32 {
if m != nil && m.Errcode != nil {
return *m.Errcode
}
return 0
}
// Get server info request - no message defined, just send RpbGetServerInfoReq message code
type RpbGetServerInfoResp struct {
Node []byte `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
ServerVersion []byte `protobuf:"bytes,2,opt,name=server_version" json:"server_version,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbGetServerInfoResp) Reset() { *m = RpbGetServerInfoResp{} }
func (m *RpbGetServerInfoResp) String() string { return proto.CompactTextString(m) }
func (*RpbGetServerInfoResp) ProtoMessage() {}
func (m *RpbGetServerInfoResp) GetNode() []byte {
if m != nil {
return m.Node
}
return nil
}
func (m *RpbGetServerInfoResp) GetServerVersion() []byte {
if m != nil {
return m.ServerVersion
}
return nil
}
// Key/value pair - used for user metadata, indexes, search doc fields
type RpbPair struct {
Key []byte `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbPair) Reset() { *m = RpbPair{} }
func (m *RpbPair) String() string { return proto.CompactTextString(m) }
func (*RpbPair) ProtoMessage() {}
func (m *RpbPair) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *RpbPair) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
// Get bucket properties request
type RpbGetBucketReq struct {
Bucket []byte `protobuf:"bytes,1,req,name=bucket" json:"bucket,omitempty"`
Type []byte `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbGetBucketReq) Reset() { *m = RpbGetBucketReq{} }
func (m *RpbGetBucketReq) String() string { return proto.CompactTextString(m) }
func (*RpbGetBucketReq) ProtoMessage() {}
func (m *RpbGetBucketReq) GetBucket() []byte {
if m != nil {
return m.Bucket
}
return nil
}
func (m *RpbGetBucketReq) GetType() []byte {
if m != nil {
return m.Type
}
return nil
}
// Get bucket properties response
type RpbGetBucketResp struct {
Props *RpbBucketProps `protobuf:"bytes,1,req,name=props" json:"props,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbGetBucketResp) Reset() { *m = RpbGetBucketResp{} }
func (m *RpbGetBucketResp) String() string { return proto.CompactTextString(m) }
func (*RpbGetBucketResp) ProtoMessage() {}
func (m *RpbGetBucketResp) GetProps() *RpbBucketProps {
if m != nil {
return m.Props
}
return nil
}
// Set bucket properties request
type RpbSetBucketReq struct {
Bucket []byte `protobuf:"bytes,1,req,name=bucket" json:"bucket,omitempty"`
Props *RpbBucketProps `protobuf:"bytes,2,req,name=props" json:"props,omitempty"`
Type []byte `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbSetBucketReq) Reset() { *m = RpbSetBucketReq{} }
func (m *RpbSetBucketReq) String() string { return proto.CompactTextString(m) }
func (*RpbSetBucketReq) ProtoMessage() {}
func (m *RpbSetBucketReq) GetBucket() []byte {
if m != nil {
return m.Bucket
}
return nil
}
func (m *RpbSetBucketReq) GetProps() *RpbBucketProps {
if m != nil {
return m.Props
}
return nil
}
func (m *RpbSetBucketReq) GetType() []byte {
if m != nil {
return m.Type
}
return nil
}
// Reset bucket properties request
type RpbResetBucketReq struct {
Bucket []byte `protobuf:"bytes,1,req,name=bucket" json:"bucket,omitempty"`
Type []byte `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbResetBucketReq) Reset() { *m = RpbResetBucketReq{} }
func (m *RpbResetBucketReq) String() string { return proto.CompactTextString(m) }
func (*RpbResetBucketReq) ProtoMessage() {}
func (m *RpbResetBucketReq) GetBucket() []byte {
if m != nil {
return m.Bucket
}
return nil
}
func (m *RpbResetBucketReq) GetType() []byte {
if m != nil {
return m.Type
}
return nil
}
// Get bucket properties request
type RpbGetBucketTypeReq struct {
Type []byte `protobuf:"bytes,1,req,name=type" json:"type,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbGetBucketTypeReq) Reset() { *m = RpbGetBucketTypeReq{} }
func (m *RpbGetBucketTypeReq) String() string { return proto.CompactTextString(m) }
func (*RpbGetBucketTypeReq) ProtoMessage() {}
func (m *RpbGetBucketTypeReq) GetType() []byte {
if m != nil {
return m.Type
}
return nil
}
// Set bucket properties request
type RpbSetBucketTypeReq struct {
Type []byte `protobuf:"bytes,1,req,name=type" json:"type,omitempty"`
Props *RpbBucketProps `protobuf:"bytes,2,req,name=props" json:"props,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbSetBucketTypeReq) Reset() { *m = RpbSetBucketTypeReq{} }
func (m *RpbSetBucketTypeReq) String() string { return proto.CompactTextString(m) }
func (*RpbSetBucketTypeReq) ProtoMessage() {}
func (m *RpbSetBucketTypeReq) GetType() []byte {
if m != nil {
return m.Type
}
return nil
}
func (m *RpbSetBucketTypeReq) GetProps() *RpbBucketProps {
if m != nil {
return m.Props
}
return nil
}
// Module-Function pairs for commit hooks and other bucket properties
// that take functions
type RpbModFun struct {
Module []byte `protobuf:"bytes,1,req,name=module" json:"module,omitempty"`
Function []byte `protobuf:"bytes,2,req,name=function" json:"function,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbModFun) Reset() { *m = RpbModFun{} }
func (m *RpbModFun) String() string { return proto.CompactTextString(m) }
func (*RpbModFun) ProtoMessage() {}
func (m *RpbModFun) GetModule() []byte {
if m != nil {
return m.Module
}
return nil
}
func (m *RpbModFun) GetFunction() []byte {
if m != nil {
return m.Function
}
return nil
}
// A commit hook, which may either be a modfun or a JavaScript named
// function
type RpbCommitHook struct {
Modfun *RpbModFun `protobuf:"bytes,1,opt,name=modfun" json:"modfun,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbCommitHook) Reset() { *m = RpbCommitHook{} }
func (m *RpbCommitHook) String() string { return proto.CompactTextString(m) }
func (*RpbCommitHook) ProtoMessage() {}
func (m *RpbCommitHook) GetModfun() *RpbModFun {
if m != nil {
return m.Modfun
}
return nil
}
func (m *RpbCommitHook) GetName() []byte {
if m != nil {
return m.Name
}
return nil
}
// Bucket properties
type RpbBucketProps struct {
// Declared in riak_core_app
NVal *uint32 `protobuf:"varint,1,opt,name=n_val" json:"n_val,omitempty"`
AllowMult *bool `protobuf:"varint,2,opt,name=allow_mult" json:"allow_mult,omitempty"`
LastWriteWins *bool `protobuf:"varint,3,opt,name=last_write_wins" json:"last_write_wins,omitempty"`
Precommit []*RpbCommitHook `protobuf:"bytes,4,rep,name=precommit" json:"precommit,omitempty"`
HasPrecommit *bool `protobuf:"varint,5,opt,name=has_precommit,def=0" json:"has_precommit,omitempty"`
Postcommit []*RpbCommitHook `protobuf:"bytes,6,rep,name=postcommit" json:"postcommit,omitempty"`
HasPostcommit *bool `protobuf:"varint,7,opt,name=has_postcommit,def=0" json:"has_postcommit,omitempty"`
ChashKeyfun *RpbModFun `protobuf:"bytes,8,opt,name=chash_keyfun" json:"chash_keyfun,omitempty"`
// Declared in riak_kv_app
Linkfun *RpbModFun `protobuf:"bytes,9,opt,name=linkfun" json:"linkfun,omitempty"`
OldVclock *uint32 `protobuf:"varint,10,opt,name=old_vclock" json:"old_vclock,omitempty"`
YoungVclock *uint32 `protobuf:"varint,11,opt,name=young_vclock" json:"young_vclock,omitempty"`
BigVclock *uint32 `protobuf:"varint,12,opt,name=big_vclock" json:"big_vclock,omitempty"`
SmallVclock *uint32 `protobuf:"varint,13,opt,name=small_vclock" json:"small_vclock,omitempty"`
Pr *uint32 `protobuf:"varint,14,opt,name=pr" json:"pr,omitempty"`
R *uint32 `protobuf:"varint,15,opt,name=r" json:"r,omitempty"`
W *uint32 `protobuf:"varint,16,opt,name=w" json:"w,omitempty"`
Pw *uint32 `protobuf:"varint,17,opt,name=pw" json:"pw,omitempty"`
Dw *uint32 `protobuf:"varint,18,opt,name=dw" json:"dw,omitempty"`
Rw *uint32 `protobuf:"varint,19,opt,name=rw" json:"rw,omitempty"`
BasicQuorum *bool `protobuf:"varint,20,opt,name=basic_quorum" json:"basic_quorum,omitempty"`
NotfoundOk *bool `protobuf:"varint,21,opt,name=notfound_ok" json:"notfound_ok,omitempty"`
// Used by riak_kv_multi_backend
Backend []byte `protobuf:"bytes,22,opt,name=backend" json:"backend,omitempty"`
// Used by riak_search bucket fixup
Search *bool `protobuf:"varint,23,opt,name=search" json:"search,omitempty"`
Repl *RpbBucketProps_RpbReplMode `protobuf:"varint,24,opt,name=repl,enum=RpbBucketProps_RpbReplMode" json:"repl,omitempty"`
// Search index
SearchIndex []byte `protobuf:"bytes,25,opt,name=search_index" json:"search_index,omitempty"`
// KV Datatypes
Datatype []byte `protobuf:"bytes,26,opt,name=datatype" json:"datatype,omitempty"`
// KV strong consistency
Consistent *bool `protobuf:"varint,27,opt,name=consistent" json:"consistent,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbBucketProps) Reset() { *m = RpbBucketProps{} }
func (m *RpbBucketProps) String() string { return proto.CompactTextString(m) }
func (*RpbBucketProps) ProtoMessage() {}
const Default_RpbBucketProps_HasPrecommit bool = false
const Default_RpbBucketProps_HasPostcommit bool = false
func (m *RpbBucketProps) GetNVal() uint32 {
if m != nil && m.NVal != nil {
return *m.NVal
}
return 0
}
func (m *RpbBucketProps) GetAllowMult() bool {
if m != nil && m.AllowMult != nil {
return *m.AllowMult
}
return false
}
func (m *RpbBucketProps) GetLastWriteWins() bool {
if m != nil && m.LastWriteWins != nil {
return *m.LastWriteWins
}
return false
}
func (m *RpbBucketProps) GetPrecommit() []*RpbCommitHook {
if m != nil {
return m.Precommit
}
return nil
}
func (m *RpbBucketProps) GetHasPrecommit() bool {
if m != nil && m.HasPrecommit != nil {
return *m.HasPrecommit
}
return Default_RpbBucketProps_HasPrecommit
}
func (m *RpbBucketProps) GetPostcommit() []*RpbCommitHook {
if m != nil {
return m.Postcommit
}
return nil
}
func (m *RpbBucketProps) GetHasPostcommit() bool {
if m != nil && m.HasPostcommit != nil {
return *m.HasPostcommit
}
return Default_RpbBucketProps_HasPostcommit
}
func (m *RpbBucketProps) GetChashKeyfun() *RpbModFun {
if m != nil {
return m.ChashKeyfun
}
return nil
}
func (m *RpbBucketProps) GetLinkfun() *RpbModFun {
if m != nil {
return m.Linkfun
}
return nil
}
func (m *RpbBucketProps) GetOldVclock() uint32 {
if m != nil && m.OldVclock != nil {
return *m.OldVclock
}
return 0
}
func (m *RpbBucketProps) GetYoungVclock() uint32 {
if m != nil && m.YoungVclock != nil {
return *m.YoungVclock
}
return 0
}
func (m *RpbBucketProps) GetBigVclock() uint32 {
if m != nil && m.BigVclock != nil {
return *m.BigVclock
}
return 0
}
func (m *RpbBucketProps) GetSmallVclock() uint32 {
if m != nil && m.SmallVclock != nil {
return *m.SmallVclock
}
return 0
}
func (m *RpbBucketProps) GetPr() uint32 {
if m != nil && m.Pr != nil {
return *m.Pr
}
return 0
}
func (m *RpbBucketProps) GetR() uint32 {
if m != nil && m.R != nil {
return *m.R
}
return 0
}
func (m *RpbBucketProps) GetW() uint32 {
if m != nil && m.W != nil {
return *m.W
}
return 0
}
func (m *RpbBucketProps) GetPw() uint32 {
if m != nil && m.Pw != nil {
return *m.Pw
}
return 0
}
func (m *RpbBucketProps) GetDw() uint32 {
if m != nil && m.Dw != nil {
return *m.Dw
}
return 0
}
func (m *RpbBucketProps) GetRw() uint32 {
if m != nil && m.Rw != nil {
return *m.Rw
}
return 0
}
func (m *RpbBucketProps) GetBasicQuorum() bool {
if m != nil && m.BasicQuorum != nil {
return *m.BasicQuorum
}
return false
}
func (m *RpbBucketProps) GetNotfoundOk() bool {
if m != nil && m.NotfoundOk != nil {
return *m.NotfoundOk
}
return false
}
func (m *RpbBucketProps) GetBackend() []byte {
if m != nil {
return m.Backend
}
return nil
}
func (m *RpbBucketProps) GetSearch() bool {
if m != nil && m.Search != nil {
return *m.Search
}
return false
}
func (m *RpbBucketProps) GetRepl() RpbBucketProps_RpbReplMode {
if m != nil && m.Repl != nil {
return *m.Repl
}
return RpbBucketProps_FALSE
}
func (m *RpbBucketProps) GetSearchIndex() []byte {
if m != nil {
return m.SearchIndex
}
return nil
}
func (m *RpbBucketProps) GetDatatype() []byte {
if m != nil {
return m.Datatype
}
return nil
}
func (m *RpbBucketProps) GetConsistent() bool {
if m != nil && m.Consistent != nil {
return *m.Consistent
}
return false
}
// Authentication request
type RpbAuthReq struct {
User []byte `protobuf:"bytes,1,req,name=user" json:"user,omitempty"`
Password []byte `protobuf:"bytes,2,req,name=password" json:"password,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RpbAuthReq) Reset() { *m = RpbAuthReq{} }
func (m *RpbAuthReq) String() string { return proto.CompactTextString(m) }
func (*RpbAuthReq) ProtoMessage() {}
func (m *RpbAuthReq) GetUser() []byte {
if m != nil {
return m.User
}
return nil
}
func (m *RpbAuthReq) GetPassword() []byte {
if m != nil {
return m.Password
}
return nil
}
//
// Field names in maps are composed of a binary identifier and a type.
// This is so that two clients can create fields with the same name
// but different types, and they converge independently.
type MapField struct {
Name []byte `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Type *MapField_MapFieldType `protobuf:"varint,2,req,name=type,enum=MapField_MapFieldType" json:"type,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *MapField) Reset() { *m = MapField{} }
func (m *MapField) String() string { return proto.CompactTextString(m) }
func (*MapField) ProtoMessage() {}
func (m *MapField) GetName() []byte {
if m != nil {
return m.Name
}
return nil
}
func (m *MapField) GetType() MapField_MapFieldType {
if m != nil && m.Type != nil {
return *m.Type
}
return MapField_COUNTER
}
//
// An entry in a map is a pair of a field-name and value. The type
// defined in the field determines which value type is expected.
type MapEntry struct {
Field *MapField `protobuf:"bytes,1,req,name=field" json:"field,omitempty"`
CounterValue *int64 `protobuf:"zigzag64,2,opt,name=counter_value" json:"counter_value,omitempty"`
SetValue [][]byte `protobuf:"bytes,3,rep,name=set_value" json:"set_value,omitempty"`
RegisterValue []byte `protobuf:"bytes,4,opt,name=register_value" json:"register_value,omitempty"`
FlagValue *bool `protobuf:"varint,5,opt,name=flag_value" json:"flag_value,omitempty"`
MapValue []*MapEntry `protobuf:"bytes,6,rep,name=map_value" json:"map_value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *MapEntry) Reset() { *m = MapEntry{} }
func (m *MapEntry) String() string { return proto.CompactTextString(m) }
func (*MapEntry) ProtoMessage() {}
func (m *MapEntry) GetField() *MapField {
if m != nil {
return m.Field
}
return nil
}
func (m *MapEntry) GetCounterValue() int64 {
if m != nil && m.CounterValue != nil {
return *m.CounterValue
}
return 0
}
func (m *MapEntry) GetSetValue() [][]byte {
if m != nil {
return m.SetValue
}
return nil
}
func (m *MapEntry) GetRegisterValue() []byte {
if m != nil {
return m.RegisterValue
}
return nil
}
func (m *MapEntry) GetFlagValue() bool {
if m != nil && m.FlagValue != nil {
return *m.FlagValue
}
return false
}
func (m *MapEntry) GetMapValue() []*MapEntry {
if m != nil {
return m.MapValue
}
return nil
}
//
// The equivalent of KV's "RpbGetReq", results in a DtFetchResp. The
// request-time options are limited to ones that are relevant to
// structured data-types.
type DtFetchReq struct {
// The identifier: bucket, key and bucket-type
Bucket []byte `protobuf:"bytes,1,req,name=bucket" json:"bucket,omitempty"`
Key []byte `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
Type []byte `protobuf:"bytes,3,req,name=type" json:"type,omitempty"`
// Request options
R *uint32 `protobuf:"varint,4,opt,name=r" json:"r,omitempty"`
Pr *uint32 `protobuf:"varint,5,opt,name=pr" json:"pr,omitempty"`
BasicQuorum *bool `protobuf:"varint,6,opt,name=basic_quorum" json:"basic_quorum,omitempty"`
NotfoundOk *bool `protobuf:"varint,7,opt,name=notfound_ok" json:"notfound_ok,omitempty"`
Timeout *uint32 `protobuf:"varint,8,opt,name=timeout" json:"timeout,omitempty"`
SloppyQuorum *bool `protobuf:"varint,9,opt,name=sloppy_quorum" json:"sloppy_quorum,omitempty"`
NVal *uint32 `protobuf:"varint,10,opt,name=n_val" json:"n_val,omitempty"`
// For read-only requests or context-free operations, you can set
// this to false to reduce the size of the response payload.
IncludeContext *bool `protobuf:"varint,11,opt,name=include_context,def=1" json:"include_context,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DtFetchReq) Reset() { *m = DtFetchReq{} }
func (m *DtFetchReq) String() string { return proto.CompactTextString(m) }
func (*DtFetchReq) ProtoMessage() {}
const Default_DtFetchReq_IncludeContext bool = true
func (m *DtFetchReq) GetBucket() []byte {
if m != nil {
return m.Bucket
}
return nil
}
func (m *DtFetchReq) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *DtFetchReq) GetType() []byte {
if m != nil {
return m.Type
}
return nil
}
func (m *DtFetchReq) GetR() uint32 {
if m != nil && m.R != nil {
return *m.R
}
return 0
}
func (m *DtFetchReq) GetPr() uint32 {
if m != nil && m.Pr != nil {
return *m.Pr
}
return 0
}
func (m *DtFetchReq) GetBasicQuorum() bool {
if m != nil && m.BasicQuorum != nil {
return *m.BasicQuorum
}
return false
}
func (m *DtFetchReq) GetNotfoundOk() bool {
if m != nil && m.NotfoundOk != nil {
return *m.NotfoundOk
}
return false
}
func (m *DtFetchReq) GetTimeout() uint32 {
if m != nil && m.Timeout != nil {
return *m.Timeout
}
return 0
}
func (m *DtFetchReq) GetSloppyQuorum() bool {
if m != nil && m.SloppyQuorum != nil {
return *m.SloppyQuorum
}
return false
}
func (m *DtFetchReq) GetNVal() uint32 {
if m != nil && m.NVal != nil {
return *m.NVal
}
return 0
}
func (m *DtFetchReq) GetIncludeContext() bool {
if m != nil && m.IncludeContext != nil {
return *m.IncludeContext
}
return Default_DtFetchReq_IncludeContext
}
//
// The value of the fetched data type. If present in the response,
// then empty values (sets, maps) should be treated as such.
type DtValue struct {
CounterValue *int64 `protobuf:"zigzag64,1,opt,name=counter_value" json:"counter_value,omitempty"`
SetValue [][]byte `protobuf:"bytes,2,rep,name=set_value" json:"set_value,omitempty"`