google-cloud-bigtable-v2 0.21.0 → 1.1.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/lib/google/bigtable/v2/bigtable_pb.rb +3 -1
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +2 -0
- data/lib/google/bigtable/v2/data_pb.rb +14 -1
- data/lib/google/bigtable/v2/types_pb.rb +67 -0
- data/lib/google/cloud/bigtable/v2/bigtable/client.rb +159 -9
- data/lib/google/cloud/bigtable/v2/version.rb +1 -1
- data/proto_docs/google/bigtable/v2/bigtable.rb +76 -0
- data/proto_docs/google/bigtable/v2/data.rb +137 -1
- data/proto_docs/google/bigtable/v2/types.rb +342 -0
- data/proto_docs/google/type/date.rb +53 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc6491a975355f4ac48c03369b66d2f22f64bdf52d341e764f81d1e29384c7eb
|
|
4
|
+
data.tar.gz: 492a2d2882735f51e63391dff6947252ff1856a976c3128592e2a29ae315875d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 659c5878e4af3629f35f69c0b4d2469e8bcf070354fc4e90ae2506ea615e749e42bf5a4b84bfa5c923bace7169b6d5440f2e807a4402ed154c2b78da3e367919
|
|
7
|
+
data.tar.gz: 42613c5dd8840aa0f23716a77cd6109f86fb8aa49c6bb0dd5ed2b92a159477abf6690eadf9fbbbbb575e3e0483ec15ae4dc4c8c24b733ea0726d1fe880fbc00f
|
|
@@ -17,7 +17,7 @@ require 'google/protobuf/wrappers_pb'
|
|
|
17
17
|
require 'google/rpc/status_pb'
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
descriptor_data = "\n!google/bigtable/v2/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a\x1dgoogle/bigtable/v2/data.proto\x1a&google/bigtable/v2/request_stats.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xf5\x03\n\x0fReadRowsRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\t \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x05 \x01(\t\x12(\n\x04rows\x18\x02 \x01(\x0b\x32\x1a.google.bigtable.v2.RowSet\x12-\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x12\n\nrows_limit\x18\x04 \x01(\x03\x12P\n\x12request_stats_view\x18\x06 \x01(\x0e\x32\x34.google.bigtable.v2.ReadRowsRequest.RequestStatsView\x12\x10\n\x08reversed\x18\x07 \x01(\x08\"f\n\x10RequestStatsView\x12\"\n\x1eREQUEST_STATS_VIEW_UNSPECIFIED\x10\x00\x12\x16\n\x12REQUEST_STATS_NONE\x10\x01\x12\x16\n\x12REQUEST_STATS_FULL\x10\x02\"\xb1\x03\n\x10ReadRowsResponse\x12>\n\x06\x63hunks\x18\x01 \x03(\x0b\x32..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1c\n\x14last_scanned_row_key\x18\x02 \x01(\x0c\x12\x37\n\rrequest_stats\x18\x03 \x01(\x0b\x32 .google.bigtable.v2.RequestStats\x1a\x85\x02\n\tCellChunk\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x31\n\x0b\x66\x61mily_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\tqualifier\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x18\n\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0e\n\x06labels\x18\x05 \x03(\t\x12\r\n\x05value\x18\x06 \x01(\x0c\x12\x12\n\nvalue_size\x18\x07 \x01(\x05\x12\x13\n\treset_row\x18\x08 \x01(\x08H\x00\x12\x14\n\ncommit_row\x18\t \x01(\x08H\x00\x42\x0c\n\nrow_status\"\xc1\x01\n\x14SampleRowKeysRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x04 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\">\n\x15SampleRowKeysResponse\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x14\n\x0coffset_bytes\x18\x02 \x01(\x03\"\x89\x02\n\x10MutateRowRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x06 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x34\n\tmutations\x18\x03 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02\"\x13\n\x11MutateRowResponse\"\xd1\x02\n\x11MutateRowsRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x05 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x03 \x01(\t\x12\x41\n\x07\x65ntries\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.MutateRowsRequest.EntryB\x03\xe0\x41\x02\x1aN\n\x05\x45ntry\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x34\n\tmutations\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02\"\xe4\x01\n\x12MutateRowsResponse\x12=\n\x07\x65ntries\x18\x01 \x03(\x0b\x32,.google.bigtable.v2.MutateRowsResponse.Entry\x12?\n\x0frate_limit_info\x18\x03 \x01(\x0b\x32!.google.bigtable.v2.RateLimitInfoH\x00\x88\x01\x01\x1a:\n\x05\x45ntry\x12\r\n\x05index\x18\x01 \x01(\x03\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x12\n\x10_rate_limit_info\"J\n\rRateLimitInfo\x12)\n\x06period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\x01\"\x81\x03\n\x18\x43heckAndMutateRowRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\t \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x07 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x37\n\x10predicate_filter\x18\x06 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x34\n\x0etrue_mutations\x18\x04 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\x12\x35\n\x0f\x66\x61lse_mutations\x18\x05 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\"6\n\x19\x43heckAndMutateRowResponse\x12\x19\n\x11predicate_matched\x18\x01 \x01(\x08\"i\n\x12PingAndWarmRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\"\x15\n\x13PingAndWarmResponse\"\x99\x02\n\x19ReadModifyWriteRowRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x06 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12;\n\x05rules\x18\x03 \x03(\x0b\x32\'.google.bigtable.v2.ReadModifyWriteRuleB\x03\xe0\x41\x02\"B\n\x1aReadModifyWriteRowResponse\x12$\n\x03row\x18\x01 \x01(\x0b\x32\x17.google.bigtable.v2.Row\"\x86\x01\n,GenerateInitialChangeStreamPartitionsRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\"g\n-GenerateInitialChangeStreamPartitionsResponse\x12\x36\n\tpartition\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.StreamPartition\"\x9b\x03\n\x17ReadChangeStreamRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\x12\x36\n\tpartition\x18\x03 \x01(\x0b\x32#.google.bigtable.v2.StreamPartition\x12\x30\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12K\n\x13\x63ontinuation_tokens\x18\x06 \x01(\x0b\x32,.google.bigtable.v2.StreamContinuationTokensH\x00\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x12heartbeat_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0c\n\nstart_from\"\xa9\n\n\x18ReadChangeStreamResponse\x12N\n\x0b\x64\x61ta_change\x18\x01 \x01(\x0b\x32\x37.google.bigtable.v2.ReadChangeStreamResponse.DataChangeH\x00\x12K\n\theartbeat\x18\x02 \x01(\x0b\x32\x36.google.bigtable.v2.ReadChangeStreamResponse.HeartbeatH\x00\x12P\n\x0c\x63lose_stream\x18\x03 \x01(\x0b\x32\x38.google.bigtable.v2.ReadChangeStreamResponse.CloseStreamH\x00\x1a\xf4\x01\n\rMutationChunk\x12X\n\nchunk_info\x18\x01 \x01(\x0b\x32\x44.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo\x12.\n\x08mutation\x18\x02 \x01(\x0b\x32\x1c.google.bigtable.v2.Mutation\x1aY\n\tChunkInfo\x12\x1a\n\x12\x63hunked_value_size\x18\x01 \x01(\x05\x12\x1c\n\x14\x63hunked_value_offset\x18\x02 \x01(\x05\x12\x12\n\nlast_chunk\x18\x03 \x01(\x08\x1a\xc6\x03\n\nDataChange\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type\x12\x19\n\x11source_cluster_id\x18\x02 \x01(\t\x12\x0f\n\x07row_key\x18\x03 \x01(\x0c\x12\x34\n\x10\x63ommit_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ntiebreaker\x18\x05 \x01(\x05\x12J\n\x06\x63hunks\x18\x06 \x03(\x0b\x32:.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk\x12\x0c\n\x04\x64one\x18\x08 \x01(\x08\x12\r\n\x05token\x18\t \x01(\t\x12;\n\x17\x65stimated_low_watermark\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"P\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\x16\n\x12GARBAGE_COLLECTION\x10\x02\x12\x10\n\x0c\x43ONTINUATION\x10\x03\x1a\x91\x01\n\tHeartbeat\x12G\n\x12\x63ontinuation_token\x18\x01 \x01(\x0b\x32+.google.bigtable.v2.StreamContinuationToken\x12;\n\x17\x65stimated_low_watermark\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xb8\x01\n\x0b\x43loseStream\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x13\x63ontinuation_tokens\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.StreamContinuationToken\x12;\n\x0enew_partitions\x18\x03 \x03(\x0b\x32#.google.bigtable.v2.StreamPartitionB\x0f\n\rstream_record2\xef!\n\x08\x42igtable\x12\xdb\x03\n\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse\"\x81\x03\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02\x9a\x01\"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*ZZ\"U/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}0\x01\x12\xee\x03\n\rSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse\"\x85\x03\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02\x9e\x01\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeysZ\\\x12Z/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}0\x01\x12\x82\x04\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.google.bigtable.v2.MutateRowResponse\"\xa7\x03\xda\x41\x1ctable_name,row_key,mutations\xda\x41+table_name,row_key,mutations,app_profile_id\x82\xd3\xe4\x93\x02\x9c\x01\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*Z[\"V/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}\x12\xf5\x03\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.MutateRowsResponse\"\x95\x03\xda\x41\x12table_name,entries\xda\x41!table_name,entries,app_profile_id\x82\xd3\xe4\x93\x02\x9e\x01\";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*Z\\\"W/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}0\x01\x12\xf6\x04\n\x11\x43heckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse\"\x83\x04\xda\x41\x42table_name,row_key,predicate_filter,true_mutations,false_mutations\xda\x41Qtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id\x82\xd3\xe4\x93\x02\xac\x01\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*Zc\"^/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}\x12\xee\x01\n\x0bPingAndWarm\x12&.google.bigtable.v2.PingAndWarmRequest\x1a\'.google.bigtable.v2.PingAndWarmResponse\"\x8d\x01\xda\x41\x04name\xda\x41\x13name,app_profile_id\x82\xd3\xe4\x93\x02+\"&/v2/{name=projects/*/instances/*}:ping:\x01*\x8a\xd3\xe4\x93\x02\x39\x12%\n\x04name\x12\x1d{name=projects/*/instances/*}\x12\x10\n\x0e\x61pp_profile_id\x12\xa7\x04\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowResponse\"\xb1\x03\xda\x41\x18table_name,row_key,rules\xda\x41\'table_name,row_key,rules,app_profile_id\x82\xd3\xe4\x93\x02\xae\x01\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*Zd\"_/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}\x12\xbb\x02\n%GenerateInitialChangeStreamPartitions\x12@.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest\x1a\x41.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse\"\x8a\x01\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02[\"V/v2/{table_name=projects/*/instances/*/tables/*}:generateInitialChangeStreamPartitions:\x01*0\x01\x12\xe6\x01\n\x10ReadChangeStream\x12+.google.bigtable.v2.ReadChangeStreamRequest\x1a,.google.bigtable.v2.ReadChangeStreamResponse\"u\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02\x46\"A/v2/{table_name=projects/*/instances/*/tables/*}:readChangeStream:\x01*0\x01\x1a\xdb\x02\xca\x41\x17\x62igtable.googleapis.com\xd2\x41\xbd\x02https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf6\x03\n\x16\x63om.google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2\xea\x41P\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}\xea\x41\x87\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}b\x06proto3"
|
|
20
|
+
descriptor_data = "\n!google/bigtable/v2/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a\x1dgoogle/bigtable/v2/data.proto\x1a&google/bigtable/v2/request_stats.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xf5\x03\n\x0fReadRowsRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\t \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x05 \x01(\t\x12(\n\x04rows\x18\x02 \x01(\x0b\x32\x1a.google.bigtable.v2.RowSet\x12-\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x12\n\nrows_limit\x18\x04 \x01(\x03\x12P\n\x12request_stats_view\x18\x06 \x01(\x0e\x32\x34.google.bigtable.v2.ReadRowsRequest.RequestStatsView\x12\x10\n\x08reversed\x18\x07 \x01(\x08\"f\n\x10RequestStatsView\x12\"\n\x1eREQUEST_STATS_VIEW_UNSPECIFIED\x10\x00\x12\x16\n\x12REQUEST_STATS_NONE\x10\x01\x12\x16\n\x12REQUEST_STATS_FULL\x10\x02\"\xb1\x03\n\x10ReadRowsResponse\x12>\n\x06\x63hunks\x18\x01 \x03(\x0b\x32..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1c\n\x14last_scanned_row_key\x18\x02 \x01(\x0c\x12\x37\n\rrequest_stats\x18\x03 \x01(\x0b\x32 .google.bigtable.v2.RequestStats\x1a\x85\x02\n\tCellChunk\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x31\n\x0b\x66\x61mily_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\tqualifier\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x18\n\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0e\n\x06labels\x18\x05 \x03(\t\x12\r\n\x05value\x18\x06 \x01(\x0c\x12\x12\n\nvalue_size\x18\x07 \x01(\x05\x12\x13\n\treset_row\x18\x08 \x01(\x08H\x00\x12\x14\n\ncommit_row\x18\t \x01(\x08H\x00\x42\x0c\n\nrow_status\"\xc1\x01\n\x14SampleRowKeysRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x04 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\">\n\x15SampleRowKeysResponse\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x14\n\x0coffset_bytes\x18\x02 \x01(\x03\"\x89\x02\n\x10MutateRowRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x06 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x34\n\tmutations\x18\x03 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02\"\x13\n\x11MutateRowResponse\"\xd1\x02\n\x11MutateRowsRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x05 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x03 \x01(\t\x12\x41\n\x07\x65ntries\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.MutateRowsRequest.EntryB\x03\xe0\x41\x02\x1aN\n\x05\x45ntry\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x34\n\tmutations\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02\"\xe4\x01\n\x12MutateRowsResponse\x12=\n\x07\x65ntries\x18\x01 \x03(\x0b\x32,.google.bigtable.v2.MutateRowsResponse.Entry\x12?\n\x0frate_limit_info\x18\x03 \x01(\x0b\x32!.google.bigtable.v2.RateLimitInfoH\x00\x88\x01\x01\x1a:\n\x05\x45ntry\x12\r\n\x05index\x18\x01 \x01(\x03\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x12\n\x10_rate_limit_info\"J\n\rRateLimitInfo\x12)\n\x06period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\x01\"\x81\x03\n\x18\x43heckAndMutateRowRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\t \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x07 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x37\n\x10predicate_filter\x18\x06 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x34\n\x0etrue_mutations\x18\x04 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\x12\x35\n\x0f\x66\x61lse_mutations\x18\x05 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\"6\n\x19\x43heckAndMutateRowResponse\x12\x19\n\x11predicate_matched\x18\x01 \x01(\x08\"i\n\x12PingAndWarmRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\"\x15\n\x13PingAndWarmResponse\"\x99\x02\n\x19ReadModifyWriteRowRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12Q\n\x14\x61uthorized_view_name\x18\x06 \x01(\tB3\xe0\x41\x01\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12;\n\x05rules\x18\x03 \x03(\x0b\x32\'.google.bigtable.v2.ReadModifyWriteRuleB\x03\xe0\x41\x02\"B\n\x1aReadModifyWriteRowResponse\x12$\n\x03row\x18\x01 \x01(\x0b\x32\x17.google.bigtable.v2.Row\"\x86\x01\n,GenerateInitialChangeStreamPartitionsRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\"g\n-GenerateInitialChangeStreamPartitionsResponse\x12\x36\n\tpartition\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.StreamPartition\"\x9b\x03\n\x17ReadChangeStreamRequest\x12>\n\ntable_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\x12\x36\n\tpartition\x18\x03 \x01(\x0b\x32#.google.bigtable.v2.StreamPartition\x12\x30\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12K\n\x13\x63ontinuation_tokens\x18\x06 \x01(\x0b\x32,.google.bigtable.v2.StreamContinuationTokensH\x00\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x12heartbeat_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0c\n\nstart_from\"\xa9\n\n\x18ReadChangeStreamResponse\x12N\n\x0b\x64\x61ta_change\x18\x01 \x01(\x0b\x32\x37.google.bigtable.v2.ReadChangeStreamResponse.DataChangeH\x00\x12K\n\theartbeat\x18\x02 \x01(\x0b\x32\x36.google.bigtable.v2.ReadChangeStreamResponse.HeartbeatH\x00\x12P\n\x0c\x63lose_stream\x18\x03 \x01(\x0b\x32\x38.google.bigtable.v2.ReadChangeStreamResponse.CloseStreamH\x00\x1a\xf4\x01\n\rMutationChunk\x12X\n\nchunk_info\x18\x01 \x01(\x0b\x32\x44.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo\x12.\n\x08mutation\x18\x02 \x01(\x0b\x32\x1c.google.bigtable.v2.Mutation\x1aY\n\tChunkInfo\x12\x1a\n\x12\x63hunked_value_size\x18\x01 \x01(\x05\x12\x1c\n\x14\x63hunked_value_offset\x18\x02 \x01(\x05\x12\x12\n\nlast_chunk\x18\x03 \x01(\x08\x1a\xc6\x03\n\nDataChange\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type\x12\x19\n\x11source_cluster_id\x18\x02 \x01(\t\x12\x0f\n\x07row_key\x18\x03 \x01(\x0c\x12\x34\n\x10\x63ommit_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ntiebreaker\x18\x05 \x01(\x05\x12J\n\x06\x63hunks\x18\x06 \x03(\x0b\x32:.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk\x12\x0c\n\x04\x64one\x18\x08 \x01(\x08\x12\r\n\x05token\x18\t \x01(\t\x12;\n\x17\x65stimated_low_watermark\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"P\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\x16\n\x12GARBAGE_COLLECTION\x10\x02\x12\x10\n\x0c\x43ONTINUATION\x10\x03\x1a\x91\x01\n\tHeartbeat\x12G\n\x12\x63ontinuation_token\x18\x01 \x01(\x0b\x32+.google.bigtable.v2.StreamContinuationToken\x12;\n\x17\x65stimated_low_watermark\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xb8\x01\n\x0b\x43loseStream\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x13\x63ontinuation_tokens\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.StreamContinuationToken\x12;\n\x0enew_partitions\x18\x03 \x03(\x0b\x32#.google.bigtable.v2.StreamPartitionB\x0f\n\rstream_record\"\x83\x03\n\x13\x45xecuteQueryRequest\x12\x44\n\rinstance_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05query\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x0cproto_format\x18\x04 \x01(\x0b\x32\x1f.google.bigtable.v2.ProtoFormatH\x00\x12\x19\n\x0cresume_token\x18\x08 \x01(\x0c\x42\x03\xe0\x41\x01\x12H\n\x06params\x18\x07 \x03(\x0b\x32\x33.google.bigtable.v2.ExecuteQueryRequest.ParamsEntryB\x03\xe0\x41\x02\x1aH\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.google.bigtable.v2.Value:\x02\x38\x01\x42\r\n\x0b\x64\x61ta_format\"\x96\x01\n\x14\x45xecuteQueryResponse\x12\x39\n\x08metadata\x18\x01 \x01(\x0b\x32%.google.bigtable.v2.ResultSetMetadataH\x00\x12\x37\n\x07results\x18\x02 \x01(\x0b\x32$.google.bigtable.v2.PartialResultSetH\x00\x42\n\n\x08response2\x9d$\n\x08\x42igtable\x12\xdb\x03\n\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse\"\x81\x03\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02\x9a\x01\"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*ZZ\"U/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}0\x01\x12\xee\x03\n\rSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse\"\x85\x03\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02\x9e\x01\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeysZ\\\x12Z/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}0\x01\x12\x82\x04\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.google.bigtable.v2.MutateRowResponse\"\xa7\x03\xda\x41\x1ctable_name,row_key,mutations\xda\x41+table_name,row_key,mutations,app_profile_id\x82\xd3\xe4\x93\x02\x9c\x01\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*Z[\"V/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}\x12\xf5\x03\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.MutateRowsResponse\"\x95\x03\xda\x41\x12table_name,entries\xda\x41!table_name,entries,app_profile_id\x82\xd3\xe4\x93\x02\x9e\x01\";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*Z\\\"W/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}0\x01\x12\xf6\x04\n\x11\x43heckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse\"\x83\x04\xda\x41\x42table_name,row_key,predicate_filter,true_mutations,false_mutations\xda\x41Qtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id\x82\xd3\xe4\x93\x02\xac\x01\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*Zc\"^/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}\x12\xee\x01\n\x0bPingAndWarm\x12&.google.bigtable.v2.PingAndWarmRequest\x1a\'.google.bigtable.v2.PingAndWarmResponse\"\x8d\x01\xda\x41\x04name\xda\x41\x13name,app_profile_id\x82\xd3\xe4\x93\x02+\"&/v2/{name=projects/*/instances/*}:ping:\x01*\x8a\xd3\xe4\x93\x02\x39\x12%\n\x04name\x12\x1d{name=projects/*/instances/*}\x12\x10\n\x0e\x61pp_profile_id\x12\xa7\x04\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowResponse\"\xb1\x03\xda\x41\x18table_name,row_key,rules\xda\x41\'table_name,row_key,rules,app_profile_id\x82\xd3\xe4\x93\x02\xae\x01\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*Zd\"_/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow:\x01*\x8a\xd3\xe4\x93\x02\xb0\x01\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0e\x61pp_profile_id\x12`\n\x14\x61uthorized_view_name\x12H{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}\x12\xbb\x02\n%GenerateInitialChangeStreamPartitions\x12@.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest\x1a\x41.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse\"\x8a\x01\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02[\"V/v2/{table_name=projects/*/instances/*/tables/*}:generateInitialChangeStreamPartitions:\x01*0\x01\x12\xe6\x01\n\x10ReadChangeStream\x12+.google.bigtable.v2.ReadChangeStreamRequest\x1a,.google.bigtable.v2.ReadChangeStreamResponse\"u\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02\x46\"A/v2/{table_name=projects/*/instances/*/tables/*}:readChangeStream:\x01*0\x01\x12\xab\x02\n\x0c\x45xecuteQuery\x12\'.google.bigtable.v2.ExecuteQueryRequest\x1a(.google.bigtable.v2.ExecuteQueryResponse\"\xc5\x01\xda\x41\x13instance_name,query\xda\x41\"instance_name,query,app_profile_id\x82\xd3\xe4\x93\x02<\"7/v2/{instance_name=projects/*/instances/*}:executeQuery:\x01*\x8a\xd3\xe4\x93\x02\x42\x12.\n\rinstance_name\x12\x1d{name=projects/*/instances/*}\x12\x10\n\x0e\x61pp_profile_id0\x01\x1a\xdb\x02\xca\x41\x17\x62igtable.googleapis.com\xd2\x41\xbd\x02https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf6\x03\n\x16\x63om.google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2\xea\x41P\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}\xea\x41\x87\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}b\x06proto3"
|
|
21
21
|
|
|
22
22
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
23
23
|
|
|
@@ -82,6 +82,8 @@ module Google
|
|
|
82
82
|
ReadChangeStreamResponse::DataChange::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type").enummodule
|
|
83
83
|
ReadChangeStreamResponse::Heartbeat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadChangeStreamResponse.Heartbeat").msgclass
|
|
84
84
|
ReadChangeStreamResponse::CloseStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadChangeStreamResponse.CloseStream").msgclass
|
|
85
|
+
ExecuteQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ExecuteQueryRequest").msgclass
|
|
86
|
+
ExecuteQueryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ExecuteQueryResponse").msgclass
|
|
85
87
|
end
|
|
86
88
|
end
|
|
87
89
|
end
|
|
@@ -72,6 +72,8 @@ module Google
|
|
|
72
72
|
# reflect both user-initiated mutations and mutations that are caused by
|
|
73
73
|
# garbage collection.
|
|
74
74
|
rpc :ReadChangeStream, ::Google::Cloud::Bigtable::V2::ReadChangeStreamRequest, stream(::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse)
|
|
75
|
+
# Executes a BTQL query against a particular Cloud Bigtable instance.
|
|
76
|
+
rpc :ExecuteQuery, ::Google::Cloud::Bigtable::V2::ExecuteQueryRequest, stream(::Google::Cloud::Bigtable::V2::ExecuteQueryResponse)
|
|
75
77
|
end
|
|
76
78
|
|
|
77
79
|
Stub = Service.rpc_stub_class
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/bigtable/v2/types_pb'
|
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
|
10
|
+
require 'google/type/date_pb'
|
|
8
11
|
|
|
9
12
|
|
|
10
|
-
descriptor_data = "\n\x1dgoogle/bigtable/v2/data.proto\x12\x12google.bigtable.v2\x1a\x1fgoogle/api/field_behavior.proto\"@\n\x03Row\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12,\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Family\"C\n\x06\x46\x61mily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Column\"D\n\x06\x43olumn\x12\x11\n\tqualifier\x18\x01 \x01(\x0c\x12\'\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32\x18.google.bigtable.v2.Cell\"?\n\x04\x43\x65ll\x12\x18\n\x10timestamp_micros\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06labels\x18\x03 \x03(\t\"
|
|
13
|
+
descriptor_data = "\n\x1dgoogle/bigtable/v2/data.proto\x12\x12google.bigtable.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/bigtable/v2/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"@\n\x03Row\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12,\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Family\"C\n\x06\x46\x61mily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Column\"D\n\x06\x43olumn\x12\x11\n\tqualifier\x18\x01 \x01(\x0c\x12\'\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32\x18.google.bigtable.v2.Cell\"?\n\x04\x43\x65ll\x12\x18\n\x10timestamp_micros\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06labels\x18\x03 \x03(\t\"\xf4\x02\n\x05Value\x12&\n\x04type\x18\x07 \x01(\x0b\x32\x18.google.bigtable.v2.Type\x12\x13\n\traw_value\x18\x08 \x01(\x0cH\x00\x12\x1e\n\x14raw_timestamp_micros\x18\t \x01(\x03H\x00\x12\x15\n\x0b\x62ytes_value\x18\x02 \x01(\x0cH\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x13\n\tint_value\x18\x06 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x15\n\x0b\x66loat_value\x18\x0b \x01(\x01H\x00\x12\x35\n\x0ftimestamp_value\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\'\n\ndate_value\x18\r \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x35\n\x0b\x61rray_value\x18\x04 \x01(\x0b\x32\x1e.google.bigtable.v2.ArrayValueH\x00\x42\x06\n\x04kind\"7\n\nArrayValue\x12)\n\x06values\x18\x01 \x03(\x0b\x32\x19.google.bigtable.v2.Value\"\x8a\x01\n\x08RowRange\x12\x1a\n\x10start_key_closed\x18\x01 \x01(\x0cH\x00\x12\x18\n\x0estart_key_open\x18\x02 \x01(\x0cH\x00\x12\x16\n\x0c\x65nd_key_open\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_key_closed\x18\x04 \x01(\x0cH\x01\x42\x0b\n\tstart_keyB\t\n\x07\x65nd_key\"L\n\x06RowSet\x12\x10\n\x08row_keys\x18\x01 \x03(\x0c\x12\x30\n\nrow_ranges\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.RowRange\"\xc6\x01\n\x0b\x43olumnRange\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12 \n\x16start_qualifier_closed\x18\x02 \x01(\x0cH\x00\x12\x1e\n\x14start_qualifier_open\x18\x03 \x01(\x0cH\x00\x12\x1e\n\x14\x65nd_qualifier_closed\x18\x04 \x01(\x0cH\x01\x12\x1c\n\x12\x65nd_qualifier_open\x18\x05 \x01(\x0cH\x01\x42\x11\n\x0fstart_qualifierB\x0f\n\rend_qualifier\"N\n\x0eTimestampRange\x12\x1e\n\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1c\n\x14\x65nd_timestamp_micros\x18\x02 \x01(\x03\"\x98\x01\n\nValueRange\x12\x1c\n\x12start_value_closed\x18\x01 \x01(\x0cH\x00\x12\x1a\n\x10start_value_open\x18\x02 \x01(\x0cH\x00\x12\x1a\n\x10\x65nd_value_closed\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_value_open\x18\x04 \x01(\x0cH\x01\x42\r\n\x0bstart_valueB\x0b\n\tend_value\"\xdf\x08\n\tRowFilter\x12\x34\n\x05\x63hain\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\n\ninterleave\x18\x02 \x01(\x0b\x32(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\n\tcondition\x18\x03 \x01(\x0b\x32\'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0e\n\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\n\x0fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1a\n\x10\x62lock_all_filter\x18\x12 \x01(\x08H\x00\x12\x1e\n\x14row_key_regex_filter\x18\x04 \x01(\x0cH\x00\x12\x1b\n\x11row_sample_filter\x18\x0e \x01(\x01H\x00\x12\"\n\x18\x66\x61mily_name_regex_filter\x18\x05 \x01(\tH\x00\x12\'\n\x1d\x63olumn_qualifier_regex_filter\x18\x06 \x01(\x0cH\x00\x12>\n\x13\x63olumn_range_filter\x18\x07 \x01(\x0b\x32\x1f.google.bigtable.v2.ColumnRangeH\x00\x12\x44\n\x16timestamp_range_filter\x18\x08 \x01(\x0b\x32\".google.bigtable.v2.TimestampRangeH\x00\x12\x1c\n\x12value_regex_filter\x18\t \x01(\x0cH\x00\x12<\n\x12value_range_filter\x18\x0f \x01(\x0b\x32\x1e.google.bigtable.v2.ValueRangeH\x00\x12%\n\x1b\x63\x65lls_per_row_offset_filter\x18\n \x01(\x05H\x00\x12$\n\x1a\x63\x65lls_per_row_limit_filter\x18\x0b \x01(\x05H\x00\x12\'\n\x1d\x63\x65lls_per_column_limit_filter\x18\x0c \x01(\x05H\x00\x12!\n\x17strip_value_transformer\x18\r \x01(\x08H\x00\x12!\n\x17\x61pply_label_transformer\x18\x13 \x01(\tH\x00\x1a\x37\n\x05\x43hain\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a<\n\nInterleave\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a\xad\x01\n\tCondition\x12\x37\n\x10predicate_filter\x18\x01 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x32\n\x0btrue_filter\x18\x02 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x33\n\x0c\x66\x61lse_filter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilterB\x08\n\x06\x66ilter\"\xb8\x06\n\x08Mutation\x12\x38\n\x08set_cell\x18\x01 \x01(\x0b\x32$.google.bigtable.v2.Mutation.SetCellH\x00\x12=\n\x0b\x61\x64\x64_to_cell\x18\x05 \x01(\x0b\x32&.google.bigtable.v2.Mutation.AddToCellH\x00\x12K\n\x12\x64\x65lete_from_column\x18\x02 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\n\x12\x64\x65lete_from_family\x18\x03 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12\x45\n\x0f\x64\x65lete_from_row\x18\x04 \x01(\x0b\x32*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1a\x61\n\x07SetCell\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x18\n\x10timestamp_micros\x18\x03 \x01(\x03\x12\r\n\x05value\x18\x04 \x01(\x0c\x1a\xad\x01\n\tAddToCell\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x33\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0b\x32\x19.google.bigtable.v2.Value\x12,\n\ttimestamp\x18\x03 \x01(\x0b\x32\x19.google.bigtable.v2.Value\x12(\n\x05input\x18\x04 \x01(\x0b\x32\x19.google.bigtable.v2.Value\x1ay\n\x10\x44\x65leteFromColumn\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x36\n\ntime_range\x18\x03 \x01(\x0b\x32\".google.bigtable.v2.TimestampRange\x1a\'\n\x10\x44\x65leteFromFamily\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutation\"\x80\x01\n\x13ReadModifyWriteRule\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x16\n\x0c\x61ppend_value\x18\x03 \x01(\x0cH\x00\x12\x1a\n\x10increment_amount\x18\x04 \x01(\x03H\x00\x42\x06\n\x04rule\"B\n\x0fStreamPartition\x12/\n\trow_range\x18\x01 \x01(\x0b\x32\x1c.google.bigtable.v2.RowRange\"W\n\x18StreamContinuationTokens\x12;\n\x06tokens\x18\x01 \x03(\x0b\x32+.google.bigtable.v2.StreamContinuationToken\"`\n\x17StreamContinuationToken\x12\x36\n\tpartition\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.StreamPartition\x12\r\n\x05token\x18\x02 \x01(\t\"\r\n\x0bProtoFormat\"F\n\x0e\x43olumnMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12&\n\x04type\x18\x02 \x01(\x0b\x32\x18.google.bigtable.v2.Type\"B\n\x0bProtoSchema\x12\x33\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\".google.bigtable.v2.ColumnMetadata\"V\n\x11ResultSetMetadata\x12\x37\n\x0cproto_schema\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.v2.ProtoSchemaH\x00\x42\x08\n\x06schema\"$\n\x0eProtoRowsBatch\x12\x12\n\nbatch_data\x18\x01 \x01(\x0c\"\x96\x01\n\x10PartialResultSet\x12>\n\x10proto_rows_batch\x18\x03 \x01(\x0b\x32\".google.bigtable.v2.ProtoRowsBatchH\x00\x12\x14\n\x0cresume_token\x18\x05 \x01(\x0c\x12\x1c\n\x14\x65stimated_batch_size\x18\x04 \x01(\x05\x42\x0e\n\x0cpartial_rowsB\xb5\x01\n\x16\x63om.google.bigtable.v2B\tDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2b\x06proto3"
|
|
11
14
|
|
|
12
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
16
|
|
|
@@ -22,6 +25,9 @@ rescue TypeError
|
|
|
22
25
|
file = pool.add_serialized_file(serialized)
|
|
23
26
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
27
|
imports = [
|
|
28
|
+
["google.bigtable.v2.Type", "google/bigtable/v2/types.proto"],
|
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
30
|
+
["google.type.Date", "google/type/date.proto"],
|
|
25
31
|
]
|
|
26
32
|
imports.each do |type_name, expected_filename|
|
|
27
33
|
import_file = pool.lookup(type_name).file_descriptor
|
|
@@ -42,6 +48,7 @@ module Google
|
|
|
42
48
|
Column = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Column").msgclass
|
|
43
49
|
Cell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Cell").msgclass
|
|
44
50
|
Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Value").msgclass
|
|
51
|
+
ArrayValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ArrayValue").msgclass
|
|
45
52
|
RowRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowRange").msgclass
|
|
46
53
|
RowSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RowSet").msgclass
|
|
47
54
|
ColumnRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ColumnRange").msgclass
|
|
@@ -61,6 +68,12 @@ module Google
|
|
|
61
68
|
StreamPartition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.StreamPartition").msgclass
|
|
62
69
|
StreamContinuationTokens = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.StreamContinuationTokens").msgclass
|
|
63
70
|
StreamContinuationToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.StreamContinuationToken").msgclass
|
|
71
|
+
ProtoFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ProtoFormat").msgclass
|
|
72
|
+
ColumnMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ColumnMetadata").msgclass
|
|
73
|
+
ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ProtoSchema").msgclass
|
|
74
|
+
ResultSetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ResultSetMetadata").msgclass
|
|
75
|
+
ProtoRowsBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ProtoRowsBatch").msgclass
|
|
76
|
+
PartialResultSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.PartialResultSet").msgclass
|
|
64
77
|
end
|
|
65
78
|
end
|
|
66
79
|
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/bigtable/v2/types.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1egoogle/bigtable/v2/types.proto\x12\x12google.bigtable.v2\x1a\x1fgoogle/api/field_behavior.proto\"\x86\x10\n\x04Type\x12\x34\n\nbytes_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.v2.Type.BytesH\x00\x12\x36\n\x0bstring_type\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.v2.Type.StringH\x00\x12\x34\n\nint64_type\x18\x05 \x01(\x0b\x32\x1e.google.bigtable.v2.Type.Int64H\x00\x12\x38\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32 .google.bigtable.v2.Type.Float32H\x00\x12\x38\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32 .google.bigtable.v2.Type.Float64H\x00\x12\x32\n\tbool_type\x18\x08 \x01(\x0b\x32\x1d.google.bigtable.v2.Type.BoolH\x00\x12<\n\x0etimestamp_type\x18\n \x01(\x0b\x32\".google.bigtable.v2.Type.TimestampH\x00\x12\x32\n\tdate_type\x18\x0b \x01(\x0b\x32\x1d.google.bigtable.v2.Type.DateH\x00\x12<\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32\".google.bigtable.v2.Type.AggregateH\x00\x12\x36\n\x0bstruct_type\x18\x07 \x01(\x0b\x32\x1f.google.bigtable.v2.Type.StructH\x00\x12\x34\n\narray_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.v2.Type.ArrayH\x00\x12\x30\n\x08map_type\x18\x04 \x01(\x0b\x32\x1c.google.bigtable.v2.Type.MapH\x00\x1a\x9d\x01\n\x05\x42ytes\x12\x39\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\'.google.bigtable.v2.Type.Bytes.Encoding\x1aY\n\x08\x45ncoding\x12:\n\x03raw\x18\x01 \x01(\x0b\x32+.google.bigtable.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\xb3\x01\n\x06String\x12:\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32(.google.bigtable.v2.Type.String.Encoding\x1am\n\x08\x45ncoding\x12H\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x32.google.bigtable.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xf5\x01\n\x05Int64\x12\x39\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\'.google.bigtable.v2.Type.Int64.Encoding\x1a\xb0\x01\n\x08\x45ncoding\x12R\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32\x36.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x1a\x44\n\x0e\x42igEndianBytes\x12\x32\n\nbytes_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.v2.Type.BytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\x0b\n\tTimestamp\x1a\x06\n\x04\x44\x61te\x1a\x84\x01\n\x06Struct\x12\x35\n\x06\x66ields\x18\x01 \x03(\x0b\x32%.google.bigtable.v2.Type.Struct.Field\x1a\x43\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12&\n\x04type\x18\x02 \x01(\x0b\x32\x18.google.bigtable.v2.Type\x1a\x37\n\x05\x41rray\x12.\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x18.google.bigtable.v2.Type\x1a_\n\x03Map\x12*\n\x08key_type\x18\x01 \x01(\x0b\x32\x18.google.bigtable.v2.Type\x12,\n\nvalue_type\x18\x02 \x01(\x0b\x32\x18.google.bigtable.v2.Type\x1a\xb7\x03\n\tAggregate\x12,\n\ninput_type\x18\x01 \x01(\x0b\x32\x18.google.bigtable.v2.Type\x12\x31\n\nstate_type\x18\x02 \x01(\x0b\x32\x18.google.bigtable.v2.TypeB\x03\xe0\x41\x03\x12\x35\n\x03sum\x18\x04 \x01(\x0b\x32&.google.bigtable.v2.Type.Aggregate.SumH\x00\x12_\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32\x41.google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12\x35\n\x03max\x18\x06 \x01(\x0b\x32&.google.bigtable.v2.Type.Aggregate.MaxH\x00\x12\x35\n\x03min\x18\x07 \x01(\x0b\x32&.google.bigtable.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xb6\x01\n\x16\x63om.google.bigtable.v2B\nTypesProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError
|
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
+
parsed.clear_dependency
|
|
21
|
+
serialized = parsed.class.encode(parsed)
|
|
22
|
+
file = pool.add_serialized_file(serialized)
|
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
+
imports = [
|
|
25
|
+
]
|
|
26
|
+
imports.each do |type_name, expected_filename|
|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
28
|
+
if import_file.name != expected_filename
|
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
33
|
+
warn "This will become an error in the next major version."
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
module Google
|
|
37
|
+
module Cloud
|
|
38
|
+
module Bigtable
|
|
39
|
+
module V2
|
|
40
|
+
Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type").msgclass
|
|
41
|
+
Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Bytes").msgclass
|
|
42
|
+
Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Bytes.Encoding").msgclass
|
|
43
|
+
Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Bytes.Encoding.Raw").msgclass
|
|
44
|
+
Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.String").msgclass
|
|
45
|
+
Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.String.Encoding").msgclass
|
|
46
|
+
Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.String.Encoding.Utf8Bytes").msgclass
|
|
47
|
+
Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Int64").msgclass
|
|
48
|
+
Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Int64.Encoding").msgclass
|
|
49
|
+
Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes").msgclass
|
|
50
|
+
Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Bool").msgclass
|
|
51
|
+
Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Float32").msgclass
|
|
52
|
+
Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Float64").msgclass
|
|
53
|
+
Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Timestamp").msgclass
|
|
54
|
+
Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Date").msgclass
|
|
55
|
+
Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Struct").msgclass
|
|
56
|
+
Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Struct.Field").msgclass
|
|
57
|
+
Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Array").msgclass
|
|
58
|
+
Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Map").msgclass
|
|
59
|
+
Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Aggregate").msgclass
|
|
60
|
+
Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Aggregate.Sum").msgclass
|
|
61
|
+
Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Aggregate.Max").msgclass
|
|
62
|
+
Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Aggregate.Min").msgclass
|
|
63
|
+
Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -30,6 +30,9 @@ module Google
|
|
|
30
30
|
# Service for reading from and writing to existing Bigtable tables.
|
|
31
31
|
#
|
|
32
32
|
class Client
|
|
33
|
+
# @private
|
|
34
|
+
API_VERSION = ""
|
|
35
|
+
|
|
33
36
|
# @private
|
|
34
37
|
DEFAULT_ENDPOINT_TEMPLATE = "bigtable.$UNIVERSE_DOMAIN$"
|
|
35
38
|
|
|
@@ -276,10 +279,11 @@ module Google
|
|
|
276
279
|
# Customize the options with defaults
|
|
277
280
|
metadata = @config.rpcs.read_rows.metadata.to_h
|
|
278
281
|
|
|
279
|
-
# Set x-goog-api-client
|
|
282
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
280
283
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
281
284
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
282
285
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
286
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
283
287
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
284
288
|
|
|
285
289
|
header_params = {}
|
|
@@ -387,10 +391,11 @@ module Google
|
|
|
387
391
|
# Customize the options with defaults
|
|
388
392
|
metadata = @config.rpcs.sample_row_keys.metadata.to_h
|
|
389
393
|
|
|
390
|
-
# Set x-goog-api-client
|
|
394
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
391
395
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
392
396
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
393
397
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
398
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
394
399
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
395
400
|
|
|
396
401
|
header_params = {}
|
|
@@ -500,10 +505,11 @@ module Google
|
|
|
500
505
|
# Customize the options with defaults
|
|
501
506
|
metadata = @config.rpcs.mutate_row.metadata.to_h
|
|
502
507
|
|
|
503
|
-
# Set x-goog-api-client
|
|
508
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
504
509
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
505
510
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
506
511
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
512
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
507
513
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
508
514
|
|
|
509
515
|
header_params = {}
|
|
@@ -617,10 +623,11 @@ module Google
|
|
|
617
623
|
# Customize the options with defaults
|
|
618
624
|
metadata = @config.rpcs.mutate_rows.metadata.to_h
|
|
619
625
|
|
|
620
|
-
# Set x-goog-api-client
|
|
626
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
621
627
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
622
628
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
623
629
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
630
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
624
631
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
625
632
|
|
|
626
633
|
header_params = {}
|
|
@@ -743,10 +750,11 @@ module Google
|
|
|
743
750
|
# Customize the options with defaults
|
|
744
751
|
metadata = @config.rpcs.check_and_mutate_row.metadata.to_h
|
|
745
752
|
|
|
746
|
-
# Set x-goog-api-client
|
|
753
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
747
754
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
748
755
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
749
756
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
757
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
750
758
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
751
759
|
|
|
752
760
|
header_params = {}
|
|
@@ -842,10 +850,11 @@ module Google
|
|
|
842
850
|
# Customize the options with defaults
|
|
843
851
|
metadata = @config.rpcs.ping_and_warm.metadata.to_h
|
|
844
852
|
|
|
845
|
-
# Set x-goog-api-client
|
|
853
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
846
854
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
847
855
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
848
856
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
857
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
849
858
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
850
859
|
|
|
851
860
|
header_params = {}
|
|
@@ -955,10 +964,11 @@ module Google
|
|
|
955
964
|
# Customize the options with defaults
|
|
956
965
|
metadata = @config.rpcs.read_modify_write_row.metadata.to_h
|
|
957
966
|
|
|
958
|
-
# Set x-goog-api-client
|
|
967
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
959
968
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
960
969
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
961
970
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
971
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
962
972
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
963
973
|
|
|
964
974
|
header_params = {}
|
|
@@ -1061,10 +1071,11 @@ module Google
|
|
|
1061
1071
|
# Customize the options with defaults
|
|
1062
1072
|
metadata = @config.rpcs.generate_initial_change_stream_partitions.metadata.to_h
|
|
1063
1073
|
|
|
1064
|
-
# Set x-goog-api-client
|
|
1074
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1065
1075
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1066
1076
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1067
1077
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
1078
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1068
1079
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1069
1080
|
|
|
1070
1081
|
header_params = {}
|
|
@@ -1184,10 +1195,11 @@ module Google
|
|
|
1184
1195
|
# Customize the options with defaults
|
|
1185
1196
|
metadata = @config.rpcs.read_change_stream.metadata.to_h
|
|
1186
1197
|
|
|
1187
|
-
# Set x-goog-api-client
|
|
1198
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1188
1199
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1189
1200
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1190
1201
|
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
1202
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1191
1203
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1192
1204
|
|
|
1193
1205
|
header_params = {}
|
|
@@ -1214,6 +1226,137 @@ module Google
|
|
|
1214
1226
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1215
1227
|
end
|
|
1216
1228
|
|
|
1229
|
+
##
|
|
1230
|
+
# Executes a BTQL query against a particular Cloud Bigtable instance.
|
|
1231
|
+
#
|
|
1232
|
+
# @overload execute_query(request, options = nil)
|
|
1233
|
+
# Pass arguments to `execute_query` via a request object, either of type
|
|
1234
|
+
# {::Google::Cloud::Bigtable::V2::ExecuteQueryRequest} or an equivalent Hash.
|
|
1235
|
+
#
|
|
1236
|
+
# @param request [::Google::Cloud::Bigtable::V2::ExecuteQueryRequest, ::Hash]
|
|
1237
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1238
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1239
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1240
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1241
|
+
#
|
|
1242
|
+
# @overload execute_query(instance_name: nil, app_profile_id: nil, query: nil, proto_format: nil, resume_token: nil, params: nil)
|
|
1243
|
+
# Pass arguments to `execute_query` via keyword arguments. Note that at
|
|
1244
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1245
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1246
|
+
#
|
|
1247
|
+
# @param instance_name [::String]
|
|
1248
|
+
# Required. The unique name of the instance against which the query should be
|
|
1249
|
+
# executed.
|
|
1250
|
+
# Values are of the form `projects/<project>/instances/<instance>`
|
|
1251
|
+
# @param app_profile_id [::String]
|
|
1252
|
+
# Optional. This value specifies routing for replication. If not specified,
|
|
1253
|
+
# the `default` application profile will be used.
|
|
1254
|
+
# @param query [::String]
|
|
1255
|
+
# Required. The query string.
|
|
1256
|
+
# @param proto_format [::Google::Cloud::Bigtable::V2::ProtoFormat, ::Hash]
|
|
1257
|
+
# Protocol buffer format as described by ProtoSchema and ProtoRows
|
|
1258
|
+
# messages.
|
|
1259
|
+
# @param resume_token [::String]
|
|
1260
|
+
# Optional. If this request is resuming a previously interrupted query
|
|
1261
|
+
# execution, `resume_token` should be copied from the last
|
|
1262
|
+
# PartialResultSet yielded before the interruption. Doing this
|
|
1263
|
+
# enables the query execution to resume where the last one left
|
|
1264
|
+
# off.
|
|
1265
|
+
# The rest of the request parameters must exactly match the
|
|
1266
|
+
# request that yielded this token. Otherwise the request will fail.
|
|
1267
|
+
# @param params [::Hash{::String => ::Google::Cloud::Bigtable::V2::Value, ::Hash}]
|
|
1268
|
+
# Required. params contains string type keys and Bigtable type values that
|
|
1269
|
+
# bind to placeholders in the query string. In query string, a parameter
|
|
1270
|
+
# placeholder consists of the
|
|
1271
|
+
# `@` character followed by the parameter name (for example, `@firstName`) in
|
|
1272
|
+
# the query string.
|
|
1273
|
+
#
|
|
1274
|
+
# For example, if
|
|
1275
|
+
# `params["firstName"] = bytes_value: "foo" type {bytes_type {}}`
|
|
1276
|
+
# then `@firstName` will be replaced with googlesql bytes value "foo" in the
|
|
1277
|
+
# query string during query evaluation.
|
|
1278
|
+
#
|
|
1279
|
+
# In case of Value.kind is not set, it will be set to corresponding null
|
|
1280
|
+
# value in googlesql.
|
|
1281
|
+
# `params["firstName"] = type {string_type {}}`
|
|
1282
|
+
# then `@firstName` will be replaced with googlesql null string.
|
|
1283
|
+
#
|
|
1284
|
+
# Value.type should always be set and no inference of type will be made from
|
|
1285
|
+
# Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT
|
|
1286
|
+
# error.
|
|
1287
|
+
#
|
|
1288
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1289
|
+
# @yieldparam response [::Enumerable<::Google::Cloud::Bigtable::V2::ExecuteQueryResponse>]
|
|
1290
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1291
|
+
#
|
|
1292
|
+
# @return [::Enumerable<::Google::Cloud::Bigtable::V2::ExecuteQueryResponse>]
|
|
1293
|
+
#
|
|
1294
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1295
|
+
#
|
|
1296
|
+
# @example Basic example
|
|
1297
|
+
# require "google/cloud/bigtable/v2"
|
|
1298
|
+
#
|
|
1299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1300
|
+
# client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
|
|
1301
|
+
#
|
|
1302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1303
|
+
# request = Google::Cloud::Bigtable::V2::ExecuteQueryRequest.new
|
|
1304
|
+
#
|
|
1305
|
+
# # Call the execute_query method to start streaming.
|
|
1306
|
+
# output = client.execute_query request
|
|
1307
|
+
#
|
|
1308
|
+
# # The returned object is a streamed enumerable yielding elements of type
|
|
1309
|
+
# # ::Google::Cloud::Bigtable::V2::ExecuteQueryResponse
|
|
1310
|
+
# output.each do |current_response|
|
|
1311
|
+
# p current_response
|
|
1312
|
+
# end
|
|
1313
|
+
#
|
|
1314
|
+
def execute_query request, options = nil
|
|
1315
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1316
|
+
|
|
1317
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::V2::ExecuteQueryRequest
|
|
1318
|
+
|
|
1319
|
+
# Converts hash and nil to an options object
|
|
1320
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1321
|
+
|
|
1322
|
+
# Customize the options with defaults
|
|
1323
|
+
metadata = @config.rpcs.execute_query.metadata.to_h
|
|
1324
|
+
|
|
1325
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1326
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1327
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1328
|
+
gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
|
|
1329
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1330
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1331
|
+
|
|
1332
|
+
header_params = {}
|
|
1333
|
+
if request.instance_name &&
|
|
1334
|
+
%r{^projects/[^/]+/instances/[^/]+/?$}.match?(request.instance_name)
|
|
1335
|
+
header_params["name"] = request.instance_name
|
|
1336
|
+
end
|
|
1337
|
+
if request.app_profile_id && !request.app_profile_id.empty?
|
|
1338
|
+
header_params["app_profile_id"] = request.app_profile_id
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
request_params_header = URI.encode_www_form header_params
|
|
1342
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1343
|
+
|
|
1344
|
+
options.apply_defaults timeout: @config.rpcs.execute_query.timeout,
|
|
1345
|
+
metadata: metadata,
|
|
1346
|
+
retry_policy: @config.rpcs.execute_query.retry_policy
|
|
1347
|
+
|
|
1348
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1349
|
+
metadata: @config.metadata,
|
|
1350
|
+
retry_policy: @config.retry_policy
|
|
1351
|
+
|
|
1352
|
+
@bigtable_stub.call_rpc :execute_query, request, options: options do |response, operation|
|
|
1353
|
+
yield response, operation if block_given?
|
|
1354
|
+
return response
|
|
1355
|
+
end
|
|
1356
|
+
rescue ::GRPC::BadStatus => e
|
|
1357
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1217
1360
|
##
|
|
1218
1361
|
# Configuration class for the Bigtable API.
|
|
1219
1362
|
#
|
|
@@ -1412,6 +1555,11 @@ module Google
|
|
|
1412
1555
|
# @return [::Gapic::Config::Method]
|
|
1413
1556
|
#
|
|
1414
1557
|
attr_reader :read_change_stream
|
|
1558
|
+
##
|
|
1559
|
+
# RPC-specific configuration for `execute_query`
|
|
1560
|
+
# @return [::Gapic::Config::Method]
|
|
1561
|
+
#
|
|
1562
|
+
attr_reader :execute_query
|
|
1415
1563
|
|
|
1416
1564
|
# @private
|
|
1417
1565
|
def initialize parent_rpcs = nil
|
|
@@ -1433,6 +1581,8 @@ module Google
|
|
|
1433
1581
|
@generate_initial_change_stream_partitions = ::Gapic::Config::Method.new generate_initial_change_stream_partitions_config
|
|
1434
1582
|
read_change_stream_config = parent_rpcs.read_change_stream if parent_rpcs.respond_to? :read_change_stream
|
|
1435
1583
|
@read_change_stream = ::Gapic::Config::Method.new read_change_stream_config
|
|
1584
|
+
execute_query_config = parent_rpcs.execute_query if parent_rpcs.respond_to? :execute_query
|
|
1585
|
+
@execute_query = ::Gapic::Config::Method.new execute_query_config
|
|
1436
1586
|
|
|
1437
1587
|
yield self if block_given?
|
|
1438
1588
|
end
|
|
@@ -746,6 +746,82 @@ module Google
|
|
|
746
746
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
747
747
|
end
|
|
748
748
|
end
|
|
749
|
+
|
|
750
|
+
# Request message for Bigtable.ExecuteQuery
|
|
751
|
+
# @!attribute [rw] instance_name
|
|
752
|
+
# @return [::String]
|
|
753
|
+
# Required. The unique name of the instance against which the query should be
|
|
754
|
+
# executed.
|
|
755
|
+
# Values are of the form `projects/<project>/instances/<instance>`
|
|
756
|
+
# @!attribute [rw] app_profile_id
|
|
757
|
+
# @return [::String]
|
|
758
|
+
# Optional. This value specifies routing for replication. If not specified,
|
|
759
|
+
# the `default` application profile will be used.
|
|
760
|
+
# @!attribute [rw] query
|
|
761
|
+
# @return [::String]
|
|
762
|
+
# Required. The query string.
|
|
763
|
+
# @!attribute [rw] proto_format
|
|
764
|
+
# @return [::Google::Cloud::Bigtable::V2::ProtoFormat]
|
|
765
|
+
# Protocol buffer format as described by ProtoSchema and ProtoRows
|
|
766
|
+
# messages.
|
|
767
|
+
# @!attribute [rw] resume_token
|
|
768
|
+
# @return [::String]
|
|
769
|
+
# Optional. If this request is resuming a previously interrupted query
|
|
770
|
+
# execution, `resume_token` should be copied from the last
|
|
771
|
+
# PartialResultSet yielded before the interruption. Doing this
|
|
772
|
+
# enables the query execution to resume where the last one left
|
|
773
|
+
# off.
|
|
774
|
+
# The rest of the request parameters must exactly match the
|
|
775
|
+
# request that yielded this token. Otherwise the request will fail.
|
|
776
|
+
# @!attribute [rw] params
|
|
777
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::V2::Value}]
|
|
778
|
+
# Required. params contains string type keys and Bigtable type values that
|
|
779
|
+
# bind to placeholders in the query string. In query string, a parameter
|
|
780
|
+
# placeholder consists of the
|
|
781
|
+
# `@` character followed by the parameter name (for example, `@firstName`) in
|
|
782
|
+
# the query string.
|
|
783
|
+
#
|
|
784
|
+
# For example, if
|
|
785
|
+
# `params["firstName"] = bytes_value: "foo" type {bytes_type {}}`
|
|
786
|
+
# then `@firstName` will be replaced with googlesql bytes value "foo" in the
|
|
787
|
+
# query string during query evaluation.
|
|
788
|
+
#
|
|
789
|
+
# In case of Value.kind is not set, it will be set to corresponding null
|
|
790
|
+
# value in googlesql.
|
|
791
|
+
# `params["firstName"] = type {string_type {}}`
|
|
792
|
+
# then `@firstName` will be replaced with googlesql null string.
|
|
793
|
+
#
|
|
794
|
+
# Value.type should always be set and no inference of type will be made from
|
|
795
|
+
# Value.kind. If Value.type is not set, we will return INVALID_ARGUMENT
|
|
796
|
+
# error.
|
|
797
|
+
class ExecuteQueryRequest
|
|
798
|
+
include ::Google::Protobuf::MessageExts
|
|
799
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
800
|
+
|
|
801
|
+
# @!attribute [rw] key
|
|
802
|
+
# @return [::String]
|
|
803
|
+
# @!attribute [rw] value
|
|
804
|
+
# @return [::Google::Cloud::Bigtable::V2::Value]
|
|
805
|
+
class ParamsEntry
|
|
806
|
+
include ::Google::Protobuf::MessageExts
|
|
807
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
808
|
+
end
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# Response message for Bigtable.ExecuteQuery
|
|
812
|
+
# @!attribute [rw] metadata
|
|
813
|
+
# @return [::Google::Cloud::Bigtable::V2::ResultSetMetadata]
|
|
814
|
+
# Structure of rows in this response stream. The first (and only the first)
|
|
815
|
+
# response streamed from the server will be of this type.
|
|
816
|
+
# @!attribute [rw] results
|
|
817
|
+
# @return [::Google::Cloud::Bigtable::V2::PartialResultSet]
|
|
818
|
+
# A partial result set with row data potentially including additional
|
|
819
|
+
# instructions on how recent past and future partial responses should be
|
|
820
|
+
# interpreted.
|
|
821
|
+
class ExecuteQueryResponse
|
|
822
|
+
include ::Google::Protobuf::MessageExts
|
|
823
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
824
|
+
end
|
|
749
825
|
end
|
|
750
826
|
end
|
|
751
827
|
end
|
|
@@ -98,6 +98,21 @@ module Google
|
|
|
98
98
|
# The typed fields in `Value` are used as a transport encoding for the actual
|
|
99
99
|
# value (which may be of a more complex type). See the documentation of the
|
|
100
100
|
# `Type` message for more details.
|
|
101
|
+
# @!attribute [rw] type
|
|
102
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
103
|
+
# The verified `Type` of this `Value`, if it cannot be inferred.
|
|
104
|
+
#
|
|
105
|
+
# Read results will never specify the encoding for `type` since the value
|
|
106
|
+
# will already have been decoded by the server. Furthermore, the `type` will
|
|
107
|
+
# be omitted entirely if it can be inferred from a previous response. The
|
|
108
|
+
# exact semantics for inferring `type` will vary, and are therefore
|
|
109
|
+
# documented separately for each read method.
|
|
110
|
+
#
|
|
111
|
+
# When using composite types (Struct, Array, Map) only the outermost `Value`
|
|
112
|
+
# will specify the `type`. This top-level `type` will define the types for
|
|
113
|
+
# any nested `Struct' fields, `Array` elements, or `Map` key/value pairs.
|
|
114
|
+
# If a nested `Value` provides a `type` on write, the request will be
|
|
115
|
+
# rejected with INVALID_ARGUMENT.
|
|
101
116
|
# @!attribute [rw] raw_value
|
|
102
117
|
# @return [::String]
|
|
103
118
|
# Represents a raw byte sequence with no type information.
|
|
@@ -106,15 +121,48 @@ module Google
|
|
|
106
121
|
# @return [::Integer]
|
|
107
122
|
# Represents a raw cell timestamp with no type information.
|
|
108
123
|
# The `type` field must be omitted.
|
|
124
|
+
# @!attribute [rw] bytes_value
|
|
125
|
+
# @return [::String]
|
|
126
|
+
# Represents a typed value transported as a byte sequence.
|
|
127
|
+
# @!attribute [rw] string_value
|
|
128
|
+
# @return [::String]
|
|
129
|
+
# Represents a typed value transported as a string.
|
|
109
130
|
# @!attribute [rw] int_value
|
|
110
131
|
# @return [::Integer]
|
|
111
132
|
# Represents a typed value transported as an integer.
|
|
112
|
-
#
|
|
133
|
+
# @!attribute [rw] bool_value
|
|
134
|
+
# @return [::Boolean]
|
|
135
|
+
# Represents a typed value transported as a boolean.
|
|
136
|
+
# @!attribute [rw] float_value
|
|
137
|
+
# @return [::Float]
|
|
138
|
+
# Represents a typed value transported as a floating point number.
|
|
139
|
+
# @!attribute [rw] timestamp_value
|
|
140
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
141
|
+
# Represents a typed value transported as a timestamp.
|
|
142
|
+
# @!attribute [rw] date_value
|
|
143
|
+
# @return [::Google::Type::Date]
|
|
144
|
+
# Represents a typed value transported as a date.
|
|
145
|
+
# @!attribute [rw] array_value
|
|
146
|
+
# @return [::Google::Cloud::Bigtable::V2::ArrayValue]
|
|
147
|
+
# Represents a typed value transported as a sequence of values.
|
|
148
|
+
# To differentiate between `Struct`, `Array`, and `Map`, the outermost
|
|
149
|
+
# `Value` must provide an explicit `type` on write. This `type` will
|
|
150
|
+
# apply recursively to the nested `Struct` fields, `Array` elements,
|
|
151
|
+
# or `Map` key/value pairs, which *must not* supply their own `type`.
|
|
113
152
|
class Value
|
|
114
153
|
include ::Google::Protobuf::MessageExts
|
|
115
154
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
116
155
|
end
|
|
117
156
|
|
|
157
|
+
# `ArrayValue` is an ordered list of `Value`.
|
|
158
|
+
# @!attribute [rw] values
|
|
159
|
+
# @return [::Array<::Google::Cloud::Bigtable::V2::Value>]
|
|
160
|
+
# The ordered elements in the array.
|
|
161
|
+
class ArrayValue
|
|
162
|
+
include ::Google::Protobuf::MessageExts
|
|
163
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
164
|
+
end
|
|
165
|
+
|
|
118
166
|
# Specifies a contiguous range of rows.
|
|
119
167
|
# @!attribute [rw] start_key_closed
|
|
120
168
|
# @return [::String]
|
|
@@ -633,6 +681,94 @@ module Google
|
|
|
633
681
|
include ::Google::Protobuf::MessageExts
|
|
634
682
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
635
683
|
end
|
|
684
|
+
|
|
685
|
+
# Protocol buffers format descriptor, as described by Messages ProtoSchema and
|
|
686
|
+
# ProtoRows
|
|
687
|
+
class ProtoFormat
|
|
688
|
+
include ::Google::Protobuf::MessageExts
|
|
689
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Describes a column in a Bigtable Query Language result set.
|
|
693
|
+
# @!attribute [rw] name
|
|
694
|
+
# @return [::String]
|
|
695
|
+
# The name of the column.
|
|
696
|
+
# @!attribute [rw] type
|
|
697
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
698
|
+
# The type of the column.
|
|
699
|
+
class ColumnMetadata
|
|
700
|
+
include ::Google::Protobuf::MessageExts
|
|
701
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# ResultSet schema in proto format
|
|
705
|
+
# @!attribute [rw] columns
|
|
706
|
+
# @return [::Array<::Google::Cloud::Bigtable::V2::ColumnMetadata>]
|
|
707
|
+
# The columns in the result set.
|
|
708
|
+
class ProtoSchema
|
|
709
|
+
include ::Google::Protobuf::MessageExts
|
|
710
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
# Describes the structure of a Bigtable result set.
|
|
714
|
+
# @!attribute [rw] proto_schema
|
|
715
|
+
# @return [::Google::Cloud::Bigtable::V2::ProtoSchema]
|
|
716
|
+
# Schema in proto format
|
|
717
|
+
class ResultSetMetadata
|
|
718
|
+
include ::Google::Protobuf::MessageExts
|
|
719
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
# Batch of serialized ProtoRows.
|
|
723
|
+
# @!attribute [rw] batch_data
|
|
724
|
+
# @return [::String]
|
|
725
|
+
# Merge partial results by concatenating these bytes, then parsing the
|
|
726
|
+
# overall value as a `ProtoRows` message.
|
|
727
|
+
class ProtoRowsBatch
|
|
728
|
+
include ::Google::Protobuf::MessageExts
|
|
729
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# A partial result set from the streaming query API.
|
|
733
|
+
# CBT client will buffer partial_rows from result_sets until it gets a
|
|
734
|
+
# resumption_token.
|
|
735
|
+
# @!attribute [rw] proto_rows_batch
|
|
736
|
+
# @return [::Google::Cloud::Bigtable::V2::ProtoRowsBatch]
|
|
737
|
+
# Partial rows in serialized ProtoRows format.
|
|
738
|
+
# @!attribute [rw] resume_token
|
|
739
|
+
# @return [::String]
|
|
740
|
+
# An opaque token sent by the server to allow query resumption and signal
|
|
741
|
+
# the client to accumulate `partial_rows` since the last non-empty
|
|
742
|
+
# `resume_token`. On resumption, the resumed query will return the remaining
|
|
743
|
+
# rows for this query.
|
|
744
|
+
#
|
|
745
|
+
# If there is a batch in progress, a non-empty `resume_token`
|
|
746
|
+
# means that that the batch of `partial_rows` will be complete after merging
|
|
747
|
+
# the `partial_rows` from this response. The client must only yield
|
|
748
|
+
# completed batches to the application, and must ensure that any future
|
|
749
|
+
# retries send the latest token to avoid returning duplicate data.
|
|
750
|
+
#
|
|
751
|
+
# The server may set 'resume_token' without a 'partial_rows'. If there is a
|
|
752
|
+
# batch in progress the client should yield it.
|
|
753
|
+
#
|
|
754
|
+
# The server will also send a sentinel `resume_token` when last batch of
|
|
755
|
+
# `partial_rows` is sent. If the client retries the ExecuteQueryRequest with
|
|
756
|
+
# the sentinel `resume_token`, the server will emit it again without any
|
|
757
|
+
# `partial_rows`, then return OK.
|
|
758
|
+
# @!attribute [rw] estimated_batch_size
|
|
759
|
+
# @return [::Integer]
|
|
760
|
+
# Estimated size of a new batch. The server will always set this when
|
|
761
|
+
# returning the first `partial_rows` of a batch, and will not set it at any
|
|
762
|
+
# other time.
|
|
763
|
+
#
|
|
764
|
+
# The client can use this estimate to allocate an initial buffer for the
|
|
765
|
+
# batched results. This helps minimize the number of allocations required,
|
|
766
|
+
# though the buffer size may still need to be increased if the estimate is
|
|
767
|
+
# too low.
|
|
768
|
+
class PartialResultSet
|
|
769
|
+
include ::Google::Protobuf::MessageExts
|
|
770
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
771
|
+
end
|
|
636
772
|
end
|
|
637
773
|
end
|
|
638
774
|
end
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Bigtable
|
|
23
|
+
module V2
|
|
24
|
+
# `Type` represents the type of data that is written to, read from, or stored
|
|
25
|
+
# in Bigtable. It is heavily based on the GoogleSQL standard to help maintain
|
|
26
|
+
# familiarity and consistency across products and features.
|
|
27
|
+
#
|
|
28
|
+
# For compatibility with Bigtable's existing untyped APIs, each `Type` includes
|
|
29
|
+
# an `Encoding` which describes how to convert to/from the underlying data.
|
|
30
|
+
#
|
|
31
|
+
# Each encoding also defines the following properties:
|
|
32
|
+
#
|
|
33
|
+
# * Order-preserving: Does the encoded value sort consistently with the
|
|
34
|
+
# original typed value? Note that Bigtable will always sort data based on
|
|
35
|
+
# the raw encoded value, *not* the decoded type.
|
|
36
|
+
# - Example: BYTES values sort in the same order as their raw encodings.
|
|
37
|
+
# - Counterexample: Encoding INT64 as a fixed-width decimal string does
|
|
38
|
+
# *not* preserve sort order when dealing with negative numbers.
|
|
39
|
+
# `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`.
|
|
40
|
+
# * Self-delimiting: If we concatenate two encoded values, can we always tell
|
|
41
|
+
# where the first one ends and the second one begins?
|
|
42
|
+
# - Example: If we encode INT64s to fixed-width STRINGs, the first value
|
|
43
|
+
# will always contain exactly N digits, possibly preceded by a sign.
|
|
44
|
+
# - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have
|
|
45
|
+
# no way to tell where the first one ends.
|
|
46
|
+
# * Compatibility: Which other systems have matching encoding schemes? For
|
|
47
|
+
# example, does this encoding have a GoogleSQL equivalent? HBase? Java?
|
|
48
|
+
# @!attribute [rw] bytes_type
|
|
49
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Bytes]
|
|
50
|
+
# Bytes
|
|
51
|
+
# @!attribute [rw] string_type
|
|
52
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::String]
|
|
53
|
+
# String
|
|
54
|
+
# @!attribute [rw] int64_type
|
|
55
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Int64]
|
|
56
|
+
# Int64
|
|
57
|
+
# @!attribute [rw] float32_type
|
|
58
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Float32]
|
|
59
|
+
# Float32
|
|
60
|
+
# @!attribute [rw] float64_type
|
|
61
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Float64]
|
|
62
|
+
# Float64
|
|
63
|
+
# @!attribute [rw] bool_type
|
|
64
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Bool]
|
|
65
|
+
# Bool
|
|
66
|
+
# @!attribute [rw] timestamp_type
|
|
67
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Timestamp]
|
|
68
|
+
# Timestamp
|
|
69
|
+
# @!attribute [rw] date_type
|
|
70
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Date]
|
|
71
|
+
# Date
|
|
72
|
+
# @!attribute [rw] aggregate_type
|
|
73
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Aggregate]
|
|
74
|
+
# Aggregate
|
|
75
|
+
# @!attribute [rw] struct_type
|
|
76
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Struct]
|
|
77
|
+
# Struct
|
|
78
|
+
# @!attribute [rw] array_type
|
|
79
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Array]
|
|
80
|
+
# Array
|
|
81
|
+
# @!attribute [rw] map_type
|
|
82
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Map]
|
|
83
|
+
# Map
|
|
84
|
+
class Type
|
|
85
|
+
include ::Google::Protobuf::MessageExts
|
|
86
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
87
|
+
|
|
88
|
+
# Bytes
|
|
89
|
+
# Values of type `Bytes` are stored in `Value.bytes_value`.
|
|
90
|
+
# @!attribute [rw] encoding
|
|
91
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Bytes::Encoding]
|
|
92
|
+
# The encoding to use when converting to/from lower level types.
|
|
93
|
+
class Bytes
|
|
94
|
+
include ::Google::Protobuf::MessageExts
|
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
96
|
+
|
|
97
|
+
# Rules used to convert to/from lower level types.
|
|
98
|
+
# @!attribute [rw] raw
|
|
99
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Bytes::Encoding::Raw]
|
|
100
|
+
# Use `Raw` encoding.
|
|
101
|
+
class Encoding
|
|
102
|
+
include ::Google::Protobuf::MessageExts
|
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
104
|
+
|
|
105
|
+
# Leaves the value "as-is"
|
|
106
|
+
# * Order-preserving? Yes
|
|
107
|
+
# * Self-delimiting? No
|
|
108
|
+
# * Compatibility? N/A
|
|
109
|
+
class Raw
|
|
110
|
+
include ::Google::Protobuf::MessageExts
|
|
111
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# String
|
|
117
|
+
# Values of type `String` are stored in `Value.string_value`.
|
|
118
|
+
# @!attribute [rw] encoding
|
|
119
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::String::Encoding]
|
|
120
|
+
# The encoding to use when converting to/from lower level types.
|
|
121
|
+
class String
|
|
122
|
+
include ::Google::Protobuf::MessageExts
|
|
123
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
124
|
+
|
|
125
|
+
# Rules used to convert to/from lower level types.
|
|
126
|
+
# @!attribute [rw] utf8_bytes
|
|
127
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::String::Encoding::Utf8Bytes]
|
|
128
|
+
# Use `Utf8Bytes` encoding.
|
|
129
|
+
class Encoding
|
|
130
|
+
include ::Google::Protobuf::MessageExts
|
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
132
|
+
|
|
133
|
+
# UTF-8 encoding
|
|
134
|
+
# * Order-preserving? Yes (code point order)
|
|
135
|
+
# * Self-delimiting? No
|
|
136
|
+
# * Compatibility?
|
|
137
|
+
# - BigQuery Federation `TEXT` encoding
|
|
138
|
+
# - HBase `Bytes.toBytes`
|
|
139
|
+
# - Java `String#getBytes(StandardCharsets.UTF_8)`
|
|
140
|
+
class Utf8Bytes
|
|
141
|
+
include ::Google::Protobuf::MessageExts
|
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Int64
|
|
148
|
+
# Values of type `Int64` are stored in `Value.int_value`.
|
|
149
|
+
# @!attribute [rw] encoding
|
|
150
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Int64::Encoding]
|
|
151
|
+
# The encoding to use when converting to/from lower level types.
|
|
152
|
+
class Int64
|
|
153
|
+
include ::Google::Protobuf::MessageExts
|
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
155
|
+
|
|
156
|
+
# Rules used to convert to/from lower level types.
|
|
157
|
+
# @!attribute [rw] big_endian_bytes
|
|
158
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Int64::Encoding::BigEndianBytes]
|
|
159
|
+
# Use `BigEndianBytes` encoding.
|
|
160
|
+
class Encoding
|
|
161
|
+
include ::Google::Protobuf::MessageExts
|
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
163
|
+
|
|
164
|
+
# Encodes the value as an 8-byte big endian twos complement `Bytes`
|
|
165
|
+
# value.
|
|
166
|
+
# * Order-preserving? No (positive values only)
|
|
167
|
+
# * Self-delimiting? Yes
|
|
168
|
+
# * Compatibility?
|
|
169
|
+
# - BigQuery Federation `BINARY` encoding
|
|
170
|
+
# - HBase `Bytes.toBytes`
|
|
171
|
+
# - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`
|
|
172
|
+
# @!attribute [rw] bytes_type
|
|
173
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Bytes]
|
|
174
|
+
# Deprecated: ignored if set.
|
|
175
|
+
class BigEndianBytes
|
|
176
|
+
include ::Google::Protobuf::MessageExts
|
|
177
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# bool
|
|
183
|
+
# Values of type `Bool` are stored in `Value.bool_value`.
|
|
184
|
+
class Bool
|
|
185
|
+
include ::Google::Protobuf::MessageExts
|
|
186
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Float32
|
|
190
|
+
# Values of type `Float32` are stored in `Value.float_value`.
|
|
191
|
+
class Float32
|
|
192
|
+
include ::Google::Protobuf::MessageExts
|
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Float64
|
|
197
|
+
# Values of type `Float64` are stored in `Value.float_value`.
|
|
198
|
+
class Float64
|
|
199
|
+
include ::Google::Protobuf::MessageExts
|
|
200
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Timestamp
|
|
204
|
+
# Values of type `Timestamp` are stored in `Value.timestamp_value`.
|
|
205
|
+
class Timestamp
|
|
206
|
+
include ::Google::Protobuf::MessageExts
|
|
207
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Date
|
|
211
|
+
# Values of type `Date` are stored in `Value.date_value`.
|
|
212
|
+
class Date
|
|
213
|
+
include ::Google::Protobuf::MessageExts
|
|
214
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# A structured data value, consisting of fields which map to dynamically
|
|
218
|
+
# typed values.
|
|
219
|
+
# Values of type `Struct` are stored in `Value.array_value` where entries are
|
|
220
|
+
# in the same order and number as `field_types`.
|
|
221
|
+
# @!attribute [rw] fields
|
|
222
|
+
# @return [::Array<::Google::Cloud::Bigtable::V2::Type::Struct::Field>]
|
|
223
|
+
# The names and types of the fields in this struct.
|
|
224
|
+
class Struct
|
|
225
|
+
include ::Google::Protobuf::MessageExts
|
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
227
|
+
|
|
228
|
+
# A struct field and its type.
|
|
229
|
+
# @!attribute [rw] field_name
|
|
230
|
+
# @return [::String]
|
|
231
|
+
# The field name (optional). Fields without a `field_name` are considered
|
|
232
|
+
# anonymous and cannot be referenced by name.
|
|
233
|
+
# @!attribute [rw] type
|
|
234
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
235
|
+
# The type of values in this field.
|
|
236
|
+
class Field
|
|
237
|
+
include ::Google::Protobuf::MessageExts
|
|
238
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# An ordered list of elements of a given type.
|
|
243
|
+
# Values of type `Array` are stored in `Value.array_value`.
|
|
244
|
+
# @!attribute [rw] element_type
|
|
245
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
246
|
+
# The type of the elements in the array. This must not be `Array`.
|
|
247
|
+
class Array
|
|
248
|
+
include ::Google::Protobuf::MessageExts
|
|
249
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# A mapping of keys to values of a given type.
|
|
253
|
+
# Values of type `Map` are stored in a `Value.array_value` where each entry
|
|
254
|
+
# is another `Value.array_value` with two elements (the key and the value,
|
|
255
|
+
# in that order).
|
|
256
|
+
# Normally encoded Map values won't have repeated keys, however, clients are
|
|
257
|
+
# expected to handle the case in which they do. If the same key appears
|
|
258
|
+
# multiple times, the _last_ value takes precedence.
|
|
259
|
+
# @!attribute [rw] key_type
|
|
260
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
261
|
+
# The type of a map key.
|
|
262
|
+
# Only `Bytes`, `String`, and `Int64` are allowed as key types.
|
|
263
|
+
# @!attribute [rw] value_type
|
|
264
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
265
|
+
# The type of the values in a map.
|
|
266
|
+
class Map
|
|
267
|
+
include ::Google::Protobuf::MessageExts
|
|
268
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# A value that combines incremental updates into a summarized value.
|
|
272
|
+
#
|
|
273
|
+
# Data is never directly written or read using type `Aggregate`. Writes will
|
|
274
|
+
# provide either the `input_type` or `state_type`, and reads will always
|
|
275
|
+
# return the `state_type` .
|
|
276
|
+
# @!attribute [rw] input_type
|
|
277
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
278
|
+
# Type of the inputs that are accumulated by this `Aggregate`, which must
|
|
279
|
+
# specify a full encoding.
|
|
280
|
+
# Use `AddInput` mutations to accumulate new inputs.
|
|
281
|
+
# @!attribute [r] state_type
|
|
282
|
+
# @return [::Google::Cloud::Bigtable::V2::Type]
|
|
283
|
+
# Output only. Type that holds the internal accumulator state for the
|
|
284
|
+
# `Aggregate`. This is a function of the `input_type` and `aggregator`
|
|
285
|
+
# chosen, and will always specify a full encoding.
|
|
286
|
+
# @!attribute [rw] sum
|
|
287
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Aggregate::Sum]
|
|
288
|
+
# Sum aggregator.
|
|
289
|
+
# @!attribute [rw] hllpp_unique_count
|
|
290
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount]
|
|
291
|
+
# HyperLogLogPlusPlusUniqueCount aggregator.
|
|
292
|
+
# @!attribute [rw] max
|
|
293
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Aggregate::Max]
|
|
294
|
+
# Max aggregator.
|
|
295
|
+
# @!attribute [rw] min
|
|
296
|
+
# @return [::Google::Cloud::Bigtable::V2::Type::Aggregate::Min]
|
|
297
|
+
# Min aggregator.
|
|
298
|
+
class Aggregate
|
|
299
|
+
include ::Google::Protobuf::MessageExts
|
|
300
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
301
|
+
|
|
302
|
+
# Computes the sum of the input values.
|
|
303
|
+
# Allowed input: `Int64`
|
|
304
|
+
# State: same as input
|
|
305
|
+
class Sum
|
|
306
|
+
include ::Google::Protobuf::MessageExts
|
|
307
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Computes the max of the input values.
|
|
311
|
+
# Allowed input: `Int64`
|
|
312
|
+
# State: same as input
|
|
313
|
+
class Max
|
|
314
|
+
include ::Google::Protobuf::MessageExts
|
|
315
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Computes the min of the input values.
|
|
319
|
+
# Allowed input: `Int64`
|
|
320
|
+
# State: same as input
|
|
321
|
+
class Min
|
|
322
|
+
include ::Google::Protobuf::MessageExts
|
|
323
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# Computes an approximate unique count over the input values. When using
|
|
327
|
+
# raw data as input, be careful to use a consistent encoding. Otherwise
|
|
328
|
+
# the same value encoded differently could count more than once, or two
|
|
329
|
+
# distinct values could count as identical.
|
|
330
|
+
# Input: Any, or omit for Raw
|
|
331
|
+
# State: TBD
|
|
332
|
+
# Special state conversions: `Int64` (the unique count estimate)
|
|
333
|
+
class HyperLogLogPlusPlusUniqueCount
|
|
334
|
+
include ::Google::Protobuf::MessageExts
|
|
335
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Type
|
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
|
25
|
+
# following:
|
|
26
|
+
#
|
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
|
29
|
+
# * A year on its own, with zero month and day values
|
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
|
31
|
+
# date
|
|
32
|
+
#
|
|
33
|
+
# Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
|
|
34
|
+
# `google.protobuf.Timestamp`.
|
|
35
|
+
# @!attribute [rw] year
|
|
36
|
+
# @return [::Integer]
|
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
|
38
|
+
# a year.
|
|
39
|
+
# @!attribute [rw] month
|
|
40
|
+
# @return [::Integer]
|
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
|
42
|
+
# month and day.
|
|
43
|
+
# @!attribute [rw] day
|
|
44
|
+
# @return [::Integer]
|
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
|
47
|
+
# significant.
|
|
48
|
+
class Date
|
|
49
|
+
include ::Google::Protobuf::MessageExts
|
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
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:
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -64,6 +64,7 @@ files:
|
|
|
64
64
|
- lib/google/bigtable/v2/feature_flags_pb.rb
|
|
65
65
|
- lib/google/bigtable/v2/request_stats_pb.rb
|
|
66
66
|
- lib/google/bigtable/v2/response_params_pb.rb
|
|
67
|
+
- lib/google/bigtable/v2/types_pb.rb
|
|
67
68
|
- lib/google/cloud/bigtable/v2.rb
|
|
68
69
|
- lib/google/cloud/bigtable/v2/bigtable.rb
|
|
69
70
|
- lib/google/cloud/bigtable/v2/bigtable/client.rb
|
|
@@ -82,11 +83,13 @@ files:
|
|
|
82
83
|
- proto_docs/google/bigtable/v2/feature_flags.rb
|
|
83
84
|
- proto_docs/google/bigtable/v2/request_stats.rb
|
|
84
85
|
- proto_docs/google/bigtable/v2/response_params.rb
|
|
86
|
+
- proto_docs/google/bigtable/v2/types.rb
|
|
85
87
|
- proto_docs/google/protobuf/any.rb
|
|
86
88
|
- proto_docs/google/protobuf/duration.rb
|
|
87
89
|
- proto_docs/google/protobuf/timestamp.rb
|
|
88
90
|
- proto_docs/google/protobuf/wrappers.rb
|
|
89
91
|
- proto_docs/google/rpc/status.rb
|
|
92
|
+
- proto_docs/google/type/date.rb
|
|
90
93
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
|
91
94
|
licenses:
|
|
92
95
|
- Apache-2.0
|