google-cloud-bigtable 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +19 -0
- data/AUTHENTICATION.md +177 -0
- data/CHANGELOG.md +223 -0
- data/CODE_OF_CONDUCT.md +40 -0
- data/CONTRIBUTING.md +188 -0
- data/EMULATOR.md +30 -0
- data/LICENSE +201 -0
- data/LOGGING.md +32 -0
- data/OVERVIEW.md +400 -0
- data/TROUBLESHOOTING.md +31 -0
- data/lib/google-cloud-bigtable.rb +171 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +145 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +90 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +208 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +154 -0
- data/lib/google/bigtable/admin/v2/common_pb.rb +30 -0
- data/lib/google/bigtable/admin/v2/instance_pb.rb +74 -0
- data/lib/google/bigtable/admin/v2/table_pb.rb +127 -0
- data/lib/google/bigtable/v2/bigtable_pb.rb +113 -0
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +68 -0
- data/lib/google/bigtable/v2/data_pb.rb +156 -0
- data/lib/google/cloud/bigtable.rb +184 -0
- data/lib/google/cloud/bigtable/admin.rb +202 -0
- data/lib/google/cloud/bigtable/admin/credentials.rb +27 -0
- data/lib/google/cloud/bigtable/admin/v2.rb +223 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +1451 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +139 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +1734 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +163 -0
- data/lib/google/cloud/bigtable/admin/v2/credentials.rb +51 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +297 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +587 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +193 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +303 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +64 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +33 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +151 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +51 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +91 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +29 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +222 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +113 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +39 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +45 -0
- data/lib/google/cloud/bigtable/app_profile.rb +439 -0
- data/lib/google/cloud/bigtable/app_profile/job.rb +99 -0
- data/lib/google/cloud/bigtable/app_profile/list.rb +165 -0
- data/lib/google/cloud/bigtable/backup.rb +324 -0
- data/lib/google/cloud/bigtable/backup/job.rb +87 -0
- data/lib/google/cloud/bigtable/backup/list.rb +167 -0
- data/lib/google/cloud/bigtable/chunk_processor.rb +241 -0
- data/lib/google/cloud/bigtable/cluster.rb +390 -0
- data/lib/google/cloud/bigtable/cluster/job.rb +88 -0
- data/lib/google/cloud/bigtable/cluster/list.rb +171 -0
- data/lib/google/cloud/bigtable/column_family.rb +73 -0
- data/lib/google/cloud/bigtable/column_family_map.rb +426 -0
- data/lib/google/cloud/bigtable/column_range.rb +194 -0
- data/lib/google/cloud/bigtable/convert.rb +83 -0
- data/lib/google/cloud/bigtable/credentials.rb +25 -0
- data/lib/google/cloud/bigtable/errors.rb +38 -0
- data/lib/google/cloud/bigtable/gc_rule.rb +334 -0
- data/lib/google/cloud/bigtable/instance.rb +935 -0
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +74 -0
- data/lib/google/cloud/bigtable/instance/job.rb +98 -0
- data/lib/google/cloud/bigtable/instance/list.rb +164 -0
- data/lib/google/cloud/bigtable/longrunning_job.rb +122 -0
- data/lib/google/cloud/bigtable/mutation_entry.rb +256 -0
- data/lib/google/cloud/bigtable/mutation_operations.rb +357 -0
- data/lib/google/cloud/bigtable/policy.rb +167 -0
- data/lib/google/cloud/bigtable/project.rb +471 -0
- data/lib/google/cloud/bigtable/read_modify_write_rule.rb +134 -0
- data/lib/google/cloud/bigtable/read_operations.rb +328 -0
- data/lib/google/cloud/bigtable/routing_policy.rb +172 -0
- data/lib/google/cloud/bigtable/row.rb +136 -0
- data/lib/google/cloud/bigtable/row_filter.rb +639 -0
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +590 -0
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +114 -0
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +621 -0
- data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +287 -0
- data/lib/google/cloud/bigtable/row_range.rb +179 -0
- data/lib/google/cloud/bigtable/rows_mutator.rb +113 -0
- data/lib/google/cloud/bigtable/rows_reader.rb +200 -0
- data/lib/google/cloud/bigtable/sample_row_key.rb +85 -0
- data/lib/google/cloud/bigtable/service.rb +913 -0
- data/lib/google/cloud/bigtable/status.rb +76 -0
- data/lib/google/cloud/bigtable/table.rb +686 -0
- data/lib/google/cloud/bigtable/table/cluster_state.rb +125 -0
- data/lib/google/cloud/bigtable/table/list.rb +154 -0
- data/lib/google/cloud/bigtable/table/restore_job.rb +117 -0
- data/lib/google/cloud/bigtable/v2.rb +146 -0
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +591 -0
- data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +83 -0
- data/lib/google/cloud/bigtable/v2/credentials.rb +46 -0
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +290 -0
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +493 -0
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +34 -0
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +39 -0
- data/lib/google/cloud/bigtable/value_range.rb +181 -0
- data/lib/google/cloud/bigtable/version.rb +22 -0
- metadata +337 -0
@@ -0,0 +1,30 @@
|
|
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
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
module Google::Bigtable::Admin::V2
|
28
|
+
OperationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OperationProgress").msgclass
|
29
|
+
StorageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
|
30
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
module Google::Bigtable::Admin::V2
|
66
|
+
Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
|
67
|
+
Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
|
68
|
+
Instance::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
|
69
|
+
Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
|
70
|
+
Cluster::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
|
71
|
+
AppProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
|
72
|
+
AppProfile::MultiClusterRoutingUseAny = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
|
73
|
+
AppProfile::SingleClusterRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass
|
74
|
+
end
|
@@ -0,0 +1,127 @@
|
|
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
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
module Google::Bigtable::Admin::V2
|
111
|
+
RestoreInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass
|
112
|
+
Table = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
|
113
|
+
Table::ClusterState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
|
114
|
+
Table::ClusterState::ReplicationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
|
115
|
+
Table::TimestampGranularity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule
|
116
|
+
Table::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule
|
117
|
+
ColumnFamily = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass
|
118
|
+
GcRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass
|
119
|
+
GcRule::Intersection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass
|
120
|
+
GcRule::Union = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
|
121
|
+
Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
|
122
|
+
Snapshot::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
|
123
|
+
Backup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass
|
124
|
+
Backup::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule
|
125
|
+
BackupInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass
|
126
|
+
RestoreSourceType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule
|
127
|
+
end
|
@@ -0,0 +1,113 @@
|
|
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
|
+
end
|
96
|
+
end
|
97
|
+
module Google::Bigtable::V2
|
98
|
+
ReadRowsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsRequest").msgclass
|
99
|
+
ReadRowsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsResponse").msgclass
|
100
|
+
ReadRowsResponse::CellChunk = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsResponse.CellChunk").msgclass
|
101
|
+
SampleRowKeysRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.SampleRowKeysRequest").msgclass
|
102
|
+
SampleRowKeysResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.SampleRowKeysResponse").msgclass
|
103
|
+
MutateRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowRequest").msgclass
|
104
|
+
MutateRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowResponse").msgclass
|
105
|
+
MutateRowsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest").msgclass
|
106
|
+
MutateRowsRequest::Entry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest.Entry").msgclass
|
107
|
+
MutateRowsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse").msgclass
|
108
|
+
MutateRowsResponse::Entry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse.Entry").msgclass
|
109
|
+
CheckAndMutateRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowRequest").msgclass
|
110
|
+
CheckAndMutateRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowResponse").msgclass
|
111
|
+
ReadModifyWriteRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRowRequest").msgclass
|
112
|
+
ReadModifyWriteRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRowResponse").msgclass
|
113
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/bigtable/v2/bigtable.proto for package 'Google::Cloud::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
|
+
end
|
26
|
+
end
|
27
|
+
module Google::Bigtable::V2
|
28
|
+
module Bigtable
|
29
|
+
# Service for reading from and writing to existing Bigtable tables.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'google.bigtable.v2.Bigtable'
|
37
|
+
|
38
|
+
# Streams back the contents of all requested rows in key order, optionally
|
39
|
+
# applying the same Reader filter to each. Depending on their size,
|
40
|
+
# rows and cells may be broken up across multiple responses, but
|
41
|
+
# atomicity of each row will still be preserved. See the
|
42
|
+
# ReadRowsResponse documentation for details.
|
43
|
+
rpc :ReadRows, ReadRowsRequest, stream(ReadRowsResponse)
|
44
|
+
# Returns a sample of row keys in the table. The returned row keys will
|
45
|
+
# delimit contiguous sections of the table of approximately equal size,
|
46
|
+
# which can be used to break up the data for distributed tasks like
|
47
|
+
# mapreduces.
|
48
|
+
rpc :SampleRowKeys, SampleRowKeysRequest, stream(SampleRowKeysResponse)
|
49
|
+
# Mutates a row atomically. Cells already present in the row are left
|
50
|
+
# unchanged unless explicitly changed by `mutation`.
|
51
|
+
rpc :MutateRow, MutateRowRequest, MutateRowResponse
|
52
|
+
# Mutates multiple rows in a batch. Each individual row is mutated
|
53
|
+
# atomically as in MutateRow, but the entire batch is not executed
|
54
|
+
# atomically.
|
55
|
+
rpc :MutateRows, MutateRowsRequest, stream(MutateRowsResponse)
|
56
|
+
# Mutates a row atomically based on the output of a predicate Reader filter.
|
57
|
+
rpc :CheckAndMutateRow, CheckAndMutateRowRequest, CheckAndMutateRowResponse
|
58
|
+
# Modifies a row atomically on the server. The method reads the latest
|
59
|
+
# existing timestamp and value from the specified columns and writes a new
|
60
|
+
# entry based on pre-defined read/modify/write rules. The new value for the
|
61
|
+
# timestamp is the greater of the existing timestamp or the current server
|
62
|
+
# time. The method returns the new contents of all modified cells.
|
63
|
+
rpc :ReadModifyWriteRow, ReadModifyWriteRowRequest, ReadModifyWriteRowResponse
|
64
|
+
end
|
65
|
+
|
66
|
+
Stub = Service.rpc_stub_class
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,156 @@
|
|
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
|
+
end
|
135
|
+
end
|
136
|
+
module Google::Bigtable::V2
|
137
|
+
Row = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Row").msgclass
|
138
|
+
Family = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Family").msgclass
|
139
|
+
Column = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Column").msgclass
|
140
|
+
Cell = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Cell").msgclass
|
141
|
+
RowRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowRange").msgclass
|
142
|
+
RowSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowSet").msgclass
|
143
|
+
ColumnRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ColumnRange").msgclass
|
144
|
+
TimestampRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.TimestampRange").msgclass
|
145
|
+
ValueRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ValueRange").msgclass
|
146
|
+
RowFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter").msgclass
|
147
|
+
RowFilter::Chain = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter.Chain").msgclass
|
148
|
+
RowFilter::Interleave = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter.Interleave").msgclass
|
149
|
+
RowFilter::Condition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowFilter.Condition").msgclass
|
150
|
+
Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation").msgclass
|
151
|
+
Mutation::SetCell = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.SetCell").msgclass
|
152
|
+
Mutation::DeleteFromColumn = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.DeleteFromColumn").msgclass
|
153
|
+
Mutation::DeleteFromFamily = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.DeleteFromFamily").msgclass
|
154
|
+
Mutation::DeleteFromRow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Mutation.DeleteFromRow").msgclass
|
155
|
+
ReadModifyWriteRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRule").msgclass
|
156
|
+
end
|