google-cloud-spanner-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-spanner-v1.rb +21 -0
  7. data/lib/google/cloud/spanner/v1.rb +35 -0
  8. data/lib/google/cloud/spanner/v1/spanner.rb +52 -0
  9. data/lib/google/cloud/spanner/v1/spanner/client.rb +1947 -0
  10. data/lib/google/cloud/spanner/v1/spanner/credentials.rb +52 -0
  11. data/lib/google/cloud/spanner/v1/spanner/paths.rb +73 -0
  12. data/lib/google/cloud/spanner/v1/version.rb +28 -0
  13. data/lib/google/spanner/v1/keys_pb.rb +37 -0
  14. data/lib/google/spanner/v1/mutation_pb.rb +42 -0
  15. data/lib/google/spanner/v1/query_plan_pb.rb +51 -0
  16. data/lib/google/spanner/v1/result_set_pb.rb +51 -0
  17. data/lib/google/spanner/v1/spanner_pb.rb +182 -0
  18. data/lib/google/spanner/v1/spanner_services_pb.rb +180 -0
  19. data/lib/google/spanner/v1/transaction_pb.rb +59 -0
  20. data/lib/google/spanner/v1/type_pb.rb +47 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/field_behavior.rb +59 -0
  23. data/proto_docs/google/api/resource.rb +247 -0
  24. data/proto_docs/google/protobuf/any.rb +138 -0
  25. data/proto_docs/google/protobuf/duration.rb +98 -0
  26. data/proto_docs/google/protobuf/empty.rb +36 -0
  27. data/proto_docs/google/protobuf/struct.rb +96 -0
  28. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  29. data/proto_docs/google/rpc/status.rb +46 -0
  30. data/proto_docs/google/spanner/v1/keys.rb +162 -0
  31. data/proto_docs/google/spanner/v1/mutation.rb +110 -0
  32. data/proto_docs/google/spanner/v1/query_plan.rb +148 -0
  33. data/proto_docs/google/spanner/v1/result_set.rb +208 -0
  34. data/proto_docs/google/spanner/v1/spanner.rb +681 -0
  35. data/proto_docs/google/spanner/v1/transaction.rb +457 -0
  36. data/proto_docs/google/spanner/v1/type.rb +127 -0
  37. metadata +218 -0
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Spanner
24
+ module V1
25
+ module Spanner
26
+ # Credentials for the Spanner API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform",
30
+ "https://www.googleapis.com/auth/spanner.data"
31
+ ]
32
+ self.env_vars = [
33
+ "SPANNER_CREDENTIALS",
34
+ "SPANNER_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "SPANNER_CREDENTIALS_JSON",
39
+ "SPANNER_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 Spanner
23
+ module V1
24
+ module Spanner
25
+ # Path helper methods for the Spanner API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Database resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/instances/{instance}/databases/{database}`
33
+ #
34
+ # @param project [String]
35
+ # @param instance [String]
36
+ # @param database [String]
37
+ #
38
+ # @return [::String]
39
+ def database_path project:, instance:, database:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
42
+
43
+ "projects/#{project}/instances/#{instance}/databases/#{database}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Session resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/instances/{instance}/databases/{database}/sessions/{session}`
52
+ #
53
+ # @param project [String]
54
+ # @param instance [String]
55
+ # @param database [String]
56
+ # @param session [String]
57
+ #
58
+ # @return [::String]
59
+ def session_path project:, instance:, database:, session:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
62
+ raise ::ArgumentError, "database cannot contain /" if database.to_s.include? "/"
63
+
64
+ "projects/#{project}/instances/#{instance}/databases/#{database}/sessions/#{session}"
65
+ end
66
+
67
+ extend self
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 Spanner
23
+ module V1
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/spanner/v1/keys.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/spanner/v1/keys.proto", :syntax => :proto3) do
10
+ add_message "google.spanner.v1.KeyRange" do
11
+ oneof :start_key_type do
12
+ optional :start_closed, :message, 1, "google.protobuf.ListValue"
13
+ optional :start_open, :message, 2, "google.protobuf.ListValue"
14
+ end
15
+ oneof :end_key_type do
16
+ optional :end_closed, :message, 3, "google.protobuf.ListValue"
17
+ optional :end_open, :message, 4, "google.protobuf.ListValue"
18
+ end
19
+ end
20
+ add_message "google.spanner.v1.KeySet" do
21
+ repeated :keys, :message, 1, "google.protobuf.ListValue"
22
+ repeated :ranges, :message, 2, "google.spanner.v1.KeyRange"
23
+ optional :all, :bool, 3
24
+ end
25
+ end
26
+ end
27
+
28
+ module Google
29
+ module Cloud
30
+ module Spanner
31
+ module V1
32
+ KeyRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.KeyRange").msgclass
33
+ KeySet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.KeySet").msgclass
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,42 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/spanner/v1/mutation.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/spanner/v1/keys_pb'
8
+ require 'google/api/annotations_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/spanner/v1/mutation.proto", :syntax => :proto3) do
11
+ add_message "google.spanner.v1.Mutation" do
12
+ oneof :operation do
13
+ optional :insert, :message, 1, "google.spanner.v1.Mutation.Write"
14
+ optional :update, :message, 2, "google.spanner.v1.Mutation.Write"
15
+ optional :insert_or_update, :message, 3, "google.spanner.v1.Mutation.Write"
16
+ optional :replace, :message, 4, "google.spanner.v1.Mutation.Write"
17
+ optional :delete, :message, 5, "google.spanner.v1.Mutation.Delete"
18
+ end
19
+ end
20
+ add_message "google.spanner.v1.Mutation.Write" do
21
+ optional :table, :string, 1
22
+ repeated :columns, :string, 2
23
+ repeated :values, :message, 3, "google.protobuf.ListValue"
24
+ end
25
+ add_message "google.spanner.v1.Mutation.Delete" do
26
+ optional :table, :string, 1
27
+ optional :key_set, :message, 2, "google.spanner.v1.KeySet"
28
+ end
29
+ end
30
+ end
31
+
32
+ module Google
33
+ module Cloud
34
+ module Spanner
35
+ module V1
36
+ Mutation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Mutation").msgclass
37
+ Mutation::Write = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Mutation.Write").msgclass
38
+ Mutation::Delete = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Mutation.Delete").msgclass
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/spanner/v1/query_plan.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/spanner/v1/query_plan.proto", :syntax => :proto3) do
10
+ add_message "google.spanner.v1.PlanNode" do
11
+ optional :index, :int32, 1
12
+ optional :kind, :enum, 2, "google.spanner.v1.PlanNode.Kind"
13
+ optional :display_name, :string, 3
14
+ repeated :child_links, :message, 4, "google.spanner.v1.PlanNode.ChildLink"
15
+ optional :short_representation, :message, 5, "google.spanner.v1.PlanNode.ShortRepresentation"
16
+ optional :metadata, :message, 6, "google.protobuf.Struct"
17
+ optional :execution_stats, :message, 7, "google.protobuf.Struct"
18
+ end
19
+ add_message "google.spanner.v1.PlanNode.ChildLink" do
20
+ optional :child_index, :int32, 1
21
+ optional :type, :string, 2
22
+ optional :variable, :string, 3
23
+ end
24
+ add_message "google.spanner.v1.PlanNode.ShortRepresentation" do
25
+ optional :description, :string, 1
26
+ map :subqueries, :string, :int32, 2
27
+ end
28
+ add_enum "google.spanner.v1.PlanNode.Kind" do
29
+ value :KIND_UNSPECIFIED, 0
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"
35
+ end
36
+ end
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module Spanner
42
+ module V1
43
+ PlanNode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode").msgclass
44
+ PlanNode::ChildLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode.ChildLink").msgclass
45
+ PlanNode::ShortRepresentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode.ShortRepresentation").msgclass
46
+ PlanNode::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode.Kind").enummodule
47
+ QueryPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.QueryPlan").msgclass
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/spanner/v1/result_set.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/spanner/v1/query_plan_pb'
8
+ require 'google/spanner/v1/transaction_pb'
9
+ require 'google/spanner/v1/type_pb'
10
+ require 'google/api/annotations_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/spanner/v1/result_set.proto", :syntax => :proto3) do
13
+ add_message "google.spanner.v1.ResultSet" do
14
+ optional :metadata, :message, 1, "google.spanner.v1.ResultSetMetadata"
15
+ repeated :rows, :message, 2, "google.protobuf.ListValue"
16
+ optional :stats, :message, 3, "google.spanner.v1.ResultSetStats"
17
+ end
18
+ add_message "google.spanner.v1.PartialResultSet" do
19
+ optional :metadata, :message, 1, "google.spanner.v1.ResultSetMetadata"
20
+ repeated :values, :message, 2, "google.protobuf.Value"
21
+ optional :chunked_value, :bool, 3
22
+ optional :resume_token, :bytes, 4
23
+ optional :stats, :message, 5, "google.spanner.v1.ResultSetStats"
24
+ end
25
+ add_message "google.spanner.v1.ResultSetMetadata" do
26
+ optional :row_type, :message, 1, "google.spanner.v1.StructType"
27
+ optional :transaction, :message, 2, "google.spanner.v1.Transaction"
28
+ end
29
+ add_message "google.spanner.v1.ResultSetStats" do
30
+ optional :query_plan, :message, 1, "google.spanner.v1.QueryPlan"
31
+ optional :query_stats, :message, 2, "google.protobuf.Struct"
32
+ oneof :row_count do
33
+ optional :row_count_exact, :int64, 3
34
+ optional :row_count_lower_bound, :int64, 4
35
+ end
36
+ end
37
+ end
38
+ end
39
+
40
+ module Google
41
+ module Cloud
42
+ module Spanner
43
+ module V1
44
+ ResultSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ResultSet").msgclass
45
+ PartialResultSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PartialResultSet").msgclass
46
+ ResultSetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ResultSetMetadata").msgclass
47
+ ResultSetStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ResultSetStats").msgclass
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,182 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/spanner/v1/spanner.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/protobuf/empty_pb'
11
+ require 'google/protobuf/struct_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ require 'google/rpc/status_pb'
14
+ require 'google/spanner/v1/keys_pb'
15
+ require 'google/spanner/v1/mutation_pb'
16
+ require 'google/spanner/v1/result_set_pb'
17
+ require 'google/spanner/v1/transaction_pb'
18
+ require 'google/spanner/v1/type_pb'
19
+ Google::Protobuf::DescriptorPool.generated_pool.build do
20
+ add_file("google/spanner/v1/spanner.proto", :syntax => :proto3) do
21
+ add_message "google.spanner.v1.CreateSessionRequest" do
22
+ optional :database, :string, 1
23
+ optional :session, :message, 2, "google.spanner.v1.Session"
24
+ end
25
+ add_message "google.spanner.v1.BatchCreateSessionsRequest" do
26
+ optional :database, :string, 1
27
+ optional :session_template, :message, 2, "google.spanner.v1.Session"
28
+ optional :session_count, :int32, 3
29
+ end
30
+ add_message "google.spanner.v1.BatchCreateSessionsResponse" do
31
+ repeated :session, :message, 1, "google.spanner.v1.Session"
32
+ end
33
+ add_message "google.spanner.v1.Session" do
34
+ optional :name, :string, 1
35
+ map :labels, :string, :string, 2
36
+ optional :create_time, :message, 3, "google.protobuf.Timestamp"
37
+ optional :approximate_last_use_time, :message, 4, "google.protobuf.Timestamp"
38
+ end
39
+ add_message "google.spanner.v1.GetSessionRequest" do
40
+ optional :name, :string, 1
41
+ end
42
+ add_message "google.spanner.v1.ListSessionsRequest" do
43
+ optional :database, :string, 1
44
+ optional :page_size, :int32, 2
45
+ optional :page_token, :string, 3
46
+ optional :filter, :string, 4
47
+ end
48
+ add_message "google.spanner.v1.ListSessionsResponse" do
49
+ repeated :sessions, :message, 1, "google.spanner.v1.Session"
50
+ optional :next_page_token, :string, 2
51
+ end
52
+ add_message "google.spanner.v1.DeleteSessionRequest" do
53
+ optional :name, :string, 1
54
+ end
55
+ add_message "google.spanner.v1.ExecuteSqlRequest" do
56
+ optional :session, :string, 1
57
+ optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
58
+ optional :sql, :string, 3
59
+ optional :params, :message, 4, "google.protobuf.Struct"
60
+ map :param_types, :string, :message, 5, "google.spanner.v1.Type"
61
+ optional :resume_token, :bytes, 6
62
+ optional :query_mode, :enum, 7, "google.spanner.v1.ExecuteSqlRequest.QueryMode"
63
+ optional :partition_token, :bytes, 8
64
+ optional :seqno, :int64, 9
65
+ optional :query_options, :message, 10, "google.spanner.v1.ExecuteSqlRequest.QueryOptions"
66
+ end
67
+ add_message "google.spanner.v1.ExecuteSqlRequest.QueryOptions" do
68
+ optional :optimizer_version, :string, 1
69
+ end
70
+ add_enum "google.spanner.v1.ExecuteSqlRequest.QueryMode" do
71
+ value :NORMAL, 0
72
+ value :PLAN, 1
73
+ value :PROFILE, 2
74
+ end
75
+ add_message "google.spanner.v1.ExecuteBatchDmlRequest" do
76
+ optional :session, :string, 1
77
+ optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
78
+ repeated :statements, :message, 3, "google.spanner.v1.ExecuteBatchDmlRequest.Statement"
79
+ optional :seqno, :int64, 4
80
+ end
81
+ add_message "google.spanner.v1.ExecuteBatchDmlRequest.Statement" do
82
+ optional :sql, :string, 1
83
+ optional :params, :message, 2, "google.protobuf.Struct"
84
+ map :param_types, :string, :message, 3, "google.spanner.v1.Type"
85
+ end
86
+ add_message "google.spanner.v1.ExecuteBatchDmlResponse" do
87
+ repeated :result_sets, :message, 1, "google.spanner.v1.ResultSet"
88
+ optional :status, :message, 2, "google.rpc.Status"
89
+ end
90
+ add_message "google.spanner.v1.PartitionOptions" do
91
+ optional :partition_size_bytes, :int64, 1
92
+ optional :max_partitions, :int64, 2
93
+ end
94
+ add_message "google.spanner.v1.PartitionQueryRequest" do
95
+ optional :session, :string, 1
96
+ optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
97
+ optional :sql, :string, 3
98
+ optional :params, :message, 4, "google.protobuf.Struct"
99
+ map :param_types, :string, :message, 5, "google.spanner.v1.Type"
100
+ optional :partition_options, :message, 6, "google.spanner.v1.PartitionOptions"
101
+ end
102
+ add_message "google.spanner.v1.PartitionReadRequest" do
103
+ optional :session, :string, 1
104
+ optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
105
+ optional :table, :string, 3
106
+ optional :index, :string, 4
107
+ repeated :columns, :string, 5
108
+ optional :key_set, :message, 6, "google.spanner.v1.KeySet"
109
+ optional :partition_options, :message, 9, "google.spanner.v1.PartitionOptions"
110
+ end
111
+ add_message "google.spanner.v1.Partition" do
112
+ optional :partition_token, :bytes, 1
113
+ end
114
+ add_message "google.spanner.v1.PartitionResponse" do
115
+ repeated :partitions, :message, 1, "google.spanner.v1.Partition"
116
+ optional :transaction, :message, 2, "google.spanner.v1.Transaction"
117
+ end
118
+ add_message "google.spanner.v1.ReadRequest" do
119
+ optional :session, :string, 1
120
+ optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
121
+ optional :table, :string, 3
122
+ optional :index, :string, 4
123
+ repeated :columns, :string, 5
124
+ optional :key_set, :message, 6, "google.spanner.v1.KeySet"
125
+ optional :limit, :int64, 8
126
+ optional :resume_token, :bytes, 9
127
+ optional :partition_token, :bytes, 10
128
+ end
129
+ add_message "google.spanner.v1.BeginTransactionRequest" do
130
+ optional :session, :string, 1
131
+ optional :options, :message, 2, "google.spanner.v1.TransactionOptions"
132
+ end
133
+ add_message "google.spanner.v1.CommitRequest" do
134
+ optional :session, :string, 1
135
+ repeated :mutations, :message, 4, "google.spanner.v1.Mutation"
136
+ oneof :transaction do
137
+ optional :transaction_id, :bytes, 2
138
+ optional :single_use_transaction, :message, 3, "google.spanner.v1.TransactionOptions"
139
+ end
140
+ end
141
+ add_message "google.spanner.v1.CommitResponse" do
142
+ optional :commit_timestamp, :message, 1, "google.protobuf.Timestamp"
143
+ end
144
+ add_message "google.spanner.v1.RollbackRequest" do
145
+ optional :session, :string, 1
146
+ optional :transaction_id, :bytes, 2
147
+ end
148
+ end
149
+ end
150
+
151
+ module Google
152
+ module Cloud
153
+ module Spanner
154
+ module V1
155
+ CreateSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CreateSessionRequest").msgclass
156
+ BatchCreateSessionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.BatchCreateSessionsRequest").msgclass
157
+ BatchCreateSessionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.BatchCreateSessionsResponse").msgclass
158
+ Session = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Session").msgclass
159
+ GetSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.GetSessionRequest").msgclass
160
+ ListSessionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ListSessionsRequest").msgclass
161
+ ListSessionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ListSessionsResponse").msgclass
162
+ DeleteSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.DeleteSessionRequest").msgclass
163
+ ExecuteSqlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest").msgclass
164
+ ExecuteSqlRequest::QueryOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest.QueryOptions").msgclass
165
+ ExecuteSqlRequest::QueryMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest.QueryMode").enummodule
166
+ ExecuteBatchDmlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteBatchDmlRequest").msgclass
167
+ ExecuteBatchDmlRequest::Statement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteBatchDmlRequest.Statement").msgclass
168
+ ExecuteBatchDmlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteBatchDmlResponse").msgclass
169
+ PartitionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PartitionOptions").msgclass
170
+ PartitionQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PartitionQueryRequest").msgclass
171
+ PartitionReadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PartitionReadRequest").msgclass
172
+ Partition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Partition").msgclass
173
+ PartitionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PartitionResponse").msgclass
174
+ ReadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ReadRequest").msgclass
175
+ BeginTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.BeginTransactionRequest").msgclass
176
+ CommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitRequest").msgclass
177
+ CommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitResponse").msgclass
178
+ RollbackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.RollbackRequest").msgclass
179
+ end
180
+ end
181
+ end
182
+ end