-
Notifications
You must be signed in to change notification settings - Fork 125
/
configurator.pb.go
1199 lines (1076 loc) · 41.2 KB
/
configurator.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: configurator/configurator.proto
package configurator
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
linux "github.com/ligato/vpp-agent/api/models/linux"
netalloc "github.com/ligato/vpp-agent/api/models/netalloc"
vpp "github.com/ligato/vpp-agent/api/models/vpp"
grpc "google.golang.org/grpc"
math "math"
)
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// Config groups all supported config data into single message.
type Config struct {
VppConfig *vpp.ConfigData `protobuf:"bytes,1,opt,name=vpp_config,json=vppConfig,proto3" json:"vpp_config,omitempty"`
LinuxConfig *linux.ConfigData `protobuf:"bytes,2,opt,name=linux_config,json=linuxConfig,proto3" json:"linux_config,omitempty"`
NetallocConfig *netalloc.ConfigData `protobuf:"bytes,3,opt,name=netalloc_config,json=netallocConfig,proto3" json:"netalloc_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Config) Reset() { *m = Config{} }
func (m *Config) String() string { return proto.CompactTextString(m) }
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{0}
}
func (m *Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Config.Unmarshal(m, b)
}
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
}
func (m *Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Config.Merge(m, src)
}
func (m *Config) XXX_Size() int {
return xxx_messageInfo_Config.Size(m)
}
func (m *Config) XXX_DiscardUnknown() {
xxx_messageInfo_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Config proto.InternalMessageInfo
func (m *Config) GetVppConfig() *vpp.ConfigData {
if m != nil {
return m.VppConfig
}
return nil
}
func (m *Config) GetLinuxConfig() *linux.ConfigData {
if m != nil {
return m.LinuxConfig
}
return nil
}
func (m *Config) GetNetallocConfig() *netalloc.ConfigData {
if m != nil {
return m.NetallocConfig
}
return nil
}
// Notification groups all notification data into single message.
type Notification struct {
// Types that are valid to be assigned to Notification:
// *Notification_VppNotification
// *Notification_LinuxNotification
Notification isNotification_Notification `protobuf_oneof:"notification"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Notification) Reset() { *m = Notification{} }
func (m *Notification) String() string { return proto.CompactTextString(m) }
func (*Notification) ProtoMessage() {}
func (*Notification) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{1}
}
func (m *Notification) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Notification.Unmarshal(m, b)
}
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Notification.Marshal(b, m, deterministic)
}
func (m *Notification) XXX_Merge(src proto.Message) {
xxx_messageInfo_Notification.Merge(m, src)
}
func (m *Notification) XXX_Size() int {
return xxx_messageInfo_Notification.Size(m)
}
func (m *Notification) XXX_DiscardUnknown() {
xxx_messageInfo_Notification.DiscardUnknown(m)
}
var xxx_messageInfo_Notification proto.InternalMessageInfo
type isNotification_Notification interface {
isNotification_Notification()
}
type Notification_VppNotification struct {
VppNotification *vpp.Notification `protobuf:"bytes,1,opt,name=vpp_notification,json=vppNotification,proto3,oneof"`
}
type Notification_LinuxNotification struct {
LinuxNotification *linux.Notification `protobuf:"bytes,2,opt,name=linux_notification,json=linuxNotification,proto3,oneof"`
}
func (*Notification_VppNotification) isNotification_Notification() {}
func (*Notification_LinuxNotification) isNotification_Notification() {}
func (m *Notification) GetNotification() isNotification_Notification {
if m != nil {
return m.Notification
}
return nil
}
func (m *Notification) GetVppNotification() *vpp.Notification {
if x, ok := m.GetNotification().(*Notification_VppNotification); ok {
return x.VppNotification
}
return nil
}
func (m *Notification) GetLinuxNotification() *linux.Notification {
if x, ok := m.GetNotification().(*Notification_LinuxNotification); ok {
return x.LinuxNotification
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Notification) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Notification_OneofMarshaler, _Notification_OneofUnmarshaler, _Notification_OneofSizer, []interface{}{
(*Notification_VppNotification)(nil),
(*Notification_LinuxNotification)(nil),
}
}
func _Notification_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Notification)
// notification
switch x := m.Notification.(type) {
case *Notification_VppNotification:
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.VppNotification); err != nil {
return err
}
case *Notification_LinuxNotification:
_ = b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LinuxNotification); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Notification.Notification has unexpected type %T", x)
}
return nil
}
func _Notification_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Notification)
switch tag {
case 1: // notification.vpp_notification
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(vpp.Notification)
err := b.DecodeMessage(msg)
m.Notification = &Notification_VppNotification{msg}
return true, err
case 2: // notification.linux_notification
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(linux.Notification)
err := b.DecodeMessage(msg)
m.Notification = &Notification_LinuxNotification{msg}
return true, err
default:
return false, nil
}
}
func _Notification_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Notification)
// notification
switch x := m.Notification.(type) {
case *Notification_VppNotification:
s := proto.Size(x.VppNotification)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Notification_LinuxNotification:
s := proto.Size(x.LinuxNotification)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Stats struct {
// Types that are valid to be assigned to Stats:
// *Stats_VppStats
Stats isStats_Stats `protobuf_oneof:"stats"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Stats) Reset() { *m = Stats{} }
func (m *Stats) String() string { return proto.CompactTextString(m) }
func (*Stats) ProtoMessage() {}
func (*Stats) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{2}
}
func (m *Stats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Stats.Unmarshal(m, b)
}
func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Stats.Marshal(b, m, deterministic)
}
func (m *Stats) XXX_Merge(src proto.Message) {
xxx_messageInfo_Stats.Merge(m, src)
}
func (m *Stats) XXX_Size() int {
return xxx_messageInfo_Stats.Size(m)
}
func (m *Stats) XXX_DiscardUnknown() {
xxx_messageInfo_Stats.DiscardUnknown(m)
}
var xxx_messageInfo_Stats proto.InternalMessageInfo
type isStats_Stats interface {
isStats_Stats()
}
type Stats_VppStats struct {
VppStats *vpp.Stats `protobuf:"bytes,1,opt,name=vpp_stats,json=vppStats,proto3,oneof"`
}
func (*Stats_VppStats) isStats_Stats() {}
func (m *Stats) GetStats() isStats_Stats {
if m != nil {
return m.Stats
}
return nil
}
func (m *Stats) GetVppStats() *vpp.Stats {
if x, ok := m.GetStats().(*Stats_VppStats); ok {
return x.VppStats
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Stats) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Stats_OneofMarshaler, _Stats_OneofUnmarshaler, _Stats_OneofSizer, []interface{}{
(*Stats_VppStats)(nil),
}
}
func _Stats_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Stats)
// stats
switch x := m.Stats.(type) {
case *Stats_VppStats:
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.VppStats); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Stats.Stats has unexpected type %T", x)
}
return nil
}
func _Stats_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Stats)
switch tag {
case 1: // stats.vpp_stats
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(vpp.Stats)
err := b.DecodeMessage(msg)
m.Stats = &Stats_VppStats{msg}
return true, err
default:
return false, nil
}
}
func _Stats_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Stats)
// stats
switch x := m.Stats.(type) {
case *Stats_VppStats:
s := proto.Size(x.VppStats)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type UpdateRequest struct {
// Update describes config data to be updated.
Update *Config `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
// The full_resync option can be used
// to overwrite all existing data.
FullResync bool `protobuf:"varint,2,opt,name=full_resync,json=fullResync,proto3" json:"full_resync,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateRequest) Reset() { *m = UpdateRequest{} }
func (m *UpdateRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateRequest) ProtoMessage() {}
func (*UpdateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{3}
}
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateRequest.Unmarshal(m, b)
}
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateRequest.Marshal(b, m, deterministic)
}
func (m *UpdateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateRequest.Merge(m, src)
}
func (m *UpdateRequest) XXX_Size() int {
return xxx_messageInfo_UpdateRequest.Size(m)
}
func (m *UpdateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateRequest proto.InternalMessageInfo
func (m *UpdateRequest) GetUpdate() *Config {
if m != nil {
return m.Update
}
return nil
}
func (m *UpdateRequest) GetFullResync() bool {
if m != nil {
return m.FullResync
}
return false
}
type UpdateResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateResponse) Reset() { *m = UpdateResponse{} }
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateResponse) ProtoMessage() {}
func (*UpdateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{4}
}
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateResponse.Unmarshal(m, b)
}
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic)
}
func (m *UpdateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateResponse.Merge(m, src)
}
func (m *UpdateResponse) XXX_Size() int {
return xxx_messageInfo_UpdateResponse.Size(m)
}
func (m *UpdateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo
type DeleteRequest struct {
// Delete describes config data to be deleted.
Delete *Config `protobuf:"bytes,1,opt,name=delete,proto3" json:"delete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRequest) ProtoMessage() {}
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{5}
}
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteRequest.Unmarshal(m, b)
}
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
}
func (m *DeleteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteRequest.Merge(m, src)
}
func (m *DeleteRequest) XXX_Size() int {
return xxx_messageInfo_DeleteRequest.Size(m)
}
func (m *DeleteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
func (m *DeleteRequest) GetDelete() *Config {
if m != nil {
return m.Delete
}
return nil
}
type DeleteResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteResponse) ProtoMessage() {}
func (*DeleteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{6}
}
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
}
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
}
func (m *DeleteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteResponse.Merge(m, src)
}
func (m *DeleteResponse) XXX_Size() int {
return xxx_messageInfo_DeleteResponse.Size(m)
}
func (m *DeleteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
type GetRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRequest) Reset() { *m = GetRequest{} }
func (m *GetRequest) String() string { return proto.CompactTextString(m) }
func (*GetRequest) ProtoMessage() {}
func (*GetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{7}
}
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRequest.Unmarshal(m, b)
}
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
}
func (m *GetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRequest.Merge(m, src)
}
func (m *GetRequest) XXX_Size() int {
return xxx_messageInfo_GetRequest.Size(m)
}
func (m *GetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRequest proto.InternalMessageInfo
type GetResponse struct {
// Config describes desired config retrieved from agent.
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetResponse) Reset() { *m = GetResponse{} }
func (m *GetResponse) String() string { return proto.CompactTextString(m) }
func (*GetResponse) ProtoMessage() {}
func (*GetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{8}
}
func (m *GetResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetResponse.Unmarshal(m, b)
}
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
}
func (m *GetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetResponse.Merge(m, src)
}
func (m *GetResponse) XXX_Size() int {
return xxx_messageInfo_GetResponse.Size(m)
}
func (m *GetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetResponse proto.InternalMessageInfo
func (m *GetResponse) GetConfig() *Config {
if m != nil {
return m.Config
}
return nil
}
type DumpRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DumpRequest) Reset() { *m = DumpRequest{} }
func (m *DumpRequest) String() string { return proto.CompactTextString(m) }
func (*DumpRequest) ProtoMessage() {}
func (*DumpRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{9}
}
func (m *DumpRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DumpRequest.Unmarshal(m, b)
}
func (m *DumpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DumpRequest.Marshal(b, m, deterministic)
}
func (m *DumpRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DumpRequest.Merge(m, src)
}
func (m *DumpRequest) XXX_Size() int {
return xxx_messageInfo_DumpRequest.Size(m)
}
func (m *DumpRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DumpRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DumpRequest proto.InternalMessageInfo
type DumpResponse struct {
// Dump describes running config dumped from southbound.
Dump *Config `protobuf:"bytes,1,opt,name=dump,proto3" json:"dump,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DumpResponse) Reset() { *m = DumpResponse{} }
func (m *DumpResponse) String() string { return proto.CompactTextString(m) }
func (*DumpResponse) ProtoMessage() {}
func (*DumpResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{10}
}
func (m *DumpResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DumpResponse.Unmarshal(m, b)
}
func (m *DumpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DumpResponse.Marshal(b, m, deterministic)
}
func (m *DumpResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DumpResponse.Merge(m, src)
}
func (m *DumpResponse) XXX_Size() int {
return xxx_messageInfo_DumpResponse.Size(m)
}
func (m *DumpResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DumpResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DumpResponse proto.InternalMessageInfo
func (m *DumpResponse) GetDump() *Config {
if m != nil {
return m.Dump
}
return nil
}
// NotificationRequest represent a notification request which contains
// index of next required message
type NotificationRequest struct {
Idx uint32 `protobuf:"varint,1,opt,name=idx,proto3" json:"idx,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NotificationRequest) Reset() { *m = NotificationRequest{} }
func (m *NotificationRequest) String() string { return proto.CompactTextString(m) }
func (*NotificationRequest) ProtoMessage() {}
func (*NotificationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{11}
}
func (m *NotificationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NotificationRequest.Unmarshal(m, b)
}
func (m *NotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NotificationRequest.Marshal(b, m, deterministic)
}
func (m *NotificationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_NotificationRequest.Merge(m, src)
}
func (m *NotificationRequest) XXX_Size() int {
return xxx_messageInfo_NotificationRequest.Size(m)
}
func (m *NotificationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_NotificationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_NotificationRequest proto.InternalMessageInfo
func (m *NotificationRequest) GetIdx() uint32 {
if m != nil {
return m.Idx
}
return 0
}
// Response to notification request 'get'. Returns indexed notification.
type NotificationResponse struct {
// Index of following notification
NextIdx uint32 `protobuf:"varint,1,opt,name=next_idx,json=nextIdx,proto3" json:"next_idx,omitempty"`
// Notification data
Notification *Notification `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NotificationResponse) Reset() { *m = NotificationResponse{} }
func (m *NotificationResponse) String() string { return proto.CompactTextString(m) }
func (*NotificationResponse) ProtoMessage() {}
func (*NotificationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{12}
}
func (m *NotificationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NotificationResponse.Unmarshal(m, b)
}
func (m *NotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NotificationResponse.Marshal(b, m, deterministic)
}
func (m *NotificationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_NotificationResponse.Merge(m, src)
}
func (m *NotificationResponse) XXX_Size() int {
return xxx_messageInfo_NotificationResponse.Size(m)
}
func (m *NotificationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_NotificationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_NotificationResponse proto.InternalMessageInfo
func (m *NotificationResponse) GetNextIdx() uint32 {
if m != nil {
return m.NextIdx
}
return 0
}
func (m *NotificationResponse) GetNotification() *Notification {
if m != nil {
return m.Notification
}
return nil
}
type PollStatsRequest struct {
// PeriodSec defines polling period (in seconds)
PeriodSec uint32 `protobuf:"varint,1,opt,name=period_sec,json=periodSec,proto3" json:"period_sec,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PollStatsRequest) Reset() { *m = PollStatsRequest{} }
func (m *PollStatsRequest) String() string { return proto.CompactTextString(m) }
func (*PollStatsRequest) ProtoMessage() {}
func (*PollStatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{13}
}
func (m *PollStatsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PollStatsRequest.Unmarshal(m, b)
}
func (m *PollStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PollStatsRequest.Marshal(b, m, deterministic)
}
func (m *PollStatsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PollStatsRequest.Merge(m, src)
}
func (m *PollStatsRequest) XXX_Size() int {
return xxx_messageInfo_PollStatsRequest.Size(m)
}
func (m *PollStatsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PollStatsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PollStatsRequest proto.InternalMessageInfo
func (m *PollStatsRequest) GetPeriodSec() uint32 {
if m != nil {
return m.PeriodSec
}
return 0
}
type PollStatsResponse struct {
PollSeq uint32 `protobuf:"varint,1,opt,name=poll_seq,json=pollSeq,proto3" json:"poll_seq,omitempty"`
Stats *Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PollStatsResponse) Reset() { *m = PollStatsResponse{} }
func (m *PollStatsResponse) String() string { return proto.CompactTextString(m) }
func (*PollStatsResponse) ProtoMessage() {}
func (*PollStatsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_150898d063c79000, []int{14}
}
func (m *PollStatsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PollStatsResponse.Unmarshal(m, b)
}
func (m *PollStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PollStatsResponse.Marshal(b, m, deterministic)
}
func (m *PollStatsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PollStatsResponse.Merge(m, src)
}
func (m *PollStatsResponse) XXX_Size() int {
return xxx_messageInfo_PollStatsResponse.Size(m)
}
func (m *PollStatsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PollStatsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PollStatsResponse proto.InternalMessageInfo
func (m *PollStatsResponse) GetPollSeq() uint32 {
if m != nil {
return m.PollSeq
}
return 0
}
func (m *PollStatsResponse) GetStats() *Stats {
if m != nil {
return m.Stats
}
return nil
}
func init() {
proto.RegisterType((*Config)(nil), "configurator.Config")
proto.RegisterType((*Notification)(nil), "configurator.Notification")
proto.RegisterType((*Stats)(nil), "configurator.Stats")
proto.RegisterType((*UpdateRequest)(nil), "configurator.UpdateRequest")
proto.RegisterType((*UpdateResponse)(nil), "configurator.UpdateResponse")
proto.RegisterType((*DeleteRequest)(nil), "configurator.DeleteRequest")
proto.RegisterType((*DeleteResponse)(nil), "configurator.DeleteResponse")
proto.RegisterType((*GetRequest)(nil), "configurator.GetRequest")
proto.RegisterType((*GetResponse)(nil), "configurator.GetResponse")
proto.RegisterType((*DumpRequest)(nil), "configurator.DumpRequest")
proto.RegisterType((*DumpResponse)(nil), "configurator.DumpResponse")
proto.RegisterType((*NotificationRequest)(nil), "configurator.NotificationRequest")
proto.RegisterType((*NotificationResponse)(nil), "configurator.NotificationResponse")
proto.RegisterType((*PollStatsRequest)(nil), "configurator.PollStatsRequest")
proto.RegisterType((*PollStatsResponse)(nil), "configurator.PollStatsResponse")
}
func init() { proto.RegisterFile("configurator/configurator.proto", fileDescriptor_150898d063c79000) }
var fileDescriptor_150898d063c79000 = []byte{
// 674 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0x4d, 0x4f, 0xdb, 0x40,
0x10, 0x25, 0x7c, 0x04, 0x98, 0x38, 0x90, 0x2c, 0x39, 0x80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 0x7b, 0xd5, 0x42, 0xde, 0xb2, 0x16, 0x25, 0x78, 0x5a,
0x3b, 0x0b, 0xa1, 0x21, 0x5f, 0xbc, 0x58, 0x24, 0xce, 0xd1, 0x2d, 0x6c, 0x4f, 0x57, 0x8a, 0x0e,
0x6d, 0x85, 0xf9, 0x78, 0xb8, 0x47, 0x4f, 0xd6, 0xf5, 0x6f, 0x70, 0xe5, 0xb4, 0x76, 0xd9, 0xfb,
0xf9, 0x69, 0x90, 0xf2, 0xdf, 0xe5, 0xbd, 0x1f, 0xd3, 0x61, 0x97, 0xa4, 0x83, 0x88, 0x53, 0xf1,
0xdd, 0x78, 0x1b, 0x0d, 0x70, 0xc6, 0xbb, 0x11, 0x4b, 0xad, 0x4f, 0x4e, 0xcf, 0x3c, 0xdc, 0xd7,
0xe5, 0x27, 0xe2, 0xfd, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x53, 0x81, 0x58, 0xa3, 0x06,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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.SupportPackageIsVersion4
// ConfiguratorClient is the client API for Configurator service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ConfiguratorClient interface {
// Get is used for listing desired config.
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
// Update is used for updating desired config.
Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
// Delete is used for deleting desired config.
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
// Dump is used for dumping running config.
Dump(ctx context.Context, in *DumpRequest, opts ...grpc.CallOption) (*DumpResponse, error)
// Notify is used for subscribing to notifications.
Notify(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (Configurator_NotifyClient, error)
}
type configuratorClient struct {
cc *grpc.ClientConn
}
func NewConfiguratorClient(cc *grpc.ClientConn) ConfiguratorClient {
return &configuratorClient{cc}
}
func (c *configuratorClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
out := new(GetResponse)
err := c.cc.Invoke(ctx, "/configurator.Configurator/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *configuratorClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) {
out := new(UpdateResponse)
err := c.cc.Invoke(ctx, "/configurator.Configurator/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *configuratorClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
out := new(DeleteResponse)
err := c.cc.Invoke(ctx, "/configurator.Configurator/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *configuratorClient) Dump(ctx context.Context, in *DumpRequest, opts ...grpc.CallOption) (*DumpResponse, error) {
out := new(DumpResponse)
err := c.cc.Invoke(ctx, "/configurator.Configurator/Dump", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *configuratorClient) Notify(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (Configurator_NotifyClient, error) {
stream, err := c.cc.NewStream(ctx, &_Configurator_serviceDesc.Streams[0], "/configurator.Configurator/Notify", opts...)
if err != nil {
return nil, err
}
x := &configuratorNotifyClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Configurator_NotifyClient interface {
Recv() (*NotificationResponse, error)
grpc.ClientStream
}
type configuratorNotifyClient struct {
grpc.ClientStream
}
func (x *configuratorNotifyClient) Recv() (*NotificationResponse, error) {
m := new(NotificationResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// ConfiguratorServer is the server API for Configurator service.
type ConfiguratorServer interface {
// Get is used for listing desired config.
Get(context.Context, *GetRequest) (*GetResponse, error)
// Update is used for updating desired config.
Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
// Delete is used for deleting desired config.
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
// Dump is used for dumping running config.
Dump(context.Context, *DumpRequest) (*DumpResponse, error)
// Notify is used for subscribing to notifications.
Notify(*NotificationRequest, Configurator_NotifyServer) error
}
func RegisterConfiguratorServer(s *grpc.Server, srv ConfiguratorServer) {
s.RegisterService(&_Configurator_serviceDesc, srv)
}
func _Configurator_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConfiguratorServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/configurator.Configurator/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConfiguratorServer).Get(ctx, req.(*GetRequest))
}
return interceptor(ctx, in, info, handler)
}