google-cloud-bigtable-v2 1.4.0 → 1.6.0
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/README.md +1 -1
- data/lib/google/bigtable/v2/bigtable_pb.rb +5 -1
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +3 -1
- data/lib/google/bigtable/v2/data_pb.rb +1 -1
- data/lib/google/cloud/bigtable/v2/bigtable/client.rb +176 -13
- data/lib/google/cloud/bigtable/v2/bigtable/paths.rb +19 -0
- data/lib/google/cloud/bigtable/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/routing.rb +1 -1
- data/proto_docs/google/bigtable/v2/bigtable.rb +124 -9
- data/proto_docs/google/bigtable/v2/data.rb +182 -24
- data/proto_docs/google/bigtable/v2/types.rb +36 -0
- metadata +6 -9
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
#
|
35
35
|
# Values are of the form
|
36
36
|
# `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
|
37
|
+
# @!attribute [rw] materialized_view_name
|
38
|
+
# @return [::String]
|
39
|
+
# Optional. The unique name of the MaterializedView from which to read.
|
40
|
+
#
|
41
|
+
# Values are of the form
|
42
|
+
# `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
|
37
43
|
# @!attribute [rw] app_profile_id
|
38
44
|
# @return [::String]
|
39
45
|
# This value specifies routing for replication. If not specified, the
|
@@ -181,10 +187,14 @@ module Google
|
|
181
187
|
# @return [::Boolean]
|
182
188
|
# Indicates that the client should drop all previous chunks for
|
183
189
|
# `row_key`, as it will be re-read from the beginning.
|
190
|
+
#
|
191
|
+
# Note: The following fields are mutually exclusive: `reset_row`, `commit_row`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
184
192
|
# @!attribute [rw] commit_row
|
185
193
|
# @return [::Boolean]
|
186
194
|
# Indicates that the client can safely process all previous chunks for
|
187
195
|
# `row_key`, as its data has been fully read.
|
196
|
+
#
|
197
|
+
# Note: The following fields are mutually exclusive: `commit_row`, `reset_row`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
188
198
|
class CellChunk
|
189
199
|
include ::Google::Protobuf::MessageExts
|
190
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -205,6 +215,12 @@ module Google
|
|
205
215
|
#
|
206
216
|
# Values are of the form
|
207
217
|
# `projects/<project>/instances/<instance>/tables/<table>/authorizedViews/<authorized_view>`.
|
218
|
+
# @!attribute [rw] materialized_view_name
|
219
|
+
# @return [::String]
|
220
|
+
# Optional. The unique name of the MaterializedView from which to read.
|
221
|
+
#
|
222
|
+
# Values are of the form
|
223
|
+
# `projects/<project>/instances/<instance>/materializedViews/<materialized_view>`.
|
208
224
|
# @!attribute [rw] app_profile_id
|
209
225
|
# @return [::String]
|
210
226
|
# This value specifies routing for replication. If not specified, the
|
@@ -544,6 +560,8 @@ module Google
|
|
544
560
|
# be within the change stream retention period, less than or equal to the
|
545
561
|
# current time, and after change stream creation, whichever is greater.
|
546
562
|
# This value is inclusive and will be truncated to microsecond granularity.
|
563
|
+
#
|
564
|
+
# Note: The following fields are mutually exclusive: `start_time`, `continuation_tokens`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
547
565
|
# @!attribute [rw] continuation_tokens
|
548
566
|
# @return [::Google::Cloud::Bigtable::V2::StreamContinuationTokens]
|
549
567
|
# Tokens that describe how to resume reading a stream where reading
|
@@ -556,6 +574,8 @@ module Google
|
|
556
574
|
# of a partition merge, the union of the token partitions must exactly
|
557
575
|
# cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
|
558
576
|
# returned.
|
577
|
+
#
|
578
|
+
# Note: The following fields are mutually exclusive: `continuation_tokens`, `start_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
559
579
|
# @!attribute [rw] end_time
|
560
580
|
# @return [::Google::Protobuf::Timestamp]
|
561
581
|
# If specified, OK will be returned when the stream advances beyond
|
@@ -575,12 +595,18 @@ module Google
|
|
575
595
|
# @!attribute [rw] data_change
|
576
596
|
# @return [::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange]
|
577
597
|
# A mutation to the partition.
|
598
|
+
#
|
599
|
+
# Note: The following fields are mutually exclusive: `data_change`, `heartbeat`, `close_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
578
600
|
# @!attribute [rw] heartbeat
|
579
601
|
# @return [::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::Heartbeat]
|
580
602
|
# A periodic heartbeat message.
|
603
|
+
#
|
604
|
+
# Note: The following fields are mutually exclusive: `heartbeat`, `data_change`, `close_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
581
605
|
# @!attribute [rw] close_stream
|
582
606
|
# @return [::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::CloseStream]
|
583
607
|
# An indication that the stream should be closed.
|
608
|
+
#
|
609
|
+
# Note: The following fields are mutually exclusive: `close_stream`, `data_change`, `heartbeat`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
584
610
|
class ReadChangeStreamResponse
|
585
611
|
include ::Google::Protobuf::MessageExts
|
586
612
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -758,9 +784,25 @@ module Google
|
|
758
784
|
# Optional. This value specifies routing for replication. If not specified,
|
759
785
|
# the `default` application profile will be used.
|
760
786
|
# @!attribute [rw] query
|
787
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
761
788
|
# @return [::String]
|
762
789
|
# Required. The query string.
|
790
|
+
#
|
791
|
+
# Exactly one of `query` and `prepared_query` is required. Setting both
|
792
|
+
# or neither is an `INVALID_ARGUMENT`.
|
793
|
+
# @!attribute [rw] prepared_query
|
794
|
+
# @return [::String]
|
795
|
+
# A prepared query that was returned from `PrepareQueryResponse`.
|
796
|
+
#
|
797
|
+
# Exactly one of `query` and `prepared_query` is required. Setting both
|
798
|
+
# or neither is an `INVALID_ARGUMENT`.
|
799
|
+
#
|
800
|
+
# Setting this field also places restrictions on several other fields:
|
801
|
+
# - `data_format` must be empty.
|
802
|
+
# - `validate_only` must be false.
|
803
|
+
# - `params` must match the `param_types` set in the `PrepareQueryRequest`.
|
763
804
|
# @!attribute [rw] proto_format
|
805
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
764
806
|
# @return [::Google::Cloud::Bigtable::V2::ProtoFormat]
|
765
807
|
# Protocol buffer format as described by ProtoSchema and ProtoRows
|
766
808
|
# messages.
|
@@ -783,17 +825,21 @@ module Google
|
|
783
825
|
#
|
784
826
|
# For example, if
|
785
827
|
# `params["firstName"] = bytes_value: "foo" type {bytes_type {}}`
|
786
|
-
#
|
787
|
-
#
|
828
|
+
# then `@firstName` will be replaced with googlesql bytes value "foo" in the
|
829
|
+
# query string during query evaluation.
|
788
830
|
#
|
789
|
-
#
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
831
|
+
# If `Value.kind` is not set, the value is treated as a NULL value of the
|
832
|
+
# given type. For example, if
|
833
|
+
# `params["firstName"] = type {string_type {}}`
|
834
|
+
# then `@firstName` will be replaced with googlesql null string.
|
793
835
|
#
|
794
|
-
#
|
795
|
-
#
|
796
|
-
#
|
836
|
+
# If `query` is set, any empty `Value.type` in the map will be rejected with
|
837
|
+
# `INVALID_ARGUMENT`.
|
838
|
+
#
|
839
|
+
# If `prepared_query` is set, any empty `Value.type` in the map will be
|
840
|
+
# inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty
|
841
|
+
# `Value.type` must match the corresponding `param_types` entry, or be
|
842
|
+
# rejected with `INVALID_ARGUMENT`.
|
797
843
|
class ExecuteQueryRequest
|
798
844
|
include ::Google::Protobuf::MessageExts
|
799
845
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -813,15 +859,84 @@ module Google
|
|
813
859
|
# @return [::Google::Cloud::Bigtable::V2::ResultSetMetadata]
|
814
860
|
# Structure of rows in this response stream. The first (and only the first)
|
815
861
|
# response streamed from the server will be of this type.
|
862
|
+
#
|
863
|
+
# Note: The following fields are mutually exclusive: `metadata`, `results`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
816
864
|
# @!attribute [rw] results
|
817
865
|
# @return [::Google::Cloud::Bigtable::V2::PartialResultSet]
|
818
866
|
# A partial result set with row data potentially including additional
|
819
867
|
# instructions on how recent past and future partial responses should be
|
820
868
|
# interpreted.
|
869
|
+
#
|
870
|
+
# Note: The following fields are mutually exclusive: `results`, `metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
821
871
|
class ExecuteQueryResponse
|
822
872
|
include ::Google::Protobuf::MessageExts
|
823
873
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
824
874
|
end
|
875
|
+
|
876
|
+
# Request message for Bigtable.PrepareQuery
|
877
|
+
# @!attribute [rw] instance_name
|
878
|
+
# @return [::String]
|
879
|
+
# Required. The unique name of the instance against which the query should be
|
880
|
+
# executed.
|
881
|
+
# Values are of the form `projects/<project>/instances/<instance>`
|
882
|
+
# @!attribute [rw] app_profile_id
|
883
|
+
# @return [::String]
|
884
|
+
# Optional. This value specifies routing for preparing the query. Note that
|
885
|
+
# this `app_profile_id` is only used for preparing the query. The actual
|
886
|
+
# query execution will use the app profile specified in the
|
887
|
+
# `ExecuteQueryRequest`. If not specified, the `default` application profile
|
888
|
+
# will be used.
|
889
|
+
# @!attribute [rw] query
|
890
|
+
# @return [::String]
|
891
|
+
# Required. The query string.
|
892
|
+
# @!attribute [rw] proto_format
|
893
|
+
# @return [::Google::Cloud::Bigtable::V2::ProtoFormat]
|
894
|
+
# Protocol buffer format as described by ProtoSchema and ProtoRows
|
895
|
+
# messages.
|
896
|
+
# @!attribute [rw] param_types
|
897
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::V2::Type}]
|
898
|
+
# Required. `param_types` is a map of parameter identifier strings to their
|
899
|
+
# `Type`s.
|
900
|
+
#
|
901
|
+
# In query string, a parameter placeholder consists of the
|
902
|
+
# `@` character followed by the parameter name (for example, `@firstName`) in
|
903
|
+
# the query string.
|
904
|
+
#
|
905
|
+
# For example, if param_types["firstName"] = Bytes then @firstName will be a
|
906
|
+
# query parameter of type Bytes. The specific `Value` to be used for the
|
907
|
+
# query execution must be sent in `ExecuteQueryRequest` in the `params` map.
|
908
|
+
class PrepareQueryRequest
|
909
|
+
include ::Google::Protobuf::MessageExts
|
910
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
911
|
+
|
912
|
+
# @!attribute [rw] key
|
913
|
+
# @return [::String]
|
914
|
+
# @!attribute [rw] value
|
915
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
916
|
+
class ParamTypesEntry
|
917
|
+
include ::Google::Protobuf::MessageExts
|
918
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
919
|
+
end
|
920
|
+
end
|
921
|
+
|
922
|
+
# Response message for Bigtable.PrepareQueryResponse
|
923
|
+
# @!attribute [rw] metadata
|
924
|
+
# @return [::Google::Cloud::Bigtable::V2::ResultSetMetadata]
|
925
|
+
# Structure of rows in the response stream of `ExecuteQueryResponse` for the
|
926
|
+
# returned `prepared_query`.
|
927
|
+
# @!attribute [rw] prepared_query
|
928
|
+
# @return [::String]
|
929
|
+
# A serialized prepared query. Clients should treat this as an opaque
|
930
|
+
# blob of bytes to send in `ExecuteQueryRequest`.
|
931
|
+
# @!attribute [rw] valid_until
|
932
|
+
# @return [::Google::Protobuf::Timestamp]
|
933
|
+
# The time at which the prepared query token becomes invalid.
|
934
|
+
# A token may become invalid early due to changes in the data being read, but
|
935
|
+
# it provides a guideline to refresh query plans asynchronously.
|
936
|
+
class PrepareQueryResponse
|
937
|
+
include ::Google::Protobuf::MessageExts
|
938
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
939
|
+
end
|
825
940
|
end
|
826
941
|
end
|
827
942
|
end
|