google-cloud-bigtable 1.2.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/CHANGELOG.md +57 -0
  4. data/TROUBLESHOOTING.md +2 -8
  5. data/lib/google-cloud-bigtable.rb +30 -27
  6. data/lib/google/cloud/bigtable.rb +18 -26
  7. data/lib/google/cloud/bigtable/app_profile.rb +3 -3
  8. data/lib/google/cloud/bigtable/app_profile/list.rb +6 -4
  9. data/lib/google/cloud/bigtable/backup.rb +445 -0
  10. data/lib/google/cloud/bigtable/backup/job.rb +87 -0
  11. data/lib/google/cloud/bigtable/backup/list.rb +167 -0
  12. data/lib/google/cloud/bigtable/chunk_processor.rb +1 -1
  13. data/lib/google/cloud/bigtable/cluster.rb +101 -2
  14. data/lib/google/cloud/bigtable/cluster/list.rb +2 -2
  15. data/lib/google/cloud/bigtable/column_family.rb +2 -2
  16. data/lib/google/cloud/bigtable/column_family_map.rb +11 -11
  17. data/lib/google/cloud/bigtable/column_range.rb +2 -2
  18. data/lib/google/cloud/bigtable/credentials.rb +36 -2
  19. data/lib/google/cloud/bigtable/gc_rule.rb +7 -7
  20. data/lib/google/cloud/bigtable/instance.rb +6 -6
  21. data/lib/google/cloud/bigtable/instance/cluster_map.rb +1 -1
  22. data/lib/google/cloud/bigtable/instance/list.rb +2 -2
  23. data/lib/google/cloud/bigtable/longrunning_job.rb +13 -2
  24. data/lib/google/cloud/bigtable/mutation_entry.rb +10 -9
  25. data/lib/google/cloud/bigtable/mutation_operations.rb +2 -2
  26. data/lib/google/cloud/bigtable/project.rb +1 -1
  27. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +2 -2
  28. data/lib/google/cloud/bigtable/read_operations.rb +2 -2
  29. data/lib/google/cloud/bigtable/routing_policy.rb +2 -2
  30. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +3 -3
  31. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +3 -3
  32. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +3 -3
  33. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +3 -3
  34. data/lib/google/cloud/bigtable/row_range.rb +2 -2
  35. data/lib/google/cloud/bigtable/rows_mutator.rb +3 -3
  36. data/lib/google/cloud/bigtable/rows_reader.rb +10 -10
  37. data/lib/google/cloud/bigtable/sample_row_key.rb +2 -2
  38. data/lib/google/cloud/bigtable/service.rb +282 -245
  39. data/lib/google/cloud/bigtable/table.rb +5 -4
  40. data/lib/google/cloud/bigtable/table/cluster_state.rb +27 -6
  41. data/lib/google/cloud/bigtable/table/list.rb +2 -2
  42. data/lib/google/cloud/bigtable/table/restore_job.rb +117 -0
  43. data/lib/google/cloud/bigtable/value_range.rb +2 -2
  44. data/lib/google/cloud/bigtable/version.rb +1 -1
  45. metadata +16 -94
  46. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +0 -145
  47. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +0 -90
  48. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +0 -208
  49. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +0 -154
  50. data/lib/google/bigtable/admin/v2/common_pb.rb +0 -30
  51. data/lib/google/bigtable/admin/v2/instance_pb.rb +0 -74
  52. data/lib/google/bigtable/admin/v2/table_pb.rb +0 -127
  53. data/lib/google/bigtable/v2/bigtable_pb.rb +0 -113
  54. data/lib/google/bigtable/v2/bigtable_services_pb.rb +0 -68
  55. data/lib/google/bigtable/v2/data_pb.rb +0 -156
  56. data/lib/google/cloud/bigtable/admin.rb +0 -202
  57. data/lib/google/cloud/bigtable/admin/credentials.rb +0 -27
  58. data/lib/google/cloud/bigtable/admin/v2.rb +0 -223
  59. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +0 -1451
  60. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +0 -139
  61. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +0 -1734
  62. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +0 -163
  63. data/lib/google/cloud/bigtable/admin/v2/credentials.rb +0 -51
  64. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +0 -297
  65. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +0 -587
  66. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +0 -193
  67. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +0 -303
  68. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +0 -64
  69. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +0 -33
  70. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +0 -151
  71. data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +0 -51
  72. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +0 -131
  73. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +0 -91
  74. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +0 -29
  75. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +0 -222
  76. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +0 -113
  77. data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +0 -39
  78. data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +0 -45
  79. data/lib/google/cloud/bigtable/v2.rb +0 -146
  80. data/lib/google/cloud/bigtable/v2/bigtable_client.rb +0 -591
  81. data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +0 -83
  82. data/lib/google/cloud/bigtable/v2/credentials.rb +0 -46
  83. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +0 -290
  84. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +0 -493
  85. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +0 -131
  86. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +0 -34
  87. data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +0 -39
