google-cloud-spanner-v1 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/spanner/v1/spanner/client.rb +6 -6
- data/lib/google/cloud/spanner/v1/version.rb +1 -1
- data/lib/google/spanner/v1/commit_response_pb.rb +25 -8
- data/lib/google/spanner/v1/keys_pb.rb +25 -16
- data/lib/google/spanner/v1/mutation_pb.rb +26 -19
- data/lib/google/spanner/v1/query_plan_pb.rb +25 -27
- data/lib/google/spanner/v1/result_set_pb.rb +28 -26
- data/lib/google/spanner/v1/spanner_pb.rb +32 -146
- data/lib/google/spanner/v1/transaction_pb.rb +26 -39
- data/lib/google/spanner/v1/type_pb.rb +24 -33
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/spanner/v1/spanner.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30438e86d9937b1847c3145b66b88154ac70f57ea0d2d750800748b5c3090042
|
|
4
|
+
data.tar.gz: d0de090595946594d5cba9ce815acca9a7c30f0117b124c9ffcec3f2c1da7919
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c800f492b41c98f89b68c0a718733104058f751792ca6bb033b9604eeb51f52f1b38e61f98d37965bc712ba8873b6cae1ada6f85243cd7272f9443b593b2c548
|
|
7
|
+
data.tar.gz: 3eb946723a93715cce59fc608b62c9cc1a5dfea56819dbb2e1cf93b519eeeba9f9b867eed8784a64f364004b029dbc6415e4a4c76b31d1159012051d9b962b64
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
|
47
47
|
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
53
53
|
|
|
@@ -797,7 +797,7 @@ module Google
|
|
|
797
797
|
# @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
|
|
798
798
|
# Common options for this request.
|
|
799
799
|
# @param data_boost_enabled [::Boolean]
|
|
800
|
-
# If this is for a partitioned
|
|
800
|
+
# If this is for a partitioned query and this field is set to `true`, the
|
|
801
801
|
# request will be executed via Spanner independent compute resources.
|
|
802
802
|
#
|
|
803
803
|
# If the field is set to `true` but the request does not set
|
|
@@ -959,7 +959,7 @@ module Google
|
|
|
959
959
|
# @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
|
|
960
960
|
# Common options for this request.
|
|
961
961
|
# @param data_boost_enabled [::Boolean]
|
|
962
|
-
# If this is for a partitioned
|
|
962
|
+
# If this is for a partitioned query and this field is set to `true`, the
|
|
963
963
|
# request will be executed via Spanner independent compute resources.
|
|
964
964
|
#
|
|
965
965
|
# If the field is set to `true` but the request does not set
|
|
@@ -1227,7 +1227,7 @@ module Google
|
|
|
1227
1227
|
# @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
|
|
1228
1228
|
# Common options for this request.
|
|
1229
1229
|
# @param data_boost_enabled [::Boolean]
|
|
1230
|
-
# If this is for a partitioned
|
|
1230
|
+
# If this is for a partitioned read and this field is set to `true`, the
|
|
1231
1231
|
# request will be executed via Spanner independent compute resources.
|
|
1232
1232
|
#
|
|
1233
1233
|
# If the field is set to `true` but the request does not set
|
|
@@ -1365,7 +1365,7 @@ module Google
|
|
|
1365
1365
|
# @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
|
|
1366
1366
|
# Common options for this request.
|
|
1367
1367
|
# @param data_boost_enabled [::Boolean]
|
|
1368
|
-
# If this is for a partitioned
|
|
1368
|
+
# If this is for a partitioned read and this field is set to `true`, the
|
|
1369
1369
|
# request will be executed via Spanner independent compute resources.
|
|
1370
1370
|
#
|
|
1371
1371
|
# If the field is set to `true` but the request does not set
|
|
@@ -2038,9 +2038,9 @@ module Google
|
|
|
2038
2038
|
# * (`String`) The path to a service account key file in JSON format
|
|
2039
2039
|
# * (`Hash`) A service account key as a Hash
|
|
2040
2040
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2041
|
-
# (see the [googleauth docs](https://
|
|
2041
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2042
2042
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
2043
|
-
# (see the [signet docs](https://
|
|
2043
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
2044
2044
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
2045
2045
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2046
2046
|
# * (`nil`) indicating no credentials
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/commit_response.proto
|
|
3
4
|
|
|
@@ -5,16 +6,32 @@ require 'google/protobuf'
|
|
|
5
6
|
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\'google/spanner/v1/commit_response.proto\x12\x11google.spanner.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x01\n\x0e\x43ommitResponse\x12\x34\n\x10\x63ommit_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x0c\x63ommit_stats\x18\x02 \x01(\x0b\x32-.google.spanner.v1.CommitResponse.CommitStats\x1a%\n\x0b\x43ommitStats\x12\x16\n\x0emutation_count\x18\x01 \x01(\x03\x42\xb6\x01\n\x15\x63om.google.spanner.v1B\x13\x43ommitResponseProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
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
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
26
|
+
]
|
|
27
|
+
imports.each do |type_name, expected_filename|
|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
+
if import_file.name != expected_filename
|
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
16
31
|
end
|
|
17
32
|
end
|
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
+
warn "This will become an error in the next major version."
|
|
18
35
|
end
|
|
19
36
|
|
|
20
37
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/keys.proto
|
|
3
4
|
|
|
@@ -5,24 +6,32 @@ require 'google/protobuf'
|
|
|
5
6
|
|
|
6
7
|
require 'google/protobuf/struct_pb'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1cgoogle/spanner/v1/keys.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/protobuf/struct.proto\"\xf4\x01\n\x08KeyRange\x12\x32\n\x0cstart_closed\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12\x30\n\nstart_open\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x12\x30\n\nend_closed\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x01\x12.\n\x08\x65nd_open\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x01\x42\x10\n\x0estart_key_typeB\x0e\n\x0c\x65nd_key_type\"l\n\x06KeySet\x12(\n\x04keys\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12+\n\x06ranges\x18\x02 \x03(\x0b\x32\x1b.google.spanner.v1.KeyRange\x12\x0b\n\x03\x61ll\x18\x03 \x01(\x08\x42\xac\x01\n\x15\x63om.google.spanner.v1B\tKeysProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
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
|
+
["google.protobuf.ListValue", "google/protobuf/struct.proto"],
|
|
26
|
+
]
|
|
27
|
+
imports.each do |type_name, expected_filename|
|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
+
if import_file.name != expected_filename
|
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
24
31
|
end
|
|
25
32
|
end
|
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
+
warn "This will become an error in the next major version."
|
|
26
35
|
end
|
|
27
36
|
|
|
28
37
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/mutation.proto
|
|
3
4
|
|
|
@@ -7,27 +8,33 @@ require 'google/api/field_behavior_pb'
|
|
|
7
8
|
require 'google/protobuf/struct_pb'
|
|
8
9
|
require 'google/spanner/v1/keys_pb'
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
|
|
12
|
+
descriptor_data = "\n google/spanner/v1/mutation.proto\x12\x11google.spanner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/spanner/v1/keys.proto\"\xd5\x03\n\x08Mutation\x12\x33\n\x06insert\x18\x01 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x33\n\x06update\x18\x02 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12=\n\x10insert_or_update\x18\x03 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x34\n\x07replace\x18\x04 \x01(\x0b\x32!.google.spanner.v1.Mutation.WriteH\x00\x12\x34\n\x06\x64\x65lete\x18\x05 \x01(\x0b\x32\".google.spanner.v1.Mutation.DeleteH\x00\x1aX\n\x05Write\x12\x12\n\x05table\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63olumns\x18\x02 \x03(\t\x12*\n\x06values\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x1aM\n\x06\x44\x65lete\x12\x12\n\x05table\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12/\n\x07key_set\x18\x02 \x01(\x0b\x32\x19.google.spanner.v1.KeySetB\x03\xe0\x41\x02\x42\x0b\n\toperationB\xb0\x01\n\x15\x63om.google.spanner.v1B\rMutationProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
13
|
+
|
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
|
|
16
|
+
begin
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
rescue TypeError => e
|
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
22
|
+
parsed.clear_dependency
|
|
23
|
+
serialized = parsed.class.encode(parsed)
|
|
24
|
+
file = pool.add_serialized_file(serialized)
|
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
26
|
+
imports = [
|
|
27
|
+
["google.protobuf.ListValue", "google/protobuf/struct.proto"],
|
|
28
|
+
["google.spanner.v1.KeySet", "google/spanner/v1/keys.proto"],
|
|
29
|
+
]
|
|
30
|
+
imports.each do |type_name, expected_filename|
|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
32
|
+
if import_file.name != expected_filename
|
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
29
34
|
end
|
|
30
35
|
end
|
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
37
|
+
warn "This will become an error in the next major version."
|
|
31
38
|
end
|
|
32
39
|
|
|
33
40
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/query_plan.proto
|
|
3
4
|
|
|
@@ -5,35 +6,32 @@ require 'google/protobuf'
|
|
|
5
6
|
|
|
6
7
|
require 'google/protobuf/struct_pb'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
value :RELATIONAL, 1
|
|
31
|
-
value :SCALAR, 2
|
|
32
|
-
end
|
|
33
|
-
add_message "google.spanner.v1.QueryPlan" do
|
|
34
|
-
repeated :plan_nodes, :message, 1, "google.spanner.v1.PlanNode"
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\"google/spanner/v1/query_plan.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/protobuf/struct.proto\"\xf8\x04\n\x08PlanNode\x12\r\n\x05index\x18\x01 \x01(\x05\x12.\n\x04kind\x18\x02 \x01(\x0e\x32 .google.spanner.v1.PlanNode.Kind\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12:\n\x0b\x63hild_links\x18\x04 \x03(\x0b\x32%.google.spanner.v1.PlanNode.ChildLink\x12M\n\x14short_representation\x18\x05 \x01(\x0b\x32/.google.spanner.v1.PlanNode.ShortRepresentation\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x30\n\x0f\x65xecution_stats\x18\x07 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\tChildLink\x12\x13\n\x0b\x63hild_index\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08variable\x18\x03 \x01(\t\x1a\xb2\x01\n\x13ShortRepresentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12S\n\nsubqueries\x18\x02 \x03(\x0b\x32?.google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry\x1a\x31\n\x0fSubqueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"8\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRELATIONAL\x10\x01\x12\n\n\x06SCALAR\x10\x02\"<\n\tQueryPlan\x12/\n\nplan_nodes\x18\x01 \x03(\x0b\x32\x1b.google.spanner.v1.PlanNodeB\xb1\x01\n\x15\x63om.google.spanner.v1B\x0eQueryPlanProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
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
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
|
26
|
+
]
|
|
27
|
+
imports.each do |type_name, expected_filename|
|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
+
if import_file.name != expected_filename
|
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
35
31
|
end
|
|
36
32
|
end
|
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
+
warn "This will become an error in the next major version."
|
|
37
35
|
end
|
|
38
36
|
|
|
39
37
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/result_set.proto
|
|
3
4
|
|
|
@@ -8,34 +9,35 @@ require 'google/spanner/v1/query_plan_pb'
|
|
|
8
9
|
require 'google/spanner/v1/transaction_pb'
|
|
9
10
|
require 'google/spanner/v1/type_pb'
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
end
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n\"google/spanner/v1/result_set.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\"google/spanner/v1/query_plan.proto\x1a#google/spanner/v1/transaction.proto\x1a\x1cgoogle/spanner/v1/type.proto\"\x9f\x01\n\tResultSet\x12\x36\n\x08metadata\x18\x01 \x01(\x0b\x32$.google.spanner.v1.ResultSetMetadata\x12(\n\x04rows\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12\x30\n\x05stats\x18\x03 \x01(\x0b\x32!.google.spanner.v1.ResultSetStats\"\xd1\x01\n\x10PartialResultSet\x12\x36\n\x08metadata\x18\x01 \x01(\x0b\x32$.google.spanner.v1.ResultSetMetadata\x12&\n\x06values\x18\x02 \x03(\x0b\x32\x16.google.protobuf.Value\x12\x15\n\rchunked_value\x18\x03 \x01(\x08\x12\x14\n\x0cresume_token\x18\x04 \x01(\x0c\x12\x30\n\x05stats\x18\x05 \x01(\x0b\x32!.google.spanner.v1.ResultSetStats\"\xb7\x01\n\x11ResultSetMetadata\x12/\n\x08row_type\x18\x01 \x01(\x0b\x32\x1d.google.spanner.v1.StructType\x12\x33\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1e.google.spanner.v1.Transaction\x12<\n\x15undeclared_parameters\x18\x03 \x01(\x0b\x32\x1d.google.spanner.v1.StructType\"\xb9\x01\n\x0eResultSetStats\x12\x30\n\nquery_plan\x18\x01 \x01(\x0b\x32\x1c.google.spanner.v1.QueryPlan\x12,\n\x0bquery_stats\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x19\n\x0frow_count_exact\x18\x03 \x01(\x03H\x00\x12\x1f\n\x15row_count_lower_bound\x18\x04 \x01(\x03H\x00\x42\x0b\n\trow_countB\xb4\x01\n\x15\x63om.google.spanner.v1B\x0eResultSetProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xf8\x01\x01\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
rescue TypeError => e
|
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
+
parsed.clear_dependency
|
|
24
|
+
serialized = parsed.class.encode(parsed)
|
|
25
|
+
file = pool.add_serialized_file(serialized)
|
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
+
imports = [
|
|
28
|
+
["google.protobuf.ListValue", "google/protobuf/struct.proto"],
|
|
29
|
+
["google.spanner.v1.StructType", "google/spanner/v1/type.proto"],
|
|
30
|
+
["google.spanner.v1.Transaction", "google/spanner/v1/transaction.proto"],
|
|
31
|
+
["google.spanner.v1.QueryPlan", "google/spanner/v1/query_plan.proto"],
|
|
32
|
+
]
|
|
33
|
+
imports.each do |type_name, expected_filename|
|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
35
|
+
if import_file.name != expected_filename
|
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
40
|
+
warn "This will become an error in the next major version."
|
|
39
41
|
end
|
|
40
42
|
|
|
41
43
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/spanner.proto
|
|
3
4
|
|
|
@@ -18,154 +19,39 @@ require 'google/spanner/v1/result_set_pb'
|
|
|
18
19
|
require 'google/spanner/v1/transaction_pb'
|
|
19
20
|
require 'google/spanner/v1/type_pb'
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
add_file("google/spanner/v1/spanner.proto", :syntax => :proto3) do
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
end
|
|
51
|
-
add_message "google.spanner.v1.ListSessionsResponse" do
|
|
52
|
-
repeated :sessions, :message, 1, "google.spanner.v1.Session"
|
|
53
|
-
optional :next_page_token, :string, 2
|
|
54
|
-
end
|
|
55
|
-
add_message "google.spanner.v1.DeleteSessionRequest" do
|
|
56
|
-
optional :name, :string, 1
|
|
57
|
-
end
|
|
58
|
-
add_message "google.spanner.v1.RequestOptions" do
|
|
59
|
-
optional :priority, :enum, 1, "google.spanner.v1.RequestOptions.Priority"
|
|
60
|
-
optional :request_tag, :string, 2
|
|
61
|
-
optional :transaction_tag, :string, 3
|
|
62
|
-
end
|
|
63
|
-
add_enum "google.spanner.v1.RequestOptions.Priority" do
|
|
64
|
-
value :PRIORITY_UNSPECIFIED, 0
|
|
65
|
-
value :PRIORITY_LOW, 1
|
|
66
|
-
value :PRIORITY_MEDIUM, 2
|
|
67
|
-
value :PRIORITY_HIGH, 3
|
|
68
|
-
end
|
|
69
|
-
add_message "google.spanner.v1.ExecuteSqlRequest" do
|
|
70
|
-
optional :session, :string, 1
|
|
71
|
-
optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
|
|
72
|
-
optional :sql, :string, 3
|
|
73
|
-
optional :params, :message, 4, "google.protobuf.Struct"
|
|
74
|
-
map :param_types, :string, :message, 5, "google.spanner.v1.Type"
|
|
75
|
-
optional :resume_token, :bytes, 6
|
|
76
|
-
optional :query_mode, :enum, 7, "google.spanner.v1.ExecuteSqlRequest.QueryMode"
|
|
77
|
-
optional :partition_token, :bytes, 8
|
|
78
|
-
optional :seqno, :int64, 9
|
|
79
|
-
optional :query_options, :message, 10, "google.spanner.v1.ExecuteSqlRequest.QueryOptions"
|
|
80
|
-
optional :request_options, :message, 11, "google.spanner.v1.RequestOptions"
|
|
81
|
-
optional :data_boost_enabled, :bool, 15
|
|
82
|
-
end
|
|
83
|
-
add_message "google.spanner.v1.ExecuteSqlRequest.QueryOptions" do
|
|
84
|
-
optional :optimizer_version, :string, 1
|
|
85
|
-
optional :optimizer_statistics_package, :string, 2
|
|
86
|
-
end
|
|
87
|
-
add_enum "google.spanner.v1.ExecuteSqlRequest.QueryMode" do
|
|
88
|
-
value :NORMAL, 0
|
|
89
|
-
value :PLAN, 1
|
|
90
|
-
value :PROFILE, 2
|
|
91
|
-
end
|
|
92
|
-
add_message "google.spanner.v1.ExecuteBatchDmlRequest" do
|
|
93
|
-
optional :session, :string, 1
|
|
94
|
-
optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
|
|
95
|
-
repeated :statements, :message, 3, "google.spanner.v1.ExecuteBatchDmlRequest.Statement"
|
|
96
|
-
optional :seqno, :int64, 4
|
|
97
|
-
optional :request_options, :message, 5, "google.spanner.v1.RequestOptions"
|
|
98
|
-
end
|
|
99
|
-
add_message "google.spanner.v1.ExecuteBatchDmlRequest.Statement" do
|
|
100
|
-
optional :sql, :string, 1
|
|
101
|
-
optional :params, :message, 2, "google.protobuf.Struct"
|
|
102
|
-
map :param_types, :string, :message, 3, "google.spanner.v1.Type"
|
|
103
|
-
end
|
|
104
|
-
add_message "google.spanner.v1.ExecuteBatchDmlResponse" do
|
|
105
|
-
repeated :result_sets, :message, 1, "google.spanner.v1.ResultSet"
|
|
106
|
-
optional :status, :message, 2, "google.rpc.Status"
|
|
107
|
-
end
|
|
108
|
-
add_message "google.spanner.v1.PartitionOptions" do
|
|
109
|
-
optional :partition_size_bytes, :int64, 1
|
|
110
|
-
optional :max_partitions, :int64, 2
|
|
111
|
-
end
|
|
112
|
-
add_message "google.spanner.v1.PartitionQueryRequest" do
|
|
113
|
-
optional :session, :string, 1
|
|
114
|
-
optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
|
|
115
|
-
optional :sql, :string, 3
|
|
116
|
-
optional :params, :message, 4, "google.protobuf.Struct"
|
|
117
|
-
map :param_types, :string, :message, 5, "google.spanner.v1.Type"
|
|
118
|
-
optional :partition_options, :message, 6, "google.spanner.v1.PartitionOptions"
|
|
119
|
-
end
|
|
120
|
-
add_message "google.spanner.v1.PartitionReadRequest" do
|
|
121
|
-
optional :session, :string, 1
|
|
122
|
-
optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
|
|
123
|
-
optional :table, :string, 3
|
|
124
|
-
optional :index, :string, 4
|
|
125
|
-
repeated :columns, :string, 5
|
|
126
|
-
optional :key_set, :message, 6, "google.spanner.v1.KeySet"
|
|
127
|
-
optional :partition_options, :message, 9, "google.spanner.v1.PartitionOptions"
|
|
128
|
-
end
|
|
129
|
-
add_message "google.spanner.v1.Partition" do
|
|
130
|
-
optional :partition_token, :bytes, 1
|
|
131
|
-
end
|
|
132
|
-
add_message "google.spanner.v1.PartitionResponse" do
|
|
133
|
-
repeated :partitions, :message, 1, "google.spanner.v1.Partition"
|
|
134
|
-
optional :transaction, :message, 2, "google.spanner.v1.Transaction"
|
|
135
|
-
end
|
|
136
|
-
add_message "google.spanner.v1.ReadRequest" do
|
|
137
|
-
optional :session, :string, 1
|
|
138
|
-
optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
|
|
139
|
-
optional :table, :string, 3
|
|
140
|
-
optional :index, :string, 4
|
|
141
|
-
repeated :columns, :string, 5
|
|
142
|
-
optional :key_set, :message, 6, "google.spanner.v1.KeySet"
|
|
143
|
-
optional :limit, :int64, 8
|
|
144
|
-
optional :resume_token, :bytes, 9
|
|
145
|
-
optional :partition_token, :bytes, 10
|
|
146
|
-
optional :request_options, :message, 11, "google.spanner.v1.RequestOptions"
|
|
147
|
-
optional :data_boost_enabled, :bool, 16
|
|
148
|
-
end
|
|
149
|
-
add_message "google.spanner.v1.BeginTransactionRequest" do
|
|
150
|
-
optional :session, :string, 1
|
|
151
|
-
optional :options, :message, 2, "google.spanner.v1.TransactionOptions"
|
|
152
|
-
optional :request_options, :message, 3, "google.spanner.v1.RequestOptions"
|
|
153
|
-
end
|
|
154
|
-
add_message "google.spanner.v1.CommitRequest" do
|
|
155
|
-
optional :session, :string, 1
|
|
156
|
-
repeated :mutations, :message, 4, "google.spanner.v1.Mutation"
|
|
157
|
-
optional :return_commit_stats, :bool, 5
|
|
158
|
-
optional :request_options, :message, 6, "google.spanner.v1.RequestOptions"
|
|
159
|
-
oneof :transaction do
|
|
160
|
-
optional :transaction_id, :bytes, 2
|
|
161
|
-
optional :single_use_transaction, :message, 3, "google.spanner.v1.TransactionOptions"
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
add_message "google.spanner.v1.RollbackRequest" do
|
|
165
|
-
optional :session, :string, 1
|
|
166
|
-
optional :transaction_id, :bytes, 2
|
|
22
|
+
|
|
23
|
+
descriptor_data = "\n\x1fgoogle/spanner/v1/spanner.proto\x12\x11google.spanner.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\'google/spanner/v1/commit_response.proto\x1a\x1cgoogle/spanner/v1/keys.proto\x1a google/spanner/v1/mutation.proto\x1a\"google/spanner/v1/result_set.proto\x1a#google/spanner/v1/transaction.proto\x1a\x1cgoogle/spanner/v1/type.proto\"\x83\x01\n\x14\x43reateSessionRequest\x12\x39\n\x08\x64\x61tabase\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x30\n\x07session\x18\x02 \x01(\x0b\x32\x1a.google.spanner.v1.SessionB\x03\xe0\x41\x02\"\xa9\x01\n\x1a\x42\x61tchCreateSessionsRequest\x12\x39\n\x08\x64\x61tabase\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x34\n\x10session_template\x18\x02 \x01(\x0b\x32\x1a.google.spanner.v1.Session\x12\x1a\n\rsession_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"J\n\x1b\x42\x61tchCreateSessionsResponse\x12+\n\x07session\x18\x01 \x03(\x0b\x32\x1a.google.spanner.v1.Session\"\x89\x03\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\x06labels\x18\x02 \x03(\x0b\x32&.google.spanner.v1.Session.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x19\x61pproximate_last_use_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x0c\x63reator_role\x18\x05 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:t\xea\x41q\n\x1espanner.googleapis.com/Session\x12Oprojects/{project}/instances/{instance}/databases/{database}/sessions/{session}\"I\n\x11GetSessionRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\"\x87\x01\n\x13ListSessionsRequest\x12\x39\n\x08\x64\x61tabase\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"]\n\x14ListSessionsResponse\x12,\n\x08sessions\x18\x01 \x03(\x0b\x32\x1a.google.spanner.v1.Session\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x14\x44\x65leteSessionRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\"\xdc\x01\n\x0eRequestOptions\x12<\n\x08priority\x18\x01 \x01(\x0e\x32*.google.spanner.v1.RequestOptions.Priority\x12\x13\n\x0brequest_tag\x18\x02 \x01(\t\x12\x17\n\x0ftransaction_tag\x18\x03 \x01(\t\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03\"\x80\x06\n\x11\x45xecuteSqlRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x10\n\x03sql\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\'\n\x06params\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12I\n\x0bparam_types\x18\x05 \x03(\x0b\x32\x34.google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry\x12\x14\n\x0cresume_token\x18\x06 \x01(\x0c\x12\x42\n\nquery_mode\x18\x07 \x01(\x0e\x32..google.spanner.v1.ExecuteSqlRequest.QueryMode\x12\x17\n\x0fpartition_token\x18\x08 \x01(\x0c\x12\r\n\x05seqno\x18\t \x01(\x03\x12H\n\rquery_options\x18\n \x01(\x0b\x32\x31.google.spanner.v1.ExecuteSqlRequest.QueryOptions\x12:\n\x0frequest_options\x18\x0b \x01(\x0b\x32!.google.spanner.v1.RequestOptions\x12\x1a\n\x12\x64\x61ta_boost_enabled\x18\x10 \x01(\x08\x1aO\n\x0cQueryOptions\x12\x19\n\x11optimizer_version\x18\x01 \x01(\t\x12$\n\x1coptimizer_statistics_package\x18\x02 \x01(\t\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01\".\n\tQueryMode\x12\n\n\x06NORMAL\x10\x00\x12\x08\n\x04PLAN\x10\x01\x12\x0b\n\x07PROFILE\x10\x02\"\xa0\x04\n\x16\x45xecuteBatchDmlRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12@\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelectorB\x03\xe0\x41\x02\x12L\n\nstatements\x18\x03 \x03(\x0b\x32\x33.google.spanner.v1.ExecuteBatchDmlRequest.StatementB\x03\xe0\x41\x02\x12\x12\n\x05seqno\x18\x04 \x01(\x03\x42\x03\xe0\x41\x02\x12:\n\x0frequest_options\x18\x05 \x01(\x0b\x32!.google.spanner.v1.RequestOptions\x1a\xec\x01\n\tStatement\x12\x10\n\x03sql\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\'\n\x06params\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12X\n\x0bparam_types\x18\x03 \x03(\x0b\x32\x43.google.spanner.v1.ExecuteBatchDmlRequest.Statement.ParamTypesEntry\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01\"p\n\x17\x45xecuteBatchDmlResponse\x12\x31\n\x0bresult_sets\x18\x01 \x03(\x0b\x32\x1c.google.spanner.v1.ResultSet\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"H\n\x10PartitionOptions\x12\x1c\n\x14partition_size_bytes\x18\x01 \x01(\x03\x12\x16\n\x0emax_partitions\x18\x02 \x01(\x03\"\xa3\x03\n\x15PartitionQueryRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x10\n\x03sql\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\'\n\x06params\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12M\n\x0bparam_types\x18\x05 \x03(\x0b\x32\x38.google.spanner.v1.PartitionQueryRequest.ParamTypesEntry\x12>\n\x11partition_options\x18\x06 \x01(\x0b\x32#.google.spanner.v1.PartitionOptions\x1aJ\n\x0fParamTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type:\x02\x38\x01\"\xb1\x02\n\x14PartitionReadRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x12\n\x05table\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05index\x18\x04 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x05 \x03(\t\x12/\n\x07key_set\x18\x06 \x01(\x0b\x32\x19.google.spanner.v1.KeySetB\x03\xe0\x41\x02\x12>\n\x11partition_options\x18\t \x01(\x0b\x32#.google.spanner.v1.PartitionOptions\"$\n\tPartition\x12\x17\n\x0fpartition_token\x18\x01 \x01(\x0c\"z\n\x11PartitionResponse\x12\x30\n\npartitions\x18\x01 \x03(\x0b\x32\x1c.google.spanner.v1.Partition\x12\x33\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1e.google.spanner.v1.Transaction\"\x83\x03\n\x0bReadRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12;\n\x0btransaction\x18\x02 \x01(\x0b\x32&.google.spanner.v1.TransactionSelector\x12\x12\n\x05table\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05index\x18\x04 \x01(\t\x12\x14\n\x07\x63olumns\x18\x05 \x03(\tB\x03\xe0\x41\x02\x12/\n\x07key_set\x18\x06 \x01(\x0b\x32\x19.google.spanner.v1.KeySetB\x03\xe0\x41\x02\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x14\n\x0cresume_token\x18\t \x01(\x0c\x12\x17\n\x0fpartition_token\x18\n \x01(\x0c\x12:\n\x0frequest_options\x18\x0b \x01(\x0b\x32!.google.spanner.v1.RequestOptions\x12\x1a\n\x12\x64\x61ta_boost_enabled\x18\x0f \x01(\x08\"\xcb\x01\n\x17\x42\x65ginTransactionRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12;\n\x07options\x18\x02 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsB\x03\xe0\x41\x02\x12:\n\x0frequest_options\x18\x03 \x01(\x0b\x32!.google.spanner.v1.RequestOptions\"\xc3\x02\n\rCommitRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12\x18\n\x0etransaction_id\x18\x02 \x01(\x0cH\x00\x12G\n\x16single_use_transaction\x18\x03 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x12.\n\tmutations\x18\x04 \x03(\x0b\x32\x1b.google.spanner.v1.Mutation\x12\x1b\n\x13return_commit_stats\x18\x05 \x01(\x08\x12:\n\x0frequest_options\x18\x06 \x01(\x0b\x32!.google.spanner.v1.RequestOptionsB\r\n\x0btransaction\"g\n\x0fRollbackRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1espanner.googleapis.com/Session\x12\x1b\n\x0etransaction_id\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x32\xc0\x16\n\x07Spanner\x12\xa6\x01\n\rCreateSession\x12\'.google.spanner.v1.CreateSessionRequest\x1a\x1a.google.spanner.v1.Session\"P\x82\xd3\xe4\x93\x02?\":/v1/{database=projects/*/instances/*/databases/*}/sessions:\x01*\xda\x41\x08\x64\x61tabase\x12\xe0\x01\n\x13\x42\x61tchCreateSessions\x12-.google.spanner.v1.BatchCreateSessionsRequest\x1a..google.spanner.v1.BatchCreateSessionsResponse\"j\x82\xd3\xe4\x93\x02K\"F/v1/{database=projects/*/instances/*/databases/*}/sessions:batchCreate:\x01*\xda\x41\x16\x64\x61tabase,session_count\x12\x97\x01\n\nGetSession\x12$.google.spanner.v1.GetSessionRequest\x1a\x1a.google.spanner.v1.Session\"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/instances/*/databases/*/sessions/*}\xda\x41\x04name\x12\xae\x01\n\x0cListSessions\x12&.google.spanner.v1.ListSessionsRequest\x1a\'.google.spanner.v1.ListSessionsResponse\"M\x82\xd3\xe4\x93\x02<\x12:/v1/{database=projects/*/instances/*/databases/*}/sessions\xda\x41\x08\x64\x61tabase\x12\x99\x01\n\rDeleteSession\x12\'.google.spanner.v1.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"G\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}\xda\x41\x04name\x12\xa3\x01\n\nExecuteSql\x12$.google.spanner.v1.ExecuteSqlRequest\x1a\x1c.google.spanner.v1.ResultSet\"Q\x82\xd3\xe4\x93\x02K\"F/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeSql:\x01*\x12\xbe\x01\n\x13\x45xecuteStreamingSql\x12$.google.spanner.v1.ExecuteSqlRequest\x1a#.google.spanner.v1.PartialResultSet\"Z\x82\xd3\xe4\x93\x02T\"O/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeStreamingSql:\x01*0\x01\x12\xc0\x01\n\x0f\x45xecuteBatchDml\x12).google.spanner.v1.ExecuteBatchDmlRequest\x1a*.google.spanner.v1.ExecuteBatchDmlResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeBatchDml:\x01*\x12\x91\x01\n\x04Read\x12\x1e.google.spanner.v1.ReadRequest\x1a\x1c.google.spanner.v1.ResultSet\"K\x82\xd3\xe4\x93\x02\x45\"@/v1/{session=projects/*/instances/*/databases/*/sessions/*}:read:\x01*\x12\xac\x01\n\rStreamingRead\x12\x1e.google.spanner.v1.ReadRequest\x1a#.google.spanner.v1.PartialResultSet\"T\x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:streamingRead:\x01*0\x01\x12\xc9\x01\n\x10\x42\x65ginTransaction\x12*.google.spanner.v1.BeginTransactionRequest\x1a\x1e.google.spanner.v1.Transaction\"i\x82\xd3\xe4\x93\x02Q\"L/v1/{session=projects/*/instances/*/databases/*/sessions/*}:beginTransaction:\x01*\xda\x41\x0fsession,options\x12\xeb\x01\n\x06\x43ommit\x12 .google.spanner.v1.CommitRequest\x1a!.google.spanner.v1.CommitResponse\"\x9b\x01\x82\xd3\xe4\x93\x02G\"B/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit:\x01*\xda\x41 session,transaction_id,mutations\xda\x41(session,single_use_transaction,mutations\x12\xb0\x01\n\x08Rollback\x12\".google.spanner.v1.RollbackRequest\x1a\x16.google.protobuf.Empty\"h\x82\xd3\xe4\x93\x02I\"D/v1/{session=projects/*/instances/*/databases/*/sessions/*}:rollback:\x01*\xda\x41\x16session,transaction_id\x12\xb7\x01\n\x0ePartitionQuery\x12(.google.spanner.v1.PartitionQueryRequest\x1a$.google.spanner.v1.PartitionResponse\"U\x82\xd3\xe4\x93\x02O\"J/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionQuery:\x01*\x12\xb4\x01\n\rPartitionRead\x12\'.google.spanner.v1.PartitionReadRequest\x1a$.google.spanner.v1.PartitionResponse\"T\x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionRead:\x01*\x1aw\xca\x41\x16spanner.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spanner.dataB\x91\x02\n\x15\x63om.google.spanner.v1B\x0cSpannerProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1\xea\x41_\n\x1fspanner.googleapis.com/Database\x12<projects/{project}/instances/{instance}/databases/{database}P\x08\x62\x06proto3"
|
|
24
|
+
|
|
25
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
26
|
+
|
|
27
|
+
begin
|
|
28
|
+
pool.add_serialized_file(descriptor_data)
|
|
29
|
+
rescue TypeError => e
|
|
30
|
+
# Compatibility code: will be removed in the next major version.
|
|
31
|
+
require 'google/protobuf/descriptor_pb'
|
|
32
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
33
|
+
parsed.clear_dependency
|
|
34
|
+
serialized = parsed.class.encode(parsed)
|
|
35
|
+
file = pool.add_serialized_file(serialized)
|
|
36
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
37
|
+
imports = [
|
|
38
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
39
|
+
["google.spanner.v1.TransactionSelector", "google/spanner/v1/transaction.proto"],
|
|
40
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
|
41
|
+
["google.spanner.v1.Type", "google/spanner/v1/type.proto"],
|
|
42
|
+
["google.spanner.v1.ResultSet", "google/spanner/v1/result_set.proto"],
|
|
43
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
|
44
|
+
["google.spanner.v1.KeySet", "google/spanner/v1/keys.proto"],
|
|
45
|
+
["google.spanner.v1.Mutation", "google/spanner/v1/mutation.proto"],
|
|
46
|
+
]
|
|
47
|
+
imports.each do |type_name, expected_filename|
|
|
48
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
49
|
+
if import_file.name != expected_filename
|
|
50
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
167
51
|
end
|
|
168
52
|
end
|
|
53
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
54
|
+
warn "This will become an error in the next major version."
|
|
169
55
|
end
|
|
170
56
|
|
|
171
57
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/transaction.proto
|
|
3
4
|
|
|
@@ -6,47 +7,33 @@ require 'google/protobuf'
|
|
|
6
7
|
require 'google/protobuf/duration_pb'
|
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
optional :min_read_timestamp, :message, 2, "google.protobuf.Timestamp"
|
|
33
|
-
optional :max_staleness, :message, 3, "google.protobuf.Duration"
|
|
34
|
-
optional :read_timestamp, :message, 4, "google.protobuf.Timestamp"
|
|
35
|
-
optional :exact_staleness, :message, 5, "google.protobuf.Duration"
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
add_message "google.spanner.v1.Transaction" do
|
|
39
|
-
optional :id, :bytes, 1
|
|
40
|
-
optional :read_timestamp, :message, 2, "google.protobuf.Timestamp"
|
|
41
|
-
end
|
|
42
|
-
add_message "google.spanner.v1.TransactionSelector" do
|
|
43
|
-
oneof :selector do
|
|
44
|
-
optional :single_use, :message, 1, "google.spanner.v1.TransactionOptions"
|
|
45
|
-
optional :id, :bytes, 2
|
|
46
|
-
optional :begin, :message, 3, "google.spanner.v1.TransactionOptions"
|
|
47
|
-
end
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n#google/spanner/v1/transaction.proto\x12\x11google.spanner.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xeb\x05\n\x12TransactionOptions\x12\x45\n\nread_write\x18\x01 \x01(\x0b\x32/.google.spanner.v1.TransactionOptions.ReadWriteH\x00\x12O\n\x0fpartitioned_dml\x18\x03 \x01(\x0b\x32\x34.google.spanner.v1.TransactionOptions.PartitionedDmlH\x00\x12\x43\n\tread_only\x18\x02 \x01(\x0b\x32..google.spanner.v1.TransactionOptions.ReadOnlyH\x00\x1a\xb2\x01\n\tReadWrite\x12T\n\x0eread_lock_mode\x18\x01 \x01(\x0e\x32<.google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode\"O\n\x0cReadLockMode\x12\x1e\n\x1aREAD_LOCK_MODE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPESSIMISTIC\x10\x01\x12\x0e\n\nOPTIMISTIC\x10\x02\x1a\x10\n\x0ePartitionedDml\x1a\xa8\x02\n\x08ReadOnly\x12\x10\n\x06strong\x18\x01 \x01(\x08H\x00\x12\x38\n\x12min_read_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x32\n\rmax_staleness\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x34\n\x0eread_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x34\n\x0f\x65xact_staleness\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x1d\n\x15return_read_timestamp\x18\x06 \x01(\x08\x42\x11\n\x0ftimestamp_boundB\x06\n\x04mode\"M\n\x0bTransaction\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x32\n\x0eread_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa4\x01\n\x13TransactionSelector\x12;\n\nsingle_use\x18\x01 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x12\x0c\n\x02id\x18\x02 \x01(\x0cH\x00\x12\x36\n\x05\x62\x65gin\x18\x03 \x01(\x0b\x32%.google.spanner.v1.TransactionOptionsH\x00\x42\n\n\x08selectorB\xb3\x01\n\x15\x63om.google.spanner.v1B\x10TransactionProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
|
|
15
|
+
begin
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
17
|
+
rescue TypeError => e
|
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
+
parsed.clear_dependency
|
|
22
|
+
serialized = parsed.class.encode(parsed)
|
|
23
|
+
file = pool.add_serialized_file(serialized)
|
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
+
imports = [
|
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
27
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
|
28
|
+
]
|
|
29
|
+
imports.each do |type_name, expected_filename|
|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
31
|
+
if import_file.name != expected_filename
|
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
48
33
|
end
|
|
49
34
|
end
|
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
36
|
+
warn "This will become an error in the next major version."
|
|
50
37
|
end
|
|
51
38
|
|
|
52
39
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/spanner/v1/type.proto
|
|
3
4
|
|
|
@@ -5,41 +6,31 @@ require 'google/protobuf'
|
|
|
5
6
|
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
value :DATE, 5
|
|
30
|
-
value :STRING, 6
|
|
31
|
-
value :BYTES, 7
|
|
32
|
-
value :ARRAY, 8
|
|
33
|
-
value :STRUCT, 9
|
|
34
|
-
value :NUMERIC, 10
|
|
35
|
-
value :JSON, 11
|
|
36
|
-
end
|
|
37
|
-
add_enum "google.spanner.v1.TypeAnnotationCode" do
|
|
38
|
-
value :TYPE_ANNOTATION_CODE_UNSPECIFIED, 0
|
|
39
|
-
value :PG_NUMERIC, 2
|
|
40
|
-
value :PG_JSONB, 3
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1cgoogle/spanner/v1/type.proto\x12\x11google.spanner.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xdf\x01\n\x04Type\x12.\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1b.google.spanner.v1.TypeCodeB\x03\xe0\x41\x02\x12\x33\n\x12\x61rray_element_type\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type\x12\x32\n\x0bstruct_type\x18\x03 \x01(\x0b\x32\x1d.google.spanner.v1.StructType\x12>\n\x0ftype_annotation\x18\x04 \x01(\x0e\x32%.google.spanner.v1.TypeAnnotationCode\"\x7f\n\nStructType\x12\x33\n\x06\x66ields\x18\x01 \x03(\x0b\x32#.google.spanner.v1.StructType.Field\x1a<\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x04type\x18\x02 \x01(\x0b\x32\x17.google.spanner.v1.Type*\xa5\x01\n\x08TypeCode\x12\x19\n\x15TYPE_CODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\x0b\n\x07\x46LOAT64\x10\x03\x12\r\n\tTIMESTAMP\x10\x04\x12\x08\n\x04\x44\x41TE\x10\x05\x12\n\n\x06STRING\x10\x06\x12\t\n\x05\x42YTES\x10\x07\x12\t\n\x05\x41RRAY\x10\x08\x12\n\n\x06STRUCT\x10\t\x12\x0b\n\x07NUMERIC\x10\n\x12\x08\n\x04JSON\x10\x0b*X\n\x12TypeAnnotationCode\x12$\n TYPE_ANNOTATION_CODE_UNSPECIFIED\x10\x00\x12\x0e\n\nPG_NUMERIC\x10\x02\x12\x0c\n\x08PG_JSONB\x10\x03\x42\xac\x01\n\x15\x63om.google.spanner.v1B\tTypeProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
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}"
|
|
41
30
|
end
|
|
42
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."
|
|
43
34
|
end
|
|
44
35
|
|
|
45
36
|
module Google
|
|
@@ -35,7 +35,9 @@ module Google
|
|
|
35
35
|
# Details about how and where to publish client libraries.
|
|
36
36
|
# @!attribute [rw] version
|
|
37
37
|
# @return [::String]
|
|
38
|
-
# Version of the API to apply these settings to.
|
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
|
39
|
+
# package for the API, ending in the version element.
|
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
|
39
41
|
# @!attribute [rw] launch_stage
|
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
|
41
43
|
# Launch stage of this version of the API.
|
|
@@ -81,7 +83,7 @@ module Google
|
|
|
81
83
|
# long-running operation pattern.
|
|
82
84
|
# @!attribute [rw] new_issue_uri
|
|
83
85
|
# @return [::String]
|
|
84
|
-
# Link to a
|
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
86
88
|
# @!attribute [rw] documentation_uri
|
|
87
89
|
# @return [::String]
|
|
@@ -111,6 +113,10 @@ module Google
|
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
|
113
115
|
# settings with the same version string are discarded.
|
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
|
117
|
+
# @return [::String]
|
|
118
|
+
# Optional link to proto reference documentation. Example:
|
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
|
114
120
|
class Publishing
|
|
115
121
|
include ::Google::Protobuf::MessageExts
|
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -203,9 +209,57 @@ module Google
|
|
|
203
209
|
# @!attribute [rw] common
|
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
205
211
|
# Some settings.
|
|
212
|
+
# @!attribute [rw] renamed_services
|
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
214
|
+
# Map from original service names to renamed versions.
|
|
215
|
+
# This is used when the default generated types
|
|
216
|
+
# would cause a naming conflict. (Neither name is
|
|
217
|
+
# fully-qualified.)
|
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
|
219
|
+
# @!attribute [rw] renamed_resources
|
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
221
|
+
# Map from full resource types to the effective short name
|
|
222
|
+
# for the resource. This is used when otherwise resource
|
|
223
|
+
# named from different services would cause naming collisions.
|
|
224
|
+
# Example entry:
|
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
226
|
+
# @!attribute [rw] ignored_resources
|
|
227
|
+
# @return [::Array<::String>]
|
|
228
|
+
# List of full resource types to ignore during generation.
|
|
229
|
+
# This is typically used for API-specific Location resources,
|
|
230
|
+
# which should be handled by the generator as if they were actually
|
|
231
|
+
# the common Location resources.
|
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
|
234
|
+
# @return [::Array<::String>]
|
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
|
238
|
+
# @return [::Array<::String>]
|
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
|
206
242
|
class DotnetSettings
|
|
207
243
|
include ::Google::Protobuf::MessageExts
|
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
245
|
+
|
|
246
|
+
# @!attribute [rw] key
|
|
247
|
+
# @return [::String]
|
|
248
|
+
# @!attribute [rw] value
|
|
249
|
+
# @return [::String]
|
|
250
|
+
class RenamedServicesEntry
|
|
251
|
+
include ::Google::Protobuf::MessageExts
|
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# @!attribute [rw] key
|
|
256
|
+
# @return [::String]
|
|
257
|
+
# @!attribute [rw] value
|
|
258
|
+
# @return [::String]
|
|
259
|
+
class RenamedResourcesEntry
|
|
260
|
+
include ::Google::Protobuf::MessageExts
|
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
262
|
+
end
|
|
209
263
|
end
|
|
210
264
|
|
|
211
265
|
# Settings for Ruby client libraries.
|
|
@@ -240,8 +294,8 @@ module Google
|
|
|
240
294
|
# Example of a YAML configuration::
|
|
241
295
|
#
|
|
242
296
|
# publishing:
|
|
243
|
-
#
|
|
244
|
-
# - selector:
|
|
297
|
+
# method_settings:
|
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
245
299
|
# long_running:
|
|
246
300
|
# initial_poll_delay:
|
|
247
301
|
# seconds: 60 # 1 minute
|
|
@@ -299,6 +353,15 @@ module Google
|
|
|
299
353
|
|
|
300
354
|
# Street View Org.
|
|
301
355
|
STREET_VIEW = 4
|
|
356
|
+
|
|
357
|
+
# Shopping Org.
|
|
358
|
+
SHOPPING = 5
|
|
359
|
+
|
|
360
|
+
# Geo Org.
|
|
361
|
+
GEO = 6
|
|
362
|
+
|
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
|
364
|
+
GENERATIVE_AI = 7
|
|
302
365
|
end
|
|
303
366
|
|
|
304
367
|
# To where should client libraries be published?
|
|
@@ -43,8 +43,12 @@ module Google
|
|
|
43
43
|
# if (any.is(Foo.class)) {
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
|
45
45
|
# }
|
|
46
|
+
# // or ...
|
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
|
49
|
+
# }
|
|
46
50
|
#
|
|
47
|
-
#
|
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
|
48
52
|
#
|
|
49
53
|
# foo = Foo(...)
|
|
50
54
|
# any = Any()
|
|
@@ -54,7 +58,7 @@ module Google
|
|
|
54
58
|
# any.Unpack(foo)
|
|
55
59
|
# ...
|
|
56
60
|
#
|
|
57
|
-
#
|
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
|
58
62
|
#
|
|
59
63
|
# foo := &pb.Foo{...}
|
|
60
64
|
# any, err := anypb.New(foo)
|
|
@@ -73,9 +77,8 @@ module Google
|
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
74
78
|
# name "y.z".
|
|
75
79
|
#
|
|
76
|
-
#
|
|
77
80
|
# JSON
|
|
78
|
-
#
|
|
81
|
+
# ====
|
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
|
80
83
|
# representation of the deserialized, embedded message, with an
|
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
|
@@ -87,7 +87,7 @@ module Google
|
|
|
87
87
|
# `NullValue` is a singleton enumeration to represent the null value for the
|
|
88
88
|
# `Value` type union.
|
|
89
89
|
#
|
|
90
|
-
#
|
|
90
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
|
91
91
|
module NullValue
|
|
92
92
|
# Null value.
|
|
93
93
|
NULL_VALUE = 0
|
|
@@ -69,7 +69,6 @@ module Google
|
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
71
71
|
#
|
|
72
|
-
#
|
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
74
73
|
#
|
|
75
74
|
# Instant now = Instant.now();
|
|
@@ -78,7 +77,6 @@ module Google
|
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
79
78
|
# .setNanos(now.getNano()).build();
|
|
80
79
|
#
|
|
81
|
-
#
|
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
|
83
81
|
#
|
|
84
82
|
# timestamp = Timestamp()
|
|
@@ -108,7 +106,7 @@ module Google
|
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
111
|
-
# http://
|
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
113
111
|
# @!attribute [rw] seconds
|
|
114
112
|
# @return [::Integer]
|
|
@@ -310,7 +310,7 @@ module Google
|
|
|
310
310
|
# Common options for this request.
|
|
311
311
|
# @!attribute [rw] data_boost_enabled
|
|
312
312
|
# @return [::Boolean]
|
|
313
|
-
# If this is for a partitioned
|
|
313
|
+
# If this is for a partitioned query and this field is set to `true`, the
|
|
314
314
|
# request will be executed via Spanner independent compute resources.
|
|
315
315
|
#
|
|
316
316
|
# If the field is set to `true` but the request does not set
|
|
@@ -727,7 +727,7 @@ module Google
|
|
|
727
727
|
# Common options for this request.
|
|
728
728
|
# @!attribute [rw] data_boost_enabled
|
|
729
729
|
# @return [::Boolean]
|
|
730
|
-
# If this is for a partitioned
|
|
730
|
+
# If this is for a partitioned read and this field is set to `true`, the
|
|
731
731
|
# request will be executed via Spanner independent compute resources.
|
|
732
732
|
#
|
|
733
733
|
# If the field is set to `true` but the request does not set
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-spanner-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.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: 2023-
|
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.19.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.19.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|