/
data.pb.go
2119 lines (1961 loc) · 77.4 KB
/
data.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: google/bigtable/v2/data.proto
package bigtable
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Specifies the complete (requested) contents of a single row of a table.
// Rows which exceed 256MiB in size cannot be read in full.
type Row struct {
// The unique key which identifies this row within its table. This is the same
// key that's used to identify the row in, for example, a MutateRowRequest.
// May contain any non-empty byte string up to 4KiB in length.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// May be empty, but only if the entire row is empty.
// The mutual ordering of column families is not specified.
Families []*Family `protobuf:"bytes,2,rep,name=families" json:"families,omitempty"`
}
func (m *Row) Reset() { *m = Row{} }
func (m *Row) String() string { return proto.CompactTextString(m) }
func (*Row) ProtoMessage() {}
func (*Row) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *Row) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *Row) GetFamilies() []*Family {
if m != nil {
return m.Families
}
return nil
}
// Specifies (some of) the contents of a single row/column family intersection
// of a table.
type Family struct {
// The unique key which identifies this family within its row. This is the
// same key that's used to identify the family in, for example, a RowFilter
// which sets its "family_name_regex_filter" field.
// Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may
// produce cells in a sentinel family with an empty name.
// Must be no greater than 64 characters in length.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Must not be empty. Sorted in order of increasing "qualifier".
Columns []*Column `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"`
}
func (m *Family) Reset() { *m = Family{} }
func (m *Family) String() string { return proto.CompactTextString(m) }
func (*Family) ProtoMessage() {}
func (*Family) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *Family) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Family) GetColumns() []*Column {
if m != nil {
return m.Columns
}
return nil
}
// Specifies (some of) the contents of a single row/column intersection of a
// table.
type Column struct {
// The unique key which identifies this column within its family. This is the
// same key that's used to identify the column in, for example, a RowFilter
// which sets its `column_qualifier_regex_filter` field.
// May contain any byte string, including the empty string, up to 16kiB in
// length.
Qualifier []byte `protobuf:"bytes,1,opt,name=qualifier,proto3" json:"qualifier,omitempty"`
// Must not be empty. Sorted in order of decreasing "timestamp_micros".
Cells []*Cell `protobuf:"bytes,2,rep,name=cells" json:"cells,omitempty"`
}
func (m *Column) Reset() { *m = Column{} }
func (m *Column) String() string { return proto.CompactTextString(m) }
func (*Column) ProtoMessage() {}
func (*Column) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *Column) GetQualifier() []byte {
if m != nil {
return m.Qualifier
}
return nil
}
func (m *Column) GetCells() []*Cell {
if m != nil {
return m.Cells
}
return nil
}
// Specifies (some of) the contents of a single row/column/timestamp of a table.
type Cell struct {
// The cell's stored timestamp, which also uniquely identifies it within
// its column.
// Values are always expressed in microseconds, but individual tables may set
// a coarser granularity to further restrict the allowed values. For
// example, a table which specifies millisecond granularity will only allow
// values of `timestamp_micros` which are multiples of 1000.
TimestampMicros int64 `protobuf:"varint,1,opt,name=timestamp_micros,json=timestampMicros" json:"timestamp_micros,omitempty"`
// The value stored in the cell.
// May contain any byte string, including the empty string, up to 100MiB in
// length.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
Labels []string `protobuf:"bytes,3,rep,name=labels" json:"labels,omitempty"`
}
func (m *Cell) Reset() { *m = Cell{} }
func (m *Cell) String() string { return proto.CompactTextString(m) }
func (*Cell) ProtoMessage() {}
func (*Cell) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *Cell) GetTimestampMicros() int64 {
if m != nil {
return m.TimestampMicros
}
return 0
}
func (m *Cell) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *Cell) GetLabels() []string {
if m != nil {
return m.Labels
}
return nil
}
// Specifies a contiguous range of rows.
type RowRange struct {
// The row key at which to start the range.
// If neither field is set, interpreted as the empty string, inclusive.
//
// Types that are valid to be assigned to StartKey:
// *RowRange_StartKeyClosed
// *RowRange_StartKeyOpen
StartKey isRowRange_StartKey `protobuf_oneof:"start_key"`
// The row key at which to end the range.
// If neither field is set, interpreted as the infinite row key, exclusive.
//
// Types that are valid to be assigned to EndKey:
// *RowRange_EndKeyOpen
// *RowRange_EndKeyClosed
EndKey isRowRange_EndKey `protobuf_oneof:"end_key"`
}
func (m *RowRange) Reset() { *m = RowRange{} }
func (m *RowRange) String() string { return proto.CompactTextString(m) }
func (*RowRange) ProtoMessage() {}
func (*RowRange) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
type isRowRange_StartKey interface {
isRowRange_StartKey()
}
type isRowRange_EndKey interface {
isRowRange_EndKey()
}
type RowRange_StartKeyClosed struct {
StartKeyClosed []byte `protobuf:"bytes,1,opt,name=start_key_closed,json=startKeyClosed,proto3,oneof"`
}
type RowRange_StartKeyOpen struct {
StartKeyOpen []byte `protobuf:"bytes,2,opt,name=start_key_open,json=startKeyOpen,proto3,oneof"`
}
type RowRange_EndKeyOpen struct {
EndKeyOpen []byte `protobuf:"bytes,3,opt,name=end_key_open,json=endKeyOpen,proto3,oneof"`
}
type RowRange_EndKeyClosed struct {
EndKeyClosed []byte `protobuf:"bytes,4,opt,name=end_key_closed,json=endKeyClosed,proto3,oneof"`
}
func (*RowRange_StartKeyClosed) isRowRange_StartKey() {}
func (*RowRange_StartKeyOpen) isRowRange_StartKey() {}
func (*RowRange_EndKeyOpen) isRowRange_EndKey() {}
func (*RowRange_EndKeyClosed) isRowRange_EndKey() {}
func (m *RowRange) GetStartKey() isRowRange_StartKey {
if m != nil {
return m.StartKey
}
return nil
}
func (m *RowRange) GetEndKey() isRowRange_EndKey {
if m != nil {
return m.EndKey
}
return nil
}
func (m *RowRange) GetStartKeyClosed() []byte {
if x, ok := m.GetStartKey().(*RowRange_StartKeyClosed); ok {
return x.StartKeyClosed
}
return nil
}
func (m *RowRange) GetStartKeyOpen() []byte {
if x, ok := m.GetStartKey().(*RowRange_StartKeyOpen); ok {
return x.StartKeyOpen
}
return nil
}
func (m *RowRange) GetEndKeyOpen() []byte {
if x, ok := m.GetEndKey().(*RowRange_EndKeyOpen); ok {
return x.EndKeyOpen
}
return nil
}
func (m *RowRange) GetEndKeyClosed() []byte {
if x, ok := m.GetEndKey().(*RowRange_EndKeyClosed); ok {
return x.EndKeyClosed
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RowRange) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _RowRange_OneofMarshaler, _RowRange_OneofUnmarshaler, _RowRange_OneofSizer, []interface{}{
(*RowRange_StartKeyClosed)(nil),
(*RowRange_StartKeyOpen)(nil),
(*RowRange_EndKeyOpen)(nil),
(*RowRange_EndKeyClosed)(nil),
}
}
func _RowRange_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RowRange)
// start_key
switch x := m.StartKey.(type) {
case *RowRange_StartKeyClosed:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartKeyClosed)
case *RowRange_StartKeyOpen:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartKeyOpen)
case nil:
default:
return fmt.Errorf("RowRange.StartKey has unexpected type %T", x)
}
// end_key
switch x := m.EndKey.(type) {
case *RowRange_EndKeyOpen:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndKeyOpen)
case *RowRange_EndKeyClosed:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndKeyClosed)
case nil:
default:
return fmt.Errorf("RowRange.EndKey has unexpected type %T", x)
}
return nil
}
func _RowRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RowRange)
switch tag {
case 1: // start_key.start_key_closed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartKey = &RowRange_StartKeyClosed{x}
return true, err
case 2: // start_key.start_key_open
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartKey = &RowRange_StartKeyOpen{x}
return true, err
case 3: // end_key.end_key_open
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndKey = &RowRange_EndKeyOpen{x}
return true, err
case 4: // end_key.end_key_closed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndKey = &RowRange_EndKeyClosed{x}
return true, err
default:
return false, nil
}
}
func _RowRange_OneofSizer(msg proto.Message) (n int) {
m := msg.(*RowRange)
// start_key
switch x := m.StartKey.(type) {
case *RowRange_StartKeyClosed:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StartKeyClosed)))
n += len(x.StartKeyClosed)
case *RowRange_StartKeyOpen:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StartKeyOpen)))
n += len(x.StartKeyOpen)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// end_key
switch x := m.EndKey.(type) {
case *RowRange_EndKeyOpen:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.EndKeyOpen)))
n += len(x.EndKeyOpen)
case *RowRange_EndKeyClosed:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.EndKeyClosed)))
n += len(x.EndKeyClosed)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Specifies a non-contiguous set of rows.
type RowSet struct {
// Single rows included in the set.
RowKeys [][]byte `protobuf:"bytes,1,rep,name=row_keys,json=rowKeys,proto3" json:"row_keys,omitempty"`
// Contiguous row ranges included in the set.
RowRanges []*RowRange `protobuf:"bytes,2,rep,name=row_ranges,json=rowRanges" json:"row_ranges,omitempty"`
}
func (m *RowSet) Reset() { *m = RowSet{} }
func (m *RowSet) String() string { return proto.CompactTextString(m) }
func (*RowSet) ProtoMessage() {}
func (*RowSet) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *RowSet) GetRowKeys() [][]byte {
if m != nil {
return m.RowKeys
}
return nil
}
func (m *RowSet) GetRowRanges() []*RowRange {
if m != nil {
return m.RowRanges
}
return nil
}
// Specifies a contiguous range of columns within a single column family.
// The range spans from <column_family>:<start_qualifier> to
// <column_family>:<end_qualifier>, where both bounds can be either
// inclusive or exclusive.
type ColumnRange struct {
// The name of the column family within which this range falls.
FamilyName string `protobuf:"bytes,1,opt,name=family_name,json=familyName" json:"family_name,omitempty"`
// The column qualifier at which to start the range (within `column_family`).
// If neither field is set, interpreted as the empty string, inclusive.
//
// Types that are valid to be assigned to StartQualifier:
// *ColumnRange_StartQualifierClosed
// *ColumnRange_StartQualifierOpen
StartQualifier isColumnRange_StartQualifier `protobuf_oneof:"start_qualifier"`
// The column qualifier at which to end the range (within `column_family`).
// If neither field is set, interpreted as the infinite string, exclusive.
//
// Types that are valid to be assigned to EndQualifier:
// *ColumnRange_EndQualifierClosed
// *ColumnRange_EndQualifierOpen
EndQualifier isColumnRange_EndQualifier `protobuf_oneof:"end_qualifier"`
}
func (m *ColumnRange) Reset() { *m = ColumnRange{} }
func (m *ColumnRange) String() string { return proto.CompactTextString(m) }
func (*ColumnRange) ProtoMessage() {}
func (*ColumnRange) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
type isColumnRange_StartQualifier interface {
isColumnRange_StartQualifier()
}
type isColumnRange_EndQualifier interface {
isColumnRange_EndQualifier()
}
type ColumnRange_StartQualifierClosed struct {
StartQualifierClosed []byte `protobuf:"bytes,2,opt,name=start_qualifier_closed,json=startQualifierClosed,proto3,oneof"`
}
type ColumnRange_StartQualifierOpen struct {
StartQualifierOpen []byte `protobuf:"bytes,3,opt,name=start_qualifier_open,json=startQualifierOpen,proto3,oneof"`
}
type ColumnRange_EndQualifierClosed struct {
EndQualifierClosed []byte `protobuf:"bytes,4,opt,name=end_qualifier_closed,json=endQualifierClosed,proto3,oneof"`
}
type ColumnRange_EndQualifierOpen struct {
EndQualifierOpen []byte `protobuf:"bytes,5,opt,name=end_qualifier_open,json=endQualifierOpen,proto3,oneof"`
}
func (*ColumnRange_StartQualifierClosed) isColumnRange_StartQualifier() {}
func (*ColumnRange_StartQualifierOpen) isColumnRange_StartQualifier() {}
func (*ColumnRange_EndQualifierClosed) isColumnRange_EndQualifier() {}
func (*ColumnRange_EndQualifierOpen) isColumnRange_EndQualifier() {}
func (m *ColumnRange) GetStartQualifier() isColumnRange_StartQualifier {
if m != nil {
return m.StartQualifier
}
return nil
}
func (m *ColumnRange) GetEndQualifier() isColumnRange_EndQualifier {
if m != nil {
return m.EndQualifier
}
return nil
}
func (m *ColumnRange) GetFamilyName() string {
if m != nil {
return m.FamilyName
}
return ""
}
func (m *ColumnRange) GetStartQualifierClosed() []byte {
if x, ok := m.GetStartQualifier().(*ColumnRange_StartQualifierClosed); ok {
return x.StartQualifierClosed
}
return nil
}
func (m *ColumnRange) GetStartQualifierOpen() []byte {
if x, ok := m.GetStartQualifier().(*ColumnRange_StartQualifierOpen); ok {
return x.StartQualifierOpen
}
return nil
}
func (m *ColumnRange) GetEndQualifierClosed() []byte {
if x, ok := m.GetEndQualifier().(*ColumnRange_EndQualifierClosed); ok {
return x.EndQualifierClosed
}
return nil
}
func (m *ColumnRange) GetEndQualifierOpen() []byte {
if x, ok := m.GetEndQualifier().(*ColumnRange_EndQualifierOpen); ok {
return x.EndQualifierOpen
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ColumnRange) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ColumnRange_OneofMarshaler, _ColumnRange_OneofUnmarshaler, _ColumnRange_OneofSizer, []interface{}{
(*ColumnRange_StartQualifierClosed)(nil),
(*ColumnRange_StartQualifierOpen)(nil),
(*ColumnRange_EndQualifierClosed)(nil),
(*ColumnRange_EndQualifierOpen)(nil),
}
}
func _ColumnRange_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ColumnRange)
// start_qualifier
switch x := m.StartQualifier.(type) {
case *ColumnRange_StartQualifierClosed:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartQualifierClosed)
case *ColumnRange_StartQualifierOpen:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartQualifierOpen)
case nil:
default:
return fmt.Errorf("ColumnRange.StartQualifier has unexpected type %T", x)
}
// end_qualifier
switch x := m.EndQualifier.(type) {
case *ColumnRange_EndQualifierClosed:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndQualifierClosed)
case *ColumnRange_EndQualifierOpen:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndQualifierOpen)
case nil:
default:
return fmt.Errorf("ColumnRange.EndQualifier has unexpected type %T", x)
}
return nil
}
func _ColumnRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ColumnRange)
switch tag {
case 2: // start_qualifier.start_qualifier_closed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartQualifier = &ColumnRange_StartQualifierClosed{x}
return true, err
case 3: // start_qualifier.start_qualifier_open
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartQualifier = &ColumnRange_StartQualifierOpen{x}
return true, err
case 4: // end_qualifier.end_qualifier_closed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndQualifier = &ColumnRange_EndQualifierClosed{x}
return true, err
case 5: // end_qualifier.end_qualifier_open
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndQualifier = &ColumnRange_EndQualifierOpen{x}
return true, err
default:
return false, nil
}
}
func _ColumnRange_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ColumnRange)
// start_qualifier
switch x := m.StartQualifier.(type) {
case *ColumnRange_StartQualifierClosed:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StartQualifierClosed)))
n += len(x.StartQualifierClosed)
case *ColumnRange_StartQualifierOpen:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StartQualifierOpen)))
n += len(x.StartQualifierOpen)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// end_qualifier
switch x := m.EndQualifier.(type) {
case *ColumnRange_EndQualifierClosed:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.EndQualifierClosed)))
n += len(x.EndQualifierClosed)
case *ColumnRange_EndQualifierOpen:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.EndQualifierOpen)))
n += len(x.EndQualifierOpen)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Specified a contiguous range of microsecond timestamps.
type TimestampRange struct {
// Inclusive lower bound. If left empty, interpreted as 0.
StartTimestampMicros int64 `protobuf:"varint,1,opt,name=start_timestamp_micros,json=startTimestampMicros" json:"start_timestamp_micros,omitempty"`
// Exclusive upper bound. If left empty, interpreted as infinity.
EndTimestampMicros int64 `protobuf:"varint,2,opt,name=end_timestamp_micros,json=endTimestampMicros" json:"end_timestamp_micros,omitempty"`
}
func (m *TimestampRange) Reset() { *m = TimestampRange{} }
func (m *TimestampRange) String() string { return proto.CompactTextString(m) }
func (*TimestampRange) ProtoMessage() {}
func (*TimestampRange) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
func (m *TimestampRange) GetStartTimestampMicros() int64 {
if m != nil {
return m.StartTimestampMicros
}
return 0
}
func (m *TimestampRange) GetEndTimestampMicros() int64 {
if m != nil {
return m.EndTimestampMicros
}
return 0
}
// Specifies a contiguous range of raw byte values.
type ValueRange struct {
// The value at which to start the range.
// If neither field is set, interpreted as the empty string, inclusive.
//
// Types that are valid to be assigned to StartValue:
// *ValueRange_StartValueClosed
// *ValueRange_StartValueOpen
StartValue isValueRange_StartValue `protobuf_oneof:"start_value"`
// The value at which to end the range.
// If neither field is set, interpreted as the infinite string, exclusive.
//
// Types that are valid to be assigned to EndValue:
// *ValueRange_EndValueClosed
// *ValueRange_EndValueOpen
EndValue isValueRange_EndValue `protobuf_oneof:"end_value"`
}
func (m *ValueRange) Reset() { *m = ValueRange{} }
func (m *ValueRange) String() string { return proto.CompactTextString(m) }
func (*ValueRange) ProtoMessage() {}
func (*ValueRange) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
type isValueRange_StartValue interface {
isValueRange_StartValue()
}
type isValueRange_EndValue interface {
isValueRange_EndValue()
}
type ValueRange_StartValueClosed struct {
StartValueClosed []byte `protobuf:"bytes,1,opt,name=start_value_closed,json=startValueClosed,proto3,oneof"`
}
type ValueRange_StartValueOpen struct {
StartValueOpen []byte `protobuf:"bytes,2,opt,name=start_value_open,json=startValueOpen,proto3,oneof"`
}
type ValueRange_EndValueClosed struct {
EndValueClosed []byte `protobuf:"bytes,3,opt,name=end_value_closed,json=endValueClosed,proto3,oneof"`
}
type ValueRange_EndValueOpen struct {
EndValueOpen []byte `protobuf:"bytes,4,opt,name=end_value_open,json=endValueOpen,proto3,oneof"`
}
func (*ValueRange_StartValueClosed) isValueRange_StartValue() {}
func (*ValueRange_StartValueOpen) isValueRange_StartValue() {}
func (*ValueRange_EndValueClosed) isValueRange_EndValue() {}
func (*ValueRange_EndValueOpen) isValueRange_EndValue() {}
func (m *ValueRange) GetStartValue() isValueRange_StartValue {
if m != nil {
return m.StartValue
}
return nil
}
func (m *ValueRange) GetEndValue() isValueRange_EndValue {
if m != nil {
return m.EndValue
}
return nil
}
func (m *ValueRange) GetStartValueClosed() []byte {
if x, ok := m.GetStartValue().(*ValueRange_StartValueClosed); ok {
return x.StartValueClosed
}
return nil
}
func (m *ValueRange) GetStartValueOpen() []byte {
if x, ok := m.GetStartValue().(*ValueRange_StartValueOpen); ok {
return x.StartValueOpen
}
return nil
}
func (m *ValueRange) GetEndValueClosed() []byte {
if x, ok := m.GetEndValue().(*ValueRange_EndValueClosed); ok {
return x.EndValueClosed
}
return nil
}
func (m *ValueRange) GetEndValueOpen() []byte {
if x, ok := m.GetEndValue().(*ValueRange_EndValueOpen); ok {
return x.EndValueOpen
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ValueRange) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ValueRange_OneofMarshaler, _ValueRange_OneofUnmarshaler, _ValueRange_OneofSizer, []interface{}{
(*ValueRange_StartValueClosed)(nil),
(*ValueRange_StartValueOpen)(nil),
(*ValueRange_EndValueClosed)(nil),
(*ValueRange_EndValueOpen)(nil),
}
}
func _ValueRange_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ValueRange)
// start_value
switch x := m.StartValue.(type) {
case *ValueRange_StartValueClosed:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartValueClosed)
case *ValueRange_StartValueOpen:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartValueOpen)
case nil:
default:
return fmt.Errorf("ValueRange.StartValue has unexpected type %T", x)
}
// end_value
switch x := m.EndValue.(type) {
case *ValueRange_EndValueClosed:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndValueClosed)
case *ValueRange_EndValueOpen:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndValueOpen)
case nil:
default:
return fmt.Errorf("ValueRange.EndValue has unexpected type %T", x)
}
return nil
}
func _ValueRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ValueRange)
switch tag {
case 1: // start_value.start_value_closed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartValue = &ValueRange_StartValueClosed{x}
return true, err
case 2: // start_value.start_value_open
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartValue = &ValueRange_StartValueOpen{x}
return true, err
case 3: // end_value.end_value_closed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndValue = &ValueRange_EndValueClosed{x}
return true, err
case 4: // end_value.end_value_open
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndValue = &ValueRange_EndValueOpen{x}
return true, err
default:
return false, nil
}
}
func _ValueRange_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ValueRange)
// start_value
switch x := m.StartValue.(type) {
case *ValueRange_StartValueClosed:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StartValueClosed)))
n += len(x.StartValueClosed)
case *ValueRange_StartValueOpen:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StartValueOpen)))
n += len(x.StartValueOpen)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// end_value
switch x := m.EndValue.(type) {
case *ValueRange_EndValueClosed:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.EndValueClosed)))
n += len(x.EndValueClosed)
case *ValueRange_EndValueOpen:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.EndValueOpen)))
n += len(x.EndValueOpen)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Takes a row as input and produces an alternate view of the row based on
// specified rules. For example, a RowFilter might trim down a row to include
// just the cells from columns matching a given regular expression, or might
// return all the cells of a row but not their values. More complicated filters
// can be composed out of these components to express requests such as, "within
// every column of a particular family, give just the two most recent cells
// which are older than timestamp X."
//
// There are two broad categories of RowFilters (true filters and transformers),
// as well as two ways to compose simple filters into more complex ones
// (chains and interleaves). They work as follows:
//
// * True filters alter the input row by excluding some of its cells wholesale
// from the output row. An example of a true filter is the `value_regex_filter`,
// which excludes cells whose values don't match the specified pattern. All
// regex true filters use RE2 syntax (https://github.com/google/re2/wiki/Syntax)
// in raw byte mode (RE2::Latin1), and are evaluated as full matches. An
// important point to keep in mind is that `RE2(.)` is equivalent by default to
// `RE2([^\n])`, meaning that it does not match newlines. When attempting to
// match an arbitrary byte, you should therefore use the escape sequence `\C`,
// which may need to be further escaped as `\\C` in your client language.
//
// * Transformers alter the input row by changing the values of some of its
// cells in the output, without excluding them completely. Currently, the only
// supported transformer is the `strip_value_transformer`, which replaces every
// cell's value with the empty string.
//
// * Chains and interleaves are described in more detail in the
// RowFilter.Chain and RowFilter.Interleave documentation.
//
// The total serialized size of a RowFilter message must not
// exceed 4096 bytes, and RowFilters may not be nested within each other
// (in Chains or Interleaves) to a depth of more than 20.
type RowFilter struct {
// Which of the possible RowFilter types to apply. If none are set, this
// RowFilter returns all cells in the input row.
//
// Types that are valid to be assigned to Filter:
// *RowFilter_Chain_
// *RowFilter_Interleave_
// *RowFilter_Condition_
// *RowFilter_Sink
// *RowFilter_PassAllFilter
// *RowFilter_BlockAllFilter
// *RowFilter_RowKeyRegexFilter
// *RowFilter_RowSampleFilter
// *RowFilter_FamilyNameRegexFilter
// *RowFilter_ColumnQualifierRegexFilter
// *RowFilter_ColumnRangeFilter
// *RowFilter_TimestampRangeFilter
// *RowFilter_ValueRegexFilter
// *RowFilter_ValueRangeFilter
// *RowFilter_CellsPerRowOffsetFilter
// *RowFilter_CellsPerRowLimitFilter
// *RowFilter_CellsPerColumnLimitFilter
// *RowFilter_StripValueTransformer
// *RowFilter_ApplyLabelTransformer
Filter isRowFilter_Filter `protobuf_oneof:"filter"`
}
func (m *RowFilter) Reset() { *m = RowFilter{} }
func (m *RowFilter) String() string { return proto.CompactTextString(m) }
func (*RowFilter) ProtoMessage() {}
func (*RowFilter) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
type isRowFilter_Filter interface {
isRowFilter_Filter()
}
type RowFilter_Chain_ struct {
Chain *RowFilter_Chain `protobuf:"bytes,1,opt,name=chain,oneof"`
}
type RowFilter_Interleave_ struct {
Interleave *RowFilter_Interleave `protobuf:"bytes,2,opt,name=interleave,oneof"`
}
type RowFilter_Condition_ struct {
Condition *RowFilter_Condition `protobuf:"bytes,3,opt,name=condition,oneof"`
}
type RowFilter_Sink struct {
Sink bool `protobuf:"varint,16,opt,name=sink,oneof"`
}
type RowFilter_PassAllFilter struct {
PassAllFilter bool `protobuf:"varint,17,opt,name=pass_all_filter,json=passAllFilter,oneof"`
}
type RowFilter_BlockAllFilter struct {
BlockAllFilter bool `protobuf:"varint,18,opt,name=block_all_filter,json=blockAllFilter,oneof"`
}
type RowFilter_RowKeyRegexFilter struct {
RowKeyRegexFilter []byte `protobuf:"bytes,4,opt,name=row_key_regex_filter,json=rowKeyRegexFilter,proto3,oneof"`
}
type RowFilter_RowSampleFilter struct {
RowSampleFilter float64 `protobuf:"fixed64,14,opt,name=row_sample_filter,json=rowSampleFilter,oneof"`
}
type RowFilter_FamilyNameRegexFilter struct {
FamilyNameRegexFilter string `protobuf:"bytes,5,opt,name=family_name_regex_filter,json=familyNameRegexFilter,oneof"`
}
type RowFilter_ColumnQualifierRegexFilter struct {
ColumnQualifierRegexFilter []byte `protobuf:"bytes,6,opt,name=column_qualifier_regex_filter,json=columnQualifierRegexFilter,proto3,oneof"`
}
type RowFilter_ColumnRangeFilter struct {
ColumnRangeFilter *ColumnRange `protobuf:"bytes,7,opt,name=column_range_filter,json=columnRangeFilter,oneof"`
}
type RowFilter_TimestampRangeFilter struct {
TimestampRangeFilter *TimestampRange `protobuf:"bytes,8,opt,name=timestamp_range_filter,json=timestampRangeFilter,oneof"`
}
type RowFilter_ValueRegexFilter struct {
ValueRegexFilter []byte `protobuf:"bytes,9,opt,name=value_regex_filter,json=valueRegexFilter,proto3,oneof"`
}
type RowFilter_ValueRangeFilter struct {
ValueRangeFilter *ValueRange `protobuf:"bytes,15,opt,name=value_range_filter,json=valueRangeFilter,oneof"`
}
type RowFilter_CellsPerRowOffsetFilter struct {
CellsPerRowOffsetFilter int32 `protobuf:"varint,10,opt,name=cells_per_row_offset_filter,json=cellsPerRowOffsetFilter,oneof"`
}
type RowFilter_CellsPerRowLimitFilter struct {
CellsPerRowLimitFilter int32 `protobuf:"varint,11,opt,name=cells_per_row_limit_filter,json=cellsPerRowLimitFilter,oneof"`
}
type RowFilter_CellsPerColumnLimitFilter struct {
CellsPerColumnLimitFilter int32 `protobuf:"varint,12,opt,name=cells_per_column_limit_filter,json=cellsPerColumnLimitFilter,oneof"`
}
type RowFilter_StripValueTransformer struct {
StripValueTransformer bool `protobuf:"varint,13,opt,name=strip_value_transformer,json=stripValueTransformer,oneof"`
}
type RowFilter_ApplyLabelTransformer struct {
ApplyLabelTransformer string `protobuf:"bytes,19,opt,name=apply_label_transformer,json=applyLabelTransformer,oneof"`
}
func (*RowFilter_Chain_) isRowFilter_Filter() {}
func (*RowFilter_Interleave_) isRowFilter_Filter() {}
func (*RowFilter_Condition_) isRowFilter_Filter() {}
func (*RowFilter_Sink) isRowFilter_Filter() {}
func (*RowFilter_PassAllFilter) isRowFilter_Filter() {}
func (*RowFilter_BlockAllFilter) isRowFilter_Filter() {}
func (*RowFilter_RowKeyRegexFilter) isRowFilter_Filter() {}
func (*RowFilter_RowSampleFilter) isRowFilter_Filter() {}
func (*RowFilter_FamilyNameRegexFilter) isRowFilter_Filter() {}
func (*RowFilter_ColumnQualifierRegexFilter) isRowFilter_Filter() {}
func (*RowFilter_ColumnRangeFilter) isRowFilter_Filter() {}
func (*RowFilter_TimestampRangeFilter) isRowFilter_Filter() {}
func (*RowFilter_ValueRegexFilter) isRowFilter_Filter() {}
func (*RowFilter_ValueRangeFilter) isRowFilter_Filter() {}
func (*RowFilter_CellsPerRowOffsetFilter) isRowFilter_Filter() {}
func (*RowFilter_CellsPerRowLimitFilter) isRowFilter_Filter() {}
func (*RowFilter_CellsPerColumnLimitFilter) isRowFilter_Filter() {}
func (*RowFilter_StripValueTransformer) isRowFilter_Filter() {}
func (*RowFilter_ApplyLabelTransformer) isRowFilter_Filter() {}
func (m *RowFilter) GetFilter() isRowFilter_Filter {
if m != nil {
return m.Filter
}
return nil
}
func (m *RowFilter) GetChain() *RowFilter_Chain {
if x, ok := m.GetFilter().(*RowFilter_Chain_); ok {
return x.Chain
}
return nil
}
func (m *RowFilter) GetInterleave() *RowFilter_Interleave {
if x, ok := m.GetFilter().(*RowFilter_Interleave_); ok {
return x.Interleave
}
return nil
}
func (m *RowFilter) GetCondition() *RowFilter_Condition {
if x, ok := m.GetFilter().(*RowFilter_Condition_); ok {
return x.Condition
}
return nil
}
func (m *RowFilter) GetSink() bool {
if x, ok := m.GetFilter().(*RowFilter_Sink); ok {
return x.Sink
}
return false
}
func (m *RowFilter) GetPassAllFilter() bool {
if x, ok := m.GetFilter().(*RowFilter_PassAllFilter); ok {
return x.PassAllFilter
}
return false
}
func (m *RowFilter) GetBlockAllFilter() bool {