forked from googleapis/java-spanner
/
table.pb.go
1885 lines (1681 loc) · 78.4 KB
/
table.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
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.13.0
// source: google/bigtable/admin/v2/table.proto
package admin
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Indicates the type of the restore source.
type RestoreSourceType int32
const (
// No restore associated.
RestoreSourceType_RESTORE_SOURCE_TYPE_UNSPECIFIED RestoreSourceType = 0
// A backup was used as the source of the restore.
RestoreSourceType_BACKUP RestoreSourceType = 1
)
// Enum value maps for RestoreSourceType.
var (
RestoreSourceType_name = map[int32]string{
0: "RESTORE_SOURCE_TYPE_UNSPECIFIED",
1: "BACKUP",
}
RestoreSourceType_value = map[string]int32{
"RESTORE_SOURCE_TYPE_UNSPECIFIED": 0,
"BACKUP": 1,
}
)
func (x RestoreSourceType) Enum() *RestoreSourceType {
p := new(RestoreSourceType)
*p = x
return p
}
func (x RestoreSourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RestoreSourceType) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[0].Descriptor()
}
func (RestoreSourceType) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[0]
}
func (x RestoreSourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RestoreSourceType.Descriptor instead.
func (RestoreSourceType) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{0}
}
// Possible timestamp granularities to use when keeping multiple versions
// of data in a table.
type Table_TimestampGranularity int32
const (
// The user did not specify a granularity. Should not be returned.
// When specified during table creation, MILLIS will be used.
Table_TIMESTAMP_GRANULARITY_UNSPECIFIED Table_TimestampGranularity = 0
// The table keeps data versioned at a granularity of 1ms.
Table_MILLIS Table_TimestampGranularity = 1
)
// Enum value maps for Table_TimestampGranularity.
var (
Table_TimestampGranularity_name = map[int32]string{
0: "TIMESTAMP_GRANULARITY_UNSPECIFIED",
1: "MILLIS",
}
Table_TimestampGranularity_value = map[string]int32{
"TIMESTAMP_GRANULARITY_UNSPECIFIED": 0,
"MILLIS": 1,
}
)
func (x Table_TimestampGranularity) Enum() *Table_TimestampGranularity {
p := new(Table_TimestampGranularity)
*p = x
return p
}
func (x Table_TimestampGranularity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Table_TimestampGranularity) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[1].Descriptor()
}
func (Table_TimestampGranularity) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[1]
}
func (x Table_TimestampGranularity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Table_TimestampGranularity.Descriptor instead.
func (Table_TimestampGranularity) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{1, 0}
}
// Defines a view over a table's fields.
type Table_View int32
const (
// Uses the default view for each method as documented in its request.
Table_VIEW_UNSPECIFIED Table_View = 0
// Only populates `name`.
Table_NAME_ONLY Table_View = 1
// Only populates `name` and fields related to the table's schema.
Table_SCHEMA_VIEW Table_View = 2
// Only populates `name` and fields related to the table's replication
// state.
Table_REPLICATION_VIEW Table_View = 3
// Only populates 'name' and fields related to the table's encryption state.
Table_ENCRYPTION_VIEW Table_View = 5
// Populates all fields.
Table_FULL Table_View = 4
)
// Enum value maps for Table_View.
var (
Table_View_name = map[int32]string{
0: "VIEW_UNSPECIFIED",
1: "NAME_ONLY",
2: "SCHEMA_VIEW",
3: "REPLICATION_VIEW",
5: "ENCRYPTION_VIEW",
4: "FULL",
}
Table_View_value = map[string]int32{
"VIEW_UNSPECIFIED": 0,
"NAME_ONLY": 1,
"SCHEMA_VIEW": 2,
"REPLICATION_VIEW": 3,
"ENCRYPTION_VIEW": 5,
"FULL": 4,
}
)
func (x Table_View) Enum() *Table_View {
p := new(Table_View)
*p = x
return p
}
func (x Table_View) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Table_View) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[2].Descriptor()
}
func (Table_View) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[2]
}
func (x Table_View) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Table_View.Descriptor instead.
func (Table_View) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{1, 1}
}
// Table replication states.
type Table_ClusterState_ReplicationState int32
const (
// The replication state of the table is unknown in this cluster.
Table_ClusterState_STATE_NOT_KNOWN Table_ClusterState_ReplicationState = 0
// The cluster was recently created, and the table must finish copying
// over pre-existing data from other clusters before it can begin
// receiving live replication updates and serving Data API requests.
Table_ClusterState_INITIALIZING Table_ClusterState_ReplicationState = 1
// The table is temporarily unable to serve Data API requests from this
// cluster due to planned internal maintenance.
Table_ClusterState_PLANNED_MAINTENANCE Table_ClusterState_ReplicationState = 2
// The table is temporarily unable to serve Data API requests from this
// cluster due to unplanned or emergency maintenance.
Table_ClusterState_UNPLANNED_MAINTENANCE Table_ClusterState_ReplicationState = 3
// The table can serve Data API requests from this cluster. Depending on
// replication delay, reads may not immediately reflect the state of the
// table in other clusters.
Table_ClusterState_READY Table_ClusterState_ReplicationState = 4
// The table is fully created and ready for use after a restore, and is
// being optimized for performance. When optimizations are complete, the
// table will transition to `READY` state.
Table_ClusterState_READY_OPTIMIZING Table_ClusterState_ReplicationState = 5
)
// Enum value maps for Table_ClusterState_ReplicationState.
var (
Table_ClusterState_ReplicationState_name = map[int32]string{
0: "STATE_NOT_KNOWN",
1: "INITIALIZING",
2: "PLANNED_MAINTENANCE",
3: "UNPLANNED_MAINTENANCE",
4: "READY",
5: "READY_OPTIMIZING",
}
Table_ClusterState_ReplicationState_value = map[string]int32{
"STATE_NOT_KNOWN": 0,
"INITIALIZING": 1,
"PLANNED_MAINTENANCE": 2,
"UNPLANNED_MAINTENANCE": 3,
"READY": 4,
"READY_OPTIMIZING": 5,
}
)
func (x Table_ClusterState_ReplicationState) Enum() *Table_ClusterState_ReplicationState {
p := new(Table_ClusterState_ReplicationState)
*p = x
return p
}
func (x Table_ClusterState_ReplicationState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Table_ClusterState_ReplicationState) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[3].Descriptor()
}
func (Table_ClusterState_ReplicationState) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[3]
}
func (x Table_ClusterState_ReplicationState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Table_ClusterState_ReplicationState.Descriptor instead.
func (Table_ClusterState_ReplicationState) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{1, 0, 0}
}
// Possible encryption types for a resource.
type EncryptionInfo_EncryptionType int32
const (
// Encryption type was not specified, though data at rest remains encrypted.
EncryptionInfo_ENCRYPTION_TYPE_UNSPECIFIED EncryptionInfo_EncryptionType = 0
// The data backing this resource is encrypted at rest with a key that is
// fully managed by Google. No key version or status will be populated.
// This is the default state.
EncryptionInfo_GOOGLE_DEFAULT_ENCRYPTION EncryptionInfo_EncryptionType = 1
// The data backing this resource is encrypted at rest with a key that is
// managed by the customer.
// The in-use version of the key and its status are populated for
// CMEK-protected tables.
// CMEK-protected backups are pinned to the key version that was in use at
// the time the backup was taken. This key version is populated but its
// status is not tracked and is reported as `UNKNOWN`.
EncryptionInfo_CUSTOMER_MANAGED_ENCRYPTION EncryptionInfo_EncryptionType = 2
)
// Enum value maps for EncryptionInfo_EncryptionType.
var (
EncryptionInfo_EncryptionType_name = map[int32]string{
0: "ENCRYPTION_TYPE_UNSPECIFIED",
1: "GOOGLE_DEFAULT_ENCRYPTION",
2: "CUSTOMER_MANAGED_ENCRYPTION",
}
EncryptionInfo_EncryptionType_value = map[string]int32{
"ENCRYPTION_TYPE_UNSPECIFIED": 0,
"GOOGLE_DEFAULT_ENCRYPTION": 1,
"CUSTOMER_MANAGED_ENCRYPTION": 2,
}
)
func (x EncryptionInfo_EncryptionType) Enum() *EncryptionInfo_EncryptionType {
p := new(EncryptionInfo_EncryptionType)
*p = x
return p
}
func (x EncryptionInfo_EncryptionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EncryptionInfo_EncryptionType) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[4].Descriptor()
}
func (EncryptionInfo_EncryptionType) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[4]
}
func (x EncryptionInfo_EncryptionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EncryptionInfo_EncryptionType.Descriptor instead.
func (EncryptionInfo_EncryptionType) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{4, 0}
}
// Possible states of a snapshot.
type Snapshot_State int32
const (
// The state of the snapshot could not be determined.
Snapshot_STATE_NOT_KNOWN Snapshot_State = 0
// The snapshot has been successfully created and can serve all requests.
Snapshot_READY Snapshot_State = 1
// The snapshot is currently being created, and may be destroyed if the
// creation process encounters an error. A snapshot may not be restored to a
// table while it is being created.
Snapshot_CREATING Snapshot_State = 2
)
// Enum value maps for Snapshot_State.
var (
Snapshot_State_name = map[int32]string{
0: "STATE_NOT_KNOWN",
1: "READY",
2: "CREATING",
}
Snapshot_State_value = map[string]int32{
"STATE_NOT_KNOWN": 0,
"READY": 1,
"CREATING": 2,
}
)
func (x Snapshot_State) Enum() *Snapshot_State {
p := new(Snapshot_State)
*p = x
return p
}
func (x Snapshot_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Snapshot_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[5].Descriptor()
}
func (Snapshot_State) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[5]
}
func (x Snapshot_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Snapshot_State.Descriptor instead.
func (Snapshot_State) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{5, 0}
}
// Indicates the current state of the backup.
type Backup_State int32
const (
// Not specified.
Backup_STATE_UNSPECIFIED Backup_State = 0
// The pending backup is still being created. Operations on the
// backup may fail with `FAILED_PRECONDITION` in this state.
Backup_CREATING Backup_State = 1
// The backup is complete and ready for use.
Backup_READY Backup_State = 2
)
// Enum value maps for Backup_State.
var (
Backup_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "READY",
}
Backup_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
}
)
func (x Backup_State) Enum() *Backup_State {
p := new(Backup_State)
*p = x
return p
}
func (x Backup_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Backup_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_bigtable_admin_v2_table_proto_enumTypes[6].Descriptor()
}
func (Backup_State) Type() protoreflect.EnumType {
return &file_google_bigtable_admin_v2_table_proto_enumTypes[6]
}
func (x Backup_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Backup_State.Descriptor instead.
func (Backup_State) EnumDescriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{6, 0}
}
// Information about a table restore.
type RestoreInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The type of the restore source.
SourceType RestoreSourceType `protobuf:"varint,1,opt,name=source_type,json=sourceType,proto3,enum=google.bigtable.admin.v2.RestoreSourceType" json:"source_type,omitempty"`
// Information about the source used to restore the table.
//
// Types that are assignable to SourceInfo:
// *RestoreInfo_BackupInfo
SourceInfo isRestoreInfo_SourceInfo `protobuf_oneof:"source_info"`
}
func (x *RestoreInfo) Reset() {
*x = RestoreInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RestoreInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RestoreInfo) ProtoMessage() {}
func (x *RestoreInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RestoreInfo.ProtoReflect.Descriptor instead.
func (*RestoreInfo) Descriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{0}
}
func (x *RestoreInfo) GetSourceType() RestoreSourceType {
if x != nil {
return x.SourceType
}
return RestoreSourceType_RESTORE_SOURCE_TYPE_UNSPECIFIED
}
func (m *RestoreInfo) GetSourceInfo() isRestoreInfo_SourceInfo {
if m != nil {
return m.SourceInfo
}
return nil
}
func (x *RestoreInfo) GetBackupInfo() *BackupInfo {
if x, ok := x.GetSourceInfo().(*RestoreInfo_BackupInfo); ok {
return x.BackupInfo
}
return nil
}
type isRestoreInfo_SourceInfo interface {
isRestoreInfo_SourceInfo()
}
type RestoreInfo_BackupInfo struct {
// Information about the backup used to restore the table. The backup
// may no longer exist.
BackupInfo *BackupInfo `protobuf:"bytes,2,opt,name=backup_info,json=backupInfo,proto3,oneof"`
}
func (*RestoreInfo_BackupInfo) isRestoreInfo_SourceInfo() {}
// A collection of user data indexed by row, column, and timestamp.
// Each table is served using the resources of its parent cluster.
type Table struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The unique name of the table. Values are of the form
// `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
// Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Map from cluster ID to per-cluster table state.
// If it could not be determined whether or not the table has data in a
// particular cluster (for example, if its zone is unavailable), then
// there will be an entry for the cluster with UNKNOWN `replication_status`.
// Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
ClusterStates map[string]*Table_ClusterState `protobuf:"bytes,2,rep,name=cluster_states,json=clusterStates,proto3" json:"cluster_states,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// (`CreationOnly`)
// The column families configured for this table, mapped by column family ID.
// Views: `SCHEMA_VIEW`, `FULL`
ColumnFamilies map[string]*ColumnFamily `protobuf:"bytes,3,rep,name=column_families,json=columnFamilies,proto3" json:"column_families,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// (`CreationOnly`)
// The granularity (i.e. `MILLIS`) at which timestamps are stored in
// this table. Timestamps not matching the granularity will be rejected.
// If unspecified at creation time, the value will be set to `MILLIS`.
// Views: `SCHEMA_VIEW`, `FULL`.
Granularity Table_TimestampGranularity `protobuf:"varint,4,opt,name=granularity,proto3,enum=google.bigtable.admin.v2.Table_TimestampGranularity" json:"granularity,omitempty"`
// Output only. If this table was restored from another data source (e.g. a
// backup), this field will be populated with information about the restore.
RestoreInfo *RestoreInfo `protobuf:"bytes,6,opt,name=restore_info,json=restoreInfo,proto3" json:"restore_info,omitempty"`
}
func (x *Table) Reset() {
*x = Table{}
if protoimpl.UnsafeEnabled {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Table) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Table) ProtoMessage() {}
func (x *Table) ProtoReflect() protoreflect.Message {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Table.ProtoReflect.Descriptor instead.
func (*Table) Descriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{1}
}
func (x *Table) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Table) GetClusterStates() map[string]*Table_ClusterState {
if x != nil {
return x.ClusterStates
}
return nil
}
func (x *Table) GetColumnFamilies() map[string]*ColumnFamily {
if x != nil {
return x.ColumnFamilies
}
return nil
}
func (x *Table) GetGranularity() Table_TimestampGranularity {
if x != nil {
return x.Granularity
}
return Table_TIMESTAMP_GRANULARITY_UNSPECIFIED
}
func (x *Table) GetRestoreInfo() *RestoreInfo {
if x != nil {
return x.RestoreInfo
}
return nil
}
// A set of columns within a table which share a common configuration.
type ColumnFamily struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Garbage collection rule specified as a protobuf.
// Must serialize to at most 500 bytes.
//
// NOTE: Garbage collection executes opportunistically in the background, and
// so it's possible for reads to return a cell even if it matches the active
// GC expression for its family.
GcRule *GcRule `protobuf:"bytes,1,opt,name=gc_rule,json=gcRule,proto3" json:"gc_rule,omitempty"`
}
func (x *ColumnFamily) Reset() {
*x = ColumnFamily{}
if protoimpl.UnsafeEnabled {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ColumnFamily) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ColumnFamily) ProtoMessage() {}
func (x *ColumnFamily) ProtoReflect() protoreflect.Message {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ColumnFamily.ProtoReflect.Descriptor instead.
func (*ColumnFamily) Descriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{2}
}
func (x *ColumnFamily) GetGcRule() *GcRule {
if x != nil {
return x.GcRule
}
return nil
}
// Rule for determining which cells to delete during garbage collection.
type GcRule struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Garbage collection rules.
//
// Types that are assignable to Rule:
// *GcRule_MaxNumVersions
// *GcRule_MaxAge
// *GcRule_Intersection_
// *GcRule_Union_
Rule isGcRule_Rule `protobuf_oneof:"rule"`
}
func (x *GcRule) Reset() {
*x = GcRule{}
if protoimpl.UnsafeEnabled {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcRule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcRule) ProtoMessage() {}
func (x *GcRule) ProtoReflect() protoreflect.Message {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcRule.ProtoReflect.Descriptor instead.
func (*GcRule) Descriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{3}
}
func (m *GcRule) GetRule() isGcRule_Rule {
if m != nil {
return m.Rule
}
return nil
}
func (x *GcRule) GetMaxNumVersions() int32 {
if x, ok := x.GetRule().(*GcRule_MaxNumVersions); ok {
return x.MaxNumVersions
}
return 0
}
func (x *GcRule) GetMaxAge() *durationpb.Duration {
if x, ok := x.GetRule().(*GcRule_MaxAge); ok {
return x.MaxAge
}
return nil
}
func (x *GcRule) GetIntersection() *GcRule_Intersection {
if x, ok := x.GetRule().(*GcRule_Intersection_); ok {
return x.Intersection
}
return nil
}
func (x *GcRule) GetUnion() *GcRule_Union {
if x, ok := x.GetRule().(*GcRule_Union_); ok {
return x.Union
}
return nil
}
type isGcRule_Rule interface {
isGcRule_Rule()
}
type GcRule_MaxNumVersions struct {
// Delete all cells in a column except the most recent N.
MaxNumVersions int32 `protobuf:"varint,1,opt,name=max_num_versions,json=maxNumVersions,proto3,oneof"`
}
type GcRule_MaxAge struct {
// Delete cells in a column older than the given age.
// Values must be at least one millisecond, and will be truncated to
// microsecond granularity.
MaxAge *durationpb.Duration `protobuf:"bytes,2,opt,name=max_age,json=maxAge,proto3,oneof"`
}
type GcRule_Intersection_ struct {
// Delete cells that would be deleted by every nested rule.
Intersection *GcRule_Intersection `protobuf:"bytes,3,opt,name=intersection,proto3,oneof"`
}
type GcRule_Union_ struct {
// Delete cells that would be deleted by any nested rule.
Union *GcRule_Union `protobuf:"bytes,4,opt,name=union,proto3,oneof"`
}
func (*GcRule_MaxNumVersions) isGcRule_Rule() {}
func (*GcRule_MaxAge) isGcRule_Rule() {}
func (*GcRule_Intersection_) isGcRule_Rule() {}
func (*GcRule_Union_) isGcRule_Rule() {}
// Encryption information for a given resource.
// If this resource is protected with customer managed encryption, the in-use
// Cloud Key Management Service (Cloud KMS) key version is specified along with
// its status.
type EncryptionInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The type of encryption used to protect this resource.
EncryptionType EncryptionInfo_EncryptionType `protobuf:"varint,3,opt,name=encryption_type,json=encryptionType,proto3,enum=google.bigtable.admin.v2.EncryptionInfo_EncryptionType" json:"encryption_type,omitempty"`
// Output only. The status of encrypt/decrypt calls on underlying data for
// this resource. Regardless of status, the existing data is always encrypted
// at rest.
EncryptionStatus *status.Status `protobuf:"bytes,4,opt,name=encryption_status,json=encryptionStatus,proto3" json:"encryption_status,omitempty"`
// Output only. The version of the Cloud KMS key specified in the parent
// cluster that is in use for the data underlying this table.
KmsKeyVersion string `protobuf:"bytes,2,opt,name=kms_key_version,json=kmsKeyVersion,proto3" json:"kms_key_version,omitempty"`
}
func (x *EncryptionInfo) Reset() {
*x = EncryptionInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EncryptionInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EncryptionInfo) ProtoMessage() {}
func (x *EncryptionInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EncryptionInfo.ProtoReflect.Descriptor instead.
func (*EncryptionInfo) Descriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{4}
}
func (x *EncryptionInfo) GetEncryptionType() EncryptionInfo_EncryptionType {
if x != nil {
return x.EncryptionType
}
return EncryptionInfo_ENCRYPTION_TYPE_UNSPECIFIED
}
func (x *EncryptionInfo) GetEncryptionStatus() *status.Status {
if x != nil {
return x.EncryptionStatus
}
return nil
}
func (x *EncryptionInfo) GetKmsKeyVersion() string {
if x != nil {
return x.KmsKeyVersion
}
return ""
}
// A snapshot of a table at a particular time. A snapshot can be used as a
// checkpoint for data restoration or a data source for a new table.
//
// Note: This is a private alpha release of Cloud Bigtable snapshots. This
// feature is not currently available to most Cloud Bigtable customers. This
// feature might be changed in backward-incompatible ways and is not recommended
// for production use. It is not subject to any SLA or deprecation policy.
type Snapshot struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The unique name of the snapshot.
// Values are of the form
// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The source table at the time the snapshot was taken.
SourceTable *Table `protobuf:"bytes,2,opt,name=source_table,json=sourceTable,proto3" json:"source_table,omitempty"`
// Output only. The size of the data in the source table at the time the
// snapshot was taken. In some cases, this value may be computed
// asynchronously via a background process and a placeholder of 0 will be used
// in the meantime.
DataSizeBytes int64 `protobuf:"varint,3,opt,name=data_size_bytes,json=dataSizeBytes,proto3" json:"data_size_bytes,omitempty"`
// Output only. The time when the snapshot is created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the snapshot will be deleted. The maximum amount
// of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
// the default maximum of 365 days will be used.
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// Output only. The current state of the snapshot.
State Snapshot_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.bigtable.admin.v2.Snapshot_State" json:"state,omitempty"`
// Output only. Description of the snapshot.
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
}
func (x *Snapshot) Reset() {
*x = Snapshot{}
if protoimpl.UnsafeEnabled {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Snapshot) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Snapshot) ProtoMessage() {}
func (x *Snapshot) ProtoReflect() protoreflect.Message {
mi := &file_google_bigtable_admin_v2_table_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.
func (*Snapshot) Descriptor() ([]byte, []int) {
return file_google_bigtable_admin_v2_table_proto_rawDescGZIP(), []int{5}
}
func (x *Snapshot) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Snapshot) GetSourceTable() *Table {
if x != nil {
return x.SourceTable
}
return nil
}
func (x *Snapshot) GetDataSizeBytes() int64 {
if x != nil {
return x.DataSizeBytes
}
return 0
}
func (x *Snapshot) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Snapshot) GetDeleteTime() *timestamppb.Timestamp {
if x != nil {
return x.DeleteTime
}
return nil
}
func (x *Snapshot) GetState() Snapshot_State {
if x != nil {
return x.State
}
return Snapshot_STATE_NOT_KNOWN
}
func (x *Snapshot) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// A backup of a Cloud Bigtable table.
type Backup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields