-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
vtgate.pb.go
2289 lines (2051 loc) · 86.5 KB
/
vtgate.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
//Copyright 2019 The Vitess Authors.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
// Data definitions for service vtgateservice.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.34.2
// protoc v3.21.3
// source: vtgate.proto
package vtgate
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
binlogdata "vitess.io/vitess/go/vt/proto/binlogdata"
query "vitess.io/vitess/go/vt/proto/query"
topodata "vitess.io/vitess/go/vt/proto/topodata"
vtrpc "vitess.io/vitess/go/vt/proto/vtrpc"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// TransactionMode controls the execution of distributed transaction
// across multiple shards.
type TransactionMode int32
const (
// UNSPECIFIED uses the transaction mode set by the VTGate flag 'transaction_mode'.
TransactionMode_UNSPECIFIED TransactionMode = 0
// SINGLE disallows distributed transactions.
TransactionMode_SINGLE TransactionMode = 1
// MULTI allows distributed transactions with best effort commit.
TransactionMode_MULTI TransactionMode = 2
// TWOPC is for distributed transactions with atomic commits.
TransactionMode_TWOPC TransactionMode = 3
)
// Enum value maps for TransactionMode.
var (
TransactionMode_name = map[int32]string{
0: "UNSPECIFIED",
1: "SINGLE",
2: "MULTI",
3: "TWOPC",
}
TransactionMode_value = map[string]int32{
"UNSPECIFIED": 0,
"SINGLE": 1,
"MULTI": 2,
"TWOPC": 3,
}
)
func (x TransactionMode) Enum() *TransactionMode {
p := new(TransactionMode)
*p = x
return p
}
func (x TransactionMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TransactionMode) Descriptor() protoreflect.EnumDescriptor {
return file_vtgate_proto_enumTypes[0].Descriptor()
}
func (TransactionMode) Type() protoreflect.EnumType {
return &file_vtgate_proto_enumTypes[0]
}
func (x TransactionMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TransactionMode.Descriptor instead.
func (TransactionMode) EnumDescriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{0}
}
// CommitOrder is used to designate which of the ShardSessions
// get used for transactions.
type CommitOrder int32
const (
// NORMAL is the default commit order.
CommitOrder_NORMAL CommitOrder = 0
// PRE is used to designate pre_sessions.
CommitOrder_PRE CommitOrder = 1
// POST is used to designate post_sessions.
CommitOrder_POST CommitOrder = 2
// AUTOCOMMIT is used to run the statement as autocommitted transaction.
CommitOrder_AUTOCOMMIT CommitOrder = 3
)
// Enum value maps for CommitOrder.
var (
CommitOrder_name = map[int32]string{
0: "NORMAL",
1: "PRE",
2: "POST",
3: "AUTOCOMMIT",
}
CommitOrder_value = map[string]int32{
"NORMAL": 0,
"PRE": 1,
"POST": 2,
"AUTOCOMMIT": 3,
}
)
func (x CommitOrder) Enum() *CommitOrder {
p := new(CommitOrder)
*p = x
return p
}
func (x CommitOrder) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CommitOrder) Descriptor() protoreflect.EnumDescriptor {
return file_vtgate_proto_enumTypes[1].Descriptor()
}
func (CommitOrder) Type() protoreflect.EnumType {
return &file_vtgate_proto_enumTypes[1]
}
func (x CommitOrder) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CommitOrder.Descriptor instead.
func (CommitOrder) EnumDescriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{1}
}
// Session objects are exchanged like cookies through various
// calls to VTGate. The behavior differs between V2 & V3 APIs.
// V3 APIs are Execute, ExecuteBatch and StreamExecute. All
// other APIs are V2. For the V3 APIs, the session
// must be sent with every call to Execute or ExecuteBatch.
// For the V2 APIs, Begin does not accept a session. It instead
// returns a brand new one with in_transaction set to true.
// After a call to Commit or Rollback, the session can be
// discarded. If you're not in a transaction, Session is
// an optional parameter for the V2 APIs.
type Session struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// in_transaction is set to true if the session is in a transaction.
InTransaction bool `protobuf:"varint,1,opt,name=in_transaction,json=inTransaction,proto3" json:"in_transaction,omitempty"`
// shard_sessions keep track of per-shard transaction info.
ShardSessions []*Session_ShardSession `protobuf:"bytes,2,rep,name=shard_sessions,json=shardSessions,proto3" json:"shard_sessions,omitempty"`
// autocommit specifies if the session is in autocommit mode.
// This is used only for V3.
Autocommit bool `protobuf:"varint,4,opt,name=autocommit,proto3" json:"autocommit,omitempty"`
// target_string is the target expressed as a string. Valid
// names are: keyspace:shard@target, keyspace@target or @target.
// This is used only for V3.
TargetString string `protobuf:"bytes,5,opt,name=target_string,json=targetString,proto3" json:"target_string,omitempty"`
// options is used only for V3.
Options *query.ExecuteOptions `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
// transaction_mode specifies the current transaction mode.
TransactionMode TransactionMode `protobuf:"varint,7,opt,name=transaction_mode,json=transactionMode,proto3,enum=vtgate.TransactionMode" json:"transaction_mode,omitempty"`
// warnings contains non-fatal warnings from the previous query
Warnings []*query.QueryWarning `protobuf:"bytes,8,rep,name=warnings,proto3" json:"warnings,omitempty"`
// pre_sessions contains sessions that have to be committed first.
PreSessions []*Session_ShardSession `protobuf:"bytes,9,rep,name=pre_sessions,json=preSessions,proto3" json:"pre_sessions,omitempty"`
// post_sessions contains sessions that have to be committed last.
PostSessions []*Session_ShardSession `protobuf:"bytes,10,rep,name=post_sessions,json=postSessions,proto3" json:"post_sessions,omitempty"`
// last_insert_id keeps track of the last seen insert_id for this session
LastInsertId uint64 `protobuf:"varint,11,opt,name=last_insert_id,json=lastInsertId,proto3" json:"last_insert_id,omitempty"`
// found_rows keeps track of how many rows the last query returned
FoundRows uint64 `protobuf:"varint,12,opt,name=found_rows,json=foundRows,proto3" json:"found_rows,omitempty"`
// user_defined_variables contains all the @variables defined for this session
UserDefinedVariables map[string]*query.BindVariable `protobuf:"bytes,13,rep,name=user_defined_variables,json=userDefinedVariables,proto3" json:"user_defined_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// system_variables keeps track of all session variables set for this connection
// TODO: systay should we keep this so we can apply it ordered?
SystemVariables map[string]string `protobuf:"bytes,14,rep,name=system_variables,json=systemVariables,proto3" json:"system_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// row_count keeps track of the last seen rows affected for this session
RowCount int64 `protobuf:"varint,15,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
// Stores savepoint and release savepoint calls inside a transaction
// and is reset once transaction is committed or rolled back.
Savepoints []string `protobuf:"bytes,16,rep,name=savepoints,proto3" json:"savepoints,omitempty"`
// in_reserved_conn is set to true if the session should be using reserved connections.
InReservedConn bool `protobuf:"varint,17,opt,name=in_reserved_conn,json=inReservedConn,proto3" json:"in_reserved_conn,omitempty"`
// lock_session keep tracks of shard on which the lock query is sent.
LockSession *Session_ShardSession `protobuf:"bytes,18,opt,name=lock_session,json=lockSession,proto3" json:"lock_session,omitempty"`
// last_lock_heartbeat keep tracks of when last lock heartbeat was sent.
LastLockHeartbeat int64 `protobuf:"varint,19,opt,name=last_lock_heartbeat,json=lastLockHeartbeat,proto3" json:"last_lock_heartbeat,omitempty"`
// read_after_write tracks the ReadAfterWrite settings for this session.
ReadAfterWrite *ReadAfterWrite `protobuf:"bytes,20,opt,name=read_after_write,json=readAfterWrite,proto3" json:"read_after_write,omitempty"`
// DDL strategy
DDLStrategy string `protobuf:"bytes,21,opt,name=DDLStrategy,proto3" json:"DDLStrategy,omitempty"`
// Session UUID
SessionUUID string `protobuf:"bytes,22,opt,name=SessionUUID,proto3" json:"SessionUUID,omitempty"`
// enable_system_settings defines if we can use reserved connections.
EnableSystemSettings bool `protobuf:"varint,23,opt,name=enable_system_settings,json=enableSystemSettings,proto3" json:"enable_system_settings,omitempty"`
AdvisoryLock map[string]int64 `protobuf:"bytes,24,rep,name=advisory_lock,json=advisoryLock,proto3" json:"advisory_lock,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// query_timeout is the maximum amount of time a query is permitted to run
QueryTimeout int64 `protobuf:"varint,25,opt,name=query_timeout,json=queryTimeout,proto3" json:"query_timeout,omitempty"`
PrepareStatement map[string]*PrepareData `protobuf:"bytes,26,rep,name=prepare_statement,json=prepareStatement,proto3" json:"prepare_statement,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// MigrationContext
MigrationContext string `protobuf:"bytes,27,opt,name=migration_context,json=migrationContext,proto3" json:"migration_context,omitempty"`
}
func (x *Session) Reset() {
*x = Session{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Session) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Session) ProtoMessage() {}
func (x *Session) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Session.ProtoReflect.Descriptor instead.
func (*Session) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{0}
}
func (x *Session) GetInTransaction() bool {
if x != nil {
return x.InTransaction
}
return false
}
func (x *Session) GetShardSessions() []*Session_ShardSession {
if x != nil {
return x.ShardSessions
}
return nil
}
func (x *Session) GetAutocommit() bool {
if x != nil {
return x.Autocommit
}
return false
}
func (x *Session) GetTargetString() string {
if x != nil {
return x.TargetString
}
return ""
}
func (x *Session) GetOptions() *query.ExecuteOptions {
if x != nil {
return x.Options
}
return nil
}
func (x *Session) GetTransactionMode() TransactionMode {
if x != nil {
return x.TransactionMode
}
return TransactionMode_UNSPECIFIED
}
func (x *Session) GetWarnings() []*query.QueryWarning {
if x != nil {
return x.Warnings
}
return nil
}
func (x *Session) GetPreSessions() []*Session_ShardSession {
if x != nil {
return x.PreSessions
}
return nil
}
func (x *Session) GetPostSessions() []*Session_ShardSession {
if x != nil {
return x.PostSessions
}
return nil
}
func (x *Session) GetLastInsertId() uint64 {
if x != nil {
return x.LastInsertId
}
return 0
}
func (x *Session) GetFoundRows() uint64 {
if x != nil {
return x.FoundRows
}
return 0
}
func (x *Session) GetUserDefinedVariables() map[string]*query.BindVariable {
if x != nil {
return x.UserDefinedVariables
}
return nil
}
func (x *Session) GetSystemVariables() map[string]string {
if x != nil {
return x.SystemVariables
}
return nil
}
func (x *Session) GetRowCount() int64 {
if x != nil {
return x.RowCount
}
return 0
}
func (x *Session) GetSavepoints() []string {
if x != nil {
return x.Savepoints
}
return nil
}
func (x *Session) GetInReservedConn() bool {
if x != nil {
return x.InReservedConn
}
return false
}
func (x *Session) GetLockSession() *Session_ShardSession {
if x != nil {
return x.LockSession
}
return nil
}
func (x *Session) GetLastLockHeartbeat() int64 {
if x != nil {
return x.LastLockHeartbeat
}
return 0
}
func (x *Session) GetReadAfterWrite() *ReadAfterWrite {
if x != nil {
return x.ReadAfterWrite
}
return nil
}
func (x *Session) GetDDLStrategy() string {
if x != nil {
return x.DDLStrategy
}
return ""
}
func (x *Session) GetSessionUUID() string {
if x != nil {
return x.SessionUUID
}
return ""
}
func (x *Session) GetEnableSystemSettings() bool {
if x != nil {
return x.EnableSystemSettings
}
return false
}
func (x *Session) GetAdvisoryLock() map[string]int64 {
if x != nil {
return x.AdvisoryLock
}
return nil
}
func (x *Session) GetQueryTimeout() int64 {
if x != nil {
return x.QueryTimeout
}
return 0
}
func (x *Session) GetPrepareStatement() map[string]*PrepareData {
if x != nil {
return x.PrepareStatement
}
return nil
}
func (x *Session) GetMigrationContext() string {
if x != nil {
return x.MigrationContext
}
return ""
}
// PrepareData keeps the prepared statement and other information related for execution of it.
type PrepareData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PrepareStatement string `protobuf:"bytes,1,opt,name=prepare_statement,json=prepareStatement,proto3" json:"prepare_statement,omitempty"`
ParamsCount int32 `protobuf:"varint,2,opt,name=params_count,json=paramsCount,proto3" json:"params_count,omitempty"`
}
func (x *PrepareData) Reset() {
*x = PrepareData{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrepareData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrepareData) ProtoMessage() {}
func (x *PrepareData) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PrepareData.ProtoReflect.Descriptor instead.
func (*PrepareData) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{1}
}
func (x *PrepareData) GetPrepareStatement() string {
if x != nil {
return x.PrepareStatement
}
return ""
}
func (x *PrepareData) GetParamsCount() int32 {
if x != nil {
return x.ParamsCount
}
return 0
}
// ReadAfterWrite contains information regarding gtid set and timeout
// Also if the gtid information needs to be passed to client.
type ReadAfterWrite struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ReadAfterWriteGtid string `protobuf:"bytes,1,opt,name=read_after_write_gtid,json=readAfterWriteGtid,proto3" json:"read_after_write_gtid,omitempty"`
ReadAfterWriteTimeout float64 `protobuf:"fixed64,2,opt,name=read_after_write_timeout,json=readAfterWriteTimeout,proto3" json:"read_after_write_timeout,omitempty"`
SessionTrackGtids bool `protobuf:"varint,3,opt,name=session_track_gtids,json=sessionTrackGtids,proto3" json:"session_track_gtids,omitempty"`
}
func (x *ReadAfterWrite) Reset() {
*x = ReadAfterWrite{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReadAfterWrite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReadAfterWrite) ProtoMessage() {}
func (x *ReadAfterWrite) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReadAfterWrite.ProtoReflect.Descriptor instead.
func (*ReadAfterWrite) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{2}
}
func (x *ReadAfterWrite) GetReadAfterWriteGtid() string {
if x != nil {
return x.ReadAfterWriteGtid
}
return ""
}
func (x *ReadAfterWrite) GetReadAfterWriteTimeout() float64 {
if x != nil {
return x.ReadAfterWriteTimeout
}
return 0
}
func (x *ReadAfterWrite) GetSessionTrackGtids() bool {
if x != nil {
return x.SessionTrackGtids
}
return false
}
// ExecuteRequest is the payload to Execute.
type ExecuteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// caller_id identifies the caller. This is the effective caller ID,
// set by the application to further identify the caller.
CallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
// session carries the session state.
Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
// query is the query and bind variables to execute.
Query *query.BoundQuery `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
}
func (x *ExecuteRequest) Reset() {
*x = ExecuteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecuteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecuteRequest) ProtoMessage() {}
func (x *ExecuteRequest) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.
func (*ExecuteRequest) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{3}
}
func (x *ExecuteRequest) GetCallerId() *vtrpc.CallerID {
if x != nil {
return x.CallerId
}
return nil
}
func (x *ExecuteRequest) GetSession() *Session {
if x != nil {
return x.Session
}
return nil
}
func (x *ExecuteRequest) GetQuery() *query.BoundQuery {
if x != nil {
return x.Query
}
return nil
}
// ExecuteResponse is the returned value from Execute.
type ExecuteResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// error contains an application level error if necessary. Note the
// session may have changed, even when an error is returned (for
// instance if a database integrity error happened).
Error *vtrpc.RPCError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// session is the updated session information.
Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
// result contains the query result, only set if error is unset.
Result *query.QueryResult `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
}
func (x *ExecuteResponse) Reset() {
*x = ExecuteResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecuteResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecuteResponse) ProtoMessage() {}
func (x *ExecuteResponse) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.
func (*ExecuteResponse) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{4}
}
func (x *ExecuteResponse) GetError() *vtrpc.RPCError {
if x != nil {
return x.Error
}
return nil
}
func (x *ExecuteResponse) GetSession() *Session {
if x != nil {
return x.Session
}
return nil
}
func (x *ExecuteResponse) GetResult() *query.QueryResult {
if x != nil {
return x.Result
}
return nil
}
// ExecuteBatchRequest is the payload to ExecuteBatch.
type ExecuteBatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// caller_id identifies the caller. This is the effective caller ID,
// set by the application to further identify the caller.
CallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
// session carries the session state.
Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
// queries is a list of query and bind variables to execute.
Queries []*query.BoundQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"`
}
func (x *ExecuteBatchRequest) Reset() {
*x = ExecuteBatchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecuteBatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecuteBatchRequest) ProtoMessage() {}
func (x *ExecuteBatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExecuteBatchRequest.ProtoReflect.Descriptor instead.
func (*ExecuteBatchRequest) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{5}
}
func (x *ExecuteBatchRequest) GetCallerId() *vtrpc.CallerID {
if x != nil {
return x.CallerId
}
return nil
}
func (x *ExecuteBatchRequest) GetSession() *Session {
if x != nil {
return x.Session
}
return nil
}
func (x *ExecuteBatchRequest) GetQueries() []*query.BoundQuery {
if x != nil {
return x.Queries
}
return nil
}
// ExecuteBatchResponse is the returned value from ExecuteBatch.
type ExecuteBatchResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// error contains an application level error if necessary. Note the
// session may have changed, even when an error is returned (for
// instance if a database integrity error happened).
Error *vtrpc.RPCError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// session is the updated session information.
Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
// results contains the query results, only set if application level error is unset.
Results []*query.ResultWithError `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
}
func (x *ExecuteBatchResponse) Reset() {
*x = ExecuteBatchResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecuteBatchResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecuteBatchResponse) ProtoMessage() {}
func (x *ExecuteBatchResponse) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExecuteBatchResponse.ProtoReflect.Descriptor instead.
func (*ExecuteBatchResponse) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{6}
}
func (x *ExecuteBatchResponse) GetError() *vtrpc.RPCError {
if x != nil {
return x.Error
}
return nil
}
func (x *ExecuteBatchResponse) GetSession() *Session {
if x != nil {
return x.Session
}
return nil
}
func (x *ExecuteBatchResponse) GetResults() []*query.ResultWithError {
if x != nil {
return x.Results
}
return nil
}
// StreamExecuteRequest is the payload to StreamExecute.
type StreamExecuteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// caller_id identifies the caller. This is the effective caller ID,
// set by the application to further identify the caller.
CallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
// query is the query and bind variables to execute.
Query *query.BoundQuery `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// session carries the session state.
Session *Session `protobuf:"bytes,6,opt,name=session,proto3" json:"session,omitempty"`
}
func (x *StreamExecuteRequest) Reset() {
*x = StreamExecuteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StreamExecuteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StreamExecuteRequest) ProtoMessage() {}
func (x *StreamExecuteRequest) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StreamExecuteRequest.ProtoReflect.Descriptor instead.
func (*StreamExecuteRequest) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{7}
}
func (x *StreamExecuteRequest) GetCallerId() *vtrpc.CallerID {
if x != nil {
return x.CallerId
}
return nil
}
func (x *StreamExecuteRequest) GetQuery() *query.BoundQuery {
if x != nil {
return x.Query
}
return nil
}
func (x *StreamExecuteRequest) GetSession() *Session {
if x != nil {
return x.Session
}
return nil
}
// StreamExecuteResponse is the returned value from StreamExecute.
// The session is currently not returned because StreamExecute is
// not expected to modify it.
type StreamExecuteResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// result contains the result data.
// The first value contains only Fields information.
// The next values contain the actual rows, a few values per result.
Result *query.QueryResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// session is the updated session information.
Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
}
func (x *StreamExecuteResponse) Reset() {
*x = StreamExecuteResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StreamExecuteResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StreamExecuteResponse) ProtoMessage() {}
func (x *StreamExecuteResponse) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StreamExecuteResponse.ProtoReflect.Descriptor instead.
func (*StreamExecuteResponse) Descriptor() ([]byte, []int) {
return file_vtgate_proto_rawDescGZIP(), []int{8}
}
func (x *StreamExecuteResponse) GetResult() *query.QueryResult {
if x != nil {
return x.Result
}
return nil
}
func (x *StreamExecuteResponse) GetSession() *Session {
if x != nil {
return x.Session
}
return nil
}
// ResolveTransactionRequest is the payload to ResolveTransaction.
type ResolveTransactionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// caller_id identifies the caller. This is the effective caller ID,
// set by the application to further identify the caller.
CallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
// dtid is the dtid of the transaction to be resolved.
Dtid string `protobuf:"bytes,2,opt,name=dtid,proto3" json:"dtid,omitempty"`
}
func (x *ResolveTransactionRequest) Reset() {
*x = ResolveTransactionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_vtgate_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResolveTransactionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResolveTransactionRequest) ProtoMessage() {}
func (x *ResolveTransactionRequest) ProtoReflect() protoreflect.Message {
mi := &file_vtgate_proto_msgTypes[9]