Debian Codegraph @

spanner/apiv1/spannerpb/transaction.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/transaction.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 durationpb "google.golang.org/protobuf/types/known/durationpb"
28 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
29 reflect "reflect"
30 sync "sync"
31 )
32
33 const (
34 // Verify that this generated code is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36 // Verify that runtime/protoimpl is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 // `IsolationLevel` is used when setting `isolation_level` for a transaction.
41 type TransactionOptions_IsolationLevel int32
42
43 const (
44 // Default value.
45 //
46 // If the value is not specified, the `SERIALIZABLE` isolation level is
47 // used.
48 TransactionOptions_ISOLATION_LEVEL_UNSPECIFIED TransactionOptions_IsolationLevel = 0
49 // All transactions appear as if they executed in a serial order, even if
50 // some of the reads, writes, and other operations of distinct transactions
51 // actually occurred in parallel. Spanner assigns commit timestamps that
52 // reflect the order of committed transactions to implement this property.
53 // Spanner offers a stronger guarantee than serializability called external
54 // consistency. For more information, see
55 // [TrueTime and external
56 // consistency](https://cloud.google.com/spanner/docs/true-time-external-consistency#serializability).
57 TransactionOptions_SERIALIZABLE TransactionOptions_IsolationLevel = 1
58 // All reads performed during the transaction observe a consistent snapshot
59 // of the database, and the transaction is only successfully committed in
60 // the absence of conflicts between its updates and any concurrent updates
61 // that have occurred since that snapshot. Consequently, in contrast to
62 // `SERIALIZABLE` transactions, only write-write conflicts are detected in
63 // snapshot transactions.
64 //
65 // This isolation level does not support Read-only and Partitioned DML
66 // transactions.
67 //
68 // When `REPEATABLE_READ` is specified on a read-write transaction, the
69 // locking semantics default to `OPTIMISTIC`.
70 TransactionOptions_REPEATABLE_READ TransactionOptions_IsolationLevel = 2
71 )
72
73 // Enum value maps for TransactionOptions_IsolationLevel.
74 var (
75 TransactionOptions_IsolationLevel_name = map[int32]string{
76 0: "ISOLATION_LEVEL_UNSPECIFIED",
77 1: "SERIALIZABLE",
78 2: "REPEATABLE_READ",
79 }
80 TransactionOptions_IsolationLevel_value = map[string]int32{
81 "ISOLATION_LEVEL_UNSPECIFIED": 0,
82 "SERIALIZABLE": 1,
83 "REPEATABLE_READ": 2,
84 }
85 )
86
87 func (x TransactionOptions_IsolationLevel) Enum() *TransactionOptions_IsolationLevel {
88 p := new(TransactionOptions_IsolationLevel)
89 *p = x
90 return p
91 }
92
93 func (x TransactionOptions_IsolationLevel) String() string {
94 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
95 }
96
97 func (TransactionOptions_IsolationLevel) Descriptor() protoreflect.EnumDescriptor {
98 return file_google_spanner_v1_transaction_proto_enumTypes[0].Descriptor()
99 }
100
101 func (TransactionOptions_IsolationLevel) Type() protoreflect.EnumType {
102 return &file_google_spanner_v1_transaction_proto_enumTypes[0]
103 }
104
105 func (x TransactionOptions_IsolationLevel) Number() protoreflect.EnumNumber {
106 return protoreflect.EnumNumber(x)
107 }
108
109 // Deprecated: Use TransactionOptions_IsolationLevel.Descriptor instead.
110 func (TransactionOptions_IsolationLevel) EnumDescriptor() ([]byte, []int) {
111 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{0, 0}
112 }
113
114 // `ReadLockMode` is used to set the read lock mode for read-write
115 // transactions.
116 type TransactionOptions_ReadWrite_ReadLockMode int32
117
118 const (
119 // Default value.
120 //
121 // - If isolation level is
122 // [REPEATABLE_READ][google.spanner.v1.TransactionOptions.IsolationLevel.REPEATABLE_READ],
123 // then it is an error to specify `read_lock_mode`. Locking semantics
124 // default to `OPTIMISTIC`. No validation checks are done for reads,
125 // except to validate that the data that was served at the snapshot time
126 // is unchanged at commit time in the following cases:
127 // 1. reads done as part of queries that use `SELECT FOR UPDATE`
128 // 2. reads done as part of statements with a `LOCK_SCANNED_RANGES`
129 // hint
130 // 3. reads done as part of DML statements
131 // - At all other isolation levels, if `read_lock_mode` is the default
132 // value, then pessimistic read locks are used.
133 TransactionOptions_ReadWrite_READ_LOCK_MODE_UNSPECIFIED TransactionOptions_ReadWrite_ReadLockMode = 0
134 // Pessimistic lock mode.
135 //
136 // Read locks are acquired immediately on read.
137 // Semantics described only applies to
138 // [SERIALIZABLE][google.spanner.v1.TransactionOptions.IsolationLevel.SERIALIZABLE]
139 // isolation.
140 TransactionOptions_ReadWrite_PESSIMISTIC TransactionOptions_ReadWrite_ReadLockMode = 1
141 // Optimistic lock mode.
142 //
143 // Locks for reads within the transaction are not acquired on read.
144 // Instead the locks are acquired on a commit to validate that
145 // read/queried data has not changed since the transaction started.
146 // Semantics described only applies to
147 // [SERIALIZABLE][google.spanner.v1.TransactionOptions.IsolationLevel.SERIALIZABLE]
148 // isolation.
149 TransactionOptions_ReadWrite_OPTIMISTIC TransactionOptions_ReadWrite_ReadLockMode = 2
150 )
151
152 // Enum value maps for TransactionOptions_ReadWrite_ReadLockMode.
153 var (
154 TransactionOptions_ReadWrite_ReadLockMode_name = map[int32]string{
155 0: "READ_LOCK_MODE_UNSPECIFIED",
156 1: "PESSIMISTIC",
157 2: "OPTIMISTIC",
158 }
159 TransactionOptions_ReadWrite_ReadLockMode_value = map[string]int32{
160 "READ_LOCK_MODE_UNSPECIFIED": 0,
161 "PESSIMISTIC": 1,
162 "OPTIMISTIC": 2,
163 }
164 )
165
166 func (x TransactionOptions_ReadWrite_ReadLockMode) Enum() *TransactionOptions_ReadWrite_ReadLockMode {
167 p := new(TransactionOptions_ReadWrite_ReadLockMode)
168 *p = x
169 return p
170 }
171
172 func (x TransactionOptions_ReadWrite_ReadLockMode) String() string {
173 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
174 }
175
176 func (TransactionOptions_ReadWrite_ReadLockMode) Descriptor() protoreflect.EnumDescriptor {
177 return file_google_spanner_v1_transaction_proto_enumTypes[1].Descriptor()
178 }
179
180 func (TransactionOptions_ReadWrite_ReadLockMode) Type() protoreflect.EnumType {
181 return &file_google_spanner_v1_transaction_proto_enumTypes[1]
182 }
183
184 func (x TransactionOptions_ReadWrite_ReadLockMode) Number() protoreflect.EnumNumber {
185 return protoreflect.EnumNumber(x)
186 }
187
188 // Deprecated: Use TransactionOptions_ReadWrite_ReadLockMode.Descriptor instead.
189 func (TransactionOptions_ReadWrite_ReadLockMode) EnumDescriptor() ([]byte, []int) {
190 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{0, 0, 0}
191 }
192
193 // Options to use for transactions.
194 type TransactionOptions struct {
195 state protoimpl.MessageState
196 sizeCache protoimpl.SizeCache
197 unknownFields protoimpl.UnknownFields
198
199 // Required. The type of transaction.
200 //
201 // Types that are assignable to Mode:
202 //
203 // *TransactionOptions_ReadWrite_
204 // *TransactionOptions_PartitionedDml_
205 // *TransactionOptions_ReadOnly_
206 Mode isTransactionOptions_Mode `protobuf_oneof:"mode"`
207 // When `exclude_txn_from_change_streams` is set to `true`, it prevents read
208 // or write transactions from being tracked in change streams.
209 //
210 // * If the DDL option `allow_txn_exclusion` is set to `true`, then the
211 // updates
212 //
213 // made within this transaction aren't recorded in the change stream.
214 //
215 // - If you don't set the DDL option `allow_txn_exclusion` or if it's
216 // set to `false`, then the updates made within this transaction are
217 // recorded in the change stream.
218 //
219 // When `exclude_txn_from_change_streams` is set to `false` or not set,
220 // modifications from this transaction are recorded in all change streams
221 // that are tracking columns modified by these transactions.
222 //
223 // The `exclude_txn_from_change_streams` option can only be specified
224 // for read-write or partitioned DML transactions, otherwise the API returns
225 // an `INVALID_ARGUMENT` error.
226 ExcludeTxnFromChangeStreams bool `protobuf:"varint,5,opt,name=exclude_txn_from_change_streams,json=excludeTxnFromChangeStreams,proto3" json:"exclude_txn_from_change_streams,omitempty"`
227 // Isolation level for the transaction.
228 IsolationLevel TransactionOptions_IsolationLevel `protobuf:"varint,6,opt,name=isolation_level,json=isolationLevel,proto3,enum=google.spanner.v1.TransactionOptions_IsolationLevel" json:"isolation_level,omitempty"`
229 }
230
231 func (x *TransactionOptions) Reset() {
232 *x = TransactionOptions{}
233 mi := &file_google_spanner_v1_transaction_proto_msgTypes[0]
234 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
235 ms.StoreMessageInfo(mi)
236 }
237
238 func (x *TransactionOptions) String() string {
239 return protoimpl.X.MessageStringOf(x)
240 }
241
242 func (*TransactionOptions) ProtoMessage() {}
243
244 func (x *TransactionOptions) ProtoReflect() protoreflect.Message {
245 mi := &file_google_spanner_v1_transaction_proto_msgTypes[0]
246 if x != nil {
247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
248 if ms.LoadMessageInfo() == nil {
249 ms.StoreMessageInfo(mi)
250 }
251 return ms
252 }
253 return mi.MessageOf(x)
254 }
255
256 // Deprecated: Use TransactionOptions.ProtoReflect.Descriptor instead.
257 func (*TransactionOptions) Descriptor() ([]byte, []int) {
258 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{0}
259 }
260
261 func (m *TransactionOptions) GetMode() isTransactionOptions_Mode {
262 if m != nil {
263 return m.Mode
264 }
265 return nil
266 }
267
268 func (x *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite {
269 if x, ok := x.GetMode().(*TransactionOptions_ReadWrite_); ok {
270 return x.ReadWrite
271 }
272 return nil
273 }
274
275 func (x *TransactionOptions) GetPartitionedDml() *TransactionOptions_PartitionedDml {
276 if x, ok := x.GetMode().(*TransactionOptions_PartitionedDml_); ok {
277 return x.PartitionedDml
278 }
279 return nil
280 }
281
282 func (x *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly {
283 if x, ok := x.GetMode().(*TransactionOptions_ReadOnly_); ok {
284 return x.ReadOnly
285 }
286 return nil
287 }
288
289 func (x *TransactionOptions) GetExcludeTxnFromChangeStreams() bool {
290 if x != nil {
291 return x.ExcludeTxnFromChangeStreams
292 }
293 return false
294 }
295
296 func (x *TransactionOptions) GetIsolationLevel() TransactionOptions_IsolationLevel {
297 if x != nil {
298 return x.IsolationLevel
299 }
300 return TransactionOptions_ISOLATION_LEVEL_UNSPECIFIED
301 }
302
303 type isTransactionOptions_Mode interface {
304 isTransactionOptions_Mode()
305 }
306
307 type TransactionOptions_ReadWrite_ struct {
308 // Transaction may write.
309 //
310 // Authorization to begin a read-write transaction requires
311 // `spanner.databases.beginOrRollbackReadWriteTransaction` permission
312 // on the `session` resource.
313 ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,1,opt,name=read_write,json=readWrite,proto3,oneof"`
314 }
315
316 type TransactionOptions_PartitionedDml_ struct {
317 // Partitioned DML transaction.
318 //
319 // Authorization to begin a Partitioned DML transaction requires
320 // `spanner.databases.beginPartitionedDmlTransaction` permission
321 // on the `session` resource.
322 PartitionedDml *TransactionOptions_PartitionedDml `protobuf:"bytes,3,opt,name=partitioned_dml,json=partitionedDml,proto3,oneof"`
323 }
324
325 type TransactionOptions_ReadOnly_ struct {
326 // Transaction does not write.
327 //
328 // Authorization to begin a read-only transaction requires
329 // `spanner.databases.beginReadOnlyTransaction` permission
330 // on the `session` resource.
331 ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"`
332 }
333
334 func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {}
335
336 func (*TransactionOptions_PartitionedDml_) isTransactionOptions_Mode() {}
337
338 func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {}
339
340 // A transaction.
341 type Transaction struct {
342 state protoimpl.MessageState
343 sizeCache protoimpl.SizeCache
344 unknownFields protoimpl.UnknownFields
345
346 // `id` may be used to identify the transaction in subsequent
347 // [Read][google.spanner.v1.Spanner.Read],
348 // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],
349 // [Commit][google.spanner.v1.Spanner.Commit], or
350 // [Rollback][google.spanner.v1.Spanner.Rollback] calls.
351 //
352 // Single-use read-only transactions do not have IDs, because
353 // single-use transactions do not support multiple requests.
354 Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
355 // For snapshot read-only transactions, the read timestamp chosen
356 // for the transaction. Not returned by default: see
357 // [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
358 //
359 // A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
360 // Example: `"2014-10-02T15:01:23.045123456Z"`.
361 ReadTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_timestamp,json=readTimestamp,proto3" json:"read_timestamp,omitempty"`
362 // A precommit token is included in the response of a BeginTransaction
363 // request if the read-write transaction is on a multiplexed session and
364 // a mutation_key was specified in the
365 // [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
366 // The precommit token with the highest sequence number from this transaction
367 // attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
368 // request for this transaction.
369 PrecommitToken *MultiplexedSessionPrecommitToken `protobuf:"bytes,3,opt,name=precommit_token,json=precommitToken,proto3" json:"precommit_token,omitempty"`
370 }
371
372 func (x *Transaction) Reset() {
373 *x = Transaction{}
374 mi := &file_google_spanner_v1_transaction_proto_msgTypes[1]
375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
376 ms.StoreMessageInfo(mi)
377 }
378
379 func (x *Transaction) String() string {
380 return protoimpl.X.MessageStringOf(x)
381 }
382
383 func (*Transaction) ProtoMessage() {}
384
385 func (x *Transaction) ProtoReflect() protoreflect.Message {
386 mi := &file_google_spanner_v1_transaction_proto_msgTypes[1]
387 if x != nil {
388 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
389 if ms.LoadMessageInfo() == nil {
390 ms.StoreMessageInfo(mi)
391 }
392 return ms
393 }
394 return mi.MessageOf(x)
395 }
396
397 // Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
398 func (*Transaction) Descriptor() ([]byte, []int) {
399 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{1}
400 }
401
402 func (x *Transaction) GetId() []byte {
403 if x != nil {
404 return x.Id
405 }
406 return nil
407 }
408
409 func (x *Transaction) GetReadTimestamp() *timestamppb.Timestamp {
410 if x != nil {
411 return x.ReadTimestamp
412 }
413 return nil
414 }
415
416 func (x *Transaction) GetPrecommitToken() *MultiplexedSessionPrecommitToken {
417 if x != nil {
418 return x.PrecommitToken
419 }
420 return nil
421 }
422
423 // This message is used to select the transaction in which a
424 // [Read][google.spanner.v1.Spanner.Read] or
425 // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] call runs.
426 //
427 // See [TransactionOptions][google.spanner.v1.TransactionOptions] for more
428 // information about transactions.
429 type TransactionSelector struct {
430 state protoimpl.MessageState
431 sizeCache protoimpl.SizeCache
432 unknownFields protoimpl.UnknownFields
433
434 // If no fields are set, the default is a single use transaction
435 // with strong concurrency.
436 //
437 // Types that are assignable to Selector:
438 //
439 // *TransactionSelector_SingleUse
440 // *TransactionSelector_Id
441 // *TransactionSelector_Begin
442 Selector isTransactionSelector_Selector `protobuf_oneof:"selector"`
443 }
444
445 func (x *TransactionSelector) Reset() {
446 *x = TransactionSelector{}
447 mi := &file_google_spanner_v1_transaction_proto_msgTypes[2]
448 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
449 ms.StoreMessageInfo(mi)
450 }
451
452 func (x *TransactionSelector) String() string {
453 return protoimpl.X.MessageStringOf(x)
454 }
455
456 func (*TransactionSelector) ProtoMessage() {}
457
458 func (x *TransactionSelector) ProtoReflect() protoreflect.Message {
459 mi := &file_google_spanner_v1_transaction_proto_msgTypes[2]
460 if x != nil {
461 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
462 if ms.LoadMessageInfo() == nil {
463 ms.StoreMessageInfo(mi)
464 }
465 return ms
466 }
467 return mi.MessageOf(x)
468 }
469
470 // Deprecated: Use TransactionSelector.ProtoReflect.Descriptor instead.
471 func (*TransactionSelector) Descriptor() ([]byte, []int) {
472 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{2}
473 }
474
475 func (m *TransactionSelector) GetSelector() isTransactionSelector_Selector {
476 if m != nil {
477 return m.Selector
478 }
479 return nil
480 }
481
482 func (x *TransactionSelector) GetSingleUse() *TransactionOptions {
483 if x, ok := x.GetSelector().(*TransactionSelector_SingleUse); ok {
484 return x.SingleUse
485 }
486 return nil
487 }
488
489 func (x *TransactionSelector) GetId() []byte {
490 if x, ok := x.GetSelector().(*TransactionSelector_Id); ok {
491 return x.Id
492 }
493 return nil
494 }
495
496 func (x *TransactionSelector) GetBegin() *TransactionOptions {
497 if x, ok := x.GetSelector().(*TransactionSelector_Begin); ok {
498 return x.Begin
499 }
500 return nil
501 }
502
503 type isTransactionSelector_Selector interface {
504 isTransactionSelector_Selector()
505 }
506
507 type TransactionSelector_SingleUse struct {
508 // Execute the read or SQL query in a temporary transaction.
509 // This is the most efficient way to execute a transaction that
510 // consists of a single SQL query.
511 SingleUse *TransactionOptions `protobuf:"bytes,1,opt,name=single_use,json=singleUse,proto3,oneof"`
512 }
513
514 type TransactionSelector_Id struct {
515 // Execute the read or SQL query in a previously-started transaction.
516 Id []byte `protobuf:"bytes,2,opt,name=id,proto3,oneof"`
517 }
518
519 type TransactionSelector_Begin struct {
520 // Begin a new transaction and execute this read or SQL query in
521 // it. The transaction ID of the new transaction is returned in
522 // [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction],
523 // which is a [Transaction][google.spanner.v1.Transaction].
524 Begin *TransactionOptions `protobuf:"bytes,3,opt,name=begin,proto3,oneof"`
525 }
526
527 func (*TransactionSelector_SingleUse) isTransactionSelector_Selector() {}
528
529 func (*TransactionSelector_Id) isTransactionSelector_Selector() {}
530
531 func (*TransactionSelector_Begin) isTransactionSelector_Selector() {}
532
533 // When a read-write transaction is executed on a multiplexed session,
534 // this precommit token is sent back to the client
535 // as a part of the [Transaction][google.spanner.v1.Transaction] message in the
536 // [BeginTransaction][google.spanner.v1.BeginTransactionRequest] response and
537 // also as a part of the [ResultSet][google.spanner.v1.ResultSet] and
538 // [PartialResultSet][google.spanner.v1.PartialResultSet] responses.
539 type MultiplexedSessionPrecommitToken struct {
540 state protoimpl.MessageState
541 sizeCache protoimpl.SizeCache
542 unknownFields protoimpl.UnknownFields
543
544 // Opaque precommit token.
545 PrecommitToken []byte `protobuf:"bytes,1,opt,name=precommit_token,json=precommitToken,proto3" json:"precommit_token,omitempty"`
546 // An incrementing seq number is generated on every precommit token
547 // that is returned. Clients should remember the precommit token with the
548 // highest sequence number from the current transaction attempt.
549 SeqNum int32 `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
550 }
551
552 func (x *MultiplexedSessionPrecommitToken) Reset() {
553 *x = MultiplexedSessionPrecommitToken{}
554 mi := &file_google_spanner_v1_transaction_proto_msgTypes[3]
555 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
556 ms.StoreMessageInfo(mi)
557 }
558
559 func (x *MultiplexedSessionPrecommitToken) String() string {
560 return protoimpl.X.MessageStringOf(x)
561 }
562
563 func (*MultiplexedSessionPrecommitToken) ProtoMessage() {}
564
565 func (x *MultiplexedSessionPrecommitToken) ProtoReflect() protoreflect.Message {
566 mi := &file_google_spanner_v1_transaction_proto_msgTypes[3]
567 if x != nil {
568 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
569 if ms.LoadMessageInfo() == nil {
570 ms.StoreMessageInfo(mi)
571 }
572 return ms
573 }
574 return mi.MessageOf(x)
575 }
576
577 // Deprecated: Use MultiplexedSessionPrecommitToken.ProtoReflect.Descriptor instead.
578 func (*MultiplexedSessionPrecommitToken) Descriptor() ([]byte, []int) {
579 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{3}
580 }
581
582 func (x *MultiplexedSessionPrecommitToken) GetPrecommitToken() []byte {
583 if x != nil {
584 return x.PrecommitToken
585 }
586 return nil
587 }
588
589 func (x *MultiplexedSessionPrecommitToken) GetSeqNum() int32 {
590 if x != nil {
591 return x.SeqNum
592 }
593 return 0
594 }
595
596 // Message type to initiate a read-write transaction. Currently this
597 // transaction type has no options.
598 type TransactionOptions_ReadWrite struct {
599 state protoimpl.MessageState
600 sizeCache protoimpl.SizeCache
601 unknownFields protoimpl.UnknownFields
602
603 // Read lock mode for the transaction.
604 ReadLockMode TransactionOptions_ReadWrite_ReadLockMode `protobuf:"varint,1,opt,name=read_lock_mode,json=readLockMode,proto3,enum=google.spanner.v1.TransactionOptions_ReadWrite_ReadLockMode" json:"read_lock_mode,omitempty"`
605 // Optional. Clients should pass the transaction ID of the previous
606 // transaction attempt that was aborted if this transaction is being
607 // executed on a multiplexed session.
608 MultiplexedSessionPreviousTransactionId []byte `protobuf:"bytes,2,opt,name=multiplexed_session_previous_transaction_id,json=multiplexedSessionPreviousTransactionId,proto3" json:"multiplexed_session_previous_transaction_id,omitempty"`
609 }
610
611 func (x *TransactionOptions_ReadWrite) Reset() {
612 *x = TransactionOptions_ReadWrite{}
613 mi := &file_google_spanner_v1_transaction_proto_msgTypes[4]
614 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
615 ms.StoreMessageInfo(mi)
616 }
617
618 func (x *TransactionOptions_ReadWrite) String() string {
619 return protoimpl.X.MessageStringOf(x)
620 }
621
622 func (*TransactionOptions_ReadWrite) ProtoMessage() {}
623
624 func (x *TransactionOptions_ReadWrite) ProtoReflect() protoreflect.Message {
625 mi := &file_google_spanner_v1_transaction_proto_msgTypes[4]
626 if x != nil {
627 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
628 if ms.LoadMessageInfo() == nil {
629 ms.StoreMessageInfo(mi)
630 }
631 return ms
632 }
633 return mi.MessageOf(x)
634 }
635
636 // Deprecated: Use TransactionOptions_ReadWrite.ProtoReflect.Descriptor instead.
637 func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) {
638 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{0, 0}
639 }
640
641 func (x *TransactionOptions_ReadWrite) GetReadLockMode() TransactionOptions_ReadWrite_ReadLockMode {
642 if x != nil {
643 return x.ReadLockMode
644 }
645 return TransactionOptions_ReadWrite_READ_LOCK_MODE_UNSPECIFIED
646 }
647
648 func (x *TransactionOptions_ReadWrite) GetMultiplexedSessionPreviousTransactionId() []byte {
649 if x != nil {
650 return x.MultiplexedSessionPreviousTransactionId
651 }
652 return nil
653 }
654
655 // Message type to initiate a Partitioned DML transaction.
656 type TransactionOptions_PartitionedDml struct {
657 state protoimpl.MessageState
658 sizeCache protoimpl.SizeCache
659 unknownFields protoimpl.UnknownFields
660 }
661
662 func (x *TransactionOptions_PartitionedDml) Reset() {
663 *x = TransactionOptions_PartitionedDml{}
664 mi := &file_google_spanner_v1_transaction_proto_msgTypes[5]
665 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
666 ms.StoreMessageInfo(mi)
667 }
668
669 func (x *TransactionOptions_PartitionedDml) String() string {
670 return protoimpl.X.MessageStringOf(x)
671 }
672
673 func (*TransactionOptions_PartitionedDml) ProtoMessage() {}
674
675 func (x *TransactionOptions_PartitionedDml) ProtoReflect() protoreflect.Message {
676 mi := &file_google_spanner_v1_transaction_proto_msgTypes[5]
677 if x != nil {
678 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
679 if ms.LoadMessageInfo() == nil {
680 ms.StoreMessageInfo(mi)
681 }
682 return ms
683 }
684 return mi.MessageOf(x)
685 }
686
687 // Deprecated: Use TransactionOptions_PartitionedDml.ProtoReflect.Descriptor instead.
688 func (*TransactionOptions_PartitionedDml) Descriptor() ([]byte, []int) {
689 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{0, 1}
690 }
691
692 // Message type to initiate a read-only transaction.
693 type TransactionOptions_ReadOnly struct {
694 state protoimpl.MessageState
695 sizeCache protoimpl.SizeCache
696 unknownFields protoimpl.UnknownFields
697
698 // How to choose the timestamp for the read-only transaction.
699 //
700 // Types that are assignable to TimestampBound:
701 //
702 // *TransactionOptions_ReadOnly_Strong
703 // *TransactionOptions_ReadOnly_MinReadTimestamp
704 // *TransactionOptions_ReadOnly_MaxStaleness
705 // *TransactionOptions_ReadOnly_ReadTimestamp
706 // *TransactionOptions_ReadOnly_ExactStaleness
707 TimestampBound isTransactionOptions_ReadOnly_TimestampBound `protobuf_oneof:"timestamp_bound"`
708 // If true, the Cloud Spanner-selected read timestamp is included in
709 // the [Transaction][google.spanner.v1.Transaction] message that describes
710 // the transaction.
711 ReturnReadTimestamp bool `protobuf:"varint,6,opt,name=return_read_timestamp,json=returnReadTimestamp,proto3" json:"return_read_timestamp,omitempty"`
712 }
713
714 func (x *TransactionOptions_ReadOnly) Reset() {
715 *x = TransactionOptions_ReadOnly{}
716 mi := &file_google_spanner_v1_transaction_proto_msgTypes[6]
717 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
718 ms.StoreMessageInfo(mi)
719 }
720
721 func (x *TransactionOptions_ReadOnly) String() string {
722 return protoimpl.X.MessageStringOf(x)
723 }
724
725 func (*TransactionOptions_ReadOnly) ProtoMessage() {}
726
727 func (x *TransactionOptions_ReadOnly) ProtoReflect() protoreflect.Message {
728 mi := &file_google_spanner_v1_transaction_proto_msgTypes[6]
729 if x != nil {
730 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
731 if ms.LoadMessageInfo() == nil {
732 ms.StoreMessageInfo(mi)
733 }
734 return ms
735 }
736 return mi.MessageOf(x)
737 }
738
739 // Deprecated: Use TransactionOptions_ReadOnly.ProtoReflect.Descriptor instead.
740 func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) {
741 return file_google_spanner_v1_transaction_proto_rawDescGZIP(), []int{0, 2}
742 }
743
744 func (m *TransactionOptions_ReadOnly) GetTimestampBound() isTransactionOptions_ReadOnly_TimestampBound {
745 if m != nil {
746 return m.TimestampBound
747 }
748 return nil
749 }
750
751 func (x *TransactionOptions_ReadOnly) GetStrong() bool {
752 if x, ok := x.GetTimestampBound().(*TransactionOptions_ReadOnly_Strong); ok {
753 return x.Strong
754 }
755 return false
756 }
757
758 func (x *TransactionOptions_ReadOnly) GetMinReadTimestamp() *timestamppb.Timestamp {
759 if x, ok := x.GetTimestampBound().(*TransactionOptions_ReadOnly_MinReadTimestamp); ok {
760 return x.MinReadTimestamp
761 }
762 return nil
763 }
764
765 func (x *TransactionOptions_ReadOnly) GetMaxStaleness() *durationpb.Duration {
766 if x, ok := x.GetTimestampBound().(*TransactionOptions_ReadOnly_MaxStaleness); ok {
767 return x.MaxStaleness
768 }
769 return nil
770 }
771
772 func (x *TransactionOptions_ReadOnly) GetReadTimestamp() *timestamppb.Timestamp {
773 if x, ok := x.GetTimestampBound().(*TransactionOptions_ReadOnly_ReadTimestamp); ok {
774 return x.ReadTimestamp
775 }
776 return nil
777 }
778
779 func (x *TransactionOptions_ReadOnly) GetExactStaleness() *durationpb.Duration {
780 if x, ok := x.GetTimestampBound().(*TransactionOptions_ReadOnly_ExactStaleness); ok {
781 return x.ExactStaleness
782 }
783 return nil
784 }
785
786 func (x *TransactionOptions_ReadOnly) GetReturnReadTimestamp() bool {
787 if x != nil {
788 return x.ReturnReadTimestamp
789 }
790 return false
791 }
792
793 type isTransactionOptions_ReadOnly_TimestampBound interface {
794 isTransactionOptions_ReadOnly_TimestampBound()
795 }
796
797 type TransactionOptions_ReadOnly_Strong struct {
798 // Read at a timestamp where all previously committed transactions
799 // are visible.
800 Strong bool `protobuf:"varint,1,opt,name=strong,proto3,oneof"`
801 }
802
803 type TransactionOptions_ReadOnly_MinReadTimestamp struct {
804 // Executes all reads at a timestamp >= `min_read_timestamp`.
805 //
806 // This is useful for requesting fresher data than some previous
807 // read, or data that is fresh enough to observe the effects of some
808 // previously committed transaction whose timestamp is known.
809 //
810 // Note that this option can only be used in single-use transactions.
811 //
812 // A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
813 // Example: `"2014-10-02T15:01:23.045123456Z"`.
814 MinReadTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=min_read_timestamp,json=minReadTimestamp,proto3,oneof"`
815 }
816
817 type TransactionOptions_ReadOnly_MaxStaleness struct {
818 // Read data at a timestamp >= `NOW - max_staleness`
819 // seconds. Guarantees that all writes that have committed more
820 // than the specified number of seconds ago are visible. Because
821 // Cloud Spanner chooses the exact timestamp, this mode works even if
822 // the client's local clock is substantially skewed from Cloud Spanner
823 // commit timestamps.
824 //
825 // Useful for reading the freshest data available at a nearby
826 // replica, while bounding the possible staleness if the local
827 // replica has fallen behind.
828 //
829 // Note that this option can only be used in single-use
830 // transactions.
831 MaxStaleness *durationpb.Duration `protobuf:"bytes,3,opt,name=max_staleness,json=maxStaleness,proto3,oneof"`
832 }
833
834 type TransactionOptions_ReadOnly_ReadTimestamp struct {
835 // Executes all reads at the given timestamp. Unlike other modes,
836 // reads at a specific timestamp are repeatable; the same read at
837 // the same timestamp always returns the same data. If the
838 // timestamp is in the future, the read is blocked until the
839 // specified timestamp, modulo the read's deadline.
840 //
841 // Useful for large scale consistent reads such as mapreduces, or
842 // for coordinating many reads against a consistent snapshot of the
843 // data.
844 //
845 // A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
846 // Example: `"2014-10-02T15:01:23.045123456Z"`.
847 ReadTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=read_timestamp,json=readTimestamp,proto3,oneof"`
848 }
849
850 type TransactionOptions_ReadOnly_ExactStaleness struct {
851 // Executes all reads at a timestamp that is `exact_staleness`
852 // old. The timestamp is chosen soon after the read is started.
853 //
854 // Guarantees that all writes that have committed more than the
855 // specified number of seconds ago are visible. Because Cloud Spanner
856 // chooses the exact timestamp, this mode works even if the client's
857 // local clock is substantially skewed from Cloud Spanner commit
858 // timestamps.
859 //
860 // Useful for reading at nearby replicas without the distributed
861 // timestamp negotiation overhead of `max_staleness`.
862 ExactStaleness *durationpb.Duration `protobuf:"bytes,5,opt,name=exact_staleness,json=exactStaleness,proto3,oneof"`
863 }
864
865 func (*TransactionOptions_ReadOnly_Strong) isTransactionOptions_ReadOnly_TimestampBound() {}
866
867 func (*TransactionOptions_ReadOnly_MinReadTimestamp) isTransactionOptions_ReadOnly_TimestampBound() {}
868
869 func (*TransactionOptions_ReadOnly_MaxStaleness) isTransactionOptions_ReadOnly_TimestampBound() {}
870
871 func (*TransactionOptions_ReadOnly_ReadTimestamp) isTransactionOptions_ReadOnly_TimestampBound() {}
872
873 func (*TransactionOptions_ReadOnly_ExactStaleness) isTransactionOptions_ReadOnly_TimestampBound() {}
874
875 var File_google_spanner_v1_transaction_proto protoreflect.FileDescriptor
876
877 var file_google_spanner_v1_transaction_proto_rawDesc = []byte{
878 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
879 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
880 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70,
881 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
882 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
883 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
884 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,
885 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
886 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
887 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x09, 0x0a, 0x12, 0x54,
888 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
889 0x73, 0x12, 0x50, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18,
890 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
891 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61,
892 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x61,
893 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x61, 0x64, 0x57, 0x72,
894 0x69, 0x74, 0x65, 0x12, 0x5f, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
895 0x65, 0x64, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67,
896 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31,
897 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69,
898 0x6f, 0x6e, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x44,
899 0x6d, 0x6c, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65,
900 0x64, 0x44, 0x6d, 0x6c, 0x12, 0x4d, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c,
901 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
902 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e,
903 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52,
904 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f,
905 0x6e, 0x6c, 0x79, 0x12, 0x44, 0x0a, 0x1f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74,
906 0x78, 0x6e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73,
907 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x65, 0x78,
908 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x78, 0x6e, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x6e,
909 0x67, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x5d, 0x0a, 0x0f, 0x69, 0x73, 0x6f,
910 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01,
911 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e,
912 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
913 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x73, 0x6f, 0x6c, 0x61, 0x74,
914 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0e, 0x69, 0x73, 0x6f, 0x6c, 0x61, 0x74,
915 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0xa3, 0x02, 0x0a, 0x09, 0x52, 0x65, 0x61,
916 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x62, 0x0a, 0x0e, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6c,
917 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c,
918 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e,
919 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70,
920 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x2e,
921 0x52, 0x65, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x72, 0x65,
922 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x61, 0x0a, 0x2b, 0x6d, 0x75,
923 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
924 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73,
925 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42,
926 0x03, 0xe0, 0x41, 0x01, 0x52, 0x27, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x78, 0x65,
927 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73,
928 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a,
929 0x0c, 0x52, 0x65, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a,
930 0x1a, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f,
931 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a,
932 0x0b, 0x50, 0x45, 0x53, 0x53, 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0e,
933 0x0a, 0x0a, 0x4f, 0x50, 0x54, 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x10, 0x02, 0x1a, 0x10,
934 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x44, 0x6d, 0x6c,
935 0x1a, 0x84, 0x03, 0x0a, 0x08, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x18, 0x0a,
936 0x06, 0x73, 0x74, 0x72, 0x6f, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52,
937 0x06, 0x73, 0x74, 0x72, 0x6f, 0x6e, 0x67, 0x12, 0x4a, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x72,
938 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20,
939 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
940 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48,
941 0x00, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
942 0x61, 0x6d, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65,
943 0x6e, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
944 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
945 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x6c,
946 0x65, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x0e, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69,
947 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
948 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
949 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x65, 0x61,
950 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x44, 0x0a, 0x0f, 0x65, 0x78,
951 0x61, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20,
952 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
953 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00,
954 0x52, 0x0e, 0x65, 0x78, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73,
955 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x5f,
956 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
957 0x13, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73,
958 0x74, 0x61, 0x6d, 0x70, 0x42, 0x11, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
959 0x70, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x58, 0x0a, 0x0e, 0x49, 0x73, 0x6f, 0x6c, 0x61,
960 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x53, 0x4f,
961 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53,
962 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x45,
963 0x52, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f,
964 0x52, 0x45, 0x50, 0x45, 0x41, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10,
965 0x02, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xbe, 0x01, 0x0a, 0x0b, 0x54, 0x72,
966 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
967 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x61,
968 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28,
969 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
970 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x72,
971 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x5c, 0x0a, 0x0f,
972 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
973 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
974 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
975 0x6c, 0x65, 0x78, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x63,
976 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x63,
977 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xba, 0x01, 0x0a, 0x13, 0x54,
978 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74,
979 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x73, 0x65,
980 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
981 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73,
982 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52,
983 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x02, 0x69, 0x64,
984 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3d, 0x0a, 0x05,
985 0x62, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f,
986 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
987 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f,
988 0x6e, 0x73, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x73,
989 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x64, 0x0a, 0x20, 0x4d, 0x75, 0x6c, 0x74, 0x69,
990 0x70, 0x6c, 0x65, 0x78, 0x65, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65,
991 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x70,
992 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
993 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54,
994 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x71, 0x5f, 0x6e, 0x75, 0x6d, 0x18,
995 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x71, 0x4e, 0x75, 0x6d, 0x42, 0xb3, 0x01,
996 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61,
997 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
998 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f,
999 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
1000 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73,
1001 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72,
1002 0x70, 0x62, 0xaa, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
1003 0x64, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x47,
1004 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x70, 0x61, 0x6e,
1005 0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
1006 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x3a,
1007 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1008 }
1009
1010 var (
1011 file_google_spanner_v1_transaction_proto_rawDescOnce sync.Once
1012 file_google_spanner_v1_transaction_proto_rawDescData = file_google_spanner_v1_transaction_proto_rawDesc
1013 )
1014
1015 func file_google_spanner_v1_transaction_proto_rawDescGZIP() []byte {
1016 file_google_spanner_v1_transaction_proto_rawDescOnce.Do(func() {
1017 file_google_spanner_v1_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_spanner_v1_transaction_proto_rawDescData)
1018 })
1019 return file_google_spanner_v1_transaction_proto_rawDescData
1020 }
1021
1022 var file_google_spanner_v1_transaction_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
1023 var file_google_spanner_v1_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
1024 var file_google_spanner_v1_transaction_proto_goTypes = []any{
1025 (TransactionOptions_IsolationLevel)(0), // 0: google.spanner.v1.TransactionOptions.IsolationLevel
1026 (TransactionOptions_ReadWrite_ReadLockMode)(0), // 1: google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode
1027 (*TransactionOptions)(nil), // 2: google.spanner.v1.TransactionOptions
1028 (*Transaction)(nil), // 3: google.spanner.v1.Transaction
1029 (*TransactionSelector)(nil), // 4: google.spanner.v1.TransactionSelector
1030 (*MultiplexedSessionPrecommitToken)(nil), // 5: google.spanner.v1.MultiplexedSessionPrecommitToken
1031 (*TransactionOptions_ReadWrite)(nil), // 6: google.spanner.v1.TransactionOptions.ReadWrite
1032 (*TransactionOptions_PartitionedDml)(nil), // 7: google.spanner.v1.TransactionOptions.PartitionedDml
1033 (*TransactionOptions_ReadOnly)(nil), // 8: google.spanner.v1.TransactionOptions.ReadOnly
1034 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
1035 (*durationpb.Duration)(nil), // 10: google.protobuf.Duration
1036 }
1037 var file_google_spanner_v1_transaction_proto_depIdxs = []int32{
1038 6, // 0: google.spanner.v1.TransactionOptions.read_write:type_name -> google.spanner.v1.TransactionOptions.ReadWrite
1039 7, // 1: google.spanner.v1.TransactionOptions.partitioned_dml:type_name -> google.spanner.v1.TransactionOptions.PartitionedDml
1040 8, // 2: google.spanner.v1.TransactionOptions.read_only:type_name -> google.spanner.v1.TransactionOptions.ReadOnly
1041 0, // 3: google.spanner.v1.TransactionOptions.isolation_level:type_name -> google.spanner.v1.TransactionOptions.IsolationLevel
1042 9, // 4: google.spanner.v1.Transaction.read_timestamp:type_name -> google.protobuf.Timestamp
1043 5, // 5: google.spanner.v1.Transaction.precommit_token:type_name -> google.spanner.v1.MultiplexedSessionPrecommitToken
1044 2, // 6: google.spanner.v1.TransactionSelector.single_use:type_name -> google.spanner.v1.TransactionOptions
1045 2, // 7: google.spanner.v1.TransactionSelector.begin:type_name -> google.spanner.v1.TransactionOptions
1046 1, // 8: google.spanner.v1.TransactionOptions.ReadWrite.read_lock_mode:type_name -> google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode
1047 9, // 9: google.spanner.v1.TransactionOptions.ReadOnly.min_read_timestamp:type_name -> google.protobuf.Timestamp
1048 10, // 10: google.spanner.v1.TransactionOptions.ReadOnly.max_staleness:type_name -> google.protobuf.Duration
1049 9, // 11: google.spanner.v1.TransactionOptions.ReadOnly.read_timestamp:type_name -> google.protobuf.Timestamp
1050 10, // 12: google.spanner.v1.TransactionOptions.ReadOnly.exact_staleness:type_name -> google.protobuf.Duration
1051 13, // [13:13] is the sub-list for method output_type
1052 13, // [13:13] is the sub-list for method input_type
1053 13, // [13:13] is the sub-list for extension type_name
1054 13, // [13:13] is the sub-list for extension extendee
1055 0, // [0:13] is the sub-list for field type_name
1056 }
1057
1058 func init() { file_google_spanner_v1_transaction_proto_init() }
1059 func file_google_spanner_v1_transaction_proto_init() {
1060 if File_google_spanner_v1_transaction_proto != nil {
1061 return
1062 }
1063 file_google_spanner_v1_transaction_proto_msgTypes[0].OneofWrappers = []any{
1064 (*TransactionOptions_ReadWrite_)(nil),
1065 (*TransactionOptions_PartitionedDml_)(nil),
1066 (*TransactionOptions_ReadOnly_)(nil),
1067 }
1068 file_google_spanner_v1_transaction_proto_msgTypes[2].OneofWrappers = []any{
1069 (*TransactionSelector_SingleUse)(nil),
1070 (*TransactionSelector_Id)(nil),
1071 (*TransactionSelector_Begin)(nil),
1072 }
1073 file_google_spanner_v1_transaction_proto_msgTypes[6].OneofWrappers = []any{
1074 (*TransactionOptions_ReadOnly_Strong)(nil),
1075 (*TransactionOptions_ReadOnly_MinReadTimestamp)(nil),
1076 (*TransactionOptions_ReadOnly_MaxStaleness)(nil),
1077 (*TransactionOptions_ReadOnly_ReadTimestamp)(nil),
1078 (*TransactionOptions_ReadOnly_ExactStaleness)(nil),
1079 }
1080 type x struct{}
1081 out := protoimpl.TypeBuilder{
1082 File: protoimpl.DescBuilder{
1083 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1084 RawDescriptor: file_google_spanner_v1_transaction_proto_rawDesc,
1085 NumEnums: 2,
1086 NumMessages: 7,
1087 NumExtensions: 0,
1088 NumServices: 0,
1089 },
1090 GoTypes: file_google_spanner_v1_transaction_proto_goTypes,
1091 DependencyIndexes: file_google_spanner_v1_transaction_proto_depIdxs,
1092 EnumInfos: file_google_spanner_v1_transaction_proto_enumTypes,
1093 MessageInfos: file_google_spanner_v1_transaction_proto_msgTypes,
1094 }.Build()
1095 File_google_spanner_v1_transaction_proto = out.File
1096 file_google_spanner_v1_transaction_proto_rawDesc = nil
1097 file_google_spanner_v1_transaction_proto_goTypes = nil
1098 file_google_spanner_v1_transaction_proto_depIdxs = nil
1099 }