forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 13
/
binlogdata.pb.go
339 lines (296 loc) · 13.6 KB
/
binlogdata.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: binlogdata.proto
/*
Package binlogdata is a generated protocol buffer package.
It is generated from these files:
binlogdata.proto
It has these top-level messages:
Charset
BinlogTransaction
StreamKeyRangeRequest
StreamKeyRangeResponse
StreamTablesRequest
StreamTablesResponse
*/
package binlogdata
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import query "vitess.io/vitess/go/vt/proto/query"
import topodata "vitess.io/vitess/go/vt/proto/topodata"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type BinlogTransaction_Statement_Category int32
const (
BinlogTransaction_Statement_BL_UNRECOGNIZED BinlogTransaction_Statement_Category = 0
BinlogTransaction_Statement_BL_BEGIN BinlogTransaction_Statement_Category = 1
BinlogTransaction_Statement_BL_COMMIT BinlogTransaction_Statement_Category = 2
BinlogTransaction_Statement_BL_ROLLBACK BinlogTransaction_Statement_Category = 3
// BL_DML is deprecated.
BinlogTransaction_Statement_BL_DML_DEPRECATED BinlogTransaction_Statement_Category = 4
BinlogTransaction_Statement_BL_DDL BinlogTransaction_Statement_Category = 5
BinlogTransaction_Statement_BL_SET BinlogTransaction_Statement_Category = 6
BinlogTransaction_Statement_BL_INSERT BinlogTransaction_Statement_Category = 7
BinlogTransaction_Statement_BL_UPDATE BinlogTransaction_Statement_Category = 8
BinlogTransaction_Statement_BL_DELETE BinlogTransaction_Statement_Category = 9
)
var BinlogTransaction_Statement_Category_name = map[int32]string{
0: "BL_UNRECOGNIZED",
1: "BL_BEGIN",
2: "BL_COMMIT",
3: "BL_ROLLBACK",
4: "BL_DML_DEPRECATED",
5: "BL_DDL",
6: "BL_SET",
7: "BL_INSERT",
8: "BL_UPDATE",
9: "BL_DELETE",
}
var BinlogTransaction_Statement_Category_value = map[string]int32{
"BL_UNRECOGNIZED": 0,
"BL_BEGIN": 1,
"BL_COMMIT": 2,
"BL_ROLLBACK": 3,
"BL_DML_DEPRECATED": 4,
"BL_DDL": 5,
"BL_SET": 6,
"BL_INSERT": 7,
"BL_UPDATE": 8,
"BL_DELETE": 9,
}
func (x BinlogTransaction_Statement_Category) String() string {
return proto.EnumName(BinlogTransaction_Statement_Category_name, int32(x))
}
func (BinlogTransaction_Statement_Category) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{1, 0, 0}
}
// Charset is the per-statement charset info from a QUERY_EVENT binlog entry.
type Charset struct {
// @@session.character_set_client
Client int32 `protobuf:"varint,1,opt,name=client" json:"client,omitempty"`
// @@session.collation_connection
Conn int32 `protobuf:"varint,2,opt,name=conn" json:"conn,omitempty"`
// @@session.collation_server
Server int32 `protobuf:"varint,3,opt,name=server" json:"server,omitempty"`
}
func (m *Charset) Reset() { *m = Charset{} }
func (m *Charset) String() string { return proto.CompactTextString(m) }
func (*Charset) ProtoMessage() {}
func (*Charset) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Charset) GetClient() int32 {
if m != nil {
return m.Client
}
return 0
}
func (m *Charset) GetConn() int32 {
if m != nil {
return m.Conn
}
return 0
}
func (m *Charset) GetServer() int32 {
if m != nil {
return m.Server
}
return 0
}
// BinlogTransaction describes a transaction inside the binlogs.
// It is streamed by vttablet for filtered replication, used during resharding.
type BinlogTransaction struct {
// the statements in this transaction
Statements []*BinlogTransaction_Statement `protobuf:"bytes,1,rep,name=statements" json:"statements,omitempty"`
// The Event Token for this event.
EventToken *query.EventToken `protobuf:"bytes,4,opt,name=event_token,json=eventToken" json:"event_token,omitempty"`
}
func (m *BinlogTransaction) Reset() { *m = BinlogTransaction{} }
func (m *BinlogTransaction) String() string { return proto.CompactTextString(m) }
func (*BinlogTransaction) ProtoMessage() {}
func (*BinlogTransaction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *BinlogTransaction) GetStatements() []*BinlogTransaction_Statement {
if m != nil {
return m.Statements
}
return nil
}
func (m *BinlogTransaction) GetEventToken() *query.EventToken {
if m != nil {
return m.EventToken
}
return nil
}
type BinlogTransaction_Statement struct {
// what type of statement is this?
Category BinlogTransaction_Statement_Category `protobuf:"varint,1,opt,name=category,enum=binlogdata.BinlogTransaction_Statement_Category" json:"category,omitempty"`
// charset of this statement, if different from pre-negotiated default.
Charset *Charset `protobuf:"bytes,2,opt,name=charset" json:"charset,omitempty"`
// the sql
Sql []byte `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"`
}
func (m *BinlogTransaction_Statement) Reset() { *m = BinlogTransaction_Statement{} }
func (m *BinlogTransaction_Statement) String() string { return proto.CompactTextString(m) }
func (*BinlogTransaction_Statement) ProtoMessage() {}
func (*BinlogTransaction_Statement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
func (m *BinlogTransaction_Statement) GetCategory() BinlogTransaction_Statement_Category {
if m != nil {
return m.Category
}
return BinlogTransaction_Statement_BL_UNRECOGNIZED
}
func (m *BinlogTransaction_Statement) GetCharset() *Charset {
if m != nil {
return m.Charset
}
return nil
}
func (m *BinlogTransaction_Statement) GetSql() []byte {
if m != nil {
return m.Sql
}
return nil
}
// StreamKeyRangeRequest is the payload to StreamKeyRange
type StreamKeyRangeRequest struct {
// where to start
Position string `protobuf:"bytes,1,opt,name=position" json:"position,omitempty"`
// what to get
KeyRange *topodata.KeyRange `protobuf:"bytes,2,opt,name=key_range,json=keyRange" json:"key_range,omitempty"`
// default charset on the player side
Charset *Charset `protobuf:"bytes,3,opt,name=charset" json:"charset,omitempty"`
}
func (m *StreamKeyRangeRequest) Reset() { *m = StreamKeyRangeRequest{} }
func (m *StreamKeyRangeRequest) String() string { return proto.CompactTextString(m) }
func (*StreamKeyRangeRequest) ProtoMessage() {}
func (*StreamKeyRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *StreamKeyRangeRequest) GetPosition() string {
if m != nil {
return m.Position
}
return ""
}
func (m *StreamKeyRangeRequest) GetKeyRange() *topodata.KeyRange {
if m != nil {
return m.KeyRange
}
return nil
}
func (m *StreamKeyRangeRequest) GetCharset() *Charset {
if m != nil {
return m.Charset
}
return nil
}
// StreamKeyRangeResponse is the response from StreamKeyRange
type StreamKeyRangeResponse struct {
BinlogTransaction *BinlogTransaction `protobuf:"bytes,1,opt,name=binlog_transaction,json=binlogTransaction" json:"binlog_transaction,omitempty"`
}
func (m *StreamKeyRangeResponse) Reset() { *m = StreamKeyRangeResponse{} }
func (m *StreamKeyRangeResponse) String() string { return proto.CompactTextString(m) }
func (*StreamKeyRangeResponse) ProtoMessage() {}
func (*StreamKeyRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *StreamKeyRangeResponse) GetBinlogTransaction() *BinlogTransaction {
if m != nil {
return m.BinlogTransaction
}
return nil
}
// StreamTablesRequest is the payload to StreamTables
type StreamTablesRequest struct {
// where to start
Position string `protobuf:"bytes,1,opt,name=position" json:"position,omitempty"`
// what to get
Tables []string `protobuf:"bytes,2,rep,name=tables" json:"tables,omitempty"`
// default charset on the player side
Charset *Charset `protobuf:"bytes,3,opt,name=charset" json:"charset,omitempty"`
}
func (m *StreamTablesRequest) Reset() { *m = StreamTablesRequest{} }
func (m *StreamTablesRequest) String() string { return proto.CompactTextString(m) }
func (*StreamTablesRequest) ProtoMessage() {}
func (*StreamTablesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *StreamTablesRequest) GetPosition() string {
if m != nil {
return m.Position
}
return ""
}
func (m *StreamTablesRequest) GetTables() []string {
if m != nil {
return m.Tables
}
return nil
}
func (m *StreamTablesRequest) GetCharset() *Charset {
if m != nil {
return m.Charset
}
return nil
}
// StreamTablesResponse is the response from StreamTables
type StreamTablesResponse struct {
BinlogTransaction *BinlogTransaction `protobuf:"bytes,1,opt,name=binlog_transaction,json=binlogTransaction" json:"binlog_transaction,omitempty"`
}
func (m *StreamTablesResponse) Reset() { *m = StreamTablesResponse{} }
func (m *StreamTablesResponse) String() string { return proto.CompactTextString(m) }
func (*StreamTablesResponse) ProtoMessage() {}
func (*StreamTablesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *StreamTablesResponse) GetBinlogTransaction() *BinlogTransaction {
if m != nil {
return m.BinlogTransaction
}
return nil
}
func init() {
proto.RegisterType((*Charset)(nil), "binlogdata.Charset")
proto.RegisterType((*BinlogTransaction)(nil), "binlogdata.BinlogTransaction")
proto.RegisterType((*BinlogTransaction_Statement)(nil), "binlogdata.BinlogTransaction.Statement")
proto.RegisterType((*StreamKeyRangeRequest)(nil), "binlogdata.StreamKeyRangeRequest")
proto.RegisterType((*StreamKeyRangeResponse)(nil), "binlogdata.StreamKeyRangeResponse")
proto.RegisterType((*StreamTablesRequest)(nil), "binlogdata.StreamTablesRequest")
proto.RegisterType((*StreamTablesResponse)(nil), "binlogdata.StreamTablesResponse")
proto.RegisterEnum("binlogdata.BinlogTransaction_Statement_Category", BinlogTransaction_Statement_Category_name, BinlogTransaction_Statement_Category_value)
}
func init() { proto.RegisterFile("binlogdata.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 540 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x5d, 0x6e, 0xda, 0x40,
0x10, 0xae, 0xb1, 0x43, 0xec, 0x71, 0x9a, 0x2c, 0x9b, 0x26, 0xb2, 0x90, 0x2a, 0x21, 0xbf, 0x94,
0x97, 0xba, 0x95, 0x7b, 0x02, 0x6c, 0xaf, 0x10, 0xc9, 0x02, 0xd1, 0xe2, 0xbc, 0xf4, 0xc5, 0x32,
0x64, 0x4b, 0x11, 0xc4, 0x06, 0xef, 0x26, 0x2a, 0xe7, 0xe8, 0x29, 0x7a, 0x91, 0xde, 0xa4, 0xf7,
0xa8, 0xfc, 0x83, 0xa1, 0xa9, 0xd4, 0xa6, 0x0f, 0x7d, 0x9b, 0x6f, 0xe6, 0x9b, 0x6f, 0x66, 0x3e,
0xaf, 0x0c, 0x68, 0xba, 0x48, 0x56, 0xe9, 0xfc, 0x2e, 0x96, 0xb1, 0xb3, 0xce, 0x52, 0x99, 0x62,
0xd8, 0x67, 0xda, 0xe6, 0xe6, 0x81, 0x67, 0xdb, 0xb2, 0xd0, 0x3e, 0x95, 0xe9, 0x3a, 0xdd, 0x13,
0xed, 0x21, 0x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