-
Notifications
You must be signed in to change notification settings - Fork 120
/
proxysql.pb.go
574 lines (517 loc) · 24 KB
/
proxysql.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: managementpb/proxysql.proto
package managementpb
import (
context "context"
proto "github.com/golang/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
inventorypb "github.com/percona/pmm/api/inventorypb"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type AddProxySQLRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Node identifier on which a service is been running.
// Exactly one of these parameters should be present: node_id, node_name, add_node.
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// Node name on which a service is been running.
// Exactly one of these parameters should be present: node_id, node_name, add_node.
NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
// Create a new Node with those parameters.
// Exactly one of these parameters should be present: node_id, node_name, add_node.
AddNode *AddNodeParams `protobuf:"bytes,3,opt,name=add_node,json=addNode,proto3" json:"add_node,omitempty"`
// Unique across all Services user-defined name. Required.
ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// Node and Service access address (DNS name or IP).
// Address (and port) or socket is required.
Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
// Service Access port.
// Port is required when the address present.
Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
// Service Access socket.
// Address (and port) or socket is required.
Socket string `protobuf:"bytes,17,opt,name=socket,proto3" json:"socket,omitempty"`
// The "pmm-agent" identifier which should run agents. Required.
PmmAgentId string `protobuf:"bytes,7,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"`
// Environment name.
Environment string `protobuf:"bytes,8,opt,name=environment,proto3" json:"environment,omitempty"`
// Cluster name.
Cluster string `protobuf:"bytes,9,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Replication set name.
ReplicationSet string `protobuf:"bytes,10,opt,name=replication_set,json=replicationSet,proto3" json:"replication_set,omitempty"`
// ProxySQL username for scraping metrics.
Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty"`
// ProxySQL password for scraping metrics.
Password string `protobuf:"bytes,12,opt,name=password,proto3" json:"password,omitempty"`
// Custom user-assigned labels for Service.
CustomLabels map[string]string `protobuf:"bytes,13,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Skip connection check.
SkipConnectionCheck bool `protobuf:"varint,14,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"`
// Use TLS for database connections.
Tls bool `protobuf:"varint,15,opt,name=tls,proto3" json:"tls,omitempty"`
// Skip TLS certificate and hostname validation.
TlsSkipVerify bool `protobuf:"varint,16,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"`
// Defines metrics flow model for this exporter.
// Metrics could be pushed to the server with vmagent,
// pulled by the server, or the server could choose behavior automatically.
MetricsMode MetricsMode `protobuf:"varint,18,opt,name=metrics_mode,json=metricsMode,proto3,enum=management.MetricsMode" json:"metrics_mode,omitempty"`
// List of collector names to disable in this exporter.
DisableCollectors []string `protobuf:"bytes,19,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"`
}
func (x *AddProxySQLRequest) Reset() {
*x = AddProxySQLRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_managementpb_proxysql_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddProxySQLRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddProxySQLRequest) ProtoMessage() {}
func (x *AddProxySQLRequest) ProtoReflect() protoreflect.Message {
mi := &file_managementpb_proxysql_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddProxySQLRequest.ProtoReflect.Descriptor instead.
func (*AddProxySQLRequest) Descriptor() ([]byte, []int) {
return file_managementpb_proxysql_proto_rawDescGZIP(), []int{0}
}
func (x *AddProxySQLRequest) GetNodeId() string {
if x != nil {
return x.NodeId
}
return ""
}
func (x *AddProxySQLRequest) GetNodeName() string {
if x != nil {
return x.NodeName
}
return ""
}
func (x *AddProxySQLRequest) GetAddNode() *AddNodeParams {
if x != nil {
return x.AddNode
}
return nil
}
func (x *AddProxySQLRequest) GetServiceName() string {
if x != nil {
return x.ServiceName
}
return ""
}
func (x *AddProxySQLRequest) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *AddProxySQLRequest) GetPort() uint32 {
if x != nil {
return x.Port
}
return 0
}
func (x *AddProxySQLRequest) GetSocket() string {
if x != nil {
return x.Socket
}
return ""
}
func (x *AddProxySQLRequest) GetPmmAgentId() string {
if x != nil {
return x.PmmAgentId
}
return ""
}
func (x *AddProxySQLRequest) GetEnvironment() string {
if x != nil {
return x.Environment
}
return ""
}
func (x *AddProxySQLRequest) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *AddProxySQLRequest) GetReplicationSet() string {
if x != nil {
return x.ReplicationSet
}
return ""
}
func (x *AddProxySQLRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *AddProxySQLRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *AddProxySQLRequest) GetCustomLabels() map[string]string {
if x != nil {
return x.CustomLabels
}
return nil
}
func (x *AddProxySQLRequest) GetSkipConnectionCheck() bool {
if x != nil {
return x.SkipConnectionCheck
}
return false
}
func (x *AddProxySQLRequest) GetTls() bool {
if x != nil {
return x.Tls
}
return false
}
func (x *AddProxySQLRequest) GetTlsSkipVerify() bool {
if x != nil {
return x.TlsSkipVerify
}
return false
}
func (x *AddProxySQLRequest) GetMetricsMode() MetricsMode {
if x != nil {
return x.MetricsMode
}
return MetricsMode_AUTO
}
func (x *AddProxySQLRequest) GetDisableCollectors() []string {
if x != nil {
return x.DisableCollectors
}
return nil
}
type AddProxySQLResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Service *inventorypb.ProxySQLService `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
ProxysqlExporter *inventorypb.ProxySQLExporter `protobuf:"bytes,2,opt,name=proxysql_exporter,json=proxysqlExporter,proto3" json:"proxysql_exporter,omitempty"`
}
func (x *AddProxySQLResponse) Reset() {
*x = AddProxySQLResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_managementpb_proxysql_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddProxySQLResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddProxySQLResponse) ProtoMessage() {}
func (x *AddProxySQLResponse) ProtoReflect() protoreflect.Message {
mi := &file_managementpb_proxysql_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddProxySQLResponse.ProtoReflect.Descriptor instead.
func (*AddProxySQLResponse) Descriptor() ([]byte, []int) {
return file_managementpb_proxysql_proto_rawDescGZIP(), []int{1}
}
func (x *AddProxySQLResponse) GetService() *inventorypb.ProxySQLService {
if x != nil {
return x.Service
}
return nil
}
func (x *AddProxySQLResponse) GetProxysqlExporter() *inventorypb.ProxySQLExporter {
if x != nil {
return x.ProxysqlExporter
}
return nil
}
var File_managementpb_proxysql_proto protoreflect.FileDescriptor
var file_managementpb_proxysql_proto_rawDesc = []byte{
0x0a, 0x1b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x70,
0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6d,
0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x1a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f,
0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x18, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x61, 0x67, 0x65,
0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x69, 0x6e, 0x76, 0x65, 0x6e,
0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e,
0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x06,
0x0a, 0x12, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a,
0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x61, 0x64,
0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d,
0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x64,
0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65,
0x12, 0x29, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0b,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63,
0x6b, 0x65, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65,
0x74, 0x12, 0x28, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69,
0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52,
0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x65,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a,
0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,
0x12, 0x22, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01,
0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
0x12, 0x55, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61,
0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f,
0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f,
0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b,
0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e,
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74,
0x6c, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a,
0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79,
0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56,
0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3a, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64,
0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c,
0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64,
0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73,
0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x01, 0x22, 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51,
0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76,
0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x48, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f,
0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76,
0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45,
0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71,
0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0x82, 0x01, 0x0a, 0x08, 0x50, 0x72,
0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x76, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f,
0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65,
0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65,
0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b,
0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50,
0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x1f,
0x5a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x70, 0x62, 0x3b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_managementpb_proxysql_proto_rawDescOnce sync.Once
file_managementpb_proxysql_proto_rawDescData = file_managementpb_proxysql_proto_rawDesc
)
func file_managementpb_proxysql_proto_rawDescGZIP() []byte {
file_managementpb_proxysql_proto_rawDescOnce.Do(func() {
file_managementpb_proxysql_proto_rawDescData = protoimpl.X.CompressGZIP(file_managementpb_proxysql_proto_rawDescData)
})
return file_managementpb_proxysql_proto_rawDescData
}
var file_managementpb_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_managementpb_proxysql_proto_goTypes = []interface{}{
(*AddProxySQLRequest)(nil), // 0: management.AddProxySQLRequest
(*AddProxySQLResponse)(nil), // 1: management.AddProxySQLResponse
nil, // 2: management.AddProxySQLRequest.CustomLabelsEntry
(*AddNodeParams)(nil), // 3: management.AddNodeParams
(MetricsMode)(0), // 4: management.MetricsMode
(*inventorypb.ProxySQLService)(nil), // 5: inventory.ProxySQLService
(*inventorypb.ProxySQLExporter)(nil), // 6: inventory.ProxySQLExporter
}
var file_managementpb_proxysql_proto_depIdxs = []int32{
3, // 0: management.AddProxySQLRequest.add_node:type_name -> management.AddNodeParams
2, // 1: management.AddProxySQLRequest.custom_labels:type_name -> management.AddProxySQLRequest.CustomLabelsEntry
4, // 2: management.AddProxySQLRequest.metrics_mode:type_name -> management.MetricsMode
5, // 3: management.AddProxySQLResponse.service:type_name -> inventory.ProxySQLService
6, // 4: management.AddProxySQLResponse.proxysql_exporter:type_name -> inventory.ProxySQLExporter
0, // 5: management.ProxySQL.AddProxySQL:input_type -> management.AddProxySQLRequest
1, // 6: management.ProxySQL.AddProxySQL:output_type -> management.AddProxySQLResponse
6, // [6:7] is the sub-list for method output_type
5, // [5:6] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_managementpb_proxysql_proto_init() }
func file_managementpb_proxysql_proto_init() {
if File_managementpb_proxysql_proto != nil {
return
}
file_managementpb_metrics_proto_init()
file_managementpb_service_proto_init()
if !protoimpl.UnsafeEnabled {
file_managementpb_proxysql_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddProxySQLRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_managementpb_proxysql_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddProxySQLResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_managementpb_proxysql_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_managementpb_proxysql_proto_goTypes,
DependencyIndexes: file_managementpb_proxysql_proto_depIdxs,
MessageInfos: file_managementpb_proxysql_proto_msgTypes,
}.Build()
File_managementpb_proxysql_proto = out.File
file_managementpb_proxysql_proto_rawDesc = nil
file_managementpb_proxysql_proto_goTypes = nil
file_managementpb_proxysql_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ProxySQLClient is the client API for ProxySQL service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProxySQLClient interface {
// AddProxySQL adds ProxySQL Service and starts several Agents.
// It automatically adds a service to inventory, which is running on provided "node_id",
// then adds "proxysql_exporter" with provided "pmm_agent_id" and other parameters.
AddProxySQL(ctx context.Context, in *AddProxySQLRequest, opts ...grpc.CallOption) (*AddProxySQLResponse, error)
}
type proxySQLClient struct {
cc grpc.ClientConnInterface
}
func NewProxySQLClient(cc grpc.ClientConnInterface) ProxySQLClient {
return &proxySQLClient{cc}
}
func (c *proxySQLClient) AddProxySQL(ctx context.Context, in *AddProxySQLRequest, opts ...grpc.CallOption) (*AddProxySQLResponse, error) {
out := new(AddProxySQLResponse)
err := c.cc.Invoke(ctx, "/management.ProxySQL/AddProxySQL", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProxySQLServer is the server API for ProxySQL service.
type ProxySQLServer interface {
// AddProxySQL adds ProxySQL Service and starts several Agents.
// It automatically adds a service to inventory, which is running on provided "node_id",
// then adds "proxysql_exporter" with provided "pmm_agent_id" and other parameters.
AddProxySQL(context.Context, *AddProxySQLRequest) (*AddProxySQLResponse, error)
}
// UnimplementedProxySQLServer can be embedded to have forward compatible implementations.
type UnimplementedProxySQLServer struct {
}
func (*UnimplementedProxySQLServer) AddProxySQL(context.Context, *AddProxySQLRequest) (*AddProxySQLResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddProxySQL not implemented")
}
func RegisterProxySQLServer(s *grpc.Server, srv ProxySQLServer) {
s.RegisterService(&_ProxySQL_serviceDesc, srv)
}
func _ProxySQL_AddProxySQL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddProxySQLRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProxySQLServer).AddProxySQL(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/management.ProxySQL/AddProxySQL",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProxySQLServer).AddProxySQL(ctx, req.(*AddProxySQLRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ProxySQL_serviceDesc = grpc.ServiceDesc{
ServiceName: "management.ProxySQL",
HandlerType: (*ProxySQLServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "AddProxySQL",
Handler: _ProxySQL_AddProxySQL_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "managementpb/proxysql.proto",
}