google-cloud-bigtable-v2 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/bigtable/v2/bigtable_pb.rb +1 -2
- data/lib/google/bigtable/v2/request_stats_pb.rb +7 -14
- data/lib/google/cloud/bigtable/v2/bigtable/client.rb +19 -21
- data/lib/google/cloud/bigtable/v2/version.rb +1 -1
- data/proto_docs/google/bigtable/v2/bigtable.rb +24 -28
- data/proto_docs/google/bigtable/v2/request_stats.rb +15 -32
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b488a55ed1e225be5451adb18dfc8738445870547b085792e064e8174e6071b
|
4
|
+
data.tar.gz: 6b48ff8142c4ee5e7ed9180597c16a4800a663514ce8946c626ac9539c65a2a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2522db32282c52ff18ed77baaa0e7612f4495b0adf964449703067494633f0a6df785931db8f3eddeb37ac7900bebf0de4c4fee80cdc3589630859b94f2c32f6
|
7
|
+
data.tar.gz: a30680ad0592b8e1dde4822ef8bafe539b5ba7d2c181fb6bc10df48dd7259cd33675da77a6c6a4dfbe0f32b13996ee840210e0cc21ea8be71e9c1417e13da2f8
|
@@ -26,8 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
add_enum "google.bigtable.v2.ReadRowsRequest.RequestStatsView" do
|
27
27
|
value :REQUEST_STATS_VIEW_UNSPECIFIED, 0
|
28
28
|
value :REQUEST_STATS_NONE, 1
|
29
|
-
value :
|
30
|
-
value :REQUEST_STATS_FULL, 3
|
29
|
+
value :REQUEST_STATS_FULL, 2
|
31
30
|
end
|
32
31
|
add_message "google.bigtable.v2.ReadRowsResponse" do
|
33
32
|
repeated :chunks, :message, 1, "google.bigtable.v2.ReadRowsResponse.CellChunk"
|
@@ -7,28 +7,22 @@ require 'google/protobuf/duration_pb'
|
|
7
7
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/bigtable/v2/request_stats.proto", :syntax => :proto3) do
|
10
|
-
add_message "google.bigtable.v2.
|
10
|
+
add_message "google.bigtable.v2.ReadIterationStats" do
|
11
11
|
optional :rows_seen_count, :int64, 1
|
12
12
|
optional :rows_returned_count, :int64, 2
|
13
13
|
optional :cells_seen_count, :int64, 3
|
14
14
|
optional :cells_returned_count, :int64, 4
|
15
|
-
optional :deletes_seen_count, :int64, 5
|
16
15
|
end
|
17
16
|
add_message "google.bigtable.v2.RequestLatencyStats" do
|
18
17
|
optional :frontend_server_latency, :message, 1, "google.protobuf.Duration"
|
19
18
|
end
|
20
|
-
add_message "google.bigtable.v2.
|
21
|
-
optional :
|
22
|
-
optional :request_latency_stats, :message, 2, "google.bigtable.v2.RequestLatencyStats"
|
23
|
-
end
|
24
|
-
add_message "google.bigtable.v2.AllReadStats" do
|
25
|
-
optional :read_iterator_stats, :message, 1, "google.bigtable.v2.ReadIteratorStats"
|
19
|
+
add_message "google.bigtable.v2.FullReadStatsView" do
|
20
|
+
optional :read_iteration_stats, :message, 1, "google.bigtable.v2.ReadIterationStats"
|
26
21
|
optional :request_latency_stats, :message, 2, "google.bigtable.v2.RequestLatencyStats"
|
27
22
|
end
|
28
23
|
add_message "google.bigtable.v2.RequestStats" do
|
29
|
-
oneof :
|
30
|
-
optional :
|
31
|
-
optional :all_read_stats, :message, 2, "google.bigtable.v2.AllReadStats"
|
24
|
+
oneof :stats_view do
|
25
|
+
optional :full_read_stats_view, :message, 1, "google.bigtable.v2.FullReadStatsView"
|
32
26
|
end
|
33
27
|
end
|
34
28
|
end
|
@@ -38,10 +32,9 @@ module Google
|
|
38
32
|
module Cloud
|
39
33
|
module Bigtable
|
40
34
|
module V2
|
41
|
-
|
35
|
+
ReadIterationStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadIterationStats").msgclass
|
42
36
|
RequestLatencyStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RequestLatencyStats").msgclass
|
43
|
-
|
44
|
-
AllReadStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.AllReadStats").msgclass
|
37
|
+
FullReadStatsView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.FullReadStatsView").msgclass
|
45
38
|
RequestStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RequestStats").msgclass
|
46
39
|
end
|
47
40
|
end
|
@@ -391,8 +391,8 @@ module Google
|
|
391
391
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
392
392
|
#
|
393
393
|
# @param table_name [::String]
|
394
|
-
# Required. The unique name of the table to which the mutation should be
|
395
|
-
#
|
394
|
+
# Required. The unique name of the table to which the mutation should be applied.
|
395
|
+
# Values are of the form
|
396
396
|
# `projects/<project>/instances/<instance>/tables/<table>`.
|
397
397
|
# @param app_profile_id [::String]
|
398
398
|
# This value specifies routing for replication. If not specified, the
|
@@ -400,9 +400,9 @@ module Google
|
|
400
400
|
# @param row_key [::String]
|
401
401
|
# Required. The key of the row to which the mutation should be applied.
|
402
402
|
# @param mutations [::Array<::Google::Cloud::Bigtable::V2::Mutation, ::Hash>]
|
403
|
-
# Required. Changes to be atomically applied to the specified row. Entries
|
404
|
-
#
|
405
|
-
#
|
403
|
+
# Required. Changes to be atomically applied to the specified row. Entries are applied
|
404
|
+
# in order, meaning that earlier mutations can be masked by later ones.
|
405
|
+
# Must contain at least one entry and at most 100000.
|
406
406
|
#
|
407
407
|
# @yield [response, operation] Access the result along with the RPC operation
|
408
408
|
# @yieldparam response [::Google::Cloud::Bigtable::V2::MutateRowResponse]
|
@@ -493,8 +493,7 @@ module Google
|
|
493
493
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
494
494
|
#
|
495
495
|
# @param table_name [::String]
|
496
|
-
# Required. The unique name of the table to which the mutations should be
|
497
|
-
# applied.
|
496
|
+
# Required. The unique name of the table to which the mutations should be applied.
|
498
497
|
# @param app_profile_id [::String]
|
499
498
|
# This value specifies routing for replication. If not specified, the
|
500
499
|
# "default" application profile will be used.
|
@@ -595,15 +594,15 @@ module Google
|
|
595
594
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
596
595
|
#
|
597
596
|
# @param table_name [::String]
|
598
|
-
# Required. The unique name of the table to which the conditional mutation
|
599
|
-
#
|
597
|
+
# Required. The unique name of the table to which the conditional mutation should be
|
598
|
+
# applied.
|
599
|
+
# Values are of the form
|
600
600
|
# `projects/<project>/instances/<instance>/tables/<table>`.
|
601
601
|
# @param app_profile_id [::String]
|
602
602
|
# This value specifies routing for replication. If not specified, the
|
603
603
|
# "default" application profile will be used.
|
604
604
|
# @param row_key [::String]
|
605
|
-
# Required. The key of the row to which the conditional mutation should be
|
606
|
-
# applied.
|
605
|
+
# Required. The key of the row to which the conditional mutation should be applied.
|
607
606
|
# @param predicate_filter [::Google::Cloud::Bigtable::V2::RowFilter, ::Hash]
|
608
607
|
# The filter to be applied to the contents of the specified row. Depending
|
609
608
|
# on whether or not any results are yielded, either `true_mutations` or
|
@@ -710,9 +709,8 @@ module Google
|
|
710
709
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
711
710
|
#
|
712
711
|
# @param name [::String]
|
713
|
-
# Required. The unique name of the instance to check permissions for as well
|
714
|
-
#
|
715
|
-
# `projects/<project>/instances/<instance>`.
|
712
|
+
# Required. The unique name of the instance to check permissions for as well as
|
713
|
+
# respond. Values are of the form `projects/<project>/instances/<instance>`.
|
716
714
|
# @param app_profile_id [::String]
|
717
715
|
# This value specifies routing for replication. If not specified, the
|
718
716
|
# "default" application profile will be used.
|
@@ -808,19 +806,19 @@ module Google
|
|
808
806
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
809
807
|
#
|
810
808
|
# @param table_name [::String]
|
811
|
-
# Required. The unique name of the table to which the read/modify/write rules
|
812
|
-
#
|
809
|
+
# Required. The unique name of the table to which the read/modify/write rules should be
|
810
|
+
# applied.
|
811
|
+
# Values are of the form
|
813
812
|
# `projects/<project>/instances/<instance>/tables/<table>`.
|
814
813
|
# @param app_profile_id [::String]
|
815
814
|
# This value specifies routing for replication. If not specified, the
|
816
815
|
# "default" application profile will be used.
|
817
816
|
# @param row_key [::String]
|
818
|
-
# Required. The key of the row to which the read/modify/write rules should be
|
819
|
-
# applied.
|
817
|
+
# Required. The key of the row to which the read/modify/write rules should be applied.
|
820
818
|
# @param rules [::Array<::Google::Cloud::Bigtable::V2::ReadModifyWriteRule, ::Hash>]
|
821
|
-
# Required. Rules specifying how the specified row's contents are to be
|
822
|
-
#
|
823
|
-
#
|
819
|
+
# Required. Rules specifying how the specified row's contents are to be transformed
|
820
|
+
# into writes. Entries are applied in order, meaning that earlier rules will
|
821
|
+
# affect the results of later ones.
|
824
822
|
#
|
825
823
|
# @yield [response, operation] Access the result along with the RPC operation
|
826
824
|
# @yieldparam response [::Google::Cloud::Bigtable::V2::ReadModifyWriteRowResponse]
|
@@ -61,12 +61,9 @@ module Google
|
|
61
61
|
# RequestStats embedded message unset in the response.
|
62
62
|
REQUEST_STATS_NONE = 1
|
63
63
|
|
64
|
-
# Include stats related to the efficiency of the read.
|
65
|
-
REQUEST_STATS_EFFICIENCY = 2
|
66
|
-
|
67
64
|
# Include the full set of available RequestStats in the response,
|
68
65
|
# applicable to this read.
|
69
|
-
REQUEST_STATS_FULL =
|
66
|
+
REQUEST_STATS_FULL = 2
|
70
67
|
end
|
71
68
|
end
|
72
69
|
|
@@ -212,8 +209,8 @@ module Google
|
|
212
209
|
# Request message for Bigtable.MutateRow.
|
213
210
|
# @!attribute [rw] table_name
|
214
211
|
# @return [::String]
|
215
|
-
# Required. The unique name of the table to which the mutation should be
|
216
|
-
#
|
212
|
+
# Required. The unique name of the table to which the mutation should be applied.
|
213
|
+
# Values are of the form
|
217
214
|
# `projects/<project>/instances/<instance>/tables/<table>`.
|
218
215
|
# @!attribute [rw] app_profile_id
|
219
216
|
# @return [::String]
|
@@ -224,9 +221,9 @@ module Google
|
|
224
221
|
# Required. The key of the row to which the mutation should be applied.
|
225
222
|
# @!attribute [rw] mutations
|
226
223
|
# @return [::Array<::Google::Cloud::Bigtable::V2::Mutation>]
|
227
|
-
# Required. Changes to be atomically applied to the specified row. Entries
|
228
|
-
#
|
229
|
-
#
|
224
|
+
# Required. Changes to be atomically applied to the specified row. Entries are applied
|
225
|
+
# in order, meaning that earlier mutations can be masked by later ones.
|
226
|
+
# Must contain at least one entry and at most 100000.
|
230
227
|
class MutateRowRequest
|
231
228
|
include ::Google::Protobuf::MessageExts
|
232
229
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -241,8 +238,7 @@ module Google
|
|
241
238
|
# Request message for BigtableService.MutateRows.
|
242
239
|
# @!attribute [rw] table_name
|
243
240
|
# @return [::String]
|
244
|
-
# Required. The unique name of the table to which the mutations should be
|
245
|
-
# applied.
|
241
|
+
# Required. The unique name of the table to which the mutations should be applied.
|
246
242
|
# @!attribute [rw] app_profile_id
|
247
243
|
# @return [::String]
|
248
244
|
# This value specifies routing for replication. If not specified, the
|
@@ -264,9 +260,10 @@ module Google
|
|
264
260
|
# The key of the row to which the `mutations` should be applied.
|
265
261
|
# @!attribute [rw] mutations
|
266
262
|
# @return [::Array<::Google::Cloud::Bigtable::V2::Mutation>]
|
267
|
-
# Required. Changes to be atomically applied to the specified row.
|
268
|
-
#
|
269
|
-
#
|
263
|
+
# Required. Changes to be atomically applied to the specified row. Mutations are
|
264
|
+
# applied in order, meaning that earlier mutations can be masked by
|
265
|
+
# later ones.
|
266
|
+
# You must specify at least one mutation.
|
270
267
|
class Entry
|
271
268
|
include ::Google::Protobuf::MessageExts
|
272
269
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -301,8 +298,9 @@ module Google
|
|
301
298
|
# Request message for Bigtable.CheckAndMutateRow.
|
302
299
|
# @!attribute [rw] table_name
|
303
300
|
# @return [::String]
|
304
|
-
# Required. The unique name of the table to which the conditional mutation
|
305
|
-
#
|
301
|
+
# Required. The unique name of the table to which the conditional mutation should be
|
302
|
+
# applied.
|
303
|
+
# Values are of the form
|
306
304
|
# `projects/<project>/instances/<instance>/tables/<table>`.
|
307
305
|
# @!attribute [rw] app_profile_id
|
308
306
|
# @return [::String]
|
@@ -310,8 +308,7 @@ module Google
|
|
310
308
|
# "default" application profile will be used.
|
311
309
|
# @!attribute [rw] row_key
|
312
310
|
# @return [::String]
|
313
|
-
# Required. The key of the row to which the conditional mutation should be
|
314
|
-
# applied.
|
311
|
+
# Required. The key of the row to which the conditional mutation should be applied.
|
315
312
|
# @!attribute [rw] predicate_filter
|
316
313
|
# @return [::Google::Cloud::Bigtable::V2::RowFilter]
|
317
314
|
# The filter to be applied to the contents of the specified row. Depending
|
@@ -350,9 +347,8 @@ module Google
|
|
350
347
|
# Request message for client connection keep-alive and warming.
|
351
348
|
# @!attribute [rw] name
|
352
349
|
# @return [::String]
|
353
|
-
# Required. The unique name of the instance to check permissions for as well
|
354
|
-
#
|
355
|
-
# `projects/<project>/instances/<instance>`.
|
350
|
+
# Required. The unique name of the instance to check permissions for as well as
|
351
|
+
# respond. Values are of the form `projects/<project>/instances/<instance>`.
|
356
352
|
# @!attribute [rw] app_profile_id
|
357
353
|
# @return [::String]
|
358
354
|
# This value specifies routing for replication. If not specified, the
|
@@ -371,8 +367,9 @@ module Google
|
|
371
367
|
# Request message for Bigtable.ReadModifyWriteRow.
|
372
368
|
# @!attribute [rw] table_name
|
373
369
|
# @return [::String]
|
374
|
-
# Required. The unique name of the table to which the read/modify/write rules
|
375
|
-
#
|
370
|
+
# Required. The unique name of the table to which the read/modify/write rules should be
|
371
|
+
# applied.
|
372
|
+
# Values are of the form
|
376
373
|
# `projects/<project>/instances/<instance>/tables/<table>`.
|
377
374
|
# @!attribute [rw] app_profile_id
|
378
375
|
# @return [::String]
|
@@ -380,13 +377,12 @@ module Google
|
|
380
377
|
# "default" application profile will be used.
|
381
378
|
# @!attribute [rw] row_key
|
382
379
|
# @return [::String]
|
383
|
-
# Required. The key of the row to which the read/modify/write rules should be
|
384
|
-
# applied.
|
380
|
+
# Required. The key of the row to which the read/modify/write rules should be applied.
|
385
381
|
# @!attribute [rw] rules
|
386
382
|
# @return [::Array<::Google::Cloud::Bigtable::V2::ReadModifyWriteRule>]
|
387
|
-
# Required. Rules specifying how the specified row's contents are to be
|
388
|
-
#
|
389
|
-
#
|
383
|
+
# Required. Rules specifying how the specified row's contents are to be transformed
|
384
|
+
# into writes. Entries are applied in order, meaning that earlier rules will
|
385
|
+
# affect the results of later ones.
|
390
386
|
class ReadModifyWriteRowRequest
|
391
387
|
include ::Google::Protobuf::MessageExts
|
392
388
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Bigtable
|
23
23
|
module V2
|
24
|
-
#
|
24
|
+
# ReadIterationStats captures information about the iteration of rows or cells
|
25
25
|
# over the course of a read, e.g. how many results were scanned in a read
|
26
26
|
# operation versus the results returned.
|
27
27
|
# @!attribute [rw] rows_seen_count
|
@@ -38,10 +38,7 @@ module Google
|
|
38
38
|
# @!attribute [rw] cells_returned_count
|
39
39
|
# @return [::Integer]
|
40
40
|
# The cells returned as part of the request.
|
41
|
-
|
42
|
-
# @return [::Integer]
|
43
|
-
# The deletes seen as part of the request.
|
44
|
-
class ReadIteratorStats
|
41
|
+
class ReadIterationStats
|
45
42
|
include ::Google::Protobuf::MessageExts
|
46
43
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
44
|
end
|
@@ -61,30 +58,21 @@ module Google
|
|
61
58
|
# (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
|
62
59
|
# needs to be sent in the response before the latency measurement including
|
63
60
|
# that transmission is finalized.
|
61
|
+
#
|
62
|
+
# Note: This value includes the end-to-end latency of contacting nodes in
|
63
|
+
# the targeted cluster, e.g. measuring from when the first byte arrives at
|
64
|
+
# the frontend server, to when this value is sent back as the last value in
|
65
|
+
# the response, including any latency incurred by contacting nodes, waiting
|
66
|
+
# for results from nodes, and finally sending results from nodes back to the
|
67
|
+
# caller.
|
64
68
|
class RequestLatencyStats
|
65
69
|
include ::Google::Protobuf::MessageExts
|
66
70
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
71
|
end
|
68
72
|
|
69
|
-
#
|
70
|
-
# @!attribute [rw]
|
71
|
-
# @return [::Google::Cloud::Bigtable::V2::
|
72
|
-
# Iteration stats describe how efficient the read is, e.g. comparing
|
73
|
-
# rows seen vs. rows returned or cells seen vs cells returned can provide an
|
74
|
-
# indication of read efficiency (the higher the ratio of seen to retuned the
|
75
|
-
# better).
|
76
|
-
# @!attribute [rw] request_latency_stats
|
77
|
-
# @return [::Google::Cloud::Bigtable::V2::RequestLatencyStats]
|
78
|
-
# Request latency stats describe the time taken to complete a request, from
|
79
|
-
# the server side.
|
80
|
-
class ReadEfficiencyStats
|
81
|
-
include ::Google::Protobuf::MessageExts
|
82
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
-
end
|
84
|
-
|
85
|
-
# AllReadStats captures all known information about a read.
|
86
|
-
# @!attribute [rw] read_iterator_stats
|
87
|
-
# @return [::Google::Cloud::Bigtable::V2::ReadIteratorStats]
|
73
|
+
# FullReadStatsView captures all known information about a read.
|
74
|
+
# @!attribute [rw] read_iteration_stats
|
75
|
+
# @return [::Google::Cloud::Bigtable::V2::ReadIterationStats]
|
88
76
|
# Iteration stats describe how efficient the read is, e.g. comparing
|
89
77
|
# rows seen vs. rows returned or cells seen vs cells returned can provide an
|
90
78
|
# indication of read efficiency (the higher the ratio of seen to retuned the
|
@@ -93,7 +81,7 @@ module Google
|
|
93
81
|
# @return [::Google::Cloud::Bigtable::V2::RequestLatencyStats]
|
94
82
|
# Request latency stats describe the time taken to complete a request, from
|
95
83
|
# the server side.
|
96
|
-
class
|
84
|
+
class FullReadStatsView
|
97
85
|
include ::Google::Protobuf::MessageExts
|
98
86
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
87
|
end
|
@@ -102,13 +90,8 @@ module Google
|
|
102
90
|
# single request, helpful for evaluating the performance of the sent request.
|
103
91
|
# Currently, there are the following supported methods:
|
104
92
|
# * google.bigtable.v2.ReadRows
|
105
|
-
# @!attribute [rw]
|
106
|
-
# @return [::Google::Cloud::Bigtable::V2::
|
107
|
-
# Available with the
|
108
|
-
# ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
|
109
|
-
# package google.bigtable.v2.
|
110
|
-
# @!attribute [rw] all_read_stats
|
111
|
-
# @return [::Google::Cloud::Bigtable::V2::AllReadStats]
|
93
|
+
# @!attribute [rw] full_read_stats_view
|
94
|
+
# @return [::Google::Cloud::Bigtable::V2::FullReadStatsView]
|
112
95
|
# Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
|
113
96
|
# view, see package google.bigtable.v2.
|
114
97
|
class RequestStats
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigtable-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|