Debian Codegraph @

dependency/querypb/query.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: query.proto
3
4 /*
5 Package query is a generated protocol buffer package.
6
7 It is generated from these files:
8 query.proto
9
10 It has these top-level messages:
11 Target
12 VTGateCallerID
13 EventToken
14 Value
15 BindVariable
16 BoundQuery
17 ExecuteOptions
18 Field
19 Row
20 ResultExtras
21 QueryResult
22 StreamEvent
23 ExecuteRequest
24 ExecuteResponse
25 ResultWithError
26 ExecuteBatchRequest
27 ExecuteBatchResponse
28 StreamExecuteRequest
29 StreamExecuteResponse
30 BeginRequest
31 BeginResponse
32 CommitRequest
33 CommitResponse
34 RollbackRequest
35 RollbackResponse
36 PrepareRequest
37 PrepareResponse
38 CommitPreparedRequest
39 CommitPreparedResponse
40 RollbackPreparedRequest
41 RollbackPreparedResponse
42 CreateTransactionRequest
43 CreateTransactionResponse
44 StartCommitRequest
45 StartCommitResponse
46 SetRollbackRequest
47 SetRollbackResponse
48 ConcludeTransactionRequest
49 ConcludeTransactionResponse
50 ReadTransactionRequest
51 ReadTransactionResponse
52 BeginExecuteRequest
53 BeginExecuteResponse
54 BeginExecuteBatchRequest
55 BeginExecuteBatchResponse
56 MessageStreamRequest
57 MessageStreamResponse
58 MessageAckRequest
59 MessageAckResponse
60 SplitQueryRequest
61 QuerySplit
62 SplitQueryResponse
63 StreamHealthRequest
64 RealtimeStats
65 StreamHealthResponse
66 UpdateStreamRequest
67 UpdateStreamResponse
68 TransactionMetadata
69 */
70 package querypb
71
72 import "strconv"
73
74 // EnumName is a helper function to simplify printing protocol buffer enums
75 // by name. Given an enum map and a value, it returns a useful string.
76 func EnumName(m map[int32]string, v int32) string {
77 s, ok := m[v]
78 if ok {
79 return s
80 }
81 return strconv.Itoa(int(v))
82 }
83
84 // Flags sent from the MySQL C API
85 type MySqlFlag int32
86
87 const (
88 MySqlFlag_EMPTY MySqlFlag = 0
89 MySqlFlag_NOT_NULL_FLAG MySqlFlag = 1
90 MySqlFlag_PRI_KEY_FLAG MySqlFlag = 2
91 MySqlFlag_UNIQUE_KEY_FLAG MySqlFlag = 4
92 MySqlFlag_MULTIPLE_KEY_FLAG MySqlFlag = 8
93 MySqlFlag_BLOB_FLAG MySqlFlag = 16
94 MySqlFlag_UNSIGNED_FLAG MySqlFlag = 32
95 MySqlFlag_ZEROFILL_FLAG MySqlFlag = 64
96 MySqlFlag_BINARY_FLAG MySqlFlag = 128
97 MySqlFlag_ENUM_FLAG MySqlFlag = 256
98 MySqlFlag_AUTO_INCREMENT_FLAG MySqlFlag = 512
99 MySqlFlag_TIMESTAMP_FLAG MySqlFlag = 1024
100 MySqlFlag_SET_FLAG MySqlFlag = 2048
101 MySqlFlag_NO_DEFAULT_VALUE_FLAG MySqlFlag = 4096
102 MySqlFlag_ON_UPDATE_NOW_FLAG MySqlFlag = 8192
103 MySqlFlag_NUM_FLAG MySqlFlag = 32768
104 MySqlFlag_PART_KEY_FLAG MySqlFlag = 16384
105 MySqlFlag_GROUP_FLAG MySqlFlag = 32768
106 MySqlFlag_UNIQUE_FLAG MySqlFlag = 65536
107 MySqlFlag_BINCMP_FLAG MySqlFlag = 131072
108 )
109
110 var MySqlFlag_name = map[int32]string{
111 0: "EMPTY",
112 1: "NOT_NULL_FLAG",
113 2: "PRI_KEY_FLAG",
114 4: "UNIQUE_KEY_FLAG",
115 8: "MULTIPLE_KEY_FLAG",
116 16: "BLOB_FLAG",
117 32: "UNSIGNED_FLAG",
118 64: "ZEROFILL_FLAG",
119 128: "BINARY_FLAG",
120 256: "ENUM_FLAG",
121 512: "AUTO_INCREMENT_FLAG",
122 1024: "TIMESTAMP_FLAG",
123 2048: "SET_FLAG",
124 4096: "NO_DEFAULT_VALUE_FLAG",
125 8192: "ON_UPDATE_NOW_FLAG",
126 32768: "NUM_FLAG",
127 16384: "PART_KEY_FLAG",
128 // Duplicate value: 32768: "GROUP_FLAG",
129 65536: "UNIQUE_FLAG",
130 131072: "BINCMP_FLAG",
131 }
132 var MySqlFlag_value = map[string]int32{
133 "EMPTY": 0,
134 "NOT_NULL_FLAG": 1,
135 "PRI_KEY_FLAG": 2,
136 "UNIQUE_KEY_FLAG": 4,
137 "MULTIPLE_KEY_FLAG": 8,
138 "BLOB_FLAG": 16,
139 "UNSIGNED_FLAG": 32,
140 "ZEROFILL_FLAG": 64,
141 "BINARY_FLAG": 128,
142 "ENUM_FLAG": 256,
143 "AUTO_INCREMENT_FLAG": 512,
144 "TIMESTAMP_FLAG": 1024,
145 "SET_FLAG": 2048,
146 "NO_DEFAULT_VALUE_FLAG": 4096,
147 "ON_UPDATE_NOW_FLAG": 8192,
148 "NUM_FLAG": 32768,
149 "PART_KEY_FLAG": 16384,
150 "GROUP_FLAG": 32768,
151 "UNIQUE_FLAG": 65536,
152 "BINCMP_FLAG": 131072,
153 }
154
155 func (x MySqlFlag) String() string {
156 return EnumName(MySqlFlag_name, int32(x))
157 }
158
159 // Flag allows us to qualify types by their common properties.
160 type Flag int32
161
162 const (
163 Flag_NONE Flag = 0
164 Flag_ISINTEGRAL Flag = 256
165 Flag_ISUNSIGNED Flag = 512
166 Flag_ISFLOAT Flag = 1024
167 Flag_ISQUOTED Flag = 2048
168 Flag_ISTEXT Flag = 4096
169 Flag_ISBINARY Flag = 8192
170 )
171
172 var Flag_name = map[int32]string{
173 0: "NONE",
174 256: "ISINTEGRAL",
175 512: "ISUNSIGNED",
176 1024: "ISFLOAT",
177 2048: "ISQUOTED",
178 4096: "ISTEXT",
179 8192: "ISBINARY",
180 }
181 var Flag_value = map[string]int32{
182 "NONE": 0,
183 "ISINTEGRAL": 256,
184 "ISUNSIGNED": 512,
185 "ISFLOAT": 1024,
186 "ISQUOTED": 2048,
187 "ISTEXT": 4096,
188 "ISBINARY": 8192,
189 }
190
191 func (x Flag) String() string {
192 return EnumName(Flag_name, int32(x))
193 }
194
195 // Type defines the various supported data types in bind vars
196 // and query results.
197 type Type int32
198
199 const (
200 // NULL_TYPE specifies a NULL type.
201 Type_NULL_TYPE Type = 0
202 // INT8 specifies a TINYINT type.
203 // Properties: 1, IsNumber.
204 Type_INT8 Type = 257
205 // UINT8 specifies a TINYINT UNSIGNED type.
206 // Properties: 2, IsNumber, IsUnsigned.
207 Type_UINT8 Type = 770
208 // INT16 specifies a SMALLINT type.
209 // Properties: 3, IsNumber.
210 Type_INT16 Type = 259
211 // UINT16 specifies a SMALLINT UNSIGNED type.
212 // Properties: 4, IsNumber, IsUnsigned.
213 Type_UINT16 Type = 772
214 // INT24 specifies a MEDIUMINT type.
215 // Properties: 5, IsNumber.
216 Type_INT24 Type = 261
217 // UINT24 specifies a MEDIUMINT UNSIGNED type.
218 // Properties: 6, IsNumber, IsUnsigned.
219 Type_UINT24 Type = 774
220 // INT32 specifies a INTEGER type.
221 // Properties: 7, IsNumber.
222 Type_INT32 Type = 263
223 // UINT32 specifies a INTEGER UNSIGNED type.
224 // Properties: 8, IsNumber, IsUnsigned.
225 Type_UINT32 Type = 776
226 // INT64 specifies a BIGINT type.
227 // Properties: 9, IsNumber.
228 Type_INT64 Type = 265
229 // UINT64 specifies a BIGINT UNSIGNED type.
230 // Properties: 10, IsNumber, IsUnsigned.
231 Type_UINT64 Type = 778
232 // FLOAT32 specifies a FLOAT type.
233 // Properties: 11, IsFloat.
234 Type_FLOAT32 Type = 1035
235 // FLOAT64 specifies a DOUBLE or REAL type.
236 // Properties: 12, IsFloat.
237 Type_FLOAT64 Type = 1036
238 // TIMESTAMP specifies a TIMESTAMP type.
239 // Properties: 13, IsQuoted.
240 Type_TIMESTAMP Type = 2061
241 // DATE specifies a DATE type.
242 // Properties: 14, IsQuoted.
243 Type_DATE Type = 2062
244 // TIME specifies a TIME type.
245 // Properties: 15, IsQuoted.
246 Type_TIME Type = 2063
247 // DATETIME specifies a DATETIME type.
248 // Properties: 16, IsQuoted.
249 Type_DATETIME Type = 2064
250 // YEAR specifies a YEAR type.
251 // Properties: 17, IsNumber, IsUnsigned.
252 Type_YEAR Type = 785
253 // DECIMAL specifies a DECIMAL or NUMERIC type.
254 // Properties: 18, None.
255 Type_DECIMAL Type = 18
256 // TEXT specifies a TEXT type.
257 // Properties: 19, IsQuoted, IsText.
258 Type_TEXT Type = 6163
259 // BLOB specifies a BLOB type.
260 // Properties: 20, IsQuoted, IsBinary.
261 Type_BLOB Type = 10260
262 // VARCHAR specifies a VARCHAR type.
263 // Properties: 21, IsQuoted, IsText.
264 Type_VARCHAR Type = 6165
265 // VARBINARY specifies a VARBINARY type.
266 // Properties: 22, IsQuoted, IsBinary.
267 Type_VARBINARY Type = 10262
268 // CHAR specifies a CHAR type.
269 // Properties: 23, IsQuoted, IsText.
270 Type_CHAR Type = 6167
271 // BINARY specifies a BINARY type.
272 // Properties: 24, IsQuoted, IsBinary.
273 Type_BINARY Type = 10264
274 // BIT specifies a BIT type.
275 // Properties: 25, IsQuoted.
276 Type_BIT Type = 2073
277 // ENUM specifies an ENUM type.
278 // Properties: 26, IsQuoted.
279 Type_ENUM Type = 2074
280 // SET specifies a SET type.
281 // Properties: 27, IsQuoted.
282 Type_SET Type = 2075
283 // TUPLE specifies a a tuple. This cannot
284 // be returned in a QueryResult, but it can
285 // be sent as a bind var.
286 // Properties: 28, None.
287 Type_TUPLE Type = 28
288 // GEOMETRY specifies a GEOMETRY type.
289 // Properties: 29, IsQuoted.
290 Type_GEOMETRY Type = 2077
291 // JSON specifies a JSON type.
292 // Properties: 30, IsQuoted.
293 Type_JSON Type = 2078
294 // EXPRESSION specifies a SQL expression.
295 // This type is for internal use only.
296 // Properties: 31, None.
297 Type_EXPRESSION Type = 31
298 )
299
300 var Type_name = map[int32]string{
301 0: "NULL_TYPE",
302 257: "INT8",
303 770: "UINT8",
304 259: "INT16",
305 772: "UINT16",
306 261: "INT24",
307 774: "UINT24",
308 263: "INT32",
309 776: "UINT32",
310 265: "INT64",
311 778: "UINT64",
312 1035: "FLOAT32",
313 1036: "FLOAT64",
314 2061: "TIMESTAMP",
315 2062: "DATE",
316 2063: "TIME",
317 2064: "DATETIME",
318 785: "YEAR",
319 18: "DECIMAL",
320 6163: "TEXT",
321 10260: "BLOB",
322 6165: "VARCHAR",
323 10262: "VARBINARY",
324 6167: "CHAR",
325 10264: "BINARY",
326 2073: "BIT",
327 2074: "ENUM",
328 2075: "SET",
329 28: "TUPLE",
330 2077: "GEOMETRY",
331 2078: "JSON",
332 31: "EXPRESSION",
333 }
334 var Type_value = map[string]int32{
335 "NULL_TYPE": 0,
336 "INT8": 257,
337 "UINT8": 770,
338 "INT16": 259,
339 "UINT16": 772,
340 "INT24": 261,
341 "UINT24": 774,
342 "INT32": 263,
343 "UINT32": 776,
344 "INT64": 265,
345 "UINT64": 778,
346 "FLOAT32": 1035,
347 "FLOAT64": 1036,
348 "TIMESTAMP": 2061,
349 "DATE": 2062,
350 "TIME": 2063,
351 "DATETIME": 2064,
352 "YEAR": 785,
353 "DECIMAL": 18,
354 "TEXT": 6163,
355 "BLOB": 10260,
356 "VARCHAR": 6165,
357 "VARBINARY": 10262,
358 "CHAR": 6167,
359 "BINARY": 10264,
360 "BIT": 2073,
361 "ENUM": 2074,
362 "SET": 2075,
363 "TUPLE": 28,
364 "GEOMETRY": 2077,
365 "JSON": 2078,
366 "EXPRESSION": 31,
367 }
368
369 func (x Type) String() string {
370 return EnumName(Type_name, int32(x))
371 }
372
373 // TransactionState represents the state of a distributed transaction.
374 type TransactionState int32
375
376 const (
377 TransactionState_UNKNOWN TransactionState = 0
378 TransactionState_PREPARE TransactionState = 1
379 TransactionState_COMMIT TransactionState = 2
380 TransactionState_ROLLBACK TransactionState = 3
381 )
382
383 var TransactionState_name = map[int32]string{
384 0: "UNKNOWN",
385 1: "PREPARE",
386 2: "COMMIT",
387 3: "ROLLBACK",
388 }
389 var TransactionState_value = map[string]int32{
390 "UNKNOWN": 0,
391 "PREPARE": 1,
392 "COMMIT": 2,
393 "ROLLBACK": 3,
394 }
395
396 func (x TransactionState) String() string {
397 return EnumName(TransactionState_name, int32(x))
398 }
399
400 type ExecuteOptions_IncludedFields int32
401
402 const (
403 ExecuteOptions_TYPE_AND_NAME ExecuteOptions_IncludedFields = 0
404 ExecuteOptions_TYPE_ONLY ExecuteOptions_IncludedFields = 1
405 ExecuteOptions_ALL ExecuteOptions_IncludedFields = 2
406 )
407
408 var ExecuteOptions_IncludedFields_name = map[int32]string{
409 0: "TYPE_AND_NAME",
410 1: "TYPE_ONLY",
411 2: "ALL",
412 }
413 var ExecuteOptions_IncludedFields_value = map[string]int32{
414 "TYPE_AND_NAME": 0,
415 "TYPE_ONLY": 1,
416 "ALL": 2,
417 }
418
419 func (x ExecuteOptions_IncludedFields) String() string {
420 return EnumName(ExecuteOptions_IncludedFields_name, int32(x))
421 }
422
423 type ExecuteOptions_Workload int32
424
425 const (
426 ExecuteOptions_UNSPECIFIED ExecuteOptions_Workload = 0
427 ExecuteOptions_OLTP ExecuteOptions_Workload = 1
428 ExecuteOptions_OLAP ExecuteOptions_Workload = 2
429 ExecuteOptions_DBA ExecuteOptions_Workload = 3
430 )
431
432 var ExecuteOptions_Workload_name = map[int32]string{
433 0: "UNSPECIFIED",
434 1: "OLTP",
435 2: "OLAP",
436 3: "DBA",
437 }
438 var ExecuteOptions_Workload_value = map[string]int32{
439 "UNSPECIFIED": 0,
440 "OLTP": 1,
441 "OLAP": 2,
442 "DBA": 3,
443 }
444
445 func (x ExecuteOptions_Workload) String() string {
446 return EnumName(ExecuteOptions_Workload_name, int32(x))
447 }
448
449 type ExecuteOptions_TransactionIsolation int32
450
451 const (
452 ExecuteOptions_DEFAULT ExecuteOptions_TransactionIsolation = 0
453 ExecuteOptions_REPEATABLE_READ ExecuteOptions_TransactionIsolation = 1
454 ExecuteOptions_READ_COMMITTED ExecuteOptions_TransactionIsolation = 2
455 ExecuteOptions_READ_UNCOMMITTED ExecuteOptions_TransactionIsolation = 3
456 ExecuteOptions_SERIALIZABLE ExecuteOptions_TransactionIsolation = 4
457 )
458
459 var ExecuteOptions_TransactionIsolation_name = map[int32]string{
460 0: "DEFAULT",
461 1: "REPEATABLE_READ",
462 2: "READ_COMMITTED",
463 3: "READ_UNCOMMITTED",
464 4: "SERIALIZABLE",
465 }
466 var ExecuteOptions_TransactionIsolation_value = map[string]int32{
467 "DEFAULT": 0,
468 "REPEATABLE_READ": 1,
469 "READ_COMMITTED": 2,
470 "READ_UNCOMMITTED": 3,
471 "SERIALIZABLE": 4,
472 }
473
474 func (x ExecuteOptions_TransactionIsolation) String() string {
475 return EnumName(ExecuteOptions_TransactionIsolation_name, int32(x))
476 }
477
478 // The category of one statement.
479 type StreamEvent_Statement_Category int32
480
481 const (
482 StreamEvent_Statement_Error StreamEvent_Statement_Category = 0
483 StreamEvent_Statement_DML StreamEvent_Statement_Category = 1
484 StreamEvent_Statement_DDL StreamEvent_Statement_Category = 2
485 )
486
487 var StreamEvent_Statement_Category_name = map[int32]string{
488 0: "Error",
489 1: "DML",
490 2: "DDL",
491 }
492 var StreamEvent_Statement_Category_value = map[string]int32{
493 "Error": 0,
494 "DML": 1,
495 "DDL": 2,
496 }
497
498 func (x StreamEvent_Statement_Category) String() string {
499 return EnumName(StreamEvent_Statement_Category_name, int32(x))
500 }
501
502 type SplitQueryRequest_Algorithm int32
503
504 const (
505 SplitQueryRequest_EQUAL_SPLITS SplitQueryRequest_Algorithm = 0
506 SplitQueryRequest_FULL_SCAN SplitQueryRequest_Algorithm = 1
507 )
508
509 var SplitQueryRequest_Algorithm_name = map[int32]string{
510 0: "EQUAL_SPLITS",
511 1: "FULL_SCAN",
512 }
513 var SplitQueryRequest_Algorithm_value = map[string]int32{
514 "EQUAL_SPLITS": 0,
515 "FULL_SCAN": 1,
516 }
517
518 func (x SplitQueryRequest_Algorithm) String() string {
519 return EnumName(SplitQueryRequest_Algorithm_name, int32(x))
520 }
521
522 /*
523 // Target describes what the client expects the tablet is.
524 // If the tablet does not match, an error is returned.
525 type Target struct {
526 Keyspace string `protobuf:"bytes,1,opt,name=keyspace" json:"keyspace,omitempty"`
527 Shard string `protobuf:"bytes,2,opt,name=shard" json:"shard,omitempty"`
528 TabletType topodata.TabletType `protobuf:"varint,3,opt,name=tablet_type,json=tabletType,enum=topodata.TabletType" json:"tablet_type,omitempty"`
529 }
530
531 func (m *Target) Reset() { *m = Target{} }
532 func (m *Target) String() string { return "TODO" }
533
534
535
536 func (m *Target) GetKeyspace() string {
537 if m != nil {
538 return m.Keyspace
539 }
540 return ""
541 }
542
543 func (m *Target) GetShard() string {
544 if m != nil {
545 return m.Shard
546 }
547 return ""
548 }
549
550 func (m *Target) GetTabletType() topodata.TabletType {
551 if m != nil {
552 return m.TabletType
553 }
554 return topodata.TabletType_UNKNOWN
555 }
556
557
558 // VTGateCallerID is sent by VTGate to VTTablet to describe the
559 // caller. If possible, this information is secure. For instance,
560 // if using unique certificates that guarantee that VTGate->VTTablet
561 // traffic cannot be spoofed, then VTTablet can trust this information,
562 // and VTTablet will use it for tablet ACLs, for instance.
563 // Because of this security guarantee, this is different than the CallerID
564 // structure, which is not secure at all, because it is provided
565 // by the Vitess client.
566 type VTGateCallerID struct {
567 Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
568 Groups []string `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"`
569 }
570
571 func (m *VTGateCallerID) Reset() { *m = VTGateCallerID{} }
572 func (m *VTGateCallerID) String() string { return "TODO" }
573
574
575
576 func (m *VTGateCallerID) GetUsername() string {
577 if m != nil {
578 return m.Username
579 }
580 return ""
581 }
582
583 func (m *VTGateCallerID) GetGroups() []string {
584 if m != nil {
585 return m.Groups
586 }
587 return nil
588 }
589
590 // EventToken is a structure that describes a point in time in a
591 // replication stream on one shard. The most recent known replication
592 // position can be retrieved from vttablet when executing a query. It
593 // is also sent with the replication streams from the binlog service.
594 type EventToken struct {
595 // timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
596 Timestamp int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
597 // The shard name that applied the statements. Note this is not set when
598 // streaming from a vttablet. It is only used on the client -> vtgate link.
599 Shard string `protobuf:"bytes,2,opt,name=shard" json:"shard,omitempty"`
600 // The position on the replication stream after this statement was applied.
601 // It is not the transaction ID / GTID, but the position / GTIDSet.
602 Position string `protobuf:"bytes,3,opt,name=position" json:"position,omitempty"`
603 }
604
605 func (m *EventToken) Reset() { *m = EventToken{} }
606 func (m *EventToken) String() string { return "TODO" }
607
608
609
610 func (m *EventToken) GetTimestamp() int64 {
611 if m != nil {
612 return m.Timestamp
613 }
614 return 0
615 }
616
617 func (m *EventToken) GetShard() string {
618 if m != nil {
619 return m.Shard
620 }
621 return ""
622 }
623
624 func (m *EventToken) GetPosition() string {
625 if m != nil {
626 return m.Position
627 }
628 return ""
629 }
630 */
631
632 // Value represents a typed value.
633 type Value struct {
634 Type Type `protobuf:"varint,1,opt,name=type,enum=query.Type" json:"type,omitempty"`
635 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
636 }
637
638 func (m *Value) Reset() { *m = Value{} }
639 func (m *Value) String() string { return "TODO" }
640
641 func (m *Value) GetType() Type {
642 if m != nil {
643 return m.Type
644 }
645 return Type_NULL_TYPE
646 }
647
648 func (m *Value) GetValue() []byte {
649 if m != nil {
650 return m.Value
651 }
652 return nil
653 }
654
655 // BindVariable represents a single bind variable in a Query.
656 type BindVariable struct {
657 Type Type `protobuf:"varint,1,opt,name=type,enum=query.Type" json:"type,omitempty"`
658 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
659 // values are set if type is TUPLE.
660 Values []*Value `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"`
661 }
662
663 func (m *BindVariable) Reset() { *m = BindVariable{} }
664 func (m *BindVariable) String() string { return "TODO" }
665
666 func (m *BindVariable) GetType() Type {
667 if m != nil {
668 return m.Type
669 }
670 return Type_NULL_TYPE
671 }
672
673 func (m *BindVariable) GetValue() []byte {
674 if m != nil {
675 return m.Value
676 }
677 return nil
678 }
679
680 func (m *BindVariable) GetValues() []*Value {
681 if m != nil {
682 return m.Values
683 }
684 return nil
685 }
686
687 // BoundQuery is a query with its bind variables
688 type BoundQuery struct {
689 // sql is the SQL query to execute
690 Sql string `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
691 // bind_variables is a map of all bind variables to expand in the query.
692 // nil values are not allowed. Use NULL_TYPE to express a NULL value.
693 BindVariables map[string]*BindVariable `protobuf:"bytes,2,rep,name=bind_variables,json=bindVariables" json:"bind_variables,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
694 }
695
696 func (m *BoundQuery) Reset() { *m = BoundQuery{} }
697 func (m *BoundQuery) String() string { return "TODO" }
698
699 func (m *BoundQuery) GetSql() string {
700 if m != nil {
701 return m.Sql
702 }
703 return ""
704 }
705
706 func (m *BoundQuery) GetBindVariables() map[string]*BindVariable {
707 if m != nil {
708 return m.BindVariables
709 }
710 return nil
711 }
712
713 /*
714 // ExecuteOptions is passed around for all Execute calls.
715 type ExecuteOptions struct {
716 // If set, we will try to include an EventToken with the responses.
717 IncludeEventToken bool `protobuf:"varint,2,opt,name=include_event_token,json=includeEventToken" json:"include_event_token,omitempty"`
718 // If set, the fresher field may be set as a result comparison to this token.
719 // This is a shortcut so the application doesn't need to care about
720 // comparing EventTokens.
721 CompareEventToken *EventToken `protobuf:"bytes,3,opt,name=compare_event_token,json=compareEventToken" json:"compare_event_token,omitempty"`
722 // Controls what fields are returned in Field message responses from mysql, i.e.
723 // field name, table name, etc. This is an optimization for high-QPS queries where
724 // the client knows what it's getting
725 IncludedFields ExecuteOptions_IncludedFields `protobuf:"varint,4,opt,name=included_fields,json=includedFields,enum=query.ExecuteOptions_IncludedFields" json:"included_fields,omitempty"`
726 // client_rows_found specifies if rows_affected should return
727 // rows found instead of rows affected. Behavior is defined
728 // by MySQL's CLIENT_FOUND_ROWS flag.
729 ClientFoundRows bool `protobuf:"varint,5,opt,name=client_found_rows,json=clientFoundRows" json:"client_found_rows,omitempty"`
730 // workload specifies the type of workload:
731 // OLTP: DMLs allowed, results have row count limit, and
732 // query timeouts are shorter.
733 // OLAP: DMLS not allowed, no limit on row count, timeouts
734 // can be as high as desired.
735 // DBA: no limit on rowcount or timeout, all queries allowed
736 // but intended for long DMLs and DDLs.
737 Workload ExecuteOptions_Workload `protobuf:"varint,6,opt,name=workload,enum=query.ExecuteOptions_Workload" json:"workload,omitempty"`
738 // sql_select_limit sets an implicit limit on all select statements. Since
739 // vitess also sets a rowcount limit on queries, the smallest value wins.
740 SqlSelectLimit int64 `protobuf:"varint,8,opt,name=sql_select_limit,json=sqlSelectLimit" json:"sql_select_limit,omitempty"`
741 TransactionIsolation ExecuteOptions_TransactionIsolation `protobuf:"varint,9,opt,name=transaction_isolation,json=transactionIsolation,enum=query.ExecuteOptions_TransactionIsolation" json:"transaction_isolation,omitempty"`
742 }
743
744 func (m *ExecuteOptions) Reset() { *m = ExecuteOptions{} }
745 func (m *ExecuteOptions) String() string { return "TODO" }
746
747
748
749 func (m *ExecuteOptions) GetIncludeEventToken() bool {
750 if m != nil {
751 return m.IncludeEventToken
752 }
753 return false
754 }
755
756 func (m *ExecuteOptions) GetCompareEventToken() *EventToken {
757 if m != nil {
758 return m.CompareEventToken
759 }
760 return nil
761 }
762
763 func (m *ExecuteOptions) GetIncludedFields() ExecuteOptions_IncludedFields {
764 if m != nil {
765 return m.IncludedFields
766 }
767 return ExecuteOptions_TYPE_AND_NAME
768 }
769
770 func (m *ExecuteOptions) GetClientFoundRows() bool {
771 if m != nil {
772 return m.ClientFoundRows
773 }
774 return false
775 }
776
777 func (m *ExecuteOptions) GetWorkload() ExecuteOptions_Workload {
778 if m != nil {
779 return m.Workload
780 }
781 return ExecuteOptions_UNSPECIFIED
782 }
783
784 func (m *ExecuteOptions) GetSqlSelectLimit() int64 {
785 if m != nil {
786 return m.SqlSelectLimit
787 }
788 return 0
789 }
790
791 func (m *ExecuteOptions) GetTransactionIsolation() ExecuteOptions_TransactionIsolation {
792 if m != nil {
793 return m.TransactionIsolation
794 }
795 return ExecuteOptions_DEFAULT
796 }
797
798 // Field describes a single column returned by a query
799 type Field struct {
800 // name of the field as returned by mysql C API
801 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
802 // vitess-defined type. Conversion function is in sqltypes package.
803 Type Type `protobuf:"varint,2,opt,name=type,enum=query.Type" json:"type,omitempty"`
804 // Remaining fields from mysql C API.
805 // These fields are only populated when ExecuteOptions.included_fields
806 // is set to IncludedFields.ALL.
807 Table string `protobuf:"bytes,3,opt,name=table" json:"table,omitempty"`
808 OrgTable string `protobuf:"bytes,4,opt,name=org_table,json=orgTable" json:"org_table,omitempty"`
809 Database string `protobuf:"bytes,5,opt,name=database" json:"database,omitempty"`
810 OrgName string `protobuf:"bytes,6,opt,name=org_name,json=orgName" json:"org_name,omitempty"`
811 // column_length is really a uint32. All 32 bits can be used.
812 ColumnLength uint32 `protobuf:"varint,7,opt,name=column_length,json=columnLength" json:"column_length,omitempty"`
813 // charset is actually a uint16. Only the lower 16 bits are used.
814 Charset uint32 `protobuf:"varint,8,opt,name=charset" json:"charset,omitempty"`
815 // decimals is actualy a uint8. Only the lower 8 bits are used.
816 Decimals uint32 `protobuf:"varint,9,opt,name=decimals" json:"decimals,omitempty"`
817 // flags is actually a uint16. Only the lower 16 bits are used.
818 Flags uint32 `protobuf:"varint,10,opt,name=flags" json:"flags,omitempty"`
819 }
820
821 func (m *Field) Reset() { *m = Field{} }
822 func (m *Field) String() string { return "TODO" }
823
824
825
826 func (m *Field) GetName() string {
827 if m != nil {
828 return m.Name
829 }
830 return ""
831 }
832
833 func (m *Field) GetType() Type {
834 if m != nil {
835 return m.Type
836 }
837 return Type_NULL_TYPE
838 }
839
840 func (m *Field) GetTable() string {
841 if m != nil {
842 return m.Table
843 }
844 return ""
845 }
846
847 func (m *Field) GetOrgTable() string {
848 if m != nil {
849 return m.OrgTable
850 }
851 return ""
852 }
853
854 func (m *Field) GetDatabase() string {
855 if m != nil {
856 return m.Database
857 }
858 return ""
859 }
860
861 func (m *Field) GetOrgName() string {
862 if m != nil {
863 return m.OrgName
864 }
865 return ""
866 }
867
868 func (m *Field) GetColumnLength() uint32 {
869 if m != nil {
870 return m.ColumnLength
871 }
872 return 0
873 }
874
875 func (m *Field) GetCharset() uint32 {
876 if m != nil {
877 return m.Charset
878 }
879 return 0
880 }
881
882 func (m *Field) GetDecimals() uint32 {
883 if m != nil {
884 return m.Decimals
885 }
886 return 0
887 }
888
889 func (m *Field) GetFlags() uint32 {
890 if m != nil {
891 return m.Flags
892 }
893 return 0
894 }
895
896 // Row is a database row.
897 type Row struct {
898 // lengths contains the length of each value in values.
899 // A length of -1 means that the field is NULL. While
900 // reading values, you have to accummulate the length
901 // to know the offset where the next value begins in values.
902 Lengths []int64 `protobuf:"zigzag64,1,rep,packed,name=lengths" json:"lengths,omitempty"`
903 // values contains a concatenation of all values in the row.
904 Values []byte `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"`
905 }
906
907 func (m *Row) Reset() { *m = Row{} }
908 func (m *Row) String() string { return "TODO" }
909
910
911
912 func (m *Row) GetLengths() []int64 {
913 if m != nil {
914 return m.Lengths
915 }
916 return nil
917 }
918
919 func (m *Row) GetValues() []byte {
920 if m != nil {
921 return m.Values
922 }
923 return nil
924 }
925
926 // ResultExtras contains optional out-of-band information. Usually the
927 // extras are requested by adding ExecuteOptions flags.
928 type ResultExtras struct {
929 // event_token is populated if the include_event_token flag is set
930 // in ExecuteOptions.
931 EventToken *EventToken `protobuf:"bytes,1,opt,name=event_token,json=eventToken" json:"event_token,omitempty"`
932 // If set, it means the data returned with this result is fresher
933 // than the compare_token passed in the ExecuteOptions.
934 Fresher bool `protobuf:"varint,2,opt,name=fresher" json:"fresher,omitempty"`
935 }
936
937 func (m *ResultExtras) Reset() { *m = ResultExtras{} }
938 func (m *ResultExtras) String() string { return "TODO" }
939
940
941
942 func (m *ResultExtras) GetEventToken() *EventToken {
943 if m != nil {
944 return m.EventToken
945 }
946 return nil
947 }
948
949 func (m *ResultExtras) GetFresher() bool {
950 if m != nil {
951 return m.Fresher
952 }
953 return false
954 }
955
956 // QueryResult is returned by Execute and ExecuteStream.
957 //
958 // As returned by Execute, len(fields) is always equal to len(row)
959 // (for each row in rows).
960 //
961 // As returned by StreamExecute, the first QueryResult has the fields
962 // set, and subsequent QueryResult have rows set. And as Execute,
963 // len(QueryResult[0].fields) is always equal to len(row) (for each
964 // row in rows for each QueryResult in QueryResult[1:]).
965 type QueryResult struct {
966 Fields []*Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
967 RowsAffected uint64 `protobuf:"varint,2,opt,name=rows_affected,json=rowsAffected" json:"rows_affected,omitempty"`
968 InsertId uint64 `protobuf:"varint,3,opt,name=insert_id,json=insertId" json:"insert_id,omitempty"`
969 Rows []*Row `protobuf:"bytes,4,rep,name=rows" json:"rows,omitempty"`
970 Extras *ResultExtras `protobuf:"bytes,5,opt,name=extras" json:"extras,omitempty"`
971 }
972
973 func (m *QueryResult) Reset() { *m = QueryResult{} }
974 func (m *QueryResult) String() string { return "TODO" }
975
976
977
978 func (m *QueryResult) GetFields() []*Field {
979 if m != nil {
980 return m.Fields
981 }
982 return nil
983 }
984
985 func (m *QueryResult) GetRowsAffected() uint64 {
986 if m != nil {
987 return m.RowsAffected
988 }
989 return 0
990 }
991
992 func (m *QueryResult) GetInsertId() uint64 {
993 if m != nil {
994 return m.InsertId
995 }
996 return 0
997 }
998
999 func (m *QueryResult) GetRows() []*Row {
1000 if m != nil {
1001 return m.Rows
1002 }
1003 return nil
1004 }
1005
1006 func (m *QueryResult) GetExtras() *ResultExtras {
1007 if m != nil {
1008 return m.Extras
1009 }
1010 return nil
1011 }
1012
1013 // StreamEvent describes a set of transformations that happened as a
1014 // single transactional unit on a server. It is streamed back by the
1015 // Update Stream calls.
1016 type StreamEvent struct {
1017 // The statements in this transaction.
1018 Statements []*StreamEvent_Statement `protobuf:"bytes,1,rep,name=statements" json:"statements,omitempty"`
1019 // The Event Token for this event.
1020 EventToken *EventToken `protobuf:"bytes,2,opt,name=event_token,json=eventToken" json:"event_token,omitempty"`
1021 }
1022
1023 func (m *StreamEvent) Reset() { *m = StreamEvent{} }
1024 func (m *StreamEvent) String() string { return "TODO" }
1025
1026
1027
1028 func (m *StreamEvent) GetStatements() []*StreamEvent_Statement {
1029 if m != nil {
1030 return m.Statements
1031 }
1032 return nil
1033 }
1034
1035 func (m *StreamEvent) GetEventToken() *EventToken {
1036 if m != nil {
1037 return m.EventToken
1038 }
1039 return nil
1040 }
1041
1042 // One individual Statement in a transaction.
1043 type StreamEvent_Statement struct {
1044 Category StreamEvent_Statement_Category `protobuf:"varint,1,opt,name=category,enum=query.StreamEvent_Statement_Category" json:"category,omitempty"`
1045 // table_name, primary_key_fields and primary_key_values are set for DML.
1046 TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName" json:"table_name,omitempty"`
1047 PrimaryKeyFields []*Field `protobuf:"bytes,3,rep,name=primary_key_fields,json=primaryKeyFields" json:"primary_key_fields,omitempty"`
1048 PrimaryKeyValues []*Row `protobuf:"bytes,4,rep,name=primary_key_values,json=primaryKeyValues" json:"primary_key_values,omitempty"`
1049 // sql is set for all queries.
1050 // FIXME(alainjobart) we may not need it for DMLs.
1051 Sql []byte `protobuf:"bytes,5,opt,name=sql,proto3" json:"sql,omitempty"`
1052 }
1053
1054 func (m *StreamEvent_Statement) Reset() { *m = StreamEvent_Statement{} }
1055 func (m *StreamEvent_Statement) String() string { return "TODO" }
1056
1057
1058
1059 func (m *StreamEvent_Statement) GetCategory() StreamEvent_Statement_Category {
1060 if m != nil {
1061 return m.Category
1062 }
1063 return StreamEvent_Statement_Error
1064 }
1065
1066 func (m *StreamEvent_Statement) GetTableName() string {
1067 if m != nil {
1068 return m.TableName
1069 }
1070 return ""
1071 }
1072
1073 func (m *StreamEvent_Statement) GetPrimaryKeyFields() []*Field {
1074 if m != nil {
1075 return m.PrimaryKeyFields
1076 }
1077 return nil
1078 }
1079
1080 func (m *StreamEvent_Statement) GetPrimaryKeyValues() []*Row {
1081 if m != nil {
1082 return m.PrimaryKeyValues
1083 }
1084 return nil
1085 }
1086
1087 func (m *StreamEvent_Statement) GetSql() []byte {
1088 if m != nil {
1089 return m.Sql
1090 }
1091 return nil
1092 }
1093
1094
1095 // ExecuteRequest is the payload to Execute
1096 type ExecuteRequest struct {
1097 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1098 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1099 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1100 Query *BoundQuery `protobuf:"bytes,4,opt,name=query" json:"query,omitempty"`
1101 TransactionId int64 `protobuf:"varint,5,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1102 Options *ExecuteOptions `protobuf:"bytes,6,opt,name=options" json:"options,omitempty"`
1103 }
1104
1105 func (m *ExecuteRequest) Reset() { *m = ExecuteRequest{} }
1106 func (m *ExecuteRequest) String() string { return "TODO" }
1107
1108
1109
1110 func (m *ExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1111 if m != nil {
1112 return m.EffectiveCallerId
1113 }
1114 return nil
1115 }
1116
1117 func (m *ExecuteRequest) GetImmediateCallerId() *VTGateCallerID {
1118 if m != nil {
1119 return m.ImmediateCallerId
1120 }
1121 return nil
1122 }
1123
1124 func (m *ExecuteRequest) GetTarget() *Target {
1125 if m != nil {
1126 return m.Target
1127 }
1128 return nil
1129 }
1130
1131 func (m *ExecuteRequest) GetQuery() *BoundQuery {
1132 if m != nil {
1133 return m.Query
1134 }
1135 return nil
1136 }
1137
1138 func (m *ExecuteRequest) GetTransactionId() int64 {
1139 if m != nil {
1140 return m.TransactionId
1141 }
1142 return 0
1143 }
1144
1145 func (m *ExecuteRequest) GetOptions() *ExecuteOptions {
1146 if m != nil {
1147 return m.Options
1148 }
1149 return nil
1150 }
1151
1152 // ExecuteResponse is the returned value from Execute
1153 type ExecuteResponse struct {
1154 Result *QueryResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
1155 }
1156
1157 func (m *ExecuteResponse) Reset() { *m = ExecuteResponse{} }
1158 func (m *ExecuteResponse) String() string { return "TODO" }
1159
1160
1161
1162 func (m *ExecuteResponse) GetResult() *QueryResult {
1163 if m != nil {
1164 return m.Result
1165 }
1166 return nil
1167 }
1168
1169 // ResultWithError represents a query response
1170 // in the form of result or error but not both.
1171 // TODO: To be used in ExecuteBatchResponse and BeginExecuteBatchResponse.
1172 type ResultWithError struct {
1173 // error contains an query level error, only set if result is unset.
1174 Error *vtrpc.RPCError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
1175 // result contains the query result, only set if error is unset.
1176 Result *QueryResult `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
1177 }
1178
1179 func (m *ResultWithError) Reset() { *m = ResultWithError{} }
1180 func (m *ResultWithError) String() string { return "TODO" }
1181
1182
1183
1184 func (m *ResultWithError) GetError() *vtrpc.RPCError {
1185 if m != nil {
1186 return m.Error
1187 }
1188 return nil
1189 }
1190
1191 func (m *ResultWithError) GetResult() *QueryResult {
1192 if m != nil {
1193 return m.Result
1194 }
1195 return nil
1196 }
1197
1198 // ExecuteBatchRequest is the payload to ExecuteBatch
1199 type ExecuteBatchRequest struct {
1200 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1201 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1202 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1203 Queries []*BoundQuery `protobuf:"bytes,4,rep,name=queries" json:"queries,omitempty"`
1204 AsTransaction bool `protobuf:"varint,5,opt,name=as_transaction,json=asTransaction" json:"as_transaction,omitempty"`
1205 TransactionId int64 `protobuf:"varint,6,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1206 Options *ExecuteOptions `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"`
1207 }
1208
1209 func (m *ExecuteBatchRequest) Reset() { *m = ExecuteBatchRequest{} }
1210 func (m *ExecuteBatchRequest) String() string { return "TODO" }
1211
1212
1213
1214 func (m *ExecuteBatchRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1215 if m != nil {
1216 return m.EffectiveCallerId
1217 }
1218 return nil
1219 }
1220
1221 func (m *ExecuteBatchRequest) GetImmediateCallerId() *VTGateCallerID {
1222 if m != nil {
1223 return m.ImmediateCallerId
1224 }
1225 return nil
1226 }
1227
1228 func (m *ExecuteBatchRequest) GetTarget() *Target {
1229 if m != nil {
1230 return m.Target
1231 }
1232 return nil
1233 }
1234
1235 func (m *ExecuteBatchRequest) GetQueries() []*BoundQuery {
1236 if m != nil {
1237 return m.Queries
1238 }
1239 return nil
1240 }
1241
1242 func (m *ExecuteBatchRequest) GetAsTransaction() bool {
1243 if m != nil {
1244 return m.AsTransaction
1245 }
1246 return false
1247 }
1248
1249 func (m *ExecuteBatchRequest) GetTransactionId() int64 {
1250 if m != nil {
1251 return m.TransactionId
1252 }
1253 return 0
1254 }
1255
1256 func (m *ExecuteBatchRequest) GetOptions() *ExecuteOptions {
1257 if m != nil {
1258 return m.Options
1259 }
1260 return nil
1261 }
1262
1263 // ExecuteBatchResponse is the returned value from ExecuteBatch
1264 type ExecuteBatchResponse struct {
1265 Results []*QueryResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
1266 }
1267
1268 func (m *ExecuteBatchResponse) Reset() { *m = ExecuteBatchResponse{} }
1269 func (m *ExecuteBatchResponse) String() string { return "TODO" }
1270
1271
1272
1273 func (m *ExecuteBatchResponse) GetResults() []*QueryResult {
1274 if m != nil {
1275 return m.Results
1276 }
1277 return nil
1278 }
1279
1280 // StreamExecuteRequest is the payload to StreamExecute
1281 type StreamExecuteRequest struct {
1282 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1283 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1284 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1285 Query *BoundQuery `protobuf:"bytes,4,opt,name=query" json:"query,omitempty"`
1286 Options *ExecuteOptions `protobuf:"bytes,5,opt,name=options" json:"options,omitempty"`
1287 }
1288
1289 func (m *StreamExecuteRequest) Reset() { *m = StreamExecuteRequest{} }
1290 func (m *StreamExecuteRequest) String() string { return "TODO" }
1291
1292
1293
1294 func (m *StreamExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1295 if m != nil {
1296 return m.EffectiveCallerId
1297 }
1298 return nil
1299 }
1300
1301 func (m *StreamExecuteRequest) GetImmediateCallerId() *VTGateCallerID {
1302 if m != nil {
1303 return m.ImmediateCallerId
1304 }
1305 return nil
1306 }
1307
1308 func (m *StreamExecuteRequest) GetTarget() *Target {
1309 if m != nil {
1310 return m.Target
1311 }
1312 return nil
1313 }
1314
1315 func (m *StreamExecuteRequest) GetQuery() *BoundQuery {
1316 if m != nil {
1317 return m.Query
1318 }
1319 return nil
1320 }
1321
1322 func (m *StreamExecuteRequest) GetOptions() *ExecuteOptions {
1323 if m != nil {
1324 return m.Options
1325 }
1326 return nil
1327 }
1328
1329 // StreamExecuteResponse is the returned value from StreamExecute
1330 type StreamExecuteResponse struct {
1331 Result *QueryResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
1332 }
1333
1334 func (m *StreamExecuteResponse) Reset() { *m = StreamExecuteResponse{} }
1335 func (m *StreamExecuteResponse) String() string { return "TODO" }
1336
1337
1338
1339 func (m *StreamExecuteResponse) GetResult() *QueryResult {
1340 if m != nil {
1341 return m.Result
1342 }
1343 return nil
1344 }
1345
1346 // BeginRequest is the payload to Begin
1347 type BeginRequest struct {
1348 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1349 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1350 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1351 Options *ExecuteOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"`
1352 }
1353
1354 func (m *BeginRequest) Reset() { *m = BeginRequest{} }
1355 func (m *BeginRequest) String() string { return "TODO" }
1356
1357
1358
1359 func (m *BeginRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1360 if m != nil {
1361 return m.EffectiveCallerId
1362 }
1363 return nil
1364 }
1365
1366 func (m *BeginRequest) GetImmediateCallerId() *VTGateCallerID {
1367 if m != nil {
1368 return m.ImmediateCallerId
1369 }
1370 return nil
1371 }
1372
1373 func (m *BeginRequest) GetTarget() *Target {
1374 if m != nil {
1375 return m.Target
1376 }
1377 return nil
1378 }
1379
1380 func (m *BeginRequest) GetOptions() *ExecuteOptions {
1381 if m != nil {
1382 return m.Options
1383 }
1384 return nil
1385 }
1386
1387 // BeginResponse is the returned value from Begin
1388 type BeginResponse struct {
1389 TransactionId int64 `protobuf:"varint,1,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1390 }
1391
1392 func (m *BeginResponse) Reset() { *m = BeginResponse{} }
1393 func (m *BeginResponse) String() string { return "TODO" }
1394
1395
1396
1397 func (m *BeginResponse) GetTransactionId() int64 {
1398 if m != nil {
1399 return m.TransactionId
1400 }
1401 return 0
1402 }
1403
1404 // CommitRequest is the payload to Commit
1405 type CommitRequest struct {
1406 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1407 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1408 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1409 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1410 }
1411
1412 func (m *CommitRequest) Reset() { *m = CommitRequest{} }
1413 func (m *CommitRequest) String() string { return "TODO" }
1414
1415
1416
1417 func (m *CommitRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1418 if m != nil {
1419 return m.EffectiveCallerId
1420 }
1421 return nil
1422 }
1423
1424 func (m *CommitRequest) GetImmediateCallerId() *VTGateCallerID {
1425 if m != nil {
1426 return m.ImmediateCallerId
1427 }
1428 return nil
1429 }
1430
1431 func (m *CommitRequest) GetTarget() *Target {
1432 if m != nil {
1433 return m.Target
1434 }
1435 return nil
1436 }
1437
1438 func (m *CommitRequest) GetTransactionId() int64 {
1439 if m != nil {
1440 return m.TransactionId
1441 }
1442 return 0
1443 }
1444
1445 // CommitResponse is the returned value from Commit
1446 type CommitResponse struct {
1447 }
1448
1449 func (m *CommitResponse) Reset() { *m = CommitResponse{} }
1450 func (m *CommitResponse) String() string { return "TODO" }
1451
1452
1453
1454 // RollbackRequest is the payload to Rollback
1455 type RollbackRequest struct {
1456 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1457 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1458 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1459 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1460 }
1461
1462 func (m *RollbackRequest) Reset() { *m = RollbackRequest{} }
1463 func (m *RollbackRequest) String() string { return "TODO" }
1464
1465
1466
1467 func (m *RollbackRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1468 if m != nil {
1469 return m.EffectiveCallerId
1470 }
1471 return nil
1472 }
1473
1474 func (m *RollbackRequest) GetImmediateCallerId() *VTGateCallerID {
1475 if m != nil {
1476 return m.ImmediateCallerId
1477 }
1478 return nil
1479 }
1480
1481 func (m *RollbackRequest) GetTarget() *Target {
1482 if m != nil {
1483 return m.Target
1484 }
1485 return nil
1486 }
1487
1488 func (m *RollbackRequest) GetTransactionId() int64 {
1489 if m != nil {
1490 return m.TransactionId
1491 }
1492 return 0
1493 }
1494
1495 // RollbackResponse is the returned value from Rollback
1496 type RollbackResponse struct {
1497 }
1498
1499 func (m *RollbackResponse) Reset() { *m = RollbackResponse{} }
1500 func (m *RollbackResponse) String() string { return "TODO" }
1501
1502
1503
1504 // PrepareRequest is the payload to Prepare
1505 type PrepareRequest struct {
1506 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1507 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1508 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1509 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1510 Dtid string `protobuf:"bytes,5,opt,name=dtid" json:"dtid,omitempty"`
1511 }
1512
1513 func (m *PrepareRequest) Reset() { *m = PrepareRequest{} }
1514 func (m *PrepareRequest) String() string { return "TODO" }
1515
1516
1517
1518 func (m *PrepareRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1519 if m != nil {
1520 return m.EffectiveCallerId
1521 }
1522 return nil
1523 }
1524
1525 func (m *PrepareRequest) GetImmediateCallerId() *VTGateCallerID {
1526 if m != nil {
1527 return m.ImmediateCallerId
1528 }
1529 return nil
1530 }
1531
1532 func (m *PrepareRequest) GetTarget() *Target {
1533 if m != nil {
1534 return m.Target
1535 }
1536 return nil
1537 }
1538
1539 func (m *PrepareRequest) GetTransactionId() int64 {
1540 if m != nil {
1541 return m.TransactionId
1542 }
1543 return 0
1544 }
1545
1546 func (m *PrepareRequest) GetDtid() string {
1547 if m != nil {
1548 return m.Dtid
1549 }
1550 return ""
1551 }
1552
1553 // PrepareResponse is the returned value from Prepare
1554 type PrepareResponse struct {
1555 }
1556
1557 func (m *PrepareResponse) Reset() { *m = PrepareResponse{} }
1558 func (m *PrepareResponse) String() string { return "TODO" }
1559
1560
1561
1562 // CommitPreparedRequest is the payload to CommitPrepared
1563 type CommitPreparedRequest struct {
1564 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1565 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1566 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1567 Dtid string `protobuf:"bytes,4,opt,name=dtid" json:"dtid,omitempty"`
1568 }
1569
1570 func (m *CommitPreparedRequest) Reset() { *m = CommitPreparedRequest{} }
1571 func (m *CommitPreparedRequest) String() string { return "TODO" }
1572
1573
1574
1575 func (m *CommitPreparedRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1576 if m != nil {
1577 return m.EffectiveCallerId
1578 }
1579 return nil
1580 }
1581
1582 func (m *CommitPreparedRequest) GetImmediateCallerId() *VTGateCallerID {
1583 if m != nil {
1584 return m.ImmediateCallerId
1585 }
1586 return nil
1587 }
1588
1589 func (m *CommitPreparedRequest) GetTarget() *Target {
1590 if m != nil {
1591 return m.Target
1592 }
1593 return nil
1594 }
1595
1596 func (m *CommitPreparedRequest) GetDtid() string {
1597 if m != nil {
1598 return m.Dtid
1599 }
1600 return ""
1601 }
1602
1603 // CommitPreparedResponse is the returned value from CommitPrepared
1604 type CommitPreparedResponse struct {
1605 }
1606
1607 func (m *CommitPreparedResponse) Reset() { *m = CommitPreparedResponse{} }
1608 func (m *CommitPreparedResponse) String() string { return "TODO" }
1609
1610
1611
1612 // RollbackPreparedRequest is the payload to RollbackPrepared
1613 type RollbackPreparedRequest struct {
1614 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1615 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1616 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1617 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1618 Dtid string `protobuf:"bytes,5,opt,name=dtid" json:"dtid,omitempty"`
1619 }
1620
1621 func (m *RollbackPreparedRequest) Reset() { *m = RollbackPreparedRequest{} }
1622 func (m *RollbackPreparedRequest) String() string { return "TODO" }
1623
1624
1625
1626 func (m *RollbackPreparedRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1627 if m != nil {
1628 return m.EffectiveCallerId
1629 }
1630 return nil
1631 }
1632
1633 func (m *RollbackPreparedRequest) GetImmediateCallerId() *VTGateCallerID {
1634 if m != nil {
1635 return m.ImmediateCallerId
1636 }
1637 return nil
1638 }
1639
1640 func (m *RollbackPreparedRequest) GetTarget() *Target {
1641 if m != nil {
1642 return m.Target
1643 }
1644 return nil
1645 }
1646
1647 func (m *RollbackPreparedRequest) GetTransactionId() int64 {
1648 if m != nil {
1649 return m.TransactionId
1650 }
1651 return 0
1652 }
1653
1654 func (m *RollbackPreparedRequest) GetDtid() string {
1655 if m != nil {
1656 return m.Dtid
1657 }
1658 return ""
1659 }
1660
1661 // RollbackPreparedResponse is the returned value from RollbackPrepared
1662 type RollbackPreparedResponse struct {
1663 }
1664
1665 func (m *RollbackPreparedResponse) Reset() { *m = RollbackPreparedResponse{} }
1666 func (m *RollbackPreparedResponse) String() string { return "TODO" }
1667
1668
1669
1670 // CreateTransactionRequest is the payload to CreateTransaction
1671 type CreateTransactionRequest struct {
1672 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1673 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1674 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1675 Dtid string `protobuf:"bytes,4,opt,name=dtid" json:"dtid,omitempty"`
1676 Participants []*Target `protobuf:"bytes,5,rep,name=participants" json:"participants,omitempty"`
1677 }
1678
1679 func (m *CreateTransactionRequest) Reset() { *m = CreateTransactionRequest{} }
1680 func (m *CreateTransactionRequest) String() string { return "TODO" }
1681
1682
1683
1684 func (m *CreateTransactionRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1685 if m != nil {
1686 return m.EffectiveCallerId
1687 }
1688 return nil
1689 }
1690
1691 func (m *CreateTransactionRequest) GetImmediateCallerId() *VTGateCallerID {
1692 if m != nil {
1693 return m.ImmediateCallerId
1694 }
1695 return nil
1696 }
1697
1698 func (m *CreateTransactionRequest) GetTarget() *Target {
1699 if m != nil {
1700 return m.Target
1701 }
1702 return nil
1703 }
1704
1705 func (m *CreateTransactionRequest) GetDtid() string {
1706 if m != nil {
1707 return m.Dtid
1708 }
1709 return ""
1710 }
1711
1712 func (m *CreateTransactionRequest) GetParticipants() []*Target {
1713 if m != nil {
1714 return m.Participants
1715 }
1716 return nil
1717 }
1718
1719 // CreateTransactionResponse is the returned value from CreateTransaction
1720 type CreateTransactionResponse struct {
1721 }
1722
1723 func (m *CreateTransactionResponse) Reset() { *m = CreateTransactionResponse{} }
1724 func (m *CreateTransactionResponse) String() string { return "TODO" }
1725
1726
1727
1728 // StartCommitRequest is the payload to StartCommit
1729 type StartCommitRequest struct {
1730 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1731 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1732 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1733 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1734 Dtid string `protobuf:"bytes,5,opt,name=dtid" json:"dtid,omitempty"`
1735 }
1736
1737 func (m *StartCommitRequest) Reset() { *m = StartCommitRequest{} }
1738 func (m *StartCommitRequest) String() string { return "TODO" }
1739
1740
1741
1742 func (m *StartCommitRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1743 if m != nil {
1744 return m.EffectiveCallerId
1745 }
1746 return nil
1747 }
1748
1749 func (m *StartCommitRequest) GetImmediateCallerId() *VTGateCallerID {
1750 if m != nil {
1751 return m.ImmediateCallerId
1752 }
1753 return nil
1754 }
1755
1756 func (m *StartCommitRequest) GetTarget() *Target {
1757 if m != nil {
1758 return m.Target
1759 }
1760 return nil
1761 }
1762
1763 func (m *StartCommitRequest) GetTransactionId() int64 {
1764 if m != nil {
1765 return m.TransactionId
1766 }
1767 return 0
1768 }
1769
1770 func (m *StartCommitRequest) GetDtid() string {
1771 if m != nil {
1772 return m.Dtid
1773 }
1774 return ""
1775 }
1776
1777 // StartCommitResponse is the returned value from StartCommit
1778 type StartCommitResponse struct {
1779 }
1780
1781 func (m *StartCommitResponse) Reset() { *m = StartCommitResponse{} }
1782 func (m *StartCommitResponse) String() string { return "TODO" }
1783
1784
1785
1786 // SetRollbackRequest is the payload to SetRollback
1787 type SetRollbackRequest struct {
1788 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1789 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1790 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1791 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
1792 Dtid string `protobuf:"bytes,5,opt,name=dtid" json:"dtid,omitempty"`
1793 }
1794
1795 func (m *SetRollbackRequest) Reset() { *m = SetRollbackRequest{} }
1796 func (m *SetRollbackRequest) String() string { return "TODO" }
1797
1798
1799
1800 func (m *SetRollbackRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1801 if m != nil {
1802 return m.EffectiveCallerId
1803 }
1804 return nil
1805 }
1806
1807 func (m *SetRollbackRequest) GetImmediateCallerId() *VTGateCallerID {
1808 if m != nil {
1809 return m.ImmediateCallerId
1810 }
1811 return nil
1812 }
1813
1814 func (m *SetRollbackRequest) GetTarget() *Target {
1815 if m != nil {
1816 return m.Target
1817 }
1818 return nil
1819 }
1820
1821 func (m *SetRollbackRequest) GetTransactionId() int64 {
1822 if m != nil {
1823 return m.TransactionId
1824 }
1825 return 0
1826 }
1827
1828 func (m *SetRollbackRequest) GetDtid() string {
1829 if m != nil {
1830 return m.Dtid
1831 }
1832 return ""
1833 }
1834
1835 // SetRollbackResponse is the returned value from SetRollback
1836 type SetRollbackResponse struct {
1837 }
1838
1839 func (m *SetRollbackResponse) Reset() { *m = SetRollbackResponse{} }
1840 func (m *SetRollbackResponse) String() string { return "TODO" }
1841
1842
1843
1844 // ConcludeTransactionRequest is the payload to ConcludeTransaction
1845 type ConcludeTransactionRequest struct {
1846 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1847 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1848 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1849 Dtid string `protobuf:"bytes,4,opt,name=dtid" json:"dtid,omitempty"`
1850 }
1851
1852 func (m *ConcludeTransactionRequest) Reset() { *m = ConcludeTransactionRequest{} }
1853 func (m *ConcludeTransactionRequest) String() string { return "TODO" }
1854
1855
1856
1857 func (m *ConcludeTransactionRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1858 if m != nil {
1859 return m.EffectiveCallerId
1860 }
1861 return nil
1862 }
1863
1864 func (m *ConcludeTransactionRequest) GetImmediateCallerId() *VTGateCallerID {
1865 if m != nil {
1866 return m.ImmediateCallerId
1867 }
1868 return nil
1869 }
1870
1871 func (m *ConcludeTransactionRequest) GetTarget() *Target {
1872 if m != nil {
1873 return m.Target
1874 }
1875 return nil
1876 }
1877
1878 func (m *ConcludeTransactionRequest) GetDtid() string {
1879 if m != nil {
1880 return m.Dtid
1881 }
1882 return ""
1883 }
1884
1885 // ConcludeTransactionResponse is the returned value from ConcludeTransaction
1886 type ConcludeTransactionResponse struct {
1887 }
1888
1889 func (m *ConcludeTransactionResponse) Reset() { *m = ConcludeTransactionResponse{} }
1890 func (m *ConcludeTransactionResponse) String() string { return "TODO" }
1891
1892
1893
1894 // ReadTransactionRequest is the payload to ReadTransaction
1895 type ReadTransactionRequest struct {
1896 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1897 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1898 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1899 Dtid string `protobuf:"bytes,4,opt,name=dtid" json:"dtid,omitempty"`
1900 }
1901
1902 func (m *ReadTransactionRequest) Reset() { *m = ReadTransactionRequest{} }
1903 func (m *ReadTransactionRequest) String() string { return "TODO" }
1904
1905
1906
1907 func (m *ReadTransactionRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1908 if m != nil {
1909 return m.EffectiveCallerId
1910 }
1911 return nil
1912 }
1913
1914 func (m *ReadTransactionRequest) GetImmediateCallerId() *VTGateCallerID {
1915 if m != nil {
1916 return m.ImmediateCallerId
1917 }
1918 return nil
1919 }
1920
1921 func (m *ReadTransactionRequest) GetTarget() *Target {
1922 if m != nil {
1923 return m.Target
1924 }
1925 return nil
1926 }
1927
1928 func (m *ReadTransactionRequest) GetDtid() string {
1929 if m != nil {
1930 return m.Dtid
1931 }
1932 return ""
1933 }
1934
1935 // ReadTransactionResponse is the returned value from ReadTransaction
1936 type ReadTransactionResponse struct {
1937 Metadata *TransactionMetadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
1938 }
1939
1940 func (m *ReadTransactionResponse) Reset() { *m = ReadTransactionResponse{} }
1941 func (m *ReadTransactionResponse) String() string { return "TODO" }
1942
1943
1944
1945 func (m *ReadTransactionResponse) GetMetadata() *TransactionMetadata {
1946 if m != nil {
1947 return m.Metadata
1948 }
1949 return nil
1950 }
1951
1952 // BeginExecuteRequest is the payload to BeginExecute
1953 type BeginExecuteRequest struct {
1954 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
1955 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
1956 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
1957 Query *BoundQuery `protobuf:"bytes,4,opt,name=query" json:"query,omitempty"`
1958 Options *ExecuteOptions `protobuf:"bytes,5,opt,name=options" json:"options,omitempty"`
1959 }
1960
1961 func (m *BeginExecuteRequest) Reset() { *m = BeginExecuteRequest{} }
1962 func (m *BeginExecuteRequest) String() string { return "TODO" }
1963
1964
1965
1966 func (m *BeginExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
1967 if m != nil {
1968 return m.EffectiveCallerId
1969 }
1970 return nil
1971 }
1972
1973 func (m *BeginExecuteRequest) GetImmediateCallerId() *VTGateCallerID {
1974 if m != nil {
1975 return m.ImmediateCallerId
1976 }
1977 return nil
1978 }
1979
1980 func (m *BeginExecuteRequest) GetTarget() *Target {
1981 if m != nil {
1982 return m.Target
1983 }
1984 return nil
1985 }
1986
1987 func (m *BeginExecuteRequest) GetQuery() *BoundQuery {
1988 if m != nil {
1989 return m.Query
1990 }
1991 return nil
1992 }
1993
1994 func (m *BeginExecuteRequest) GetOptions() *ExecuteOptions {
1995 if m != nil {
1996 return m.Options
1997 }
1998 return nil
1999 }
2000
2001 // BeginExecuteResponse is the returned value from BeginExecute
2002 type BeginExecuteResponse struct {
2003 // error contains an application level error if necessary. Note the
2004 // transaction_id may be set, even when an error is returned, if the begin
2005 // worked but the execute failed.
2006 Error *vtrpc.RPCError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
2007 Result *QueryResult `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
2008 // transaction_id might be non-zero even if an error is present.
2009 TransactionId int64 `protobuf:"varint,3,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
2010 }
2011
2012 func (m *BeginExecuteResponse) Reset() { *m = BeginExecuteResponse{} }
2013 func (m *BeginExecuteResponse) String() string { return "TODO" }
2014
2015
2016
2017 func (m *BeginExecuteResponse) GetError() *vtrpc.RPCError {
2018 if m != nil {
2019 return m.Error
2020 }
2021 return nil
2022 }
2023
2024 func (m *BeginExecuteResponse) GetResult() *QueryResult {
2025 if m != nil {
2026 return m.Result
2027 }
2028 return nil
2029 }
2030
2031 func (m *BeginExecuteResponse) GetTransactionId() int64 {
2032 if m != nil {
2033 return m.TransactionId
2034 }
2035 return 0
2036 }
2037
2038 // BeginExecuteBatchRequest is the payload to BeginExecuteBatch
2039 type BeginExecuteBatchRequest struct {
2040 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
2041 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
2042 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
2043 Queries []*BoundQuery `protobuf:"bytes,4,rep,name=queries" json:"queries,omitempty"`
2044 AsTransaction bool `protobuf:"varint,5,opt,name=as_transaction,json=asTransaction" json:"as_transaction,omitempty"`
2045 Options *ExecuteOptions `protobuf:"bytes,6,opt,name=options" json:"options,omitempty"`
2046 }
2047
2048 func (m *BeginExecuteBatchRequest) Reset() { *m = BeginExecuteBatchRequest{} }
2049 func (m *BeginExecuteBatchRequest) String() string { return "TODO" }
2050
2051
2052
2053 func (m *BeginExecuteBatchRequest) GetEffectiveCallerId() *vtrpc.CallerID {
2054 if m != nil {
2055 return m.EffectiveCallerId
2056 }
2057 return nil
2058 }
2059
2060 func (m *BeginExecuteBatchRequest) GetImmediateCallerId() *VTGateCallerID {
2061 if m != nil {
2062 return m.ImmediateCallerId
2063 }
2064 return nil
2065 }
2066
2067 func (m *BeginExecuteBatchRequest) GetTarget() *Target {
2068 if m != nil {
2069 return m.Target
2070 }
2071 return nil
2072 }
2073
2074 func (m *BeginExecuteBatchRequest) GetQueries() []*BoundQuery {
2075 if m != nil {
2076 return m.Queries
2077 }
2078 return nil
2079 }
2080
2081 func (m *BeginExecuteBatchRequest) GetAsTransaction() bool {
2082 if m != nil {
2083 return m.AsTransaction
2084 }
2085 return false
2086 }
2087
2088 func (m *BeginExecuteBatchRequest) GetOptions() *ExecuteOptions {
2089 if m != nil {
2090 return m.Options
2091 }
2092 return nil
2093 }
2094
2095 // BeginExecuteBatchResponse is the returned value from BeginExecuteBatch
2096 type BeginExecuteBatchResponse struct {
2097 // error contains an application level error if necessary. Note the
2098 // transaction_id may be set, even when an error is returned, if the begin
2099 // worked but the execute failed.
2100 Error *vtrpc.RPCError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
2101 Results []*QueryResult `protobuf:"bytes,2,rep,name=results" json:"results,omitempty"`
2102 // transaction_id might be non-zero even if an error is present.
2103 TransactionId int64 `protobuf:"varint,3,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
2104 }
2105
2106 func (m *BeginExecuteBatchResponse) Reset() { *m = BeginExecuteBatchResponse{} }
2107 func (m *BeginExecuteBatchResponse) String() string { return "TODO" }
2108
2109
2110
2111 func (m *BeginExecuteBatchResponse) GetError() *vtrpc.RPCError {
2112 if m != nil {
2113 return m.Error
2114 }
2115 return nil
2116 }
2117
2118 func (m *BeginExecuteBatchResponse) GetResults() []*QueryResult {
2119 if m != nil {
2120 return m.Results
2121 }
2122 return nil
2123 }
2124
2125 func (m *BeginExecuteBatchResponse) GetTransactionId() int64 {
2126 if m != nil {
2127 return m.TransactionId
2128 }
2129 return 0
2130 }
2131
2132 // MessageStreamRequest is the request payload for MessageStream.
2133 type MessageStreamRequest struct {
2134 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
2135 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
2136 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
2137 // name is the message table name.
2138 Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
2139 }
2140
2141 func (m *MessageStreamRequest) Reset() { *m = MessageStreamRequest{} }
2142 func (m *MessageStreamRequest) String() string { return "TODO" }
2143
2144
2145
2146 func (m *MessageStreamRequest) GetEffectiveCallerId() *vtrpc.CallerID {
2147 if m != nil {
2148 return m.EffectiveCallerId
2149 }
2150 return nil
2151 }
2152
2153 func (m *MessageStreamRequest) GetImmediateCallerId() *VTGateCallerID {
2154 if m != nil {
2155 return m.ImmediateCallerId
2156 }
2157 return nil
2158 }
2159
2160 func (m *MessageStreamRequest) GetTarget() *Target {
2161 if m != nil {
2162 return m.Target
2163 }
2164 return nil
2165 }
2166
2167 func (m *MessageStreamRequest) GetName() string {
2168 if m != nil {
2169 return m.Name
2170 }
2171 return ""
2172 }
2173
2174 // MessageStreamResponse is a response for MessageStream.
2175 type MessageStreamResponse struct {
2176 Result *QueryResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
2177 }
2178
2179 func (m *MessageStreamResponse) Reset() { *m = MessageStreamResponse{} }
2180 func (m *MessageStreamResponse) String() string { return "TODO" }
2181
2182
2183
2184 func (m *MessageStreamResponse) GetResult() *QueryResult {
2185 if m != nil {
2186 return m.Result
2187 }
2188 return nil
2189 }
2190
2191 // MessageAckRequest is the request payload for MessageAck.
2192 type MessageAckRequest struct {
2193 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
2194 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
2195 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
2196 // name is the message table name.
2197 Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
2198 Ids []*Value `protobuf:"bytes,5,rep,name=ids" json:"ids,omitempty"`
2199 }
2200
2201 func (m *MessageAckRequest) Reset() { *m = MessageAckRequest{} }
2202 func (m *MessageAckRequest) String() string { return "TODO" }
2203
2204
2205
2206 func (m *MessageAckRequest) GetEffectiveCallerId() *vtrpc.CallerID {
2207 if m != nil {
2208 return m.EffectiveCallerId
2209 }
2210 return nil
2211 }
2212
2213 func (m *MessageAckRequest) GetImmediateCallerId() *VTGateCallerID {
2214 if m != nil {
2215 return m.ImmediateCallerId
2216 }
2217 return nil
2218 }
2219
2220 func (m *MessageAckRequest) GetTarget() *Target {
2221 if m != nil {
2222 return m.Target
2223 }
2224 return nil
2225 }
2226
2227 func (m *MessageAckRequest) GetName() string {
2228 if m != nil {
2229 return m.Name
2230 }
2231 return ""
2232 }
2233
2234 func (m *MessageAckRequest) GetIds() []*Value {
2235 if m != nil {
2236 return m.Ids
2237 }
2238 return nil
2239 }
2240
2241 // MessageAckResponse is the response for MessageAck.
2242 type MessageAckResponse struct {
2243 // result contains the result of the ack operation.
2244 // Since this acts like a DML, only
2245 // RowsAffected is returned in the result.
2246 Result *QueryResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
2247 }
2248
2249 func (m *MessageAckResponse) Reset() { *m = MessageAckResponse{} }
2250 func (m *MessageAckResponse) String() string { return "TODO" }
2251
2252
2253
2254 func (m *MessageAckResponse) GetResult() *QueryResult {
2255 if m != nil {
2256 return m.Result
2257 }
2258 return nil
2259 }
2260
2261 // SplitQueryRequest is the payload for SplitQuery sent by VTGate to a VTTablet.
2262 // See vtgate.SplitQueryRequest for more details.
2263 type SplitQueryRequest struct {
2264 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
2265 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
2266 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
2267 Query *BoundQuery `protobuf:"bytes,4,opt,name=query" json:"query,omitempty"`
2268 SplitColumn []string `protobuf:"bytes,5,rep,name=split_column,json=splitColumn" json:"split_column,omitempty"`
2269 // Exactly one of the following must be nonzero.
2270 SplitCount int64 `protobuf:"varint,6,opt,name=split_count,json=splitCount" json:"split_count,omitempty"`
2271 NumRowsPerQueryPart int64 `protobuf:"varint,8,opt,name=num_rows_per_query_part,json=numRowsPerQueryPart" json:"num_rows_per_query_part,omitempty"`
2272 Algorithm SplitQueryRequest_Algorithm `protobuf:"varint,9,opt,name=algorithm,enum=query.SplitQueryRequest_Algorithm" json:"algorithm,omitempty"`
2273 }
2274
2275 func (m *SplitQueryRequest) Reset() { *m = SplitQueryRequest{} }
2276 func (m *SplitQueryRequest) String() string { return "TODO" }
2277
2278
2279
2280 func (m *SplitQueryRequest) GetEffectiveCallerId() *vtrpc.CallerID {
2281 if m != nil {
2282 return m.EffectiveCallerId
2283 }
2284 return nil
2285 }
2286
2287 func (m *SplitQueryRequest) GetImmediateCallerId() *VTGateCallerID {
2288 if m != nil {
2289 return m.ImmediateCallerId
2290 }
2291 return nil
2292 }
2293
2294 func (m *SplitQueryRequest) GetTarget() *Target {
2295 if m != nil {
2296 return m.Target
2297 }
2298 return nil
2299 }
2300
2301 func (m *SplitQueryRequest) GetQuery() *BoundQuery {
2302 if m != nil {
2303 return m.Query
2304 }
2305 return nil
2306 }
2307
2308 func (m *SplitQueryRequest) GetSplitColumn() []string {
2309 if m != nil {
2310 return m.SplitColumn
2311 }
2312 return nil
2313 }
2314
2315 func (m *SplitQueryRequest) GetSplitCount() int64 {
2316 if m != nil {
2317 return m.SplitCount
2318 }
2319 return 0
2320 }
2321
2322 func (m *SplitQueryRequest) GetNumRowsPerQueryPart() int64 {
2323 if m != nil {
2324 return m.NumRowsPerQueryPart
2325 }
2326 return 0
2327 }
2328
2329 func (m *SplitQueryRequest) GetAlgorithm() SplitQueryRequest_Algorithm {
2330 if m != nil {
2331 return m.Algorithm
2332 }
2333 return SplitQueryRequest_EQUAL_SPLITS
2334 }
2335
2336 // QuerySplit represents one query to execute on the tablet
2337 type QuerySplit struct {
2338 // query is the query to execute
2339 Query *BoundQuery `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
2340 // row_count is the approximate row count the query will return
2341 RowCount int64 `protobuf:"varint,2,opt,name=row_count,json=rowCount" json:"row_count,omitempty"`
2342 }
2343
2344 func (m *QuerySplit) Reset() { *m = QuerySplit{} }
2345 func (m *QuerySplit) String() string { return "TODO" }
2346
2347
2348
2349 func (m *QuerySplit) GetQuery() *BoundQuery {
2350 if m != nil {
2351 return m.Query
2352 }
2353 return nil
2354 }
2355
2356 func (m *QuerySplit) GetRowCount() int64 {
2357 if m != nil {
2358 return m.RowCount
2359 }
2360 return 0
2361 }
2362
2363 // SplitQueryResponse is returned by SplitQuery and represents all the queries
2364 // to execute in order to get the entire data set.
2365 type SplitQueryResponse struct {
2366 Queries []*QuerySplit `protobuf:"bytes,1,rep,name=queries" json:"queries,omitempty"`
2367 }
2368
2369 func (m *SplitQueryResponse) Reset() { *m = SplitQueryResponse{} }
2370 func (m *SplitQueryResponse) String() string { return "TODO" }
2371
2372
2373
2374 func (m *SplitQueryResponse) GetQueries() []*QuerySplit {
2375 if m != nil {
2376 return m.Queries
2377 }
2378 return nil
2379 }
2380
2381 // StreamHealthRequest is the payload for StreamHealth
2382 type StreamHealthRequest struct {
2383 }
2384
2385 func (m *StreamHealthRequest) Reset() { *m = StreamHealthRequest{} }
2386 func (m *StreamHealthRequest) String() string { return "TODO" }
2387
2388
2389
2390 // RealtimeStats contains information about the tablet status
2391 type RealtimeStats struct {
2392 // health_error is the last error we got from health check,
2393 // or empty is the server is healthy. This is used for subset selection,
2394 // we do not send queries to servers that are not healthy.
2395 HealthError string `protobuf:"bytes,1,opt,name=health_error,json=healthError" json:"health_error,omitempty"`
2396 // seconds_behind_master is populated for slaves only. It indicates
2397 // how far behind on (MySQL) replication a slave currently is. It is used
2398 // by clients for subset selection (so we don't try to send traffic
2399 // to tablets that are too far behind).
2400 // NOTE: This field must not be evaluated if "health_error" is not empty.
2401 // TODO(mberlin): Let's switch it to int64 instead?
2402 SecondsBehindMaster uint32 `protobuf:"varint,2,opt,name=seconds_behind_master,json=secondsBehindMaster" json:"seconds_behind_master,omitempty"`
2403 // bin_log_players_count is the number of currently running binlog players.
2404 // if the value is 0, it means that filtered replication is currently not
2405 // running on the tablet. If >0, filtered replication is running.
2406 // NOTE: This field must not be evaluated if "health_error" is not empty.
2407 BinlogPlayersCount int32 `protobuf:"varint,3,opt,name=binlog_players_count,json=binlogPlayersCount" json:"binlog_players_count,omitempty"`
2408 // seconds_behind_master_filtered_replication is populated for the receiving
2409 // master of an ongoing filtered replication only.
2410 // It specifies how far the receiving master lags behind the sending master.
2411 // NOTE: This field must not be evaluated if "health_error" is not empty.
2412 // NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
2413 SecondsBehindMasterFilteredReplication int64 `protobuf:"varint,4,opt,name=seconds_behind_master_filtered_replication,json=secondsBehindMasterFilteredReplication" json:"seconds_behind_master_filtered_replication,omitempty"`
2414 // cpu_usage is used for load-based balancing
2415 CpuUsage float64 `protobuf:"fixed64,5,opt,name=cpu_usage,json=cpuUsage" json:"cpu_usage,omitempty"`
2416 // qps is the average QPS (queries per second) rate in the last XX seconds
2417 // where XX is usually 60 (See query_service_stats.go).
2418 Qps float64 `protobuf:"fixed64,6,opt,name=qps" json:"qps,omitempty"`
2419 }
2420
2421 func (m *RealtimeStats) Reset() { *m = RealtimeStats{} }
2422 func (m *RealtimeStats) String() string { return "TODO" }
2423
2424
2425
2426 func (m *RealtimeStats) GetHealthError() string {
2427 if m != nil {
2428 return m.HealthError
2429 }
2430 return ""
2431 }
2432
2433 func (m *RealtimeStats) GetSecondsBehindMaster() uint32 {
2434 if m != nil {
2435 return m.SecondsBehindMaster
2436 }
2437 return 0
2438 }
2439
2440 func (m *RealtimeStats) GetBinlogPlayersCount() int32 {
2441 if m != nil {
2442 return m.BinlogPlayersCount
2443 }
2444 return 0
2445 }
2446
2447 func (m *RealtimeStats) GetSecondsBehindMasterFilteredReplication() int64 {
2448 if m != nil {
2449 return m.SecondsBehindMasterFilteredReplication
2450 }
2451 return 0
2452 }
2453
2454 func (m *RealtimeStats) GetCpuUsage() float64 {
2455 if m != nil {
2456 return m.CpuUsage
2457 }
2458 return 0
2459 }
2460
2461 func (m *RealtimeStats) GetQps() float64 {
2462 if m != nil {
2463 return m.Qps
2464 }
2465 return 0
2466 }
2467
2468 // StreamHealthResponse is streamed by StreamHealth on a regular basis
2469 type StreamHealthResponse struct {
2470 // target is the current server type. Only queries with that exact Target
2471 // record will be accepted.
2472 Target *Target `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
2473 // serving is true iff the tablet is serving. A tablet may not be serving
2474 // if filtered replication is enabled on a master for instance,
2475 // or if a replica should not be used because the keyspace is being resharded.
2476 Serving bool `protobuf:"varint,2,opt,name=serving" json:"serving,omitempty"`
2477 // tablet_externally_reparented_timestamp can be interpreted as the last time
2478 // we knew that this tablet was the MASTER of this shard.
2479 //
2480 // It is used by vtgate when determining the current MASTER of a shard.
2481 // If vtgate sees more than one MASTER tablet, this timestamp is used
2482 // as tiebreaker where the MASTER with the highest timestamp wins.
2483 // Another usage of this timestamp is in go/vt/vtgate/buffer to detect the end
2484 // of a reparent (failover) and stop buffering.
2485 //
2486 // In practice, this field is set to:
2487 // a) the last time the RPC tabletmanager.TabletExternallyReparented was
2488 // called on this tablet (usually done by an external failover tool e.g.
2489 // Orchestrator). The failover tool can call this as long as we are the
2490 // master i.e. even ages after the last reparent occurred.
2491 // OR
2492 // b) the last time an active reparent was executed through a vtctl command
2493 // (InitShardMaster, PlannedReparentShard, EmergencyReparentShard)
2494 // OR
2495 // c) the last time vttablet was started and it initialized its tablet type
2496 // as MASTER because it was recorded as the shard's current master in the
2497 // topology (see go/vt/vttablet/tabletmanager/init_tablet.go)
2498 // OR
2499 // d) 0 if the vttablet was never a MASTER.
2500 TabletExternallyReparentedTimestamp int64 `protobuf:"varint,3,opt,name=tablet_externally_reparented_timestamp,json=tabletExternallyReparentedTimestamp" json:"tablet_externally_reparented_timestamp,omitempty"`
2501 // realtime_stats contains information about the tablet status
2502 RealtimeStats *RealtimeStats `protobuf:"bytes,4,opt,name=realtime_stats,json=realtimeStats" json:"realtime_stats,omitempty"`
2503 // tablet_alias is the alias of the sending tablet. The discovery/healthcheck.go
2504 // code uses it to verify that it's talking to the correct tablet and that it
2505 // hasn't changed in the meantime e.g. due to tablet restarts where ports or
2506 // ips have been reused but assigned differently.
2507 TabletAlias *topodata.TabletAlias `protobuf:"bytes,5,opt,name=tablet_alias,json=tabletAlias" json:"tablet_alias,omitempty"`
2508 }
2509
2510 func (m *StreamHealthResponse) Reset() { *m = StreamHealthResponse{} }
2511 func (m *StreamHealthResponse) String() string { return "TODO" }
2512
2513
2514
2515 func (m *StreamHealthResponse) GetTarget() *Target {
2516 if m != nil {
2517 return m.Target
2518 }
2519 return nil
2520 }
2521
2522 func (m *StreamHealthResponse) GetServing() bool {
2523 if m != nil {
2524 return m.Serving
2525 }
2526 return false
2527 }
2528
2529 func (m *StreamHealthResponse) GetTabletExternallyReparentedTimestamp() int64 {
2530 if m != nil {
2531 return m.TabletExternallyReparentedTimestamp
2532 }
2533 return 0
2534 }
2535
2536 func (m *StreamHealthResponse) GetRealtimeStats() *RealtimeStats {
2537 if m != nil {
2538 return m.RealtimeStats
2539 }
2540 return nil
2541 }
2542
2543 func (m *StreamHealthResponse) GetTabletAlias() *topodata.TabletAlias {
2544 if m != nil {
2545 return m.TabletAlias
2546 }
2547 return nil
2548 }
2549
2550 // UpdateStreamRequest is the payload for UpdateStream. At most one of
2551 // position and timestamp can be set. If neither is set, we will start
2552 // streaming from the current binlog position.
2553 type UpdateStreamRequest struct {
2554 EffectiveCallerId *vtrpc.CallerID `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId" json:"effective_caller_id,omitempty"`
2555 ImmediateCallerId *VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId" json:"immediate_caller_id,omitempty"`
2556 Target *Target `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
2557 // If position is set, we will start the streaming from that replication
2558 // position. Incompatible with timestamp.
2559 Position string `protobuf:"bytes,4,opt,name=position" json:"position,omitempty"`
2560 // If timestamp is set, we will start the streaming from the first
2561 // event in the binlogs that have that timestamp. Incompatible with position.
2562 Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"`
2563 }
2564
2565 func (m *UpdateStreamRequest) Reset() { *m = UpdateStreamRequest{} }
2566 func (m *UpdateStreamRequest) String() string { return "TODO" }
2567
2568
2569
2570 func (m *UpdateStreamRequest) GetEffectiveCallerId() *vtrpc.CallerID {
2571 if m != nil {
2572 return m.EffectiveCallerId
2573 }
2574 return nil
2575 }
2576
2577 func (m *UpdateStreamRequest) GetImmediateCallerId() *VTGateCallerID {
2578 if m != nil {
2579 return m.ImmediateCallerId
2580 }
2581 return nil
2582 }
2583
2584 func (m *UpdateStreamRequest) GetTarget() *Target {
2585 if m != nil {
2586 return m.Target
2587 }
2588 return nil
2589 }
2590
2591 func (m *UpdateStreamRequest) GetPosition() string {
2592 if m != nil {
2593 return m.Position
2594 }
2595 return ""
2596 }
2597
2598 func (m *UpdateStreamRequest) GetTimestamp() int64 {
2599 if m != nil {
2600 return m.Timestamp
2601 }
2602 return 0
2603 }
2604
2605 // UpdateStreamResponse is returned by UpdateStream
2606 type UpdateStreamResponse struct {
2607 Event *StreamEvent `protobuf:"bytes,1,opt,name=event" json:"event,omitempty"`
2608 }
2609
2610 func (m *UpdateStreamResponse) Reset() { *m = UpdateStreamResponse{} }
2611 func (m *UpdateStreamResponse) String() string { return "TODO" }
2612
2613
2614
2615 func (m *UpdateStreamResponse) GetEvent() *StreamEvent {
2616 if m != nil {
2617 return m.Event
2618 }
2619 return nil
2620 }
2621
2622 // TransactionMetadata contains the metadata for a distributed transaction.
2623 type TransactionMetadata struct {
2624 Dtid string `protobuf:"bytes,1,opt,name=dtid" json:"dtid,omitempty"`
2625 State TransactionState `protobuf:"varint,2,opt,name=state,enum=query.TransactionState" json:"state,omitempty"`
2626 TimeCreated int64 `protobuf:"varint,3,opt,name=time_created,json=timeCreated" json:"time_created,omitempty"`
2627 Participants []*Target `protobuf:"bytes,4,rep,name=participants" json:"participants,omitempty"`
2628 }
2629
2630 func (m *TransactionMetadata) Reset() { *m = TransactionMetadata{} }
2631 func (m *TransactionMetadata) String() string { return "TODO" }
2632
2633
2634
2635 func (m *TransactionMetadata) GetDtid() string {
2636 if m != nil {
2637 return m.Dtid
2638 }
2639 return ""
2640 }
2641
2642 func (m *TransactionMetadata) GetState() TransactionState {
2643 if m != nil {
2644 return m.State
2645 }
2646 return TransactionState_UNKNOWN
2647 }
2648
2649 func (m *TransactionMetadata) GetTimeCreated() int64 {
2650 if m != nil {
2651 return m.TimeCreated
2652 }
2653 return 0
2654 }
2655
2656 func (m *TransactionMetadata) GetParticipants() []*Target {
2657 if m != nil {
2658 return m.Participants
2659 }
2660 return nil
2661 }
2662
2663 func init() {
2664 proto.RegisterType((*Target)(nil), "query.Target")
2665 proto.RegisterType((*VTGateCallerID)(nil), "query.VTGateCallerID")
2666 proto.RegisterType((*EventToken)(nil), "query.EventToken")
2667 proto.RegisterType((*Value)(nil), "query.Value")
2668 proto.RegisterType((*BindVariable)(nil), "query.BindVariable")
2669 proto.RegisterType((*BoundQuery)(nil), "query.BoundQuery")
2670 proto.RegisterType((*ExecuteOptions)(nil), "query.ExecuteOptions")
2671 proto.RegisterType((*Field)(nil), "query.Field")
2672 proto.RegisterType((*Row)(nil), "query.Row")
2673 proto.RegisterType((*ResultExtras)(nil), "query.ResultExtras")
2674 proto.RegisterType((*QueryResult)(nil), "query.QueryResult")
2675 proto.RegisterType((*StreamEvent)(nil), "query.StreamEvent")
2676 proto.RegisterType((*StreamEvent_Statement)(nil), "query.StreamEvent.Statement")
2677 proto.RegisterType((*ExecuteRequest)(nil), "query.ExecuteRequest")
2678 proto.RegisterType((*ExecuteResponse)(nil), "query.ExecuteResponse")
2679 proto.RegisterType((*ResultWithError)(nil), "query.ResultWithError")
2680 proto.RegisterType((*ExecuteBatchRequest)(nil), "query.ExecuteBatchRequest")
2681 proto.RegisterType((*ExecuteBatchResponse)(nil), "query.ExecuteBatchResponse")
2682 proto.RegisterType((*StreamExecuteRequest)(nil), "query.StreamExecuteRequest")
2683 proto.RegisterType((*StreamExecuteResponse)(nil), "query.StreamExecuteResponse")
2684 proto.RegisterType((*BeginRequest)(nil), "query.BeginRequest")
2685 proto.RegisterType((*BeginResponse)(nil), "query.BeginResponse")
2686 proto.RegisterType((*CommitRequest)(nil), "query.CommitRequest")
2687 proto.RegisterType((*CommitResponse)(nil), "query.CommitResponse")
2688 proto.RegisterType((*RollbackRequest)(nil), "query.RollbackRequest")
2689 proto.RegisterType((*RollbackResponse)(nil), "query.RollbackResponse")
2690 proto.RegisterType((*PrepareRequest)(nil), "query.PrepareRequest")
2691 proto.RegisterType((*PrepareResponse)(nil), "query.PrepareResponse")
2692 proto.RegisterType((*CommitPreparedRequest)(nil), "query.CommitPreparedRequest")
2693 proto.RegisterType((*CommitPreparedResponse)(nil), "query.CommitPreparedResponse")
2694 proto.RegisterType((*RollbackPreparedRequest)(nil), "query.RollbackPreparedRequest")
2695 proto.RegisterType((*RollbackPreparedResponse)(nil), "query.RollbackPreparedResponse")
2696 proto.RegisterType((*CreateTransactionRequest)(nil), "query.CreateTransactionRequest")
2697 proto.RegisterType((*CreateTransactionResponse)(nil), "query.CreateTransactionResponse")
2698 proto.RegisterType((*StartCommitRequest)(nil), "query.StartCommitRequest")
2699 proto.RegisterType((*StartCommitResponse)(nil), "query.StartCommitResponse")
2700 proto.RegisterType((*SetRollbackRequest)(nil), "query.SetRollbackRequest")
2701 proto.RegisterType((*SetRollbackResponse)(nil), "query.SetRollbackResponse")
2702 proto.RegisterType((*ConcludeTransactionRequest)(nil), "query.ConcludeTransactionRequest")
2703 proto.RegisterType((*ConcludeTransactionResponse)(nil), "query.ConcludeTransactionResponse")
2704 proto.RegisterType((*ReadTransactionRequest)(nil), "query.ReadTransactionRequest")
2705 proto.RegisterType((*ReadTransactionResponse)(nil), "query.ReadTransactionResponse")
2706 proto.RegisterType((*BeginExecuteRequest)(nil), "query.BeginExecuteRequest")
2707 proto.RegisterType((*BeginExecuteResponse)(nil), "query.BeginExecuteResponse")
2708 proto.RegisterType((*BeginExecuteBatchRequest)(nil), "query.BeginExecuteBatchRequest")
2709 proto.RegisterType((*BeginExecuteBatchResponse)(nil), "query.BeginExecuteBatchResponse")
2710 proto.RegisterType((*MessageStreamRequest)(nil), "query.MessageStreamRequest")
2711 proto.RegisterType((*MessageStreamResponse)(nil), "query.MessageStreamResponse")
2712 proto.RegisterType((*MessageAckRequest)(nil), "query.MessageAckRequest")
2713 proto.RegisterType((*MessageAckResponse)(nil), "query.MessageAckResponse")
2714 proto.RegisterType((*SplitQueryRequest)(nil), "query.SplitQueryRequest")
2715 proto.RegisterType((*QuerySplit)(nil), "query.QuerySplit")
2716 proto.RegisterType((*SplitQueryResponse)(nil), "query.SplitQueryResponse")
2717 proto.RegisterType((*StreamHealthRequest)(nil), "query.StreamHealthRequest")
2718 proto.RegisterType((*RealtimeStats)(nil), "query.RealtimeStats")
2719 proto.RegisterType((*StreamHealthResponse)(nil), "query.StreamHealthResponse")
2720 proto.RegisterType((*UpdateStreamRequest)(nil), "query.UpdateStreamRequest")
2721 proto.RegisterType((*UpdateStreamResponse)(nil), "query.UpdateStreamResponse")
2722 proto.RegisterType((*TransactionMetadata)(nil), "query.TransactionMetadata")
2723 proto.RegisterEnum("query.MySqlFlag", MySqlFlag_name, MySqlFlag_value)
2724 proto.RegisterEnum("query.Flag", Flag_name, Flag_value)
2725 proto.RegisterEnum("query.Type", Type_name, Type_value)
2726 proto.RegisterEnum("query.TransactionState", TransactionState_name, TransactionState_value)
2727 proto.RegisterEnum("query.ExecuteOptions_IncludedFields", ExecuteOptions_IncludedFields_name, ExecuteOptions_IncludedFields_value)
2728 proto.RegisterEnum("query.ExecuteOptions_Workload", ExecuteOptions_Workload_name, ExecuteOptions_Workload_value)
2729 proto.RegisterEnum("query.ExecuteOptions_TransactionIsolation", ExecuteOptions_TransactionIsolation_name, ExecuteOptions_TransactionIsolation_value)
2730 proto.RegisterEnum("query.StreamEvent_Statement_Category", StreamEvent_Statement_Category_name, StreamEvent_Statement_Category_value)
2731 proto.RegisterEnum("query.SplitQueryRequest_Algorithm", SplitQueryRequest_Algorithm_name, SplitQueryRequest_Algorithm_value)
2732 }
2733
2734 */