/
mysqlx_notice.pb.go
452 lines (404 loc) · 16.3 KB
/
mysqlx_notice.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mysqlx_notice.proto
/*
Package mysqlx_notice is a generated protocol buffer package.
Notices
A notice
* is sent from the server to the client
* may be global or relate to the current message sequence
It is generated from these files:
mysqlx_notice.proto
It has these top-level messages:
Frame
Warning
SessionVariableChanged
SessionStateChanged
*/
package mysqlx_notice
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/AlekSi/mysqlx/internal/proto/mysqlx"
import Mysqlx_Datatypes "github.com/AlekSi/mysqlx/internal/proto/mysqlx_datatypes"
// 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 Frame_Scope int32
const (
Frame_GLOBAL Frame_Scope = 1
Frame_LOCAL Frame_Scope = 2
)
var Frame_Scope_name = map[int32]string{
1: "GLOBAL",
2: "LOCAL",
}
var Frame_Scope_value = map[string]int32{
"GLOBAL": 1,
"LOCAL": 2,
}
func (x Frame_Scope) Enum() *Frame_Scope {
p := new(Frame_Scope)
*p = x
return p
}
func (x Frame_Scope) String() string {
return proto.EnumName(Frame_Scope_name, int32(x))
}
func (x *Frame_Scope) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Frame_Scope_value, data, "Frame_Scope")
if err != nil {
return err
}
*x = Frame_Scope(value)
return nil
}
func (Frame_Scope) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type Frame_Type int32
const (
Frame_WARNING Frame_Type = 1
Frame_SESSION_VARIABLE_CHANGED Frame_Type = 2
Frame_SESSION_STATE_CHANGED Frame_Type = 3
)
var Frame_Type_name = map[int32]string{
1: "WARNING",
2: "SESSION_VARIABLE_CHANGED",
3: "SESSION_STATE_CHANGED",
}
var Frame_Type_value = map[string]int32{
"WARNING": 1,
"SESSION_VARIABLE_CHANGED": 2,
"SESSION_STATE_CHANGED": 3,
}
func (x Frame_Type) Enum() *Frame_Type {
p := new(Frame_Type)
*p = x
return p
}
func (x Frame_Type) String() string {
return proto.EnumName(Frame_Type_name, int32(x))
}
func (x *Frame_Type) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Frame_Type_value, data, "Frame_Type")
if err != nil {
return err
}
*x = Frame_Type(value)
return nil
}
func (Frame_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
type Warning_Level int32
const (
Warning_NOTE Warning_Level = 1
Warning_WARNING Warning_Level = 2
Warning_ERROR Warning_Level = 3
)
var Warning_Level_name = map[int32]string{
1: "NOTE",
2: "WARNING",
3: "ERROR",
}
var Warning_Level_value = map[string]int32{
"NOTE": 1,
"WARNING": 2,
"ERROR": 3,
}
func (x Warning_Level) Enum() *Warning_Level {
p := new(Warning_Level)
*p = x
return p
}
func (x Warning_Level) String() string {
return proto.EnumName(Warning_Level_name, int32(x))
}
func (x *Warning_Level) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Warning_Level_value, data, "Warning_Level")
if err != nil {
return err
}
*x = Warning_Level(value)
return nil
}
func (Warning_Level) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
type SessionStateChanged_Parameter int32
const (
SessionStateChanged_CURRENT_SCHEMA SessionStateChanged_Parameter = 1
SessionStateChanged_ACCOUNT_EXPIRED SessionStateChanged_Parameter = 2
SessionStateChanged_GENERATED_INSERT_ID SessionStateChanged_Parameter = 3
SessionStateChanged_ROWS_AFFECTED SessionStateChanged_Parameter = 4
SessionStateChanged_ROWS_FOUND SessionStateChanged_Parameter = 5
SessionStateChanged_ROWS_MATCHED SessionStateChanged_Parameter = 6
SessionStateChanged_TRX_COMMITTED SessionStateChanged_Parameter = 7
SessionStateChanged_TRX_ROLLEDBACK SessionStateChanged_Parameter = 9
SessionStateChanged_PRODUCED_MESSAGE SessionStateChanged_Parameter = 10
SessionStateChanged_CLIENT_ID_ASSIGNED SessionStateChanged_Parameter = 11
)
var SessionStateChanged_Parameter_name = map[int32]string{
1: "CURRENT_SCHEMA",
2: "ACCOUNT_EXPIRED",
3: "GENERATED_INSERT_ID",
4: "ROWS_AFFECTED",
5: "ROWS_FOUND",
6: "ROWS_MATCHED",
7: "TRX_COMMITTED",
9: "TRX_ROLLEDBACK",
10: "PRODUCED_MESSAGE",
11: "CLIENT_ID_ASSIGNED",
}
var SessionStateChanged_Parameter_value = map[string]int32{
"CURRENT_SCHEMA": 1,
"ACCOUNT_EXPIRED": 2,
"GENERATED_INSERT_ID": 3,
"ROWS_AFFECTED": 4,
"ROWS_FOUND": 5,
"ROWS_MATCHED": 6,
"TRX_COMMITTED": 7,
"TRX_ROLLEDBACK": 9,
"PRODUCED_MESSAGE": 10,
"CLIENT_ID_ASSIGNED": 11,
}
func (x SessionStateChanged_Parameter) Enum() *SessionStateChanged_Parameter {
p := new(SessionStateChanged_Parameter)
*p = x
return p
}
func (x SessionStateChanged_Parameter) String() string {
return proto.EnumName(SessionStateChanged_Parameter_name, int32(x))
}
func (x *SessionStateChanged_Parameter) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(SessionStateChanged_Parameter_value, data, "SessionStateChanged_Parameter")
if err != nil {
return err
}
*x = SessionStateChanged_Parameter(value)
return nil
}
func (SessionStateChanged_Parameter) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{3, 0}
}
// Common Frame for all Notices
//
// ===================================================== =====
// .type value
// ===================================================== =====
// :protobuf:msg:`Mysqlx.Notice::Warning` 1
// :protobuf:msg:`Mysqlx.Notice::SessionVariableChanged` 2
// :protobuf:msg:`Mysqlx.Notice::SessionStateChanged` 3
// ===================================================== =====
//
// :param type: the type of the payload
// :param payload: the payload of the notification
// :param scope: global or local notification
//
type Frame struct {
Type *uint32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"`
Scope *Frame_Scope `protobuf:"varint,2,opt,name=scope,enum=Mysqlx.Notice.Frame_Scope,def=1" json:"scope,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Frame) Reset() { *m = Frame{} }
func (m *Frame) String() string { return proto.CompactTextString(m) }
func (*Frame) ProtoMessage() {}
func (*Frame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
const Default_Frame_Scope Frame_Scope = Frame_GLOBAL
func (m *Frame) GetType() uint32 {
if m != nil && m.Type != nil {
return *m.Type
}
return 0
}
func (m *Frame) GetScope() Frame_Scope {
if m != nil && m.Scope != nil {
return *m.Scope
}
return Default_Frame_Scope
}
func (m *Frame) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
// Server-side warnings and notes
//
// ``.scope`` == ``local``
// ``.level``, ``.code`` and ``.msg`` map the content of
//
// .. code-block:: sql
//
// SHOW WARNINGS
//
// ``.scope`` == ``global``
// (undefined) will be used for global, unstructured messages like:
//
// * server is shutting down
// * a node disconnected from group
// * schema or table dropped
//
// ========================================== =======================
// :protobuf:msg:`Mysqlx.Notice::Frame` field value
// ========================================== =======================
// ``.type`` 1
// ``.scope`` ``local`` or ``global``
// ========================================== =======================
//
// :param level: warning level: Note or Warning
// :param code: warning code
// :param msg: warning message
type Warning struct {
Level *Warning_Level `protobuf:"varint,1,opt,name=level,enum=Mysqlx.Notice.Warning_Level,def=2" json:"level,omitempty"`
Code *uint32 `protobuf:"varint,2,req,name=code" json:"code,omitempty"`
Msg *string `protobuf:"bytes,3,req,name=msg" json:"msg,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Warning) Reset() { *m = Warning{} }
func (m *Warning) String() string { return proto.CompactTextString(m) }
func (*Warning) ProtoMessage() {}
func (*Warning) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
const Default_Warning_Level Warning_Level = Warning_WARNING
func (m *Warning) GetLevel() Warning_Level {
if m != nil && m.Level != nil {
return *m.Level
}
return Default_Warning_Level
}
func (m *Warning) GetCode() uint32 {
if m != nil && m.Code != nil {
return *m.Code
}
return 0
}
func (m *Warning) GetMsg() string {
if m != nil && m.Msg != nil {
return *m.Msg
}
return ""
}
// Notify clients about changes to the current session variables
//
// Every change to a variable that is accessible through:
//
// .. code-block:: sql
//
// SHOW SESSION VARIABLES
//
// ========================================== =========
// :protobuf:msg:`Mysqlx.Notice::Frame` field value
// ========================================== =========
// ``.type`` 2
// ``.scope`` ``local``
// ========================================== =========
//
// :param namespace: namespace that param belongs to
// :param param: name of the variable
// :param value: the changed value of param
type SessionVariableChanged struct {
Param *string `protobuf:"bytes,1,req,name=param" json:"param,omitempty"`
Value *Mysqlx_Datatypes.Scalar `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *SessionVariableChanged) Reset() { *m = SessionVariableChanged{} }
func (m *SessionVariableChanged) String() string { return proto.CompactTextString(m) }
func (*SessionVariableChanged) ProtoMessage() {}
func (*SessionVariableChanged) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *SessionVariableChanged) GetParam() string {
if m != nil && m.Param != nil {
return *m.Param
}
return ""
}
func (m *SessionVariableChanged) GetValue() *Mysqlx_Datatypes.Scalar {
if m != nil {
return m.Value
}
return nil
}
// Notify clients about changes to the internal session state
//
// ========================================== =========
// :protobuf:msg:`Mysqlx.Notice::Frame` field value
// ========================================== =========
// ``.type`` 3
// ``.scope`` ``local``
// ========================================== =========
//
// :param param: parameter key
// :param value: updated value
type SessionStateChanged struct {
Param *SessionStateChanged_Parameter `protobuf:"varint,1,req,name=param,enum=Mysqlx.Notice.SessionStateChanged_Parameter" json:"param,omitempty"`
Value *Mysqlx_Datatypes.Scalar `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *SessionStateChanged) Reset() { *m = SessionStateChanged{} }
func (m *SessionStateChanged) String() string { return proto.CompactTextString(m) }
func (*SessionStateChanged) ProtoMessage() {}
func (*SessionStateChanged) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SessionStateChanged) GetParam() SessionStateChanged_Parameter {
if m != nil && m.Param != nil {
return *m.Param
}
return SessionStateChanged_CURRENT_SCHEMA
}
func (m *SessionStateChanged) GetValue() *Mysqlx_Datatypes.Scalar {
if m != nil {
return m.Value
}
return nil
}
func init() {
proto.RegisterType((*Frame)(nil), "Mysqlx.Notice.Frame")
proto.RegisterType((*Warning)(nil), "Mysqlx.Notice.Warning")
proto.RegisterType((*SessionVariableChanged)(nil), "Mysqlx.Notice.SessionVariableChanged")
proto.RegisterType((*SessionStateChanged)(nil), "Mysqlx.Notice.SessionStateChanged")
proto.RegisterEnum("Mysqlx.Notice.Frame_Scope", Frame_Scope_name, Frame_Scope_value)
proto.RegisterEnum("Mysqlx.Notice.Frame_Type", Frame_Type_name, Frame_Type_value)
proto.RegisterEnum("Mysqlx.Notice.Warning_Level", Warning_Level_name, Warning_Level_value)
proto.RegisterEnum("Mysqlx.Notice.SessionStateChanged_Parameter", SessionStateChanged_Parameter_name, SessionStateChanged_Parameter_value)
}
func init() { proto.RegisterFile("mysqlx_notice.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 595 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xc7, 0x65, 0x27, 0x6e, 0xc8, 0xa4, 0x0d, 0xcb, 0xa6, 0xb4, 0x6e, 0x55, 0xa1, 0xc8, 0xa7,
0x20, 0x21, 0x0b, 0xf5, 0x84, 0xca, 0x69, 0xb3, 0xde, 0xa4, 0x16, 0x8e, 0x5d, 0xed, 0x3a, 0x6d,
0x4f, 0x58, 0xdb, 0xc4, 0x94, 0x20, 0x27, 0x0e, 0x8e, 0x5b, 0xd1, 0xb7, 0xe0, 0xc6, 0xa3, 0xf1,
0x00, 0xbd, 0xf1, 0x14, 0x68, 0xd7, 0x49, 0x29, 0x15, 0x27, 0x6e, 0x3b, 0x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