/
bigtable.pb.go
1544 lines (1385 loc) · 61 KB
/
bigtable.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/bigtable.proto
package bigtable
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Request message for Bigtable.ReadRows.
type ReadRowsRequest struct {
// The unique name of the table from which to read.
// Values are of the form
// `projects/<project>/instances/<instance>/tables/<table>`.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// This value specifies routing for replication. If not specified, the
// "default" application profile will be used.
AppProfileId string `protobuf:"bytes,5,opt,name=app_profile_id,json=appProfileId,proto3" json:"app_profile_id,omitempty"`
// The row keys and/or ranges to read. If not specified, reads from all rows.
Rows *RowSet `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"`
// The filter to apply to the contents of the specified row(s). If unset,
// reads the entirety of each row.
Filter *RowFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// The read will terminate after committing to N rows' worth of results. The
// default (zero) is to return all results.
RowsLimit int64 `protobuf:"varint,4,opt,name=rows_limit,json=rowsLimit,proto3" json:"rows_limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadRowsRequest) Reset() { *m = ReadRowsRequest{} }
func (m *ReadRowsRequest) String() string { return proto.CompactTextString(m) }
func (*ReadRowsRequest) ProtoMessage() {}
func (*ReadRowsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{0}
}
func (m *ReadRowsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReadRowsRequest.Unmarshal(m, b)
}
func (m *ReadRowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReadRowsRequest.Marshal(b, m, deterministic)
}
func (m *ReadRowsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadRowsRequest.Merge(m, src)
}
func (m *ReadRowsRequest) XXX_Size() int {
return xxx_messageInfo_ReadRowsRequest.Size(m)
}
func (m *ReadRowsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReadRowsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReadRowsRequest proto.InternalMessageInfo
func (m *ReadRowsRequest) GetTableName() string {
if m != nil {
return m.TableName
}
return ""
}
func (m *ReadRowsRequest) GetAppProfileId() string {
if m != nil {
return m.AppProfileId
}
return ""
}
func (m *ReadRowsRequest) GetRows() *RowSet {
if m != nil {
return m.Rows
}
return nil
}
func (m *ReadRowsRequest) GetFilter() *RowFilter {
if m != nil {
return m.Filter
}
return nil
}
func (m *ReadRowsRequest) GetRowsLimit() int64 {
if m != nil {
return m.RowsLimit
}
return 0
}
// Response message for Bigtable.ReadRows.
type ReadRowsResponse struct {
Chunks []*ReadRowsResponse_CellChunk `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"`
// Optionally the server might return the row key of the last row it
// has scanned. The client can use this to construct a more
// efficient retry request if needed: any row keys or portions of
// ranges less than this row key can be dropped from the request.
// This is primarily useful for cases where the server has read a
// lot of data that was filtered out since the last committed row
// key, allowing the client to skip that work on a retry.
LastScannedRowKey []byte `protobuf:"bytes,2,opt,name=last_scanned_row_key,json=lastScannedRowKey,proto3" json:"last_scanned_row_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadRowsResponse) Reset() { *m = ReadRowsResponse{} }
func (m *ReadRowsResponse) String() string { return proto.CompactTextString(m) }
func (*ReadRowsResponse) ProtoMessage() {}
func (*ReadRowsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{1}
}
func (m *ReadRowsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReadRowsResponse.Unmarshal(m, b)
}
func (m *ReadRowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReadRowsResponse.Marshal(b, m, deterministic)
}
func (m *ReadRowsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadRowsResponse.Merge(m, src)
}
func (m *ReadRowsResponse) XXX_Size() int {
return xxx_messageInfo_ReadRowsResponse.Size(m)
}
func (m *ReadRowsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReadRowsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReadRowsResponse proto.InternalMessageInfo
func (m *ReadRowsResponse) GetChunks() []*ReadRowsResponse_CellChunk {
if m != nil {
return m.Chunks
}
return nil
}
func (m *ReadRowsResponse) GetLastScannedRowKey() []byte {
if m != nil {
return m.LastScannedRowKey
}
return nil
}
// Specifies a piece of a row's contents returned as part of the read
// response stream.
type ReadRowsResponse_CellChunk struct {
// The row key for this chunk of data. If the row key is empty,
// this CellChunk is a continuation of the same row as the previous
// CellChunk in the response stream, even if that CellChunk was in a
// previous ReadRowsResponse message.
RowKey []byte `protobuf:"bytes,1,opt,name=row_key,json=rowKey,proto3" json:"row_key,omitempty"`
// The column family name for this chunk of data. If this message
// is not present this CellChunk is a continuation of the same column
// family as the previous CellChunk. The empty string can occur as a
// column family name in a response so clients must check
// explicitly for the presence of this message, not just for
// `family_name.value` being non-empty.
FamilyName *wrappers.StringValue `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"`
// The column qualifier for this chunk of data. If this message
// is not present, this CellChunk is a continuation of the same column
// as the previous CellChunk. Column qualifiers may be empty so
// clients must check for the presence of this message, not just
// for `qualifier.value` being non-empty.
Qualifier *wrappers.BytesValue `protobuf:"bytes,3,opt,name=qualifier,proto3" json:"qualifier,omitempty"`
// 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. Timestamps are only set in the first CellChunk per cell
// (for cells split into multiple chunks).
TimestampMicros int64 `protobuf:"varint,4,opt,name=timestamp_micros,json=timestampMicros,proto3" json:"timestamp_micros,omitempty"`
// Labels applied to the cell by a
// [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set
// on the first CellChunk per cell.
Labels []string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"`
// The value stored in the cell. Cell values can be split across
// multiple CellChunks. In that case only the value field will be
// set in CellChunks after the first: the timestamp and labels
// will only be present in the first CellChunk, even if the first
// CellChunk came in a previous ReadRowsResponse.
Value []byte `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
// If this CellChunk is part of a chunked cell value and this is
// not the final chunk of that cell, value_size will be set to the
// total length of the cell value. The client can use this size
// to pre-allocate memory to hold the full cell value.
ValueSize int32 `protobuf:"varint,7,opt,name=value_size,json=valueSize,proto3" json:"value_size,omitempty"`
// Types that are valid to be assigned to RowStatus:
// *ReadRowsResponse_CellChunk_ResetRow
// *ReadRowsResponse_CellChunk_CommitRow
RowStatus isReadRowsResponse_CellChunk_RowStatus `protobuf_oneof:"row_status"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadRowsResponse_CellChunk) Reset() { *m = ReadRowsResponse_CellChunk{} }
func (m *ReadRowsResponse_CellChunk) String() string { return proto.CompactTextString(m) }
func (*ReadRowsResponse_CellChunk) ProtoMessage() {}
func (*ReadRowsResponse_CellChunk) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{1, 0}
}
func (m *ReadRowsResponse_CellChunk) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReadRowsResponse_CellChunk.Unmarshal(m, b)
}
func (m *ReadRowsResponse_CellChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReadRowsResponse_CellChunk.Marshal(b, m, deterministic)
}
func (m *ReadRowsResponse_CellChunk) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadRowsResponse_CellChunk.Merge(m, src)
}
func (m *ReadRowsResponse_CellChunk) XXX_Size() int {
return xxx_messageInfo_ReadRowsResponse_CellChunk.Size(m)
}
func (m *ReadRowsResponse_CellChunk) XXX_DiscardUnknown() {
xxx_messageInfo_ReadRowsResponse_CellChunk.DiscardUnknown(m)
}
var xxx_messageInfo_ReadRowsResponse_CellChunk proto.InternalMessageInfo
func (m *ReadRowsResponse_CellChunk) GetRowKey() []byte {
if m != nil {
return m.RowKey
}
return nil
}
func (m *ReadRowsResponse_CellChunk) GetFamilyName() *wrappers.StringValue {
if m != nil {
return m.FamilyName
}
return nil
}
func (m *ReadRowsResponse_CellChunk) GetQualifier() *wrappers.BytesValue {
if m != nil {
return m.Qualifier
}
return nil
}
func (m *ReadRowsResponse_CellChunk) GetTimestampMicros() int64 {
if m != nil {
return m.TimestampMicros
}
return 0
}
func (m *ReadRowsResponse_CellChunk) GetLabels() []string {
if m != nil {
return m.Labels
}
return nil
}
func (m *ReadRowsResponse_CellChunk) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *ReadRowsResponse_CellChunk) GetValueSize() int32 {
if m != nil {
return m.ValueSize
}
return 0
}
type isReadRowsResponse_CellChunk_RowStatus interface {
isReadRowsResponse_CellChunk_RowStatus()
}
type ReadRowsResponse_CellChunk_ResetRow struct {
ResetRow bool `protobuf:"varint,8,opt,name=reset_row,json=resetRow,proto3,oneof"`
}
type ReadRowsResponse_CellChunk_CommitRow struct {
CommitRow bool `protobuf:"varint,9,opt,name=commit_row,json=commitRow,proto3,oneof"`
}
func (*ReadRowsResponse_CellChunk_ResetRow) isReadRowsResponse_CellChunk_RowStatus() {}
func (*ReadRowsResponse_CellChunk_CommitRow) isReadRowsResponse_CellChunk_RowStatus() {}
func (m *ReadRowsResponse_CellChunk) GetRowStatus() isReadRowsResponse_CellChunk_RowStatus {
if m != nil {
return m.RowStatus
}
return nil
}
func (m *ReadRowsResponse_CellChunk) GetResetRow() bool {
if x, ok := m.GetRowStatus().(*ReadRowsResponse_CellChunk_ResetRow); ok {
return x.ResetRow
}
return false
}
func (m *ReadRowsResponse_CellChunk) GetCommitRow() bool {
if x, ok := m.GetRowStatus().(*ReadRowsResponse_CellChunk_CommitRow); ok {
return x.CommitRow
}
return false
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ReadRowsResponse_CellChunk) 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 _ReadRowsResponse_CellChunk_OneofMarshaler, _ReadRowsResponse_CellChunk_OneofUnmarshaler, _ReadRowsResponse_CellChunk_OneofSizer, []interface{}{
(*ReadRowsResponse_CellChunk_ResetRow)(nil),
(*ReadRowsResponse_CellChunk_CommitRow)(nil),
}
}
func _ReadRowsResponse_CellChunk_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ReadRowsResponse_CellChunk)
// row_status
switch x := m.RowStatus.(type) {
case *ReadRowsResponse_CellChunk_ResetRow:
t := uint64(0)
if x.ResetRow {
t = 1
}
b.EncodeVarint(8<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *ReadRowsResponse_CellChunk_CommitRow:
t := uint64(0)
if x.CommitRow {
t = 1
}
b.EncodeVarint(9<<3 | proto.WireVarint)
b.EncodeVarint(t)
case nil:
default:
return fmt.Errorf("ReadRowsResponse_CellChunk.RowStatus has unexpected type %T", x)
}
return nil
}
func _ReadRowsResponse_CellChunk_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ReadRowsResponse_CellChunk)
switch tag {
case 8: // row_status.reset_row
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.RowStatus = &ReadRowsResponse_CellChunk_ResetRow{x != 0}
return true, err
case 9: // row_status.commit_row
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.RowStatus = &ReadRowsResponse_CellChunk_CommitRow{x != 0}
return true, err
default:
return false, nil
}
}
func _ReadRowsResponse_CellChunk_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ReadRowsResponse_CellChunk)
// row_status
switch x := m.RowStatus.(type) {
case *ReadRowsResponse_CellChunk_ResetRow:
n += 1 // tag and wire
n += 1
case *ReadRowsResponse_CellChunk_CommitRow:
n += 1 // tag and wire
n += 1
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Request message for Bigtable.SampleRowKeys.
type SampleRowKeysRequest struct {
// The unique name of the table from which to sample row keys.
// Values are of the form
// `projects/<project>/instances/<instance>/tables/<table>`.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// This value specifies routing for replication. If not specified, the
// "default" application profile will be used.
AppProfileId string `protobuf:"bytes,2,opt,name=app_profile_id,json=appProfileId,proto3" json:"app_profile_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SampleRowKeysRequest) Reset() { *m = SampleRowKeysRequest{} }
func (m *SampleRowKeysRequest) String() string { return proto.CompactTextString(m) }
func (*SampleRowKeysRequest) ProtoMessage() {}
func (*SampleRowKeysRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{2}
}
func (m *SampleRowKeysRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SampleRowKeysRequest.Unmarshal(m, b)
}
func (m *SampleRowKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SampleRowKeysRequest.Marshal(b, m, deterministic)
}
func (m *SampleRowKeysRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SampleRowKeysRequest.Merge(m, src)
}
func (m *SampleRowKeysRequest) XXX_Size() int {
return xxx_messageInfo_SampleRowKeysRequest.Size(m)
}
func (m *SampleRowKeysRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SampleRowKeysRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SampleRowKeysRequest proto.InternalMessageInfo
func (m *SampleRowKeysRequest) GetTableName() string {
if m != nil {
return m.TableName
}
return ""
}
func (m *SampleRowKeysRequest) GetAppProfileId() string {
if m != nil {
return m.AppProfileId
}
return ""
}
// Response message for Bigtable.SampleRowKeys.
type SampleRowKeysResponse struct {
// Sorted streamed sequence of sample row keys in the table. The table might
// have contents before the first row key in the list and after the last one,
// but a key containing the empty string indicates "end of table" and will be
// the last response given, if present.
// Note that row keys in this list may not have ever been written to or read
// from, and users should therefore not make any assumptions about the row key
// structure that are specific to their use case.
RowKey []byte `protobuf:"bytes,1,opt,name=row_key,json=rowKey,proto3" json:"row_key,omitempty"`
// Approximate total storage space used by all rows in the table which precede
// `row_key`. Buffering the contents of all rows between two subsequent
// samples would require space roughly equal to the difference in their
// `offset_bytes` fields.
OffsetBytes int64 `protobuf:"varint,2,opt,name=offset_bytes,json=offsetBytes,proto3" json:"offset_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SampleRowKeysResponse) Reset() { *m = SampleRowKeysResponse{} }
func (m *SampleRowKeysResponse) String() string { return proto.CompactTextString(m) }
func (*SampleRowKeysResponse) ProtoMessage() {}
func (*SampleRowKeysResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{3}
}
func (m *SampleRowKeysResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SampleRowKeysResponse.Unmarshal(m, b)
}
func (m *SampleRowKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SampleRowKeysResponse.Marshal(b, m, deterministic)
}
func (m *SampleRowKeysResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SampleRowKeysResponse.Merge(m, src)
}
func (m *SampleRowKeysResponse) XXX_Size() int {
return xxx_messageInfo_SampleRowKeysResponse.Size(m)
}
func (m *SampleRowKeysResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SampleRowKeysResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SampleRowKeysResponse proto.InternalMessageInfo
func (m *SampleRowKeysResponse) GetRowKey() []byte {
if m != nil {
return m.RowKey
}
return nil
}
func (m *SampleRowKeysResponse) GetOffsetBytes() int64 {
if m != nil {
return m.OffsetBytes
}
return 0
}
// Request message for Bigtable.MutateRow.
type MutateRowRequest struct {
// The unique name of the table to which the mutation should be applied.
// Values are of the form
// `projects/<project>/instances/<instance>/tables/<table>`.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// This value specifies routing for replication. If not specified, the
// "default" application profile will be used.
AppProfileId string `protobuf:"bytes,4,opt,name=app_profile_id,json=appProfileId,proto3" json:"app_profile_id,omitempty"`
// The key of the row to which the mutation should be applied.
RowKey []byte `protobuf:"bytes,2,opt,name=row_key,json=rowKey,proto3" json:"row_key,omitempty"`
// Changes to be atomically applied to the specified row. Entries are applied
// in order, meaning that earlier mutations can be masked by later ones.
// Must contain at least one entry and at most 100000.
Mutations []*Mutation `protobuf:"bytes,3,rep,name=mutations,proto3" json:"mutations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateRowRequest) Reset() { *m = MutateRowRequest{} }
func (m *MutateRowRequest) String() string { return proto.CompactTextString(m) }
func (*MutateRowRequest) ProtoMessage() {}
func (*MutateRowRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{4}
}
func (m *MutateRowRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateRowRequest.Unmarshal(m, b)
}
func (m *MutateRowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateRowRequest.Marshal(b, m, deterministic)
}
func (m *MutateRowRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateRowRequest.Merge(m, src)
}
func (m *MutateRowRequest) XXX_Size() int {
return xxx_messageInfo_MutateRowRequest.Size(m)
}
func (m *MutateRowRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateRowRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateRowRequest proto.InternalMessageInfo
func (m *MutateRowRequest) GetTableName() string {
if m != nil {
return m.TableName
}
return ""
}
func (m *MutateRowRequest) GetAppProfileId() string {
if m != nil {
return m.AppProfileId
}
return ""
}
func (m *MutateRowRequest) GetRowKey() []byte {
if m != nil {
return m.RowKey
}
return nil
}
func (m *MutateRowRequest) GetMutations() []*Mutation {
if m != nil {
return m.Mutations
}
return nil
}
// Response message for Bigtable.MutateRow.
type MutateRowResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateRowResponse) Reset() { *m = MutateRowResponse{} }
func (m *MutateRowResponse) String() string { return proto.CompactTextString(m) }
func (*MutateRowResponse) ProtoMessage() {}
func (*MutateRowResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{5}
}
func (m *MutateRowResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateRowResponse.Unmarshal(m, b)
}
func (m *MutateRowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateRowResponse.Marshal(b, m, deterministic)
}
func (m *MutateRowResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateRowResponse.Merge(m, src)
}
func (m *MutateRowResponse) XXX_Size() int {
return xxx_messageInfo_MutateRowResponse.Size(m)
}
func (m *MutateRowResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateRowResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateRowResponse proto.InternalMessageInfo
// Request message for BigtableService.MutateRows.
type MutateRowsRequest struct {
// The unique name of the table to which the mutations should be applied.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// This value specifies routing for replication. If not specified, the
// "default" application profile will be used.
AppProfileId string `protobuf:"bytes,3,opt,name=app_profile_id,json=appProfileId,proto3" json:"app_profile_id,omitempty"`
// The row keys and corresponding mutations to be applied in bulk.
// Each entry is applied as an atomic mutation, but the entries may be
// applied in arbitrary order (even between entries for the same row).
// At least one entry must be specified, and in total the entries can
// contain at most 100000 mutations.
Entries []*MutateRowsRequest_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateRowsRequest) Reset() { *m = MutateRowsRequest{} }
func (m *MutateRowsRequest) String() string { return proto.CompactTextString(m) }
func (*MutateRowsRequest) ProtoMessage() {}
func (*MutateRowsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{6}
}
func (m *MutateRowsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateRowsRequest.Unmarshal(m, b)
}
func (m *MutateRowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateRowsRequest.Marshal(b, m, deterministic)
}
func (m *MutateRowsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateRowsRequest.Merge(m, src)
}
func (m *MutateRowsRequest) XXX_Size() int {
return xxx_messageInfo_MutateRowsRequest.Size(m)
}
func (m *MutateRowsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateRowsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateRowsRequest proto.InternalMessageInfo
func (m *MutateRowsRequest) GetTableName() string {
if m != nil {
return m.TableName
}
return ""
}
func (m *MutateRowsRequest) GetAppProfileId() string {
if m != nil {
return m.AppProfileId
}
return ""
}
func (m *MutateRowsRequest) GetEntries() []*MutateRowsRequest_Entry {
if m != nil {
return m.Entries
}
return nil
}
type MutateRowsRequest_Entry struct {
// The key of the row to which the `mutations` should be applied.
RowKey []byte `protobuf:"bytes,1,opt,name=row_key,json=rowKey,proto3" json:"row_key,omitempty"`
// Changes to be atomically applied to the specified row. Mutations are
// applied in order, meaning that earlier mutations can be masked by
// later ones.
// You must specify at least one mutation.
Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateRowsRequest_Entry) Reset() { *m = MutateRowsRequest_Entry{} }
func (m *MutateRowsRequest_Entry) String() string { return proto.CompactTextString(m) }
func (*MutateRowsRequest_Entry) ProtoMessage() {}
func (*MutateRowsRequest_Entry) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{6, 0}
}
func (m *MutateRowsRequest_Entry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateRowsRequest_Entry.Unmarshal(m, b)
}
func (m *MutateRowsRequest_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateRowsRequest_Entry.Marshal(b, m, deterministic)
}
func (m *MutateRowsRequest_Entry) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateRowsRequest_Entry.Merge(m, src)
}
func (m *MutateRowsRequest_Entry) XXX_Size() int {
return xxx_messageInfo_MutateRowsRequest_Entry.Size(m)
}
func (m *MutateRowsRequest_Entry) XXX_DiscardUnknown() {
xxx_messageInfo_MutateRowsRequest_Entry.DiscardUnknown(m)
}
var xxx_messageInfo_MutateRowsRequest_Entry proto.InternalMessageInfo
func (m *MutateRowsRequest_Entry) GetRowKey() []byte {
if m != nil {
return m.RowKey
}
return nil
}
func (m *MutateRowsRequest_Entry) GetMutations() []*Mutation {
if m != nil {
return m.Mutations
}
return nil
}
// Response message for BigtableService.MutateRows.
type MutateRowsResponse struct {
// One or more results for Entries from the batch request.
Entries []*MutateRowsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateRowsResponse) Reset() { *m = MutateRowsResponse{} }
func (m *MutateRowsResponse) String() string { return proto.CompactTextString(m) }
func (*MutateRowsResponse) ProtoMessage() {}
func (*MutateRowsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{7}
}
func (m *MutateRowsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateRowsResponse.Unmarshal(m, b)
}
func (m *MutateRowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateRowsResponse.Marshal(b, m, deterministic)
}
func (m *MutateRowsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateRowsResponse.Merge(m, src)
}
func (m *MutateRowsResponse) XXX_Size() int {
return xxx_messageInfo_MutateRowsResponse.Size(m)
}
func (m *MutateRowsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateRowsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateRowsResponse proto.InternalMessageInfo
func (m *MutateRowsResponse) GetEntries() []*MutateRowsResponse_Entry {
if m != nil {
return m.Entries
}
return nil
}
type MutateRowsResponse_Entry struct {
// The index into the original request's `entries` list of the Entry
// for which a result is being reported.
Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// The result of the request Entry identified by `index`.
// Depending on how requests are batched during execution, it is possible
// for one Entry to fail due to an error with another Entry. In the event
// that this occurs, the same error will be reported for both entries.
Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateRowsResponse_Entry) Reset() { *m = MutateRowsResponse_Entry{} }
func (m *MutateRowsResponse_Entry) String() string { return proto.CompactTextString(m) }
func (*MutateRowsResponse_Entry) ProtoMessage() {}
func (*MutateRowsResponse_Entry) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{7, 0}
}
func (m *MutateRowsResponse_Entry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateRowsResponse_Entry.Unmarshal(m, b)
}
func (m *MutateRowsResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateRowsResponse_Entry.Marshal(b, m, deterministic)
}
func (m *MutateRowsResponse_Entry) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateRowsResponse_Entry.Merge(m, src)
}
func (m *MutateRowsResponse_Entry) XXX_Size() int {
return xxx_messageInfo_MutateRowsResponse_Entry.Size(m)
}
func (m *MutateRowsResponse_Entry) XXX_DiscardUnknown() {
xxx_messageInfo_MutateRowsResponse_Entry.DiscardUnknown(m)
}
var xxx_messageInfo_MutateRowsResponse_Entry proto.InternalMessageInfo
func (m *MutateRowsResponse_Entry) GetIndex() int64 {
if m != nil {
return m.Index
}
return 0
}
func (m *MutateRowsResponse_Entry) GetStatus() *status.Status {
if m != nil {
return m.Status
}
return nil
}
// Request message for Bigtable.CheckAndMutateRow.
type CheckAndMutateRowRequest struct {
// The unique name of the table to which the conditional mutation should be
// applied.
// Values are of the form
// `projects/<project>/instances/<instance>/tables/<table>`.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// This value specifies routing for replication. If not specified, the
// "default" application profile will be used.
AppProfileId string `protobuf:"bytes,7,opt,name=app_profile_id,json=appProfileId,proto3" json:"app_profile_id,omitempty"`
// The key of the row to which the conditional mutation should be applied.
RowKey []byte `protobuf:"bytes,2,opt,name=row_key,json=rowKey,proto3" json:"row_key,omitempty"`
// The filter to be applied to the contents of the specified row. Depending
// on whether or not any results are yielded, either `true_mutations` or
// `false_mutations` will be executed. If unset, checks that the row contains
// any values at all.
PredicateFilter *RowFilter `protobuf:"bytes,6,opt,name=predicate_filter,json=predicateFilter,proto3" json:"predicate_filter,omitempty"`
// Changes to be atomically applied to the specified row if `predicate_filter`
// yields at least one cell when applied to `row_key`. Entries are applied in
// order, meaning that earlier mutations can be masked by later ones.
// Must contain at least one entry if `false_mutations` is empty, and at most
// 100000.
TrueMutations []*Mutation `protobuf:"bytes,4,rep,name=true_mutations,json=trueMutations,proto3" json:"true_mutations,omitempty"`
// Changes to be atomically applied to the specified row if `predicate_filter`
// does not yield any cells when applied to `row_key`. Entries are applied in
// order, meaning that earlier mutations can be masked by later ones.
// Must contain at least one entry if `true_mutations` is empty, and at most
// 100000.
FalseMutations []*Mutation `protobuf:"bytes,5,rep,name=false_mutations,json=falseMutations,proto3" json:"false_mutations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckAndMutateRowRequest) Reset() { *m = CheckAndMutateRowRequest{} }
func (m *CheckAndMutateRowRequest) String() string { return proto.CompactTextString(m) }
func (*CheckAndMutateRowRequest) ProtoMessage() {}
func (*CheckAndMutateRowRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{8}
}
func (m *CheckAndMutateRowRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckAndMutateRowRequest.Unmarshal(m, b)
}
func (m *CheckAndMutateRowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckAndMutateRowRequest.Marshal(b, m, deterministic)
}
func (m *CheckAndMutateRowRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckAndMutateRowRequest.Merge(m, src)
}
func (m *CheckAndMutateRowRequest) XXX_Size() int {
return xxx_messageInfo_CheckAndMutateRowRequest.Size(m)
}
func (m *CheckAndMutateRowRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CheckAndMutateRowRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CheckAndMutateRowRequest proto.InternalMessageInfo
func (m *CheckAndMutateRowRequest) GetTableName() string {
if m != nil {
return m.TableName
}
return ""
}
func (m *CheckAndMutateRowRequest) GetAppProfileId() string {
if m != nil {
return m.AppProfileId
}
return ""
}
func (m *CheckAndMutateRowRequest) GetRowKey() []byte {
if m != nil {
return m.RowKey
}
return nil
}
func (m *CheckAndMutateRowRequest) GetPredicateFilter() *RowFilter {
if m != nil {
return m.PredicateFilter
}
return nil
}
func (m *CheckAndMutateRowRequest) GetTrueMutations() []*Mutation {
if m != nil {
return m.TrueMutations
}
return nil
}
func (m *CheckAndMutateRowRequest) GetFalseMutations() []*Mutation {
if m != nil {
return m.FalseMutations
}
return nil
}
// Response message for Bigtable.CheckAndMutateRow.
type CheckAndMutateRowResponse struct {
// Whether or not the request's `predicate_filter` yielded any results for
// the specified row.
PredicateMatched bool `protobuf:"varint,1,opt,name=predicate_matched,json=predicateMatched,proto3" json:"predicate_matched,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckAndMutateRowResponse) Reset() { *m = CheckAndMutateRowResponse{} }
func (m *CheckAndMutateRowResponse) String() string { return proto.CompactTextString(m) }
func (*CheckAndMutateRowResponse) ProtoMessage() {}
func (*CheckAndMutateRowResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{9}
}
func (m *CheckAndMutateRowResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckAndMutateRowResponse.Unmarshal(m, b)
}
func (m *CheckAndMutateRowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckAndMutateRowResponse.Marshal(b, m, deterministic)
}
func (m *CheckAndMutateRowResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckAndMutateRowResponse.Merge(m, src)
}
func (m *CheckAndMutateRowResponse) XXX_Size() int {
return xxx_messageInfo_CheckAndMutateRowResponse.Size(m)
}
func (m *CheckAndMutateRowResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CheckAndMutateRowResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CheckAndMutateRowResponse proto.InternalMessageInfo
func (m *CheckAndMutateRowResponse) GetPredicateMatched() bool {
if m != nil {
return m.PredicateMatched
}
return false
}
// Request message for Bigtable.ReadModifyWriteRow.
type ReadModifyWriteRowRequest struct {
// The unique name of the table to which the read/modify/write rules should be
// applied.
// Values are of the form
// `projects/<project>/instances/<instance>/tables/<table>`.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// This value specifies routing for replication. If not specified, the
// "default" application profile will be used.
AppProfileId string `protobuf:"bytes,4,opt,name=app_profile_id,json=appProfileId,proto3" json:"app_profile_id,omitempty"`
// The key of the row to which the read/modify/write rules should be applied.
RowKey []byte `protobuf:"bytes,2,opt,name=row_key,json=rowKey,proto3" json:"row_key,omitempty"`
// Rules specifying how the specified row's contents are to be transformed
// into writes. Entries are applied in order, meaning that earlier rules will
// affect the results of later ones.
Rules []*ReadModifyWriteRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadModifyWriteRowRequest) Reset() { *m = ReadModifyWriteRowRequest{} }
func (m *ReadModifyWriteRowRequest) String() string { return proto.CompactTextString(m) }
func (*ReadModifyWriteRowRequest) ProtoMessage() {}
func (*ReadModifyWriteRowRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7e9247725ec9a6cf, []int{10}
}
func (m *ReadModifyWriteRowRequest) XXX_Unmarshal(b []byte) error {