forked from contiv/vpp
/
ksr_nb_api.pb.go
executable file
·260 lines (230 loc) · 8.6 KB
/
ksr_nb_api.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: ksr_nb_api.proto
package ksrapi
/*
Package ksrapi defines the data model for KSR plugin's northbound API.
*/
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import 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
// KsrStats holds statistics for an individual KSR type
type KsrStats struct {
// Number of add operations.
Adds uint64 `protobuf:"varint,1,opt,name=Adds,json=adds,proto3" json:"Adds,omitempty"`
// Number of delete operations.
Updates uint64 `protobuf:"varint,2,opt,name=Updates,json=updates,proto3" json:"Updates,omitempty"`
// Number of delete operations.
Deletes uint64 `protobuf:"varint,3,opt,name=Deletes,json=deletes,proto3" json:"Deletes,omitempty"`
// Number of data store resync runs.
Resyncs uint64 `protobuf:"varint,4,opt,name=Resyncs,json=resyncs,proto3" json:"Resyncs,omitempty"`
// Number of add operation errors.
AddErrors uint64 `protobuf:"varint,5,opt,name=AddErrors,json=addErrors,proto3" json:"AddErrors,omitempty"`
// Number of delete operation errors.
UpdErrors uint64 `protobuf:"varint,6,opt,name=UpdErrors,json=updErrors,proto3" json:"UpdErrors,omitempty"`
// Number of delete operation errors.
DelErrors uint64 `protobuf:"varint,7,opt,name=DelErrors,json=delErrors,proto3" json:"DelErrors,omitempty"`
// Number of operations where one or more arguments were invalid.
ArgErrors uint64 `protobuf:"varint,8,opt,name=ArgErrors,json=argErrors,proto3" json:"ArgErrors,omitempty"`
// Number of of data store resync errors.
ResErrors uint64 `protobuf:"varint,9,opt,name=ResErrors,json=resErrors,proto3" json:"ResErrors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KsrStats) Reset() { *m = KsrStats{} }
func (m *KsrStats) String() string { return proto.CompactTextString(m) }
func (*KsrStats) ProtoMessage() {}
func (*KsrStats) Descriptor() ([]byte, []int) {
return fileDescriptor_ksr_nb_api_a756ebf63d5f1356, []int{0}
}
func (m *KsrStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KsrStats.Unmarshal(m, b)
}
func (m *KsrStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KsrStats.Marshal(b, m, deterministic)
}
func (dst *KsrStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_KsrStats.Merge(dst, src)
}
func (m *KsrStats) XXX_Size() int {
return xxx_messageInfo_KsrStats.Size(m)
}
func (m *KsrStats) XXX_DiscardUnknown() {
xxx_messageInfo_KsrStats.DiscardUnknown(m)
}
var xxx_messageInfo_KsrStats proto.InternalMessageInfo
func (m *KsrStats) GetAdds() uint64 {
if m != nil {
return m.Adds
}
return 0
}
func (m *KsrStats) GetUpdates() uint64 {
if m != nil {
return m.Updates
}
return 0
}
func (m *KsrStats) GetDeletes() uint64 {
if m != nil {
return m.Deletes
}
return 0
}
func (m *KsrStats) GetResyncs() uint64 {
if m != nil {
return m.Resyncs
}
return 0
}
func (m *KsrStats) GetAddErrors() uint64 {
if m != nil {
return m.AddErrors
}
return 0
}
func (m *KsrStats) GetUpdErrors() uint64 {
if m != nil {
return m.UpdErrors
}
return 0
}
func (m *KsrStats) GetDelErrors() uint64 {
if m != nil {
return m.DelErrors
}
return 0
}
func (m *KsrStats) GetArgErrors() uint64 {
if m != nil {
return m.ArgErrors
}
return 0
}
func (m *KsrStats) GetResErrors() uint64 {
if m != nil {
return m.ResErrors
}
return 0
}
// Stats holds aggregated statistics for all KSR types in the KSR process.
type Stats struct {
// Statistics for the Namespace Reflector
NamespaceStats *KsrStats `protobuf:"bytes,1,opt,name=namespaceStats" json:"namespaceStats,omitempty"`
// Statistics for the Pod Reflector
PodStats *KsrStats `protobuf:"bytes,2,opt,name=podStats" json:"podStats,omitempty"`
// Statistics for the Network Policy Reflector
PolicyStats *KsrStats `protobuf:"bytes,3,opt,name=policyStats" json:"policyStats,omitempty"`
// Statistics for the Endpoints Reflector
EndpointsStats *KsrStats `protobuf:"bytes,4,opt,name=endpointsStats" json:"endpointsStats,omitempty"`
// Statistics for the Service Reflector
ServiceStats *KsrStats `protobuf:"bytes,5,opt,name=serviceStats" json:"serviceStats,omitempty"`
// Statistics for the Node Reflector
NodeStats *KsrStats `protobuf:"bytes,6,opt,name=nodeStats" json:"nodeStats,omitempty"`
// Statistics for the SfcPod Reflector
SfcPodStats *KsrStats `protobuf:"bytes,7,opt,name=sfcPodStats" json:"sfcPodStats,omitempty"`
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_ksr_nb_api_a756ebf63d5f1356, []int{1}
}
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 (dst *Stats) XXX_Merge(src proto.Message) {
xxx_messageInfo_Stats.Merge(dst, 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
func (m *Stats) GetNamespaceStats() *KsrStats {
if m != nil {
return m.NamespaceStats
}
return nil
}
func (m *Stats) GetPodStats() *KsrStats {
if m != nil {
return m.PodStats
}
return nil
}
func (m *Stats) GetPolicyStats() *KsrStats {
if m != nil {
return m.PolicyStats
}
return nil
}
func (m *Stats) GetEndpointsStats() *KsrStats {
if m != nil {
return m.EndpointsStats
}
return nil
}
func (m *Stats) GetServiceStats() *KsrStats {
if m != nil {
return m.ServiceStats
}
return nil
}
func (m *Stats) GetNodeStats() *KsrStats {
if m != nil {
return m.NodeStats
}
return nil
}
func (m *Stats) GetSfcPodStats() *KsrStats {
if m != nil {
return m.SfcPodStats
}
return nil
}
func init() {
proto.RegisterType((*KsrStats)(nil), "ksrapi.KsrStats")
proto.RegisterType((*Stats)(nil), "ksrapi.Stats")
}
func init() { proto.RegisterFile("ksr_nb_api.proto", fileDescriptor_ksr_nb_api_a756ebf63d5f1356) }
var fileDescriptor_ksr_nb_api_a756ebf63d5f1356 = []byte{
// 311 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xb1, 0x4f, 0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