forked from distribution/distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bigtable_data.pb.go
1462 lines (1344 loc) · 50.3 KB
/
bigtable_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.
// source: google.golang.org/cloud/bigtable/internal/data_proto/bigtable_data.proto
// DO NOT EDIT!
/*
Package google_bigtable_v1 is a generated protocol buffer package.
It is generated from these files:
google.golang.org/cloud/bigtable/internal/data_proto/bigtable_data.proto
It has these top-level messages:
Row
Family
Column
Cell
RowRange
ColumnRange
TimestampRange
ValueRange
RowFilter
Mutation
ReadModifyWriteRule
*/
package google_bigtable_v1
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 (m *Row) GetFamilies() []*Family {
if m != nil {
return m.Families
}
return nil
}
// Specifies (some of) the contents of a single row/column family 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 (m *Family) GetColumns() []*Column {
if m != nil {
return m.Columns
}
return nil
}
// Specifies (some of) the contents of a single row/column 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 (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:"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.v1.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() {}
// Specifies a contiguous range of rows.
type RowRange struct {
// Inclusive lower bound. If left empty, interpreted as the empty string.
StartKey []byte `protobuf:"bytes,2,opt,name=start_key,proto3" json:"start_key,omitempty"`
// Exclusive upper bound. If left empty, interpreted as infinity.
EndKey []byte `protobuf:"bytes,3,opt,name=end_key,proto3" json:"end_key,omitempty"`
}
func (m *RowRange) Reset() { *m = RowRange{} }
func (m *RowRange) String() string { return proto.CompactTextString(m) }
func (*RowRange) ProtoMessage() {}
// 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:"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_StartQualifierInclusive
// *ColumnRange_StartQualifierExclusive
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_EndQualifierInclusive
// *ColumnRange_EndQualifierExclusive
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() {}
type isColumnRange_StartQualifier interface {
isColumnRange_StartQualifier()
}
type isColumnRange_EndQualifier interface {
isColumnRange_EndQualifier()
}
type ColumnRange_StartQualifierInclusive struct {
StartQualifierInclusive []byte `protobuf:"bytes,2,opt,name=start_qualifier_inclusive,proto3,oneof"`
}
type ColumnRange_StartQualifierExclusive struct {
StartQualifierExclusive []byte `protobuf:"bytes,3,opt,name=start_qualifier_exclusive,proto3,oneof"`
}
type ColumnRange_EndQualifierInclusive struct {
EndQualifierInclusive []byte `protobuf:"bytes,4,opt,name=end_qualifier_inclusive,proto3,oneof"`
}
type ColumnRange_EndQualifierExclusive struct {
EndQualifierExclusive []byte `protobuf:"bytes,5,opt,name=end_qualifier_exclusive,proto3,oneof"`
}
func (*ColumnRange_StartQualifierInclusive) isColumnRange_StartQualifier() {}
func (*ColumnRange_StartQualifierExclusive) isColumnRange_StartQualifier() {}
func (*ColumnRange_EndQualifierInclusive) isColumnRange_EndQualifier() {}
func (*ColumnRange_EndQualifierExclusive) 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) GetStartQualifierInclusive() []byte {
if x, ok := m.GetStartQualifier().(*ColumnRange_StartQualifierInclusive); ok {
return x.StartQualifierInclusive
}
return nil
}
func (m *ColumnRange) GetStartQualifierExclusive() []byte {
if x, ok := m.GetStartQualifier().(*ColumnRange_StartQualifierExclusive); ok {
return x.StartQualifierExclusive
}
return nil
}
func (m *ColumnRange) GetEndQualifierInclusive() []byte {
if x, ok := m.GetEndQualifier().(*ColumnRange_EndQualifierInclusive); ok {
return x.EndQualifierInclusive
}
return nil
}
func (m *ColumnRange) GetEndQualifierExclusive() []byte {
if x, ok := m.GetEndQualifier().(*ColumnRange_EndQualifierExclusive); ok {
return x.EndQualifierExclusive
}
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), []interface{}) {
return _ColumnRange_OneofMarshaler, _ColumnRange_OneofUnmarshaler, []interface{}{
(*ColumnRange_StartQualifierInclusive)(nil),
(*ColumnRange_StartQualifierExclusive)(nil),
(*ColumnRange_EndQualifierInclusive)(nil),
(*ColumnRange_EndQualifierExclusive)(nil),
}
}
func _ColumnRange_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ColumnRange)
// start_qualifier
switch x := m.StartQualifier.(type) {
case *ColumnRange_StartQualifierInclusive:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartQualifierInclusive)
case *ColumnRange_StartQualifierExclusive:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartQualifierExclusive)
case nil:
default:
return fmt.Errorf("ColumnRange.StartQualifier has unexpected type %T", x)
}
// end_qualifier
switch x := m.EndQualifier.(type) {
case *ColumnRange_EndQualifierInclusive:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndQualifierInclusive)
case *ColumnRange_EndQualifierExclusive:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndQualifierExclusive)
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_inclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartQualifier = &ColumnRange_StartQualifierInclusive{x}
return true, err
case 3: // start_qualifier.start_qualifier_exclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartQualifier = &ColumnRange_StartQualifierExclusive{x}
return true, err
case 4: // end_qualifier.end_qualifier_inclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndQualifier = &ColumnRange_EndQualifierInclusive{x}
return true, err
case 5: // end_qualifier.end_qualifier_exclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndQualifier = &ColumnRange_EndQualifierExclusive{x}
return true, err
default:
return false, nil
}
}
// 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:"start_timestamp_micros,omitempty"`
// Exclusive upper bound. If left empty, interpreted as infinity.
EndTimestampMicros int64 `protobuf:"varint,2,opt,name=end_timestamp_micros" json:"end_timestamp_micros,omitempty"`
}
func (m *TimestampRange) Reset() { *m = TimestampRange{} }
func (m *TimestampRange) String() string { return proto.CompactTextString(m) }
func (*TimestampRange) ProtoMessage() {}
// 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_StartValueInclusive
// *ValueRange_StartValueExclusive
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_EndValueInclusive
// *ValueRange_EndValueExclusive
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() {}
type isValueRange_StartValue interface {
isValueRange_StartValue()
}
type isValueRange_EndValue interface {
isValueRange_EndValue()
}
type ValueRange_StartValueInclusive struct {
StartValueInclusive []byte `protobuf:"bytes,1,opt,name=start_value_inclusive,proto3,oneof"`
}
type ValueRange_StartValueExclusive struct {
StartValueExclusive []byte `protobuf:"bytes,2,opt,name=start_value_exclusive,proto3,oneof"`
}
type ValueRange_EndValueInclusive struct {
EndValueInclusive []byte `protobuf:"bytes,3,opt,name=end_value_inclusive,proto3,oneof"`
}
type ValueRange_EndValueExclusive struct {
EndValueExclusive []byte `protobuf:"bytes,4,opt,name=end_value_exclusive,proto3,oneof"`
}
func (*ValueRange_StartValueInclusive) isValueRange_StartValue() {}
func (*ValueRange_StartValueExclusive) isValueRange_StartValue() {}
func (*ValueRange_EndValueInclusive) isValueRange_EndValue() {}
func (*ValueRange_EndValueExclusive) 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) GetStartValueInclusive() []byte {
if x, ok := m.GetStartValue().(*ValueRange_StartValueInclusive); ok {
return x.StartValueInclusive
}
return nil
}
func (m *ValueRange) GetStartValueExclusive() []byte {
if x, ok := m.GetStartValue().(*ValueRange_StartValueExclusive); ok {
return x.StartValueExclusive
}
return nil
}
func (m *ValueRange) GetEndValueInclusive() []byte {
if x, ok := m.GetEndValue().(*ValueRange_EndValueInclusive); ok {
return x.EndValueInclusive
}
return nil
}
func (m *ValueRange) GetEndValueExclusive() []byte {
if x, ok := m.GetEndValue().(*ValueRange_EndValueExclusive); ok {
return x.EndValueExclusive
}
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), []interface{}) {
return _ValueRange_OneofMarshaler, _ValueRange_OneofUnmarshaler, []interface{}{
(*ValueRange_StartValueInclusive)(nil),
(*ValueRange_StartValueExclusive)(nil),
(*ValueRange_EndValueInclusive)(nil),
(*ValueRange_EndValueExclusive)(nil),
}
}
func _ValueRange_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ValueRange)
// start_value
switch x := m.StartValue.(type) {
case *ValueRange_StartValueInclusive:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartValueInclusive)
case *ValueRange_StartValueExclusive:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeRawBytes(x.StartValueExclusive)
case nil:
default:
return fmt.Errorf("ValueRange.StartValue has unexpected type %T", x)
}
// end_value
switch x := m.EndValue.(type) {
case *ValueRange_EndValueInclusive:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndValueInclusive)
case *ValueRange_EndValueExclusive:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.EndValueExclusive)
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_inclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartValue = &ValueRange_StartValueInclusive{x}
return true, err
case 2: // start_value.start_value_exclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.StartValue = &ValueRange_StartValueExclusive{x}
return true, err
case 3: // end_value.end_value_inclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndValue = &ValueRange_EndValueInclusive{x}
return true, err
case 4: // end_value.end_value_exclusive
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.EndValue = &ValueRange_EndValueExclusive{x}
return true, err
default:
return false, nil
}
}
// 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() {}
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,oneof"`
}
type RowFilter_BlockAllFilter struct {
BlockAllFilter bool `protobuf:"varint,18,opt,name=block_all_filter,oneof"`
}
type RowFilter_RowKeyRegexFilter struct {
RowKeyRegexFilter []byte `protobuf:"bytes,4,opt,name=row_key_regex_filter,proto3,oneof"`
}
type RowFilter_RowSampleFilter struct {
RowSampleFilter float64 `protobuf:"fixed64,14,opt,name=row_sample_filter,oneof"`
}
type RowFilter_FamilyNameRegexFilter struct {
FamilyNameRegexFilter string `protobuf:"bytes,5,opt,name=family_name_regex_filter,oneof"`
}
type RowFilter_ColumnQualifierRegexFilter struct {
ColumnQualifierRegexFilter []byte `protobuf:"bytes,6,opt,name=column_qualifier_regex_filter,proto3,oneof"`
}
type RowFilter_ColumnRangeFilter struct {
ColumnRangeFilter *ColumnRange `protobuf:"bytes,7,opt,name=column_range_filter,oneof"`
}
type RowFilter_TimestampRangeFilter struct {
TimestampRangeFilter *TimestampRange `protobuf:"bytes,8,opt,name=timestamp_range_filter,oneof"`
}
type RowFilter_ValueRegexFilter struct {
ValueRegexFilter []byte `protobuf:"bytes,9,opt,name=value_regex_filter,proto3,oneof"`
}
type RowFilter_ValueRangeFilter struct {
ValueRangeFilter *ValueRange `protobuf:"bytes,15,opt,name=value_range_filter,oneof"`
}
type RowFilter_CellsPerRowOffsetFilter struct {
CellsPerRowOffsetFilter int32 `protobuf:"varint,10,opt,name=cells_per_row_offset_filter,oneof"`
}
type RowFilter_CellsPerRowLimitFilter struct {
CellsPerRowLimitFilter int32 `protobuf:"varint,11,opt,name=cells_per_row_limit_filter,oneof"`
}
type RowFilter_CellsPerColumnLimitFilter struct {
CellsPerColumnLimitFilter int32 `protobuf:"varint,12,opt,name=cells_per_column_limit_filter,oneof"`
}
type RowFilter_StripValueTransformer struct {
StripValueTransformer bool `protobuf:"varint,13,opt,name=strip_value_transformer,oneof"`
}
type RowFilter_ApplyLabelTransformer struct {
ApplyLabelTransformer string `protobuf:"bytes,19,opt,name=apply_label_transformer,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 {
if x, ok := m.GetFilter().(*RowFilter_BlockAllFilter); ok {
return x.BlockAllFilter
}
return false
}
func (m *RowFilter) GetRowKeyRegexFilter() []byte {
if x, ok := m.GetFilter().(*RowFilter_RowKeyRegexFilter); ok {
return x.RowKeyRegexFilter
}
return nil
}
func (m *RowFilter) GetRowSampleFilter() float64 {
if x, ok := m.GetFilter().(*RowFilter_RowSampleFilter); ok {
return x.RowSampleFilter
}
return 0
}
func (m *RowFilter) GetFamilyNameRegexFilter() string {
if x, ok := m.GetFilter().(*RowFilter_FamilyNameRegexFilter); ok {
return x.FamilyNameRegexFilter
}
return ""
}
func (m *RowFilter) GetColumnQualifierRegexFilter() []byte {
if x, ok := m.GetFilter().(*RowFilter_ColumnQualifierRegexFilter); ok {
return x.ColumnQualifierRegexFilter
}
return nil
}
func (m *RowFilter) GetColumnRangeFilter() *ColumnRange {
if x, ok := m.GetFilter().(*RowFilter_ColumnRangeFilter); ok {
return x.ColumnRangeFilter
}
return nil
}
func (m *RowFilter) GetTimestampRangeFilter() *TimestampRange {
if x, ok := m.GetFilter().(*RowFilter_TimestampRangeFilter); ok {
return x.TimestampRangeFilter
}
return nil
}
func (m *RowFilter) GetValueRegexFilter() []byte {
if x, ok := m.GetFilter().(*RowFilter_ValueRegexFilter); ok {
return x.ValueRegexFilter
}
return nil
}
func (m *RowFilter) GetValueRangeFilter() *ValueRange {
if x, ok := m.GetFilter().(*RowFilter_ValueRangeFilter); ok {
return x.ValueRangeFilter
}
return nil
}
func (m *RowFilter) GetCellsPerRowOffsetFilter() int32 {
if x, ok := m.GetFilter().(*RowFilter_CellsPerRowOffsetFilter); ok {
return x.CellsPerRowOffsetFilter
}
return 0
}
func (m *RowFilter) GetCellsPerRowLimitFilter() int32 {
if x, ok := m.GetFilter().(*RowFilter_CellsPerRowLimitFilter); ok {
return x.CellsPerRowLimitFilter
}
return 0
}
func (m *RowFilter) GetCellsPerColumnLimitFilter() int32 {
if x, ok := m.GetFilter().(*RowFilter_CellsPerColumnLimitFilter); ok {
return x.CellsPerColumnLimitFilter
}
return 0
}
func (m *RowFilter) GetStripValueTransformer() bool {
if x, ok := m.GetFilter().(*RowFilter_StripValueTransformer); ok {
return x.StripValueTransformer
}
return false
}
func (m *RowFilter) GetApplyLabelTransformer() string {
if x, ok := m.GetFilter().(*RowFilter_ApplyLabelTransformer); ok {
return x.ApplyLabelTransformer
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RowFilter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{}) {
return _RowFilter_OneofMarshaler, _RowFilter_OneofUnmarshaler, []interface{}{
(*RowFilter_Chain_)(nil),
(*RowFilter_Interleave_)(nil),
(*RowFilter_Condition_)(nil),
(*RowFilter_Sink)(nil),
(*RowFilter_PassAllFilter)(nil),
(*RowFilter_BlockAllFilter)(nil),
(*RowFilter_RowKeyRegexFilter)(nil),
(*RowFilter_RowSampleFilter)(nil),
(*RowFilter_FamilyNameRegexFilter)(nil),
(*RowFilter_ColumnQualifierRegexFilter)(nil),
(*RowFilter_ColumnRangeFilter)(nil),
(*RowFilter_TimestampRangeFilter)(nil),
(*RowFilter_ValueRegexFilter)(nil),
(*RowFilter_ValueRangeFilter)(nil),
(*RowFilter_CellsPerRowOffsetFilter)(nil),
(*RowFilter_CellsPerRowLimitFilter)(nil),
(*RowFilter_CellsPerColumnLimitFilter)(nil),
(*RowFilter_StripValueTransformer)(nil),
(*RowFilter_ApplyLabelTransformer)(nil),
}
}
func _RowFilter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RowFilter)
// filter
switch x := m.Filter.(type) {
case *RowFilter_Chain_:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Chain); err != nil {
return err
}
case *RowFilter_Interleave_:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Interleave); err != nil {
return err
}
case *RowFilter_Condition_:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Condition); err != nil {
return err
}
case *RowFilter_Sink:
t := uint64(0)
if x.Sink {
t = 1
}
b.EncodeVarint(16<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *RowFilter_PassAllFilter:
t := uint64(0)
if x.PassAllFilter {
t = 1
}
b.EncodeVarint(17<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *RowFilter_BlockAllFilter:
t := uint64(0)
if x.BlockAllFilter {
t = 1
}
b.EncodeVarint(18<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *RowFilter_RowKeyRegexFilter:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.RowKeyRegexFilter)
case *RowFilter_RowSampleFilter:
b.EncodeVarint(14<<3 | proto.WireFixed64)
b.EncodeFixed64(math.Float64bits(x.RowSampleFilter))
case *RowFilter_FamilyNameRegexFilter:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeStringBytes(x.FamilyNameRegexFilter)
case *RowFilter_ColumnQualifierRegexFilter:
b.EncodeVarint(6<<3 | proto.WireBytes)
b.EncodeRawBytes(x.ColumnQualifierRegexFilter)
case *RowFilter_ColumnRangeFilter:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ColumnRangeFilter); err != nil {
return err
}
case *RowFilter_TimestampRangeFilter:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TimestampRangeFilter); err != nil {
return err
}
case *RowFilter_ValueRegexFilter:
b.EncodeVarint(9<<3 | proto.WireBytes)
b.EncodeRawBytes(x.ValueRegexFilter)
case *RowFilter_ValueRangeFilter:
b.EncodeVarint(15<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ValueRangeFilter); err != nil {
return err
}
case *RowFilter_CellsPerRowOffsetFilter:
b.EncodeVarint(10<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.CellsPerRowOffsetFilter))
case *RowFilter_CellsPerRowLimitFilter:
b.EncodeVarint(11<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.CellsPerRowLimitFilter))
case *RowFilter_CellsPerColumnLimitFilter:
b.EncodeVarint(12<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.CellsPerColumnLimitFilter))
case *RowFilter_StripValueTransformer:
t := uint64(0)
if x.StripValueTransformer {
t = 1
}
b.EncodeVarint(13<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *RowFilter_ApplyLabelTransformer:
b.EncodeVarint(19<<3 | proto.WireBytes)
b.EncodeStringBytes(x.ApplyLabelTransformer)
case nil:
default:
return fmt.Errorf("RowFilter.Filter has unexpected type %T", x)
}
return nil
}
func _RowFilter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RowFilter)
switch tag {
case 1: // filter.chain
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(RowFilter_Chain)
err := b.DecodeMessage(msg)
m.Filter = &RowFilter_Chain_{msg}
return true, err
case 2: // filter.interleave
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(RowFilter_Interleave)
err := b.DecodeMessage(msg)
m.Filter = &RowFilter_Interleave_{msg}
return true, err
case 3: // filter.condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(RowFilter_Condition)
err := b.DecodeMessage(msg)
m.Filter = &RowFilter_Condition_{msg}
return true, err
case 16: // filter.sink
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Filter = &RowFilter_Sink{x != 0}
return true, err
case 17: // filter.pass_all_filter
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Filter = &RowFilter_PassAllFilter{x != 0}
return true, err
case 18: // filter.block_all_filter
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Filter = &RowFilter_BlockAllFilter{x != 0}
return true, err
case 4: // filter.row_key_regex_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Filter = &RowFilter_RowKeyRegexFilter{x}
return true, err
case 14: // filter.row_sample_filter
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.Filter = &RowFilter_RowSampleFilter{math.Float64frombits(x)}
return true, err
case 5: // filter.family_name_regex_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Filter = &RowFilter_FamilyNameRegexFilter{x}
return true, err
case 6: // filter.column_qualifier_regex_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Filter = &RowFilter_ColumnQualifierRegexFilter{x}
return true, err
case 7: // filter.column_range_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ColumnRange)
err := b.DecodeMessage(msg)
m.Filter = &RowFilter_ColumnRangeFilter{msg}
return true, err
case 8: // filter.timestamp_range_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TimestampRange)
err := b.DecodeMessage(msg)
m.Filter = &RowFilter_TimestampRangeFilter{msg}
return true, err
case 9: // filter.value_regex_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Filter = &RowFilter_ValueRegexFilter{x}
return true, err
case 15: // filter.value_range_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ValueRange)
err := b.DecodeMessage(msg)
m.Filter = &RowFilter_ValueRangeFilter{msg}
return true, err
case 10: // filter.cells_per_row_offset_filter
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Filter = &RowFilter_CellsPerRowOffsetFilter{int32(x)}