-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathquery.pb.go
7035 lines (6238 loc) · 281 KB
/
query.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.
// This file contains all the types necessary to make
// RPC calls to Vttablet.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.4
// protoc v3.21.3
// source: query.proto
package query
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
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)
)
// Flags sent from the MySQL C API
type MySqlFlag int32
const (
MySqlFlag_EMPTY MySqlFlag = 0
MySqlFlag_NOT_NULL_FLAG MySqlFlag = 1
MySqlFlag_PRI_KEY_FLAG MySqlFlag = 2
MySqlFlag_UNIQUE_KEY_FLAG MySqlFlag = 4
MySqlFlag_MULTIPLE_KEY_FLAG MySqlFlag = 8
MySqlFlag_BLOB_FLAG MySqlFlag = 16
MySqlFlag_UNSIGNED_FLAG MySqlFlag = 32
MySqlFlag_ZEROFILL_FLAG MySqlFlag = 64
MySqlFlag_BINARY_FLAG MySqlFlag = 128
MySqlFlag_ENUM_FLAG MySqlFlag = 256
MySqlFlag_AUTO_INCREMENT_FLAG MySqlFlag = 512
MySqlFlag_TIMESTAMP_FLAG MySqlFlag = 1024
MySqlFlag_SET_FLAG MySqlFlag = 2048
MySqlFlag_NO_DEFAULT_VALUE_FLAG MySqlFlag = 4096
MySqlFlag_ON_UPDATE_NOW_FLAG MySqlFlag = 8192
MySqlFlag_NUM_FLAG MySqlFlag = 32768
MySqlFlag_PART_KEY_FLAG MySqlFlag = 16384
MySqlFlag_GROUP_FLAG MySqlFlag = 32768
MySqlFlag_UNIQUE_FLAG MySqlFlag = 65536
MySqlFlag_BINCMP_FLAG MySqlFlag = 131072
)
// Enum value maps for MySqlFlag.
var (
MySqlFlag_name = map[int32]string{
0: "EMPTY",
1: "NOT_NULL_FLAG",
2: "PRI_KEY_FLAG",
4: "UNIQUE_KEY_FLAG",
8: "MULTIPLE_KEY_FLAG",
16: "BLOB_FLAG",
32: "UNSIGNED_FLAG",
64: "ZEROFILL_FLAG",
128: "BINARY_FLAG",
256: "ENUM_FLAG",
512: "AUTO_INCREMENT_FLAG",
1024: "TIMESTAMP_FLAG",
2048: "SET_FLAG",
4096: "NO_DEFAULT_VALUE_FLAG",
8192: "ON_UPDATE_NOW_FLAG",
32768: "NUM_FLAG",
16384: "PART_KEY_FLAG",
// Duplicate value: 32768: "GROUP_FLAG",
65536: "UNIQUE_FLAG",
131072: "BINCMP_FLAG",
}
MySqlFlag_value = map[string]int32{
"EMPTY": 0,
"NOT_NULL_FLAG": 1,
"PRI_KEY_FLAG": 2,
"UNIQUE_KEY_FLAG": 4,
"MULTIPLE_KEY_FLAG": 8,
"BLOB_FLAG": 16,
"UNSIGNED_FLAG": 32,
"ZEROFILL_FLAG": 64,
"BINARY_FLAG": 128,
"ENUM_FLAG": 256,
"AUTO_INCREMENT_FLAG": 512,
"TIMESTAMP_FLAG": 1024,
"SET_FLAG": 2048,
"NO_DEFAULT_VALUE_FLAG": 4096,
"ON_UPDATE_NOW_FLAG": 8192,
"NUM_FLAG": 32768,
"PART_KEY_FLAG": 16384,
"GROUP_FLAG": 32768,
"UNIQUE_FLAG": 65536,
"BINCMP_FLAG": 131072,
}
)
func (x MySqlFlag) Enum() *MySqlFlag {
p := new(MySqlFlag)
*p = x
return p
}
func (x MySqlFlag) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MySqlFlag) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[0].Descriptor()
}
func (MySqlFlag) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[0]
}
func (x MySqlFlag) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MySqlFlag.Descriptor instead.
func (MySqlFlag) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{0}
}
// Flag allows us to qualify types by their common properties.
type Flag int32
const (
Flag_NONE Flag = 0
Flag_ISINTEGRAL Flag = 256
Flag_ISUNSIGNED Flag = 512
Flag_ISFLOAT Flag = 1024
Flag_ISQUOTED Flag = 2048
Flag_ISTEXT Flag = 4096
Flag_ISBINARY Flag = 8192
)
// Enum value maps for Flag.
var (
Flag_name = map[int32]string{
0: "NONE",
256: "ISINTEGRAL",
512: "ISUNSIGNED",
1024: "ISFLOAT",
2048: "ISQUOTED",
4096: "ISTEXT",
8192: "ISBINARY",
}
Flag_value = map[string]int32{
"NONE": 0,
"ISINTEGRAL": 256,
"ISUNSIGNED": 512,
"ISFLOAT": 1024,
"ISQUOTED": 2048,
"ISTEXT": 4096,
"ISBINARY": 8192,
}
)
func (x Flag) Enum() *Flag {
p := new(Flag)
*p = x
return p
}
func (x Flag) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Flag) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[1].Descriptor()
}
func (Flag) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[1]
}
func (x Flag) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Flag.Descriptor instead.
func (Flag) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{1}
}
// Type defines the various supported data types in bind vars
// and query results.
type Type int32
const (
// NULL_TYPE specifies a NULL type.
Type_NULL_TYPE Type = 0
// INT8 specifies a TINYINT type.
// Properties: 1, IsNumber.
Type_INT8 Type = 257
// UINT8 specifies a TINYINT UNSIGNED type.
// Properties: 2, IsNumber, IsUnsigned.
Type_UINT8 Type = 770
// INT16 specifies a SMALLINT type.
// Properties: 3, IsNumber.
Type_INT16 Type = 259
// UINT16 specifies a SMALLINT UNSIGNED type.
// Properties: 4, IsNumber, IsUnsigned.
Type_UINT16 Type = 772
// INT24 specifies a MEDIUMINT type.
// Properties: 5, IsNumber.
Type_INT24 Type = 261
// UINT24 specifies a MEDIUMINT UNSIGNED type.
// Properties: 6, IsNumber, IsUnsigned.
Type_UINT24 Type = 774
// INT32 specifies a INTEGER type.
// Properties: 7, IsNumber.
Type_INT32 Type = 263
// UINT32 specifies a INTEGER UNSIGNED type.
// Properties: 8, IsNumber, IsUnsigned.
Type_UINT32 Type = 776
// INT64 specifies a BIGINT type.
// Properties: 9, IsNumber.
Type_INT64 Type = 265
// UINT64 specifies a BIGINT UNSIGNED type.
// Properties: 10, IsNumber, IsUnsigned.
Type_UINT64 Type = 778
// FLOAT32 specifies a FLOAT type.
// Properties: 11, IsFloat.
Type_FLOAT32 Type = 1035
// FLOAT64 specifies a DOUBLE or REAL type.
// Properties: 12, IsFloat.
Type_FLOAT64 Type = 1036
// TIMESTAMP specifies a TIMESTAMP type.
// Properties: 13, IsQuoted.
Type_TIMESTAMP Type = 2061
// DATE specifies a DATE type.
// Properties: 14, IsQuoted.
Type_DATE Type = 2062
// TIME specifies a TIME type.
// Properties: 15, IsQuoted.
Type_TIME Type = 2063
// DATETIME specifies a DATETIME type.
// Properties: 16, IsQuoted.
Type_DATETIME Type = 2064
// YEAR specifies a YEAR type.
// Properties: 17, IsNumber, IsUnsigned.
Type_YEAR Type = 785
// DECIMAL specifies a DECIMAL or NUMERIC type.
// Properties: 18, None.
Type_DECIMAL Type = 18
// TEXT specifies a TEXT type.
// Properties: 19, IsQuoted, IsText.
Type_TEXT Type = 6163
// BLOB specifies a BLOB type.
// Properties: 20, IsQuoted, IsBinary.
Type_BLOB Type = 10260
// VARCHAR specifies a VARCHAR type.
// Properties: 21, IsQuoted, IsText.
Type_VARCHAR Type = 6165
// VARBINARY specifies a VARBINARY type.
// Properties: 22, IsQuoted, IsBinary.
Type_VARBINARY Type = 10262
// CHAR specifies a CHAR type.
// Properties: 23, IsQuoted, IsText.
Type_CHAR Type = 6167
// BINARY specifies a BINARY type.
// Properties: 24, IsQuoted, IsBinary.
Type_BINARY Type = 10264
// BIT specifies a BIT type.
// Properties: 25, IsQuoted.
Type_BIT Type = 2073
// ENUM specifies an ENUM type.
// Properties: 26, IsQuoted.
Type_ENUM Type = 2074
// SET specifies a SET type.
// Properties: 27, IsQuoted.
Type_SET Type = 2075
// TUPLE specifies a tuple. This cannot
// be returned in a QueryResult, but it can
// be sent as a bind var.
// Properties: 28, None.
Type_TUPLE Type = 28
// GEOMETRY specifies a GEOMETRY type.
// Properties: 29, IsQuoted.
Type_GEOMETRY Type = 2077
// JSON specifies a JSON type.
// Properties: 30, IsQuoted.
Type_JSON Type = 2078
// EXPRESSION specifies a SQL expression.
// This type is for internal use only.
// Properties: 31, None.
Type_EXPRESSION Type = 31
// HEXNUM specifies a HEXNUM type (unquoted varbinary).
// Properties: 32, IsText.
Type_HEXNUM Type = 4128
// HEXVAL specifies a HEXVAL type (unquoted varbinary).
// Properties: 33, IsText.
Type_HEXVAL Type = 4129
// BITNUM specifies a base 2 binary type (unquoted varbinary).
// Properties: 34, IsText.
Type_BITNUM Type = 4130
// VECTOR specifies a VECTOR type
// Properties: 35, IsQuoted.
Type_VECTOR Type = 2083
// RAW specifies a type which won't be quoted but the value used as-is while encoding.
// Properties: 36, None.
Type_RAW Type = 2084
// ROW_TUPLE represents multiple rows.
// Properties: 37, None.
Type_ROW_TUPLE Type = 2085
)
// Enum value maps for Type.
var (
Type_name = map[int32]string{
0: "NULL_TYPE",
257: "INT8",
770: "UINT8",
259: "INT16",
772: "UINT16",
261: "INT24",
774: "UINT24",
263: "INT32",
776: "UINT32",
265: "INT64",
778: "UINT64",
1035: "FLOAT32",
1036: "FLOAT64",
2061: "TIMESTAMP",
2062: "DATE",
2063: "TIME",
2064: "DATETIME",
785: "YEAR",
18: "DECIMAL",
6163: "TEXT",
10260: "BLOB",
6165: "VARCHAR",
10262: "VARBINARY",
6167: "CHAR",
10264: "BINARY",
2073: "BIT",
2074: "ENUM",
2075: "SET",
28: "TUPLE",
2077: "GEOMETRY",
2078: "JSON",
31: "EXPRESSION",
4128: "HEXNUM",
4129: "HEXVAL",
4130: "BITNUM",
2083: "VECTOR",
2084: "RAW",
2085: "ROW_TUPLE",
}
Type_value = map[string]int32{
"NULL_TYPE": 0,
"INT8": 257,
"UINT8": 770,
"INT16": 259,
"UINT16": 772,
"INT24": 261,
"UINT24": 774,
"INT32": 263,
"UINT32": 776,
"INT64": 265,
"UINT64": 778,
"FLOAT32": 1035,
"FLOAT64": 1036,
"TIMESTAMP": 2061,
"DATE": 2062,
"TIME": 2063,
"DATETIME": 2064,
"YEAR": 785,
"DECIMAL": 18,
"TEXT": 6163,
"BLOB": 10260,
"VARCHAR": 6165,
"VARBINARY": 10262,
"CHAR": 6167,
"BINARY": 10264,
"BIT": 2073,
"ENUM": 2074,
"SET": 2075,
"TUPLE": 28,
"GEOMETRY": 2077,
"JSON": 2078,
"EXPRESSION": 31,
"HEXNUM": 4128,
"HEXVAL": 4129,
"BITNUM": 4130,
"VECTOR": 2083,
"RAW": 2084,
"ROW_TUPLE": 2085,
}
)
func (x Type) Enum() *Type {
p := new(Type)
*p = x
return p
}
func (x Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Type) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[2].Descriptor()
}
func (Type) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[2]
}
func (x Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Type.Descriptor instead.
func (Type) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{2}
}
type StartCommitState int32
const (
StartCommitState_Unknown StartCommitState = 0
StartCommitState_Fail StartCommitState = 1
StartCommitState_Success StartCommitState = 2
)
// Enum value maps for StartCommitState.
var (
StartCommitState_name = map[int32]string{
0: "Unknown",
1: "Fail",
2: "Success",
}
StartCommitState_value = map[string]int32{
"Unknown": 0,
"Fail": 1,
"Success": 2,
}
)
func (x StartCommitState) Enum() *StartCommitState {
p := new(StartCommitState)
*p = x
return p
}
func (x StartCommitState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StartCommitState) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[3].Descriptor()
}
func (StartCommitState) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[3]
}
func (x StartCommitState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StartCommitState.Descriptor instead.
func (StartCommitState) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{3}
}
// TransactionState represents the state of a distributed transaction.
type TransactionState int32
const (
TransactionState_UNKNOWN TransactionState = 0
TransactionState_PREPARE TransactionState = 1
TransactionState_ROLLBACK TransactionState = 2
TransactionState_COMMIT TransactionState = 3
)
// Enum value maps for TransactionState.
var (
TransactionState_name = map[int32]string{
0: "UNKNOWN",
1: "PREPARE",
2: "ROLLBACK",
3: "COMMIT",
}
TransactionState_value = map[string]int32{
"UNKNOWN": 0,
"PREPARE": 1,
"ROLLBACK": 2,
"COMMIT": 3,
}
)
func (x TransactionState) Enum() *TransactionState {
p := new(TransactionState)
*p = x
return p
}
func (x TransactionState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TransactionState) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[4].Descriptor()
}
func (TransactionState) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[4]
}
func (x TransactionState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TransactionState.Descriptor instead.
func (TransactionState) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{4}
}
// SchemaTableType represents the type of table requested.
type SchemaTableType int32
const (
SchemaTableType_VIEWS SchemaTableType = 0
SchemaTableType_TABLES SchemaTableType = 1
SchemaTableType_ALL SchemaTableType = 2
SchemaTableType_UDFS SchemaTableType = 3
)
// Enum value maps for SchemaTableType.
var (
SchemaTableType_name = map[int32]string{
0: "VIEWS",
1: "TABLES",
2: "ALL",
3: "UDFS",
}
SchemaTableType_value = map[string]int32{
"VIEWS": 0,
"TABLES": 1,
"ALL": 2,
"UDFS": 3,
}
)
func (x SchemaTableType) Enum() *SchemaTableType {
p := new(SchemaTableType)
*p = x
return p
}
func (x SchemaTableType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SchemaTableType) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[5].Descriptor()
}
func (SchemaTableType) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[5]
}
func (x SchemaTableType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SchemaTableType.Descriptor instead.
func (SchemaTableType) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{5}
}
type ExecuteOptions_IncludedFields int32
const (
ExecuteOptions_TYPE_AND_NAME ExecuteOptions_IncludedFields = 0
ExecuteOptions_TYPE_ONLY ExecuteOptions_IncludedFields = 1
ExecuteOptions_ALL ExecuteOptions_IncludedFields = 2
)
// Enum value maps for ExecuteOptions_IncludedFields.
var (
ExecuteOptions_IncludedFields_name = map[int32]string{
0: "TYPE_AND_NAME",
1: "TYPE_ONLY",
2: "ALL",
}
ExecuteOptions_IncludedFields_value = map[string]int32{
"TYPE_AND_NAME": 0,
"TYPE_ONLY": 1,
"ALL": 2,
}
)
func (x ExecuteOptions_IncludedFields) Enum() *ExecuteOptions_IncludedFields {
p := new(ExecuteOptions_IncludedFields)
*p = x
return p
}
func (x ExecuteOptions_IncludedFields) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecuteOptions_IncludedFields) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[6].Descriptor()
}
func (ExecuteOptions_IncludedFields) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[6]
}
func (x ExecuteOptions_IncludedFields) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecuteOptions_IncludedFields.Descriptor instead.
func (ExecuteOptions_IncludedFields) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{6, 0}
}
type ExecuteOptions_Workload int32
const (
ExecuteOptions_UNSPECIFIED ExecuteOptions_Workload = 0
ExecuteOptions_OLTP ExecuteOptions_Workload = 1
ExecuteOptions_OLAP ExecuteOptions_Workload = 2
ExecuteOptions_DBA ExecuteOptions_Workload = 3
)
// Enum value maps for ExecuteOptions_Workload.
var (
ExecuteOptions_Workload_name = map[int32]string{
0: "UNSPECIFIED",
1: "OLTP",
2: "OLAP",
3: "DBA",
}
ExecuteOptions_Workload_value = map[string]int32{
"UNSPECIFIED": 0,
"OLTP": 1,
"OLAP": 2,
"DBA": 3,
}
)
func (x ExecuteOptions_Workload) Enum() *ExecuteOptions_Workload {
p := new(ExecuteOptions_Workload)
*p = x
return p
}
func (x ExecuteOptions_Workload) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecuteOptions_Workload) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[7].Descriptor()
}
func (ExecuteOptions_Workload) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[7]
}
func (x ExecuteOptions_Workload) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecuteOptions_Workload.Descriptor instead.
func (ExecuteOptions_Workload) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{6, 1}
}
type ExecuteOptions_TransactionIsolation int32
const (
ExecuteOptions_DEFAULT ExecuteOptions_TransactionIsolation = 0
ExecuteOptions_REPEATABLE_READ ExecuteOptions_TransactionIsolation = 1
ExecuteOptions_READ_COMMITTED ExecuteOptions_TransactionIsolation = 2
ExecuteOptions_READ_UNCOMMITTED ExecuteOptions_TransactionIsolation = 3
ExecuteOptions_SERIALIZABLE ExecuteOptions_TransactionIsolation = 4
// This is not an "official" transaction level but it will do a
// START TRANSACTION WITH CONSISTENT SNAPSHOT, READ ONLY
ExecuteOptions_CONSISTENT_SNAPSHOT_READ_ONLY ExecuteOptions_TransactionIsolation = 5
// This not an "official" transaction level, it will send queries to mysql
// without wrapping them in a transaction
ExecuteOptions_AUTOCOMMIT ExecuteOptions_TransactionIsolation = 6
)
// Enum value maps for ExecuteOptions_TransactionIsolation.
var (
ExecuteOptions_TransactionIsolation_name = map[int32]string{
0: "DEFAULT",
1: "REPEATABLE_READ",
2: "READ_COMMITTED",
3: "READ_UNCOMMITTED",
4: "SERIALIZABLE",
5: "CONSISTENT_SNAPSHOT_READ_ONLY",
6: "AUTOCOMMIT",
}
ExecuteOptions_TransactionIsolation_value = map[string]int32{
"DEFAULT": 0,
"REPEATABLE_READ": 1,
"READ_COMMITTED": 2,
"READ_UNCOMMITTED": 3,
"SERIALIZABLE": 4,
"CONSISTENT_SNAPSHOT_READ_ONLY": 5,
"AUTOCOMMIT": 6,
}
)
func (x ExecuteOptions_TransactionIsolation) Enum() *ExecuteOptions_TransactionIsolation {
p := new(ExecuteOptions_TransactionIsolation)
*p = x
return p
}
func (x ExecuteOptions_TransactionIsolation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecuteOptions_TransactionIsolation) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[8].Descriptor()
}
func (ExecuteOptions_TransactionIsolation) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[8]
}
func (x ExecuteOptions_TransactionIsolation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecuteOptions_TransactionIsolation.Descriptor instead.
func (ExecuteOptions_TransactionIsolation) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{6, 2}
}
type ExecuteOptions_PlannerVersion int32
const (
ExecuteOptions_DEFAULT_PLANNER ExecuteOptions_PlannerVersion = 0
ExecuteOptions_V3 ExecuteOptions_PlannerVersion = 1
ExecuteOptions_Gen4 ExecuteOptions_PlannerVersion = 2
ExecuteOptions_Gen4Greedy ExecuteOptions_PlannerVersion = 3
ExecuteOptions_Gen4Left2Right ExecuteOptions_PlannerVersion = 4
ExecuteOptions_Gen4WithFallback ExecuteOptions_PlannerVersion = 5
ExecuteOptions_Gen4CompareV3 ExecuteOptions_PlannerVersion = 6
ExecuteOptions_V3Insert ExecuteOptions_PlannerVersion = 7
)
// Enum value maps for ExecuteOptions_PlannerVersion.
var (
ExecuteOptions_PlannerVersion_name = map[int32]string{
0: "DEFAULT_PLANNER",
1: "V3",
2: "Gen4",
3: "Gen4Greedy",
4: "Gen4Left2Right",
5: "Gen4WithFallback",
6: "Gen4CompareV3",
7: "V3Insert",
}
ExecuteOptions_PlannerVersion_value = map[string]int32{
"DEFAULT_PLANNER": 0,
"V3": 1,
"Gen4": 2,
"Gen4Greedy": 3,
"Gen4Left2Right": 4,
"Gen4WithFallback": 5,
"Gen4CompareV3": 6,
"V3Insert": 7,
}
)
func (x ExecuteOptions_PlannerVersion) Enum() *ExecuteOptions_PlannerVersion {
p := new(ExecuteOptions_PlannerVersion)
*p = x
return p
}
func (x ExecuteOptions_PlannerVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecuteOptions_PlannerVersion) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[9].Descriptor()
}
func (ExecuteOptions_PlannerVersion) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[9]
}
func (x ExecuteOptions_PlannerVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecuteOptions_PlannerVersion.Descriptor instead.
func (ExecuteOptions_PlannerVersion) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{6, 3}
}
type ExecuteOptions_Consolidator int32
const (
ExecuteOptions_CONSOLIDATOR_UNSPECIFIED ExecuteOptions_Consolidator = 0
ExecuteOptions_CONSOLIDATOR_DISABLED ExecuteOptions_Consolidator = 1
ExecuteOptions_CONSOLIDATOR_ENABLED ExecuteOptions_Consolidator = 2
ExecuteOptions_CONSOLIDATOR_ENABLED_REPLICAS ExecuteOptions_Consolidator = 3
)
// Enum value maps for ExecuteOptions_Consolidator.
var (
ExecuteOptions_Consolidator_name = map[int32]string{
0: "CONSOLIDATOR_UNSPECIFIED",
1: "CONSOLIDATOR_DISABLED",
2: "CONSOLIDATOR_ENABLED",
3: "CONSOLIDATOR_ENABLED_REPLICAS",
}
ExecuteOptions_Consolidator_value = map[string]int32{
"CONSOLIDATOR_UNSPECIFIED": 0,
"CONSOLIDATOR_DISABLED": 1,
"CONSOLIDATOR_ENABLED": 2,
"CONSOLIDATOR_ENABLED_REPLICAS": 3,
}
)
func (x ExecuteOptions_Consolidator) Enum() *ExecuteOptions_Consolidator {
p := new(ExecuteOptions_Consolidator)
*p = x
return p
}
func (x ExecuteOptions_Consolidator) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecuteOptions_Consolidator) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[10].Descriptor()
}
func (ExecuteOptions_Consolidator) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[10]
}
func (x ExecuteOptions_Consolidator) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecuteOptions_Consolidator.Descriptor instead.
func (ExecuteOptions_Consolidator) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{6, 4}
}
type ExecuteOptions_TransactionAccessMode int32
const (
ExecuteOptions_CONSISTENT_SNAPSHOT ExecuteOptions_TransactionAccessMode = 0
ExecuteOptions_READ_WRITE ExecuteOptions_TransactionAccessMode = 1
ExecuteOptions_READ_ONLY ExecuteOptions_TransactionAccessMode = 2
)
// Enum value maps for ExecuteOptions_TransactionAccessMode.
var (
ExecuteOptions_TransactionAccessMode_name = map[int32]string{
0: "CONSISTENT_SNAPSHOT",
1: "READ_WRITE",
2: "READ_ONLY",
}
ExecuteOptions_TransactionAccessMode_value = map[string]int32{
"CONSISTENT_SNAPSHOT": 0,
"READ_WRITE": 1,
"READ_ONLY": 2,
}
)
func (x ExecuteOptions_TransactionAccessMode) Enum() *ExecuteOptions_TransactionAccessMode {
p := new(ExecuteOptions_TransactionAccessMode)
*p = x
return p
}
func (x ExecuteOptions_TransactionAccessMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecuteOptions_TransactionAccessMode) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[11].Descriptor()
}
func (ExecuteOptions_TransactionAccessMode) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[11]
}
func (x ExecuteOptions_TransactionAccessMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecuteOptions_TransactionAccessMode.Descriptor instead.
func (ExecuteOptions_TransactionAccessMode) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{6, 5}
}
// The category of one statement.
type StreamEvent_Statement_Category int32
const (
StreamEvent_Statement_Error StreamEvent_Statement_Category = 0
StreamEvent_Statement_DML StreamEvent_Statement_Category = 1
StreamEvent_Statement_DDL StreamEvent_Statement_Category = 2
)
// Enum value maps for StreamEvent_Statement_Category.
var (
StreamEvent_Statement_Category_name = map[int32]string{
0: "Error",
1: "DML",
2: "DDL",
}
StreamEvent_Statement_Category_value = map[string]int32{
"Error": 0,
"DML": 1,
"DDL": 2,
}
)
func (x StreamEvent_Statement_Category) Enum() *StreamEvent_Statement_Category {
p := new(StreamEvent_Statement_Category)
*p = x
return p
}
func (x StreamEvent_Statement_Category) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StreamEvent_Statement_Category) Descriptor() protoreflect.EnumDescriptor {
return file_query_proto_enumTypes[12].Descriptor()
}
func (StreamEvent_Statement_Category) Type() protoreflect.EnumType {
return &file_query_proto_enumTypes[12]
}
func (x StreamEvent_Statement_Category) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StreamEvent_Statement_Category.Descriptor instead.
func (StreamEvent_Statement_Category) EnumDescriptor() ([]byte, []int) {
return file_query_proto_rawDescGZIP(), []int{11, 0, 0}
}
// Target describes what the client expects the tablet is.
// If the tablet does not match, an error is returned.
type Target struct {
state protoimpl.MessageState `protogen:"open.v1"`
Keyspace string `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
Shard string `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"`
TabletType topodata.TabletType `protobuf:"varint,3,opt,name=tablet_type,json=tabletType,proto3,enum=topodata.TabletType" json:"tablet_type,omitempty"`
// cell is used for routing queries between vtgate and vttablets. It
// is not used when Target is part of the Session sent by the client.
Cell string `protobuf:"bytes,4,opt,name=cell,proto3" json:"cell,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Target) Reset() {
*x = Target{}
mi := &file_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Target) String() string {
return protoimpl.X.MessageStringOf(x)
}