@@ -1,30 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/common.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/timestamp_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.bigtable.admin.v2.OperationProgress" do
10
- optional :progress_percent, :int32, 1
11
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
12
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
13
- end
14
- add_enum "google.bigtable.admin.v2.StorageType" do
15
- value :STORAGE_TYPE_UNSPECIFIED, 0
16
- value :SSD, 1
17
- value :HDD, 2
18
- end
19
- end
20
-
21
- module Google
22
- module Bigtable
23
- module Admin
24
- module V2
25
- OperationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OperationProgress").msgclass
26
- StorageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
27
- end
28
- end
29
- end
30
- end
@@ -1,74 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/instance.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/field_behavior_pb'
8
- require 'google/api/resource_pb'
9
- require 'google/bigtable/admin/v2/common_pb'
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.bigtable.admin.v2.Instance" do
12
- optional :name, :string, 1
13
- optional :display_name, :string, 2
14
- optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
15
- optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
16
- map :labels, :string, :string, 5
17
- end
18
- add_enum "google.bigtable.admin.v2.Instance.State" do
19
- value :STATE_NOT_KNOWN, 0
20
- value :READY, 1
21
- value :CREATING, 2
22
- end
23
- add_enum "google.bigtable.admin.v2.Instance.Type" do
24
- value :TYPE_UNSPECIFIED, 0
25
- value :PRODUCTION, 1
26
- value :DEVELOPMENT, 2
27
- end
28
- add_message "google.bigtable.admin.v2.Cluster" do
29
- optional :name, :string, 1
30
- optional :location, :string, 2
31
- optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
32
- optional :serve_nodes, :int32, 4
33
- optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
34
- end
35
- add_enum "google.bigtable.admin.v2.Cluster.State" do
36
- value :STATE_NOT_KNOWN, 0
37
- value :READY, 1
38
- value :CREATING, 2
39
- value :RESIZING, 3
40
- value :DISABLED, 4
41
- end
42
- add_message "google.bigtable.admin.v2.AppProfile" do
43
- optional :name, :string, 1
44
- optional :etag, :string, 2
45
- optional :description, :string, 3
46
- oneof :routing_policy do
47
- optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
48
- optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
49
- end
50
- end
51
- add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
52
- end
53
- add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
54
- optional :cluster_id, :string, 1
55
- optional :allow_transactional_writes, :bool, 2
56
- end
57
- end
58
-
59
- module Google
60
- module Bigtable
61
- module Admin
62
- module V2
63
- Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
64
- Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
65
- Instance::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
66
- Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
67
- Cluster::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
68
- AppProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
69
- AppProfile::MultiClusterRoutingUseAny = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
70
- AppProfile::SingleClusterRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass
71
- end
72
- end
73
- end
74
- end
@@ -1,127 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/table.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/field_behavior_pb'
8
- require 'google/api/resource_pb'
9
- require 'google/protobuf/duration_pb'
10
- require 'google/protobuf/timestamp_pb'
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_message "google.bigtable.admin.v2.RestoreInfo" do
13
- optional :source_type, :enum, 1, "google.bigtable.admin.v2.RestoreSourceType"
14
- oneof :source_info do
15
- optional :backup_info, :message, 2, "google.bigtable.admin.v2.BackupInfo"
16
- end
17
- end
18
- add_message "google.bigtable.admin.v2.Table" do
19
- optional :name, :string, 1
20
- map :cluster_states, :string, :message, 2, "google.bigtable.admin.v2.Table.ClusterState"
21
- map :column_families, :string, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
22
- optional :granularity, :enum, 4, "google.bigtable.admin.v2.Table.TimestampGranularity"
23
- optional :restore_info, :message, 6, "google.bigtable.admin.v2.RestoreInfo"
24
- end
25
- add_message "google.bigtable.admin.v2.Table.ClusterState" do
26
- optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
27
- end
28
- add_enum "google.bigtable.admin.v2.Table.ClusterState.ReplicationState" do
29
- value :STATE_NOT_KNOWN, 0
30
- value :INITIALIZING, 1
31
- value :PLANNED_MAINTENANCE, 2
32
- value :UNPLANNED_MAINTENANCE, 3
33
- value :READY, 4
34
- value :READY_OPTIMIZING, 5
35
- end
36
- add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
37
- value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
38
- value :MILLIS, 1
39
- end
40
- add_enum "google.bigtable.admin.v2.Table.View" do
41
- value :VIEW_UNSPECIFIED, 0
42
- value :NAME_ONLY, 1
43
- value :SCHEMA_VIEW, 2
44
- value :REPLICATION_VIEW, 3
45
- value :FULL, 4
46
- end
47
- add_message "google.bigtable.admin.v2.ColumnFamily" do
48
- optional :gc_rule, :message, 1, "google.bigtable.admin.v2.GcRule"
49
- end
50
- add_message "google.bigtable.admin.v2.GcRule" do
51
- oneof :rule do
52
- optional :max_num_versions, :int32, 1
53
- optional :max_age, :message, 2, "google.protobuf.Duration"
54
- optional :intersection, :message, 3, "google.bigtable.admin.v2.GcRule.Intersection"
55
- optional :union, :message, 4, "google.bigtable.admin.v2.GcRule.Union"
56
- end
57
- end
58
- add_message "google.bigtable.admin.v2.GcRule.Intersection" do
59
- repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
60
- end
61
- add_message "google.bigtable.admin.v2.GcRule.Union" do
62
- repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
63
- end
64
- add_message "google.bigtable.admin.v2.Snapshot" do
65
- optional :name, :string, 1
66
- optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
67
- optional :data_size_bytes, :int64, 3
68
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
69
- optional :delete_time, :message, 5, "google.protobuf.Timestamp"
70
- optional :state, :enum, 6, "google.bigtable.admin.v2.Snapshot.State"
71
- optional :description, :string, 7
72
- end
73
- add_enum "google.bigtable.admin.v2.Snapshot.State" do
74
- value :STATE_NOT_KNOWN, 0
75
- value :READY, 1
76
- value :CREATING, 2
77
- end
78
- add_message "google.bigtable.admin.v2.Backup" do
79
- optional :name, :string, 1
80
- optional :source_table, :string, 2
81
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
82
- optional :start_time, :message, 4, "google.protobuf.Timestamp"
83
- optional :end_time, :message, 5, "google.protobuf.Timestamp"
84
- optional :size_bytes, :int64, 6
85
- optional :state, :enum, 7, "google.bigtable.admin.v2.Backup.State"
86
- end
87
- add_enum "google.bigtable.admin.v2.Backup.State" do
88
- value :STATE_UNSPECIFIED, 0
89
- value :CREATING, 1
90
- value :READY, 2
91
- end
92
- add_message "google.bigtable.admin.v2.BackupInfo" do
93
- optional :backup, :string, 1
94
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
95
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
96
- optional :source_table, :string, 4
97
- end
98
- add_enum "google.bigtable.admin.v2.RestoreSourceType" do
99
- value :RESTORE_SOURCE_TYPE_UNSPECIFIED, 0
100
- value :BACKUP, 1
101
- end
102
- end
103
-
104
- module Google
105
- module Bigtable
106
- module Admin
107
- module V2
108
- RestoreInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass
109
- Table = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
110
- Table::ClusterState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
111
- Table::ClusterState::ReplicationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
112
- Table::TimestampGranularity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule
113
- Table::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule
114
- ColumnFamily = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass
115
- GcRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass
116
- GcRule::Intersection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass
117
- GcRule::Union = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
118
- Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
119
- Snapshot::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
120
- Backup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass
121
- Backup::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule
122
- BackupInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass
123
- RestoreSourceType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule
124
- end
125
- end
126
- end
127
- end
@@ -1,113 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/v2/bigtable.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/bigtable/v2/data_pb'
12
- require 'google/protobuf/wrappers_pb'
13
- require 'google/rpc/status_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.bigtable.v2.ReadRowsRequest" do
16
- optional :table_name, :string, 1
17
- optional :app_profile_id, :string, 5
18
- optional :rows, :message, 2, "google.bigtable.v2.RowSet"
19
- optional :filter, :message, 3, "google.bigtable.v2.RowFilter"
20
- optional :rows_limit, :int64, 4
21
- end
22
- add_message "google.bigtable.v2.ReadRowsResponse" do
23
- repeated :chunks, :message, 1, "google.bigtable.v2.ReadRowsResponse.CellChunk"
24
- optional :last_scanned_row_key, :bytes, 2
25
- end
26
- add_message "google.bigtable.v2.ReadRowsResponse.CellChunk" do
27
- optional :row_key, :bytes, 1
28
- optional :family_name, :message, 2, "google.protobuf.StringValue"
29
- optional :qualifier, :message, 3, "google.protobuf.BytesValue"
30
- optional :timestamp_micros, :int64, 4
31
- repeated :labels, :string, 5
32
- optional :value, :bytes, 6
33
- optional :value_size, :int32, 7
34
- oneof :row_status do
35
- optional :reset_row, :bool, 8
36
- optional :commit_row, :bool, 9
37
- end
38
- end
39
- add_message "google.bigtable.v2.SampleRowKeysRequest" do
40
- optional :table_name, :string, 1
41
- optional :app_profile_id, :string, 2
42
- end
43
- add_message "google.bigtable.v2.SampleRowKeysResponse" do
44
- optional :row_key, :bytes, 1
45
- optional :offset_bytes, :int64, 2
46
- end
47
- add_message "google.bigtable.v2.MutateRowRequest" do
48
- optional :table_name, :string, 1
49
- optional :app_profile_id, :string, 4
50
- optional :row_key, :bytes, 2
51
- repeated :mutations, :message, 3, "google.bigtable.v2.Mutation"
52
- end
53
- add_message "google.bigtable.v2.MutateRowResponse" do
54
- end
55
- add_message "google.bigtable.v2.MutateRowsRequest" do
56
- optional :table_name, :string, 1
57
- optional :app_profile_id, :string, 3
58
- repeated :entries, :message, 2, "google.bigtable.v2.MutateRowsRequest.Entry"
59
- end
60
- add_message "google.bigtable.v2.MutateRowsRequest.Entry" do
61
- optional :row_key, :bytes, 1
62
- repeated :mutations, :message, 2, "google.bigtable.v2.Mutation"
63
- end
64
- add_message "google.bigtable.v2.MutateRowsResponse" do
65
- repeated :entries, :message, 1, "google.bigtable.v2.MutateRowsResponse.Entry"
66
- end
67
- add_message "google.bigtable.v2.MutateRowsResponse.Entry" do
68
- optional :index, :int64, 1
69
- optional :status, :message, 2, "google.rpc.Status"
70
- end
71
- add_message "google.bigtable.v2.CheckAndMutateRowRequest" do
72
- optional :table_name, :string, 1
73
- optional :app_profile_id, :string, 7
74
- optional :row_key, :bytes, 2
75
- optional :predicate_filter, :message, 6, "google.bigtable.v2.RowFilter"
76
- repeated :true_mutations, :message, 4, "google.bigtable.v2.Mutation"
77
- repeated :false_mutations, :message, 5, "google.bigtable.v2.Mutation"
78
- end
79
- add_message "google.bigtable.v2.CheckAndMutateRowResponse" do
80
- optional :predicate_matched, :bool, 1
81
- end
82
- add_message "google.bigtable.v2.ReadModifyWriteRowRequest" do
83
- optional :table_name, :string, 1
84
- optional :app_profile_id, :string, 4
85
- optional :row_key, :bytes, 2
86
- repeated :rules, :message, 3, "google.bigtable.v2.ReadModifyWriteRule"
87
- end
88
- add_message "google.bigtable.v2.ReadModifyWriteRowResponse" do
89
- optional :row, :message, 1, "google.bigtable.v2.Row"
90
- end
91
- end
92
-
93
- module Google
94
- module Bigtable
95
- module V2
96
- ReadRowsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsRequest").msgclass
97
- ReadRowsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsResponse").msgclass
98
- ReadRowsResponse::CellChunk = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsResponse.CellChunk").msgclass
99
- SampleRowKeysRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.SampleRowKeysRequest").msgclass
100
- SampleRowKeysResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.SampleRowKeysResponse").msgclass
101
- MutateRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowRequest").msgclass
102
- MutateRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowResponse").msgclass
103
- MutateRowsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest").msgclass
104
- MutateRowsRequest::Entry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest.Entry").msgclass
105
- MutateRowsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse").msgclass
106
- MutateRowsResponse::Entry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse.Entry").msgclass
107
- CheckAndMutateRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowRequest").msgclass
108
- CheckAndMutateRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowResponse").msgclass
109
- ReadModifyWriteRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRowRequest").msgclass
110
- ReadModifyWriteRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRowResponse").msgclass
111
- end
112
- end
113
- end
@@ -1,68 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/bigtable/v2/bigtable.proto for package 'google.bigtable.v2'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/bigtable/v2/bigtable_pb'
22
-
23
- module Google
24
- module Bigtable
25
- module V2
26
- module Bigtable
27
- # Service for reading from and writing to existing Bigtable tables.
28
- class Service
29
-
30
- include GRPC::GenericService
31
-
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.bigtable.v2.Bigtable'
35
-
36
- # Streams back the contents of all requested rows in key order, optionally
37
- # applying the same Reader filter to each. Depending on their size,
38
- # rows and cells may be broken up across multiple responses, but
39
- # atomicity of each row will still be preserved. See the
40
- # ReadRowsResponse documentation for details.
41
- rpc :ReadRows, ReadRowsRequest, stream(ReadRowsResponse)
42
- # Returns a sample of row keys in the table. The returned row keys will
43
- # delimit contiguous sections of the table of approximately equal size,
44
- # which can be used to break up the data for distributed tasks like
45
- # mapreduces.
46
- rpc :SampleRowKeys, SampleRowKeysRequest, stream(SampleRowKeysResponse)
47
- # Mutates a row atomically. Cells already present in the row are left
48
- # unchanged unless explicitly changed by `mutation`.
49
- rpc :MutateRow, MutateRowRequest, MutateRowResponse
50
- # Mutates multiple rows in a batch. Each individual row is mutated
51
- # atomically as in MutateRow, but the entire batch is not executed
52
- # atomically.
53
- rpc :MutateRows, MutateRowsRequest, stream(MutateRowsResponse)
54
- # Mutates a row atomically based on the output of a predicate Reader filter.
55
- rpc :CheckAndMutateRow, CheckAndMutateRowRequest, CheckAndMutateRowResponse
56
- # Modifies a row atomically on the server. The method reads the latest
57
- # existing timestamp and value from the specified columns and writes a new
58
- # entry based on pre-defined read/modify/write rules. The new value for the
59
- # timestamp is the greater of the existing timestamp or the current server
60
- # time. The method returns the new contents of all modified cells.
61
- rpc :ReadModifyWriteRow, ReadModifyWriteRowRequest, ReadModifyWriteRowResponse
62
- end
63
-
64
- Stub = Service.rpc_stub_class
65
- end
66
- end
67
- end
68
- end
@@ -1,156 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/v2/data.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.bigtable.v2.Row" do
9
- optional :key, :bytes, 1
10
- repeated :families, :message, 2, "google.bigtable.v2.Family"
11
- end
12
- add_message "google.bigtable.v2.Family" do
13
- optional :name, :string, 1
14
- repeated :columns, :message, 2, "google.bigtable.v2.Column"
15
- end
16
- add_message "google.bigtable.v2.Column" do
17
- optional :qualifier, :bytes, 1
18
- repeated :cells, :message, 2, "google.bigtable.v2.Cell"
19
- end
20
- add_message "google.bigtable.v2.Cell" do
21
- optional :timestamp_micros, :int64, 1
22
- optional :value, :bytes, 2
23
- repeated :labels, :string, 3
24
- end
25
- add_message "google.bigtable.v2.RowRange" do
26
- oneof :start_key do
27
- optional :start_key_closed, :bytes, 1
28
- optional :start_key_open, :bytes, 2
29
- end
30
- oneof :end_key do
31
- optional :end_key_open, :bytes, 3
32
- optional :end_key_closed, :bytes, 4
33
- end
34
- end
35
- add_message "google.bigtable.v2.RowSet" do
36
- repeated :row_keys, :bytes, 1
37
- repeated :row_ranges, :message, 2, "google.bigtable.v2.RowRange"
38
- end
39
- add_message "google.bigtable.v2.ColumnRange" do
40
- optional :family_name, :string, 1
41
- oneof :start_qualifier do
42
- optional :start_qualifier_closed, :bytes, 2
43
- optional :start_qualifier_open, :bytes, 3
44
- end
45
- oneof :end_qualifier do
46
- optional :end_qualifier_closed, :bytes, 4
47
- optional :end_qualifier_open, :bytes, 5
48
- end
49
- end
50
- add_message "google.bigtable.v2.TimestampRange" do
51
- optional :start_timestamp_micros, :int64, 1
52
- optional :end_timestamp_micros, :int64, 2
53
- end
54
- add_message "google.bigtable.v2.ValueRange" do
55
- oneof :start_value do
56
- optional :start_value_closed, :bytes, 1
57
- optional :start_value_open, :bytes, 2
58
- end
59
- oneof :end_value do
60
- optional :end_value_closed, :bytes, 3
61
- optional :end_value_open, :bytes, 4
62
- end
63
- end
64
- add_message "google.bigtable.v2.RowFilter" do
65
- oneof :filter do
66
- optional :chain, :message, 1, "google.bigtable.v2.RowFilter.Chain"
67
- optional :interleave, :message, 2, "google.bigtable.v2.RowFilter.Interleave"
68
- optional :condition, :message, 3, "google.bigtable.v2.RowFilter.Condition"
69
- optional :sink, :bool, 16
70
- optional :pass_all_filter, :bool, 17
71
- optional :block_all_filter, :bool, 18
72
- optional :row_key_regex_filter, :bytes, 4
73
- optional :row_sample_filter, :double, 14
74
- optional :family_name_regex_filter, :string, 5
75
- optional :column_qualifier_regex_filter, :bytes, 6
76
- optional :column_range_filter, :message, 7, "google.bigtable.v2.ColumnRange"
77
- optional :timestamp_range_filter, :message, 8, "google.bigtable.v2.TimestampRange"
78
- optional :value_regex_filter, :bytes, 9
79
- optional :value_range_filter, :message, 15, "google.bigtable.v2.ValueRange"
80
- optional :cells_per_row_offset_filter, :int32, 10
81
- optional :cells_per_row_limit_filter, :int32, 11
82
- optional :cells_per_column_limit_filter, :int32, 12
83
- optional :strip_value_transformer, :bool, 13
84
- optional :apply_label_transformer, :string, 19
85
- end
86
- end
87
- add_message "google.bigtable.v2.RowFilter.Chain" do
88
- repeated :filters, :message, 1, "google.bigtable.v2.RowFilter"
89
- end
90
- add_message "google.bigtable.v2.RowFilter.Interleave" do
91
- repeated :filters, :message, 1, "google.bigtable.v2.RowFilter"
92
- end
93
- add_message "google.bigtable.v2.RowFilter.Condition" do
94
- optional :predicate_filter, :message, 1, "google.bigtable.v2.RowFilter"
95
- optional :true_filter, :message, 2, "google.bigtable.v2.RowFilter"
96
- optional :false_filter, :message, 3, "google.bigtable.v2.RowFilter"
97
- end
98
- add_message "google.bigtable.v2.Mutation" do
99
- oneof :mutation do
100
- optional :set_cell, :message, 1, "google.bigtable.v2.Mutation.SetCell"
101
- optional :delete_from_column, :message, 2, "google.bigtable.v2.Mutation.DeleteFromColumn"
102
- optional :delete_from_family, :message, 3, "google.bigtable.v2.Mutation.DeleteFromFamily"
103
- optional :delete_from_row, :message, 4, "google.bigtable.v2.Mutation.DeleteFromRow"
104
- end
105
- end
106
- add_message "google.bigtable.v2.Mutation.SetCell" do
107
- optional :family_name, :string, 1
108
- optional :column_qualifier, :bytes, 2
109
- optional :timestamp_micros, :int64, 3
110
- optional :value, :bytes, 4
111
- end
112
- add_message "google.bigtable.v2.Mutation.DeleteFromColumn" do
113
- optional :family_name, :string, 1
114
- optional :column_qualifier, :bytes, 2
115
- optional :time_range, :message, 3, "google.bigtable.v2.TimestampRange"
116
- end
117
- add_message "google.bigtable.v2.Mutation.DeleteFromFamily" do
118
- optional :family_name, :string, 1
119
- end
120
- add_message "google.bigtable.v2.Mutation.DeleteFromRow" do
121
- end
122
- add_message "google.bigtable.v2.ReadModifyWriteRule" do
123
- optional :family_name, :string, 1
124
- optional :column_qualifier, :bytes, 2
125
- oneof :rule do
126
- optional :append_value, :bytes, 3
127
- optional :increment_amount, :int64, 4
128
- end
129
- end
130
- end
131
-
132
- module Google
133
- module Bigtable
134
- module V2
135
- Row = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Row").msgclass
136
- Family = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Family").msgclass
137
- Column = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Column").msgclass
138
- Cell = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Cell").msgclass
139
- RowRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowRange").msgclass
140
- RowSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowSet").msgclass
141
- ColumnRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ColumnRange").msgclass
142
- TimestampRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.TimestampRange").msgclass
143
- ValueRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ValueRange").msgclass
144
- RowFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter").msgclass
145
- RowFilter::Chain = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter.Chain").msgclass
146
- RowFilter::Interleave = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter.Interleave").msgclass
147
- RowFilter::Condition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter.Condition").msgclass
148
- Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation").msgclass
149
- Mutation::SetCell = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.SetCell").msgclass
150
- Mutation::DeleteFromColumn = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.DeleteFromColumn").msgclass
151
- Mutation::DeleteFromFamily = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.DeleteFromFamily").msgclass
152
- Mutation::DeleteFromRow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.DeleteFromRow").msgclass
153
- ReadModifyWriteRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRule").msgclass
154
- end
155
- end
156
- end