Debian Codegraph @

spanner/apiv1/spannerpb/result_set.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/spanner/v1/result_set.proto
20
21 package spannerpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 structpb "google.golang.org/protobuf/types/known/structpb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Results from [Read][google.spanner.v1.Spanner.Read] or
40 // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
41 type ResultSet struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // Metadata about the result set, such as row type information.
47 Metadata *ResultSetMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
48 // Each element in `rows` is a row whose format is defined by
49 // [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
50 // element in each row matches the ith field in
51 // [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
52 // are encoded based on type as described [here][google.spanner.v1.TypeCode].
53 Rows []*structpb.ListValue `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
54 // Query plan and execution statistics for the SQL statement that
55 // produced this result set. These can be requested by setting
56 // [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
57 // DML statements always produce stats containing the number of rows
58 // modified, unless executed using the
59 // [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
60 // [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
61 // Other fields might or might not be populated, based on the
62 // [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
63 Stats *ResultSetStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"`
64 // Optional. A precommit token is included if the read-write transaction is on
65 // a multiplexed session. Pass the precommit token with the highest sequence
66 // number from this transaction attempt to the
67 // [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
68 PrecommitToken *MultiplexedSessionPrecommitToken `protobuf:"bytes,5,opt,name=precommit_token,json=precommitToken,proto3" json:"precommit_token,omitempty"`
69 }
70
71 func (x *ResultSet) Reset() {
72 *x = ResultSet{}
73 mi := &file_google_spanner_v1_result_set_proto_msgTypes[0]
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 ms.StoreMessageInfo(mi)
76 }
77
78 func (x *ResultSet) String() string {
79 return protoimpl.X.MessageStringOf(x)
80 }
81
82 func (*ResultSet) ProtoMessage() {}
83
84 func (x *ResultSet) ProtoReflect() protoreflect.Message {
85 mi := &file_google_spanner_v1_result_set_proto_msgTypes[0]
86 if x != nil {
87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
88 if ms.LoadMessageInfo() == nil {
89 ms.StoreMessageInfo(mi)
90 }
91 return ms
92 }
93 return mi.MessageOf(x)
94 }
95
96 // Deprecated: Use ResultSet.ProtoReflect.Descriptor instead.
97 func (*ResultSet) Descriptor() ([]byte, []int) {
98 return file_google_spanner_v1_result_set_proto_rawDescGZIP(), []int{0}
99 }
100
101 func (x *ResultSet) GetMetadata() *ResultSetMetadata {
102 if x != nil {
103 return x.Metadata
104 }
105 return nil
106 }
107
108 func (x *ResultSet) GetRows() []*structpb.ListValue {
109 if x != nil {
110 return x.Rows
111 }
112 return nil
113 }
114
115 func (x *ResultSet) GetStats() *ResultSetStats {
116 if x != nil {
117 return x.Stats
118 }
119 return nil
120 }
121
122 func (x *ResultSet) GetPrecommitToken() *MultiplexedSessionPrecommitToken {
123 if x != nil {
124 return x.PrecommitToken
125 }
126 return nil
127 }
128
129 // Partial results from a streaming read or SQL query. Streaming reads and
130 // SQL queries better tolerate large result sets, large rows, and large
131 // values, but are a little trickier to consume.
132 type PartialResultSet struct {
133 state protoimpl.MessageState
134 sizeCache protoimpl.SizeCache
135 unknownFields protoimpl.UnknownFields
136
137 // Metadata about the result set, such as row type information.
138 // Only present in the first response.
139 Metadata *ResultSetMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
140 // A streamed result set consists of a stream of values, which might
141 // be split into many `PartialResultSet` messages to accommodate
142 // large rows and/or large values. Every N complete values defines a
143 // row, where N is equal to the number of entries in
144 // [metadata.row_type.fields][google.spanner.v1.StructType.fields].
145 //
146 // Most values are encoded based on type as described
147 // [here][google.spanner.v1.TypeCode].
148 //
149 // It's possible that the last value in values is "chunked",
150 // meaning that the rest of the value is sent in subsequent
151 // `PartialResultSet`(s). This is denoted by the
152 // [chunked_value][google.spanner.v1.PartialResultSet.chunked_value] field.
153 // Two or more chunked values can be merged to form a complete value as
154 // follows:
155 //
156 // - `bool/number/null`: can't be chunked
157 // - `string`: concatenate the strings
158 // - `list`: concatenate the lists. If the last element in a list is a
159 // `string`, `list`, or `object`, merge it with the first element in
160 // the next list by applying these rules recursively.
161 // - `object`: concatenate the (field name, field value) pairs. If a
162 // field name is duplicated, then apply these rules recursively
163 // to merge the field values.
164 //
165 // Some examples of merging:
166 //
167 // Strings are concatenated.
168 // "foo", "bar" => "foobar"
169 //
170 // Lists of non-strings are concatenated.
171 // [2, 3], [4] => [2, 3, 4]
172 //
173 // Lists are concatenated, but the last and first elements are merged
174 // because they are strings.
175 // ["a", "b"], ["c", "d"] => ["a", "bc", "d"]
176 //
177 // Lists are concatenated, but the last and first elements are merged
178 // because they are lists. Recursively, the last and first elements
179 // of the inner lists are merged because they are strings.
180 // ["a", ["b", "c"]], [["d"], "e"] => ["a", ["b", "cd"], "e"]
181 //
182 // Non-overlapping object fields are combined.
183 // {"a": "1"}, {"b": "2"} => {"a": "1", "b": 2"}
184 //
185 // Overlapping object fields are merged.
186 // {"a": "1"}, {"a": "2"} => {"a": "12"}
187 //
188 // Examples of merging objects containing lists of strings.
189 // {"a": ["1"]}, {"a": ["2"]} => {"a": ["12"]}
190 //
191 // For a more complete example, suppose a streaming SQL query is
192 // yielding a result set whose rows contain a single string
193 // field. The following `PartialResultSet`s might be yielded:
194 //
195 // {
196 // "metadata": { ... }
197 // "values": ["Hello", "W"]
198 // "chunked_value": true
199 // "resume_token": "Af65..."
200 // }
201 // {
202 // "values": ["orl"]
203 // "chunked_value": true
204 // }
205 // {
206 // "values": ["d"]
207 // "resume_token": "Zx1B..."
208 // }
209 //
210 // This sequence of `PartialResultSet`s encodes two rows, one
211 // containing the field value `"Hello"`, and a second containing the
212 // field value `"World" = "W" + "orl" + "d"`.
213 //
214 // Not all `PartialResultSet`s contain a `resume_token`. Execution can only be
215 // resumed from a previously yielded `resume_token`. For the above sequence of
216 // `PartialResultSet`s, resuming the query with `"resume_token": "Af65..."`
217 // yields results from the `PartialResultSet` with value "orl".
218 Values []*structpb.Value `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
219 // If true, then the final value in
220 // [values][google.spanner.v1.PartialResultSet.values] is chunked, and must be
221 // combined with more values from subsequent `PartialResultSet`s to obtain a
222 // complete field value.
223 ChunkedValue bool `protobuf:"varint,3,opt,name=chunked_value,json=chunkedValue,proto3" json:"chunked_value,omitempty"`
224 // Streaming calls might be interrupted for a variety of reasons, such
225 // as TCP connection loss. If this occurs, the stream of results can
226 // be resumed by re-sending the original request and including
227 // `resume_token`. Note that executing any other transaction in the
228 // same session invalidates the token.
229 ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"`
230 // Query plan and execution statistics for the statement that produced this
231 // streaming result set. These can be requested by setting
232 // [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]
233 // and are sent only once with the last response in the stream. This field is
234 // also present in the last response for DML statements.
235 Stats *ResultSetStats `protobuf:"bytes,5,opt,name=stats,proto3" json:"stats,omitempty"`
236 // Optional. A precommit token is included if the read-write transaction
237 // has multiplexed sessions enabled. Pass the precommit token with the highest
238 // sequence number from this transaction attempt to the
239 // [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
240 PrecommitToken *MultiplexedSessionPrecommitToken `protobuf:"bytes,8,opt,name=precommit_token,json=precommitToken,proto3" json:"precommit_token,omitempty"`
241 // Optional. Indicates whether this is the last `PartialResultSet` in the
242 // stream. The server might optionally set this field. Clients shouldn't rely
243 // on this field being set in all cases.
244 Last bool `protobuf:"varint,9,opt,name=last,proto3" json:"last,omitempty"`
245 }
246
247 func (x *PartialResultSet) Reset() {
248 *x = PartialResultSet{}
249 mi := &file_google_spanner_v1_result_set_proto_msgTypes[1]
250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251 ms.StoreMessageInfo(mi)
252 }
253
254 func (x *PartialResultSet) String() string {
255 return protoimpl.X.MessageStringOf(x)
256 }
257
258 func (*PartialResultSet) ProtoMessage() {}
259
260 func (x *PartialResultSet) ProtoReflect() protoreflect.Message {
261 mi := &file_google_spanner_v1_result_set_proto_msgTypes[1]
262 if x != nil {
263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264 if ms.LoadMessageInfo() == nil {
265 ms.StoreMessageInfo(mi)
266 }
267 return ms
268 }
269 return mi.MessageOf(x)
270 }
271
272 // Deprecated: Use PartialResultSet.ProtoReflect.Descriptor instead.
273 func (*PartialResultSet) Descriptor() ([]byte, []int) {
274 return file_google_spanner_v1_result_set_proto_rawDescGZIP(), []int{1}
275 }
276
277 func (x *PartialResultSet) GetMetadata() *ResultSetMetadata {
278 if x != nil {
279 return x.Metadata
280 }
281 return nil
282 }
283
284 func (x *PartialResultSet) GetValues() []*structpb.Value {
285 if x != nil {
286 return x.Values
287 }
288 return nil
289 }
290
291 func (x *PartialResultSet) GetChunkedValue() bool {
292 if x != nil {
293 return x.ChunkedValue
294 }
295 return false
296 }
297
298 func (x *PartialResultSet) GetResumeToken() []byte {
299 if x != nil {
300 return x.ResumeToken
301 }
302 return nil
303 }
304
305 func (x *PartialResultSet) GetStats() *ResultSetStats {
306 if x != nil {
307 return x.Stats
308 }
309 return nil
310 }
311
312 func (x *PartialResultSet) GetPrecommitToken() *MultiplexedSessionPrecommitToken {
313 if x != nil {
314 return x.PrecommitToken
315 }
316 return nil
317 }
318
319 func (x *PartialResultSet) GetLast() bool {
320 if x != nil {
321 return x.Last
322 }
323 return false
324 }
325
326 // Metadata about a [ResultSet][google.spanner.v1.ResultSet] or
327 // [PartialResultSet][google.spanner.v1.PartialResultSet].
328 type ResultSetMetadata struct {
329 state protoimpl.MessageState
330 sizeCache protoimpl.SizeCache
331 unknownFields protoimpl.UnknownFields
332
333 // Indicates the field names and types for the rows in the result
334 // set. For example, a SQL query like `"SELECT UserId, UserName FROM
335 // Users"` could return a `row_type` value like:
336 //
337 // "fields": [
338 // { "name": "UserId", "type": { "code": "INT64" } },
339 // { "name": "UserName", "type": { "code": "STRING" } },
340 // ]
341 RowType *StructType `protobuf:"bytes,1,opt,name=row_type,json=rowType,proto3" json:"row_type,omitempty"`
342 // If the read or SQL query began a transaction as a side-effect, the
343 // information about the new transaction is yielded here.
344 Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
345 // A SQL query can be parameterized. In PLAN mode, these parameters can be
346 // undeclared. This indicates the field names and types for those undeclared
347 // parameters in the SQL query. For example, a SQL query like `"SELECT * FROM
348 // Users where UserId = @userId and UserName = @userName "` could return a
349 // `undeclared_parameters` value like:
350 //
351 // "fields": [
352 // { "name": "UserId", "type": { "code": "INT64" } },
353 // { "name": "UserName", "type": { "code": "STRING" } },
354 // ]
355 UndeclaredParameters *StructType `protobuf:"bytes,3,opt,name=undeclared_parameters,json=undeclaredParameters,proto3" json:"undeclared_parameters,omitempty"`
356 }
357
358 func (x *ResultSetMetadata) Reset() {
359 *x = ResultSetMetadata{}
360 mi := &file_google_spanner_v1_result_set_proto_msgTypes[2]
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 ms.StoreMessageInfo(mi)
363 }
364
365 func (x *ResultSetMetadata) String() string {
366 return protoimpl.X.MessageStringOf(x)
367 }
368
369 func (*ResultSetMetadata) ProtoMessage() {}
370
371 func (x *ResultSetMetadata) ProtoReflect() protoreflect.Message {
372 mi := &file_google_spanner_v1_result_set_proto_msgTypes[2]
373 if x != nil {
374 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
375 if ms.LoadMessageInfo() == nil {
376 ms.StoreMessageInfo(mi)
377 }
378 return ms
379 }
380 return mi.MessageOf(x)
381 }
382
383 // Deprecated: Use ResultSetMetadata.ProtoReflect.Descriptor instead.
384 func (*ResultSetMetadata) Descriptor() ([]byte, []int) {
385 return file_google_spanner_v1_result_set_proto_rawDescGZIP(), []int{2}
386 }
387
388 func (x *ResultSetMetadata) GetRowType() *StructType {
389 if x != nil {
390 return x.RowType
391 }
392 return nil
393 }
394
395 func (x *ResultSetMetadata) GetTransaction() *Transaction {
396 if x != nil {
397 return x.Transaction
398 }
399 return nil
400 }
401
402 func (x *ResultSetMetadata) GetUndeclaredParameters() *StructType {
403 if x != nil {
404 return x.UndeclaredParameters
405 }
406 return nil
407 }
408
409 // Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or
410 // [PartialResultSet][google.spanner.v1.PartialResultSet].
411 type ResultSetStats struct {
412 state protoimpl.MessageState
413 sizeCache protoimpl.SizeCache
414 unknownFields protoimpl.UnknownFields
415
416 // [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this
417 // result.
418 QueryPlan *QueryPlan `protobuf:"bytes,1,opt,name=query_plan,json=queryPlan,proto3" json:"query_plan,omitempty"`
419 // Aggregated statistics from the execution of the query. Only present when
420 // the query is profiled. For example, a query could return the statistics as
421 // follows:
422 //
423 // {
424 // "rows_returned": "3",
425 // "elapsed_time": "1.22 secs",
426 // "cpu_time": "1.19 secs"
427 // }
428 QueryStats *structpb.Struct `protobuf:"bytes,2,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"`
429 // The number of rows modified by the DML statement.
430 //
431 // Types that are assignable to RowCount:
432 //
433 // *ResultSetStats_RowCountExact
434 // *ResultSetStats_RowCountLowerBound
435 RowCount isResultSetStats_RowCount `protobuf_oneof:"row_count"`
436 }
437
438 func (x *ResultSetStats) Reset() {
439 *x = ResultSetStats{}
440 mi := &file_google_spanner_v1_result_set_proto_msgTypes[3]
441 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
442 ms.StoreMessageInfo(mi)
443 }
444
445 func (x *ResultSetStats) String() string {
446 return protoimpl.X.MessageStringOf(x)
447 }
448
449 func (*ResultSetStats) ProtoMessage() {}
450
451 func (x *ResultSetStats) ProtoReflect() protoreflect.Message {
452 mi := &file_google_spanner_v1_result_set_proto_msgTypes[3]
453 if x != nil {
454 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
455 if ms.LoadMessageInfo() == nil {
456 ms.StoreMessageInfo(mi)
457 }
458 return ms
459 }
460 return mi.MessageOf(x)
461 }
462
463 // Deprecated: Use ResultSetStats.ProtoReflect.Descriptor instead.
464 func (*ResultSetStats) Descriptor() ([]byte, []int) {
465 return file_google_spanner_v1_result_set_proto_rawDescGZIP(), []int{3}
466 }
467
468 func (x *ResultSetStats) GetQueryPlan() *QueryPlan {
469 if x != nil {
470 return x.QueryPlan
471 }
472 return nil
473 }
474
475 func (x *ResultSetStats) GetQueryStats() *structpb.Struct {
476 if x != nil {
477 return x.QueryStats
478 }
479 return nil
480 }
481
482 func (m *ResultSetStats) GetRowCount() isResultSetStats_RowCount {
483 if m != nil {
484 return m.RowCount
485 }
486 return nil
487 }
488
489 func (x *ResultSetStats) GetRowCountExact() int64 {
490 if x, ok := x.GetRowCount().(*ResultSetStats_RowCountExact); ok {
491 return x.RowCountExact
492 }
493 return 0
494 }
495
496 func (x *ResultSetStats) GetRowCountLowerBound() int64 {
497 if x, ok := x.GetRowCount().(*ResultSetStats_RowCountLowerBound); ok {
498 return x.RowCountLowerBound
499 }
500 return 0
501 }
502
503 type isResultSetStats_RowCount interface {
504 isResultSetStats_RowCount()
505 }
506
507 type ResultSetStats_RowCountExact struct {
508 // Standard DML returns an exact count of rows that were modified.
509 RowCountExact int64 `protobuf:"varint,3,opt,name=row_count_exact,json=rowCountExact,proto3,oneof"`
510 }
511
512 type ResultSetStats_RowCountLowerBound struct {
513 // Partitioned DML doesn't offer exactly-once semantics, so it
514 // returns a lower bound of the rows modified.
515 RowCountLowerBound int64 `protobuf:"varint,4,opt,name=row_count_lower_bound,json=rowCountLowerBound,proto3,oneof"`
516 }
517
518 func (*ResultSetStats_RowCountExact) isResultSetStats_RowCount() {}
519
520 func (*ResultSetStats_RowCountLowerBound) isResultSetStats_RowCount() {}
521
522 var File_google_spanner_v1_result_set_proto protoreflect.FileDescriptor
523
524 var file_google_spanner_v1_result_set_proto_rawDesc = []byte{
525 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
526 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70,
527 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61,
528 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
529 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69,
530 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
531 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
532 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73,
533 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f,
534 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67,
535 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72,
536 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
537 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f,
538 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x02,
539 0x0a, 0x09, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x6d,
540 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e,
541 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76,
542 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64,
543 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a,
544 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
545 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69,
546 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x37, 0x0a,
547 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
548 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31,
549 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
550 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x61, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d,
551 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
552 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
553 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x65, 0x64, 0x53,
554 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54,
555 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x63, 0x6f,
556 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x03, 0x0a, 0x10, 0x50, 0x61,
557 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x12, 0x40,
558 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
559 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65,
560 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x4d, 0x65,
561 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
562 0x12, 0x2e, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
563 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
564 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
565 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
566 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64,
567 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x5f,
568 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x73,
569 0x75, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x37, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74,
570 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
571 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75,
572 0x6c, 0x74, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74,
573 0x73, 0x12, 0x61, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74,
574 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f,
575 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d,
576 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
577 0x6e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42,
578 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54,
579 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x09, 0x20, 0x01,
580 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x22, 0xe3, 0x01,
581 0x0a, 0x11, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64,
582 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x08, 0x72, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
583 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
584 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
585 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x72, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a,
586 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
587 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e,
588 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
589 0x6f, 0x6e, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
590 0x52, 0x0a, 0x15, 0x75, 0x6e, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61,
591 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,
592 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e,
593 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x14, 0x75,
594 0x6e, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74,
595 0x65, 0x72, 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65,
596 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f,
597 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f,
598 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51,
599 0x75, 0x65, 0x72, 0x79, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x50,
600 0x6c, 0x61, 0x6e, 0x12, 0x38, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x61,
601 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
602 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
603 0x74, 0x52, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x28, 0x0a,
604 0x0f, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x63, 0x74,
605 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75,
606 0x6e, 0x74, 0x45, 0x78, 0x61, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x15, 0x72, 0x6f, 0x77, 0x5f, 0x63,
607 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64,
608 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x12, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75,
609 0x6e, 0x74, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x42, 0x0b, 0x0a, 0x09,
610 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xb1, 0x01, 0x0a, 0x15, 0x63, 0x6f,
611 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
612 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x50, 0x72,
613 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f,
614 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e,
615 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
616 0x70, 0x62, 0x3b, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x17, 0x47,
617 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x70, 0x61, 0x6e,
618 0x6e, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
619 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31,
620 0xea, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
621 0x3a, 0x3a, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
622 0x72, 0x6f, 0x74, 0x6f, 0x33,
623 }
624
625 var (
626 file_google_spanner_v1_result_set_proto_rawDescOnce sync.Once
627 file_google_spanner_v1_result_set_proto_rawDescData = file_google_spanner_v1_result_set_proto_rawDesc
628 )
629
630 func file_google_spanner_v1_result_set_proto_rawDescGZIP() []byte {
631 file_google_spanner_v1_result_set_proto_rawDescOnce.Do(func() {
632 file_google_spanner_v1_result_set_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_spanner_v1_result_set_proto_rawDescData)
633 })
634 return file_google_spanner_v1_result_set_proto_rawDescData
635 }
636
637 var file_google_spanner_v1_result_set_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
638 var file_google_spanner_v1_result_set_proto_goTypes = []any{
639 (*ResultSet)(nil), // 0: google.spanner.v1.ResultSet
640 (*PartialResultSet)(nil), // 1: google.spanner.v1.PartialResultSet
641 (*ResultSetMetadata)(nil), // 2: google.spanner.v1.ResultSetMetadata
642 (*ResultSetStats)(nil), // 3: google.spanner.v1.ResultSetStats
643 (*structpb.ListValue)(nil), // 4: google.protobuf.ListValue
644 (*MultiplexedSessionPrecommitToken)(nil), // 5: google.spanner.v1.MultiplexedSessionPrecommitToken
645 (*structpb.Value)(nil), // 6: google.protobuf.Value
646 (*StructType)(nil), // 7: google.spanner.v1.StructType
647 (*Transaction)(nil), // 8: google.spanner.v1.Transaction
648 (*QueryPlan)(nil), // 9: google.spanner.v1.QueryPlan
649 (*structpb.Struct)(nil), // 10: google.protobuf.Struct
650 }
651 var file_google_spanner_v1_result_set_proto_depIdxs = []int32{
652 2, // 0: google.spanner.v1.ResultSet.metadata:type_name -> google.spanner.v1.ResultSetMetadata
653 4, // 1: google.spanner.v1.ResultSet.rows:type_name -> google.protobuf.ListValue
654 3, // 2: google.spanner.v1.ResultSet.stats:type_name -> google.spanner.v1.ResultSetStats
655 5, // 3: google.spanner.v1.ResultSet.precommit_token:type_name -> google.spanner.v1.MultiplexedSessionPrecommitToken
656 2, // 4: google.spanner.v1.PartialResultSet.metadata:type_name -> google.spanner.v1.ResultSetMetadata
657 6, // 5: google.spanner.v1.PartialResultSet.values:type_name -> google.protobuf.Value
658 3, // 6: google.spanner.v1.PartialResultSet.stats:type_name -> google.spanner.v1.ResultSetStats
659 5, // 7: google.spanner.v1.PartialResultSet.precommit_token:type_name -> google.spanner.v1.MultiplexedSessionPrecommitToken
660 7, // 8: google.spanner.v1.ResultSetMetadata.row_type:type_name -> google.spanner.v1.StructType
661 8, // 9: google.spanner.v1.ResultSetMetadata.transaction:type_name -> google.spanner.v1.Transaction
662 7, // 10: google.spanner.v1.ResultSetMetadata.undeclared_parameters:type_name -> google.spanner.v1.StructType
663 9, // 11: google.spanner.v1.ResultSetStats.query_plan:type_name -> google.spanner.v1.QueryPlan
664 10, // 12: google.spanner.v1.ResultSetStats.query_stats:type_name -> google.protobuf.Struct
665 13, // [13:13] is the sub-list for method output_type
666 13, // [13:13] is the sub-list for method input_type
667 13, // [13:13] is the sub-list for extension type_name
668 13, // [13:13] is the sub-list for extension extendee
669 0, // [0:13] is the sub-list for field type_name
670 }
671
672 func init() { file_google_spanner_v1_result_set_proto_init() }
673 func file_google_spanner_v1_result_set_proto_init() {
674 if File_google_spanner_v1_result_set_proto != nil {
675 return
676 }
677 file_google_spanner_v1_query_plan_proto_init()
678 file_google_spanner_v1_transaction_proto_init()
679 file_google_spanner_v1_type_proto_init()
680 file_google_spanner_v1_result_set_proto_msgTypes[3].OneofWrappers = []any{
681 (*ResultSetStats_RowCountExact)(nil),
682 (*ResultSetStats_RowCountLowerBound)(nil),
683 }
684 type x struct{}
685 out := protoimpl.TypeBuilder{
686 File: protoimpl.DescBuilder{
687 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
688 RawDescriptor: file_google_spanner_v1_result_set_proto_rawDesc,
689 NumEnums: 0,
690 NumMessages: 4,
691 NumExtensions: 0,
692 NumServices: 0,
693 },
694 GoTypes: file_google_spanner_v1_result_set_proto_goTypes,
695 DependencyIndexes: file_google_spanner_v1_result_set_proto_depIdxs,
696 MessageInfos: file_google_spanner_v1_result_set_proto_msgTypes,
697 }.Build()
698 File_google_spanner_v1_result_set_proto = out.File
699 file_google_spanner_v1_result_set_proto_rawDesc = nil
700 file_google_spanner_v1_result_set_proto_goTypes = nil
701 file_google_spanner_v1_result_set_proto_depIdxs = nil
702 }