google-cloud-bigtable 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/CHANGELOG.md +54 -0
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google-cloud-bigtable.rb +29 -27
- data/lib/google/cloud/bigtable.rb +18 -26
- data/lib/google/cloud/bigtable/app_profile.rb +3 -3
- data/lib/google/cloud/bigtable/app_profile/list.rb +6 -4
- 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 +1 -1
- data/lib/google/cloud/bigtable/cluster.rb +101 -2
- data/lib/google/cloud/bigtable/cluster/list.rb +2 -2
- data/lib/google/cloud/bigtable/column_family.rb +2 -2
- data/lib/google/cloud/bigtable/column_family_map.rb +11 -11
- data/lib/google/cloud/bigtable/column_range.rb +2 -2
- data/lib/google/cloud/bigtable/credentials.rb +36 -2
- data/lib/google/cloud/bigtable/gc_rule.rb +7 -7
- data/lib/google/cloud/bigtable/instance.rb +6 -6
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +1 -1
- data/lib/google/cloud/bigtable/instance/list.rb +2 -2
- data/lib/google/cloud/bigtable/longrunning_job.rb +13 -2
- data/lib/google/cloud/bigtable/mutation_entry.rb +10 -9
- data/lib/google/cloud/bigtable/mutation_operations.rb +2 -2
- data/lib/google/cloud/bigtable/project.rb +1 -1
- data/lib/google/cloud/bigtable/read_modify_write_rule.rb +2 -2
- data/lib/google/cloud/bigtable/read_operations.rb +2 -2
- data/lib/google/cloud/bigtable/routing_policy.rb +2 -2
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_range.rb +2 -2
- data/lib/google/cloud/bigtable/rows_mutator.rb +3 -3
- data/lib/google/cloud/bigtable/rows_reader.rb +10 -10
- data/lib/google/cloud/bigtable/sample_row_key.rb +2 -2
- data/lib/google/cloud/bigtable/service.rb +241 -245
- data/lib/google/cloud/bigtable/table.rb +5 -4
- data/lib/google/cloud/bigtable/table/cluster_state.rb +27 -6
- data/lib/google/cloud/bigtable/table/list.rb +2 -2
- data/lib/google/cloud/bigtable/table/restore_job.rb +117 -0
- data/lib/google/cloud/bigtable/value_range.rb +2 -2
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +18 -96
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +0 -142
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +0 -87
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +0 -141
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +0 -127
- data/lib/google/bigtable/admin/v2/common_pb.rb +0 -25
- data/lib/google/bigtable/admin/v2/instance_pb.rb +0 -73
- data/lib/google/bigtable/admin/v2/table_pb.rb +0 -89
- data/lib/google/bigtable/v2/bigtable_pb.rb +0 -113
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +0 -68
- data/lib/google/bigtable/v2/data_pb.rb +0 -156
- data/lib/google/cloud/bigtable/admin.rb +0 -202
- data/lib/google/cloud/bigtable/admin/credentials.rb +0 -27
- data/lib/google/cloud/bigtable/admin/v2.rb +0 -222
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +0 -1441
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +0 -139
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +0 -1245
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +0 -133
- data/lib/google/cloud/bigtable/admin/v2/credentials.rb +0 -51
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +0 -290
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +0 -359
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +0 -195
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +0 -210
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/bigtable/v2.rb +0 -146
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +0 -588
- data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +0 -83
- data/lib/google/cloud/bigtable/v2/credentials.rb +0 -46
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +0 -290
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +0 -493
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +0 -34
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +0 -39
@@ -1,25 +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/api/annotations_pb'
|
8
|
-
require 'google/protobuf/timestamp_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_enum "google.bigtable.admin.v2.StorageType" do
|
11
|
-
value :STORAGE_TYPE_UNSPECIFIED, 0
|
12
|
-
value :SSD, 1
|
13
|
-
value :HDD, 2
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
module Google
|
18
|
-
module Bigtable
|
19
|
-
module Admin
|
20
|
-
module V2
|
21
|
-
StorageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,73 +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/annotations_pb'
|
8
|
-
require 'google/bigtable/admin/v2/common_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.bigtable.admin.v2.Instance" do
|
11
|
-
optional :name, :string, 1
|
12
|
-
optional :display_name, :string, 2
|
13
|
-
optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
|
14
|
-
optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
|
15
|
-
map :labels, :string, :string, 5
|
16
|
-
end
|
17
|
-
add_enum "google.bigtable.admin.v2.Instance.State" do
|
18
|
-
value :STATE_NOT_KNOWN, 0
|
19
|
-
value :READY, 1
|
20
|
-
value :CREATING, 2
|
21
|
-
end
|
22
|
-
add_enum "google.bigtable.admin.v2.Instance.Type" do
|
23
|
-
value :TYPE_UNSPECIFIED, 0
|
24
|
-
value :PRODUCTION, 1
|
25
|
-
value :DEVELOPMENT, 2
|
26
|
-
end
|
27
|
-
add_message "google.bigtable.admin.v2.Cluster" do
|
28
|
-
optional :name, :string, 1
|
29
|
-
optional :location, :string, 2
|
30
|
-
optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
|
31
|
-
optional :serve_nodes, :int32, 4
|
32
|
-
optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
|
33
|
-
end
|
34
|
-
add_enum "google.bigtable.admin.v2.Cluster.State" do
|
35
|
-
value :STATE_NOT_KNOWN, 0
|
36
|
-
value :READY, 1
|
37
|
-
value :CREATING, 2
|
38
|
-
value :RESIZING, 3
|
39
|
-
value :DISABLED, 4
|
40
|
-
end
|
41
|
-
add_message "google.bigtable.admin.v2.AppProfile" do
|
42
|
-
optional :name, :string, 1
|
43
|
-
optional :etag, :string, 2
|
44
|
-
optional :description, :string, 3
|
45
|
-
oneof :routing_policy do
|
46
|
-
optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
|
47
|
-
optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
|
48
|
-
end
|
49
|
-
end
|
50
|
-
add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
|
51
|
-
end
|
52
|
-
add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
|
53
|
-
optional :cluster_id, :string, 1
|
54
|
-
optional :allow_transactional_writes, :bool, 2
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
module Google
|
59
|
-
module Bigtable
|
60
|
-
module Admin
|
61
|
-
module V2
|
62
|
-
Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
|
63
|
-
Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
|
64
|
-
Instance::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
|
65
|
-
Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
|
66
|
-
Cluster::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
|
67
|
-
AppProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
|
68
|
-
AppProfile::MultiClusterRoutingUseAny = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
|
69
|
-
AppProfile::SingleClusterRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
@@ -1,89 +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/annotations_pb'
|
8
|
-
require 'google/protobuf/duration_pb'
|
9
|
-
require 'google/protobuf/timestamp_pb'
|
10
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
-
add_message "google.bigtable.admin.v2.Table" do
|
12
|
-
optional :name, :string, 1
|
13
|
-
map :cluster_states, :string, :message, 2, "google.bigtable.admin.v2.Table.ClusterState"
|
14
|
-
map :column_families, :string, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
|
15
|
-
optional :granularity, :enum, 4, "google.bigtable.admin.v2.Table.TimestampGranularity"
|
16
|
-
end
|
17
|
-
add_message "google.bigtable.admin.v2.Table.ClusterState" do
|
18
|
-
optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
|
19
|
-
end
|
20
|
-
add_enum "google.bigtable.admin.v2.Table.ClusterState.ReplicationState" do
|
21
|
-
value :STATE_NOT_KNOWN, 0
|
22
|
-
value :INITIALIZING, 1
|
23
|
-
value :PLANNED_MAINTENANCE, 2
|
24
|
-
value :UNPLANNED_MAINTENANCE, 3
|
25
|
-
value :READY, 4
|
26
|
-
end
|
27
|
-
add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
|
28
|
-
value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
|
29
|
-
value :MILLIS, 1
|
30
|
-
end
|
31
|
-
add_enum "google.bigtable.admin.v2.Table.View" do
|
32
|
-
value :VIEW_UNSPECIFIED, 0
|
33
|
-
value :NAME_ONLY, 1
|
34
|
-
value :SCHEMA_VIEW, 2
|
35
|
-
value :REPLICATION_VIEW, 3
|
36
|
-
value :FULL, 4
|
37
|
-
end
|
38
|
-
add_message "google.bigtable.admin.v2.ColumnFamily" do
|
39
|
-
optional :gc_rule, :message, 1, "google.bigtable.admin.v2.GcRule"
|
40
|
-
end
|
41
|
-
add_message "google.bigtable.admin.v2.GcRule" do
|
42
|
-
oneof :rule do
|
43
|
-
optional :max_num_versions, :int32, 1
|
44
|
-
optional :max_age, :message, 2, "google.protobuf.Duration"
|
45
|
-
optional :intersection, :message, 3, "google.bigtable.admin.v2.GcRule.Intersection"
|
46
|
-
optional :union, :message, 4, "google.bigtable.admin.v2.GcRule.Union"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
add_message "google.bigtable.admin.v2.GcRule.Intersection" do
|
50
|
-
repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
|
51
|
-
end
|
52
|
-
add_message "google.bigtable.admin.v2.GcRule.Union" do
|
53
|
-
repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
|
54
|
-
end
|
55
|
-
add_message "google.bigtable.admin.v2.Snapshot" do
|
56
|
-
optional :name, :string, 1
|
57
|
-
optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
|
58
|
-
optional :data_size_bytes, :int64, 3
|
59
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
60
|
-
optional :delete_time, :message, 5, "google.protobuf.Timestamp"
|
61
|
-
optional :state, :enum, 6, "google.bigtable.admin.v2.Snapshot.State"
|
62
|
-
optional :description, :string, 7
|
63
|
-
end
|
64
|
-
add_enum "google.bigtable.admin.v2.Snapshot.State" do
|
65
|
-
value :STATE_NOT_KNOWN, 0
|
66
|
-
value :READY, 1
|
67
|
-
value :CREATING, 2
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
module Google
|
72
|
-
module Bigtable
|
73
|
-
module Admin
|
74
|
-
module V2
|
75
|
-
Table = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
|
76
|
-
Table::ClusterState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
|
77
|
-
Table::ClusterState::ReplicationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
|
78
|
-
Table::TimestampGranularity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule
|
79
|
-
Table::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule
|
80
|
-
ColumnFamily = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass
|
81
|
-
GcRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass
|
82
|
-
GcRule::Intersection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass
|
83
|
-
GcRule::Union = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
|
84
|
-
Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
|
85
|
-
Snapshot::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
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
|