blob: 51c17e1009f11fcad44c435320e3c83d703700bf [file] [log] [blame]
Matt Jeanneret9fba8652019-04-02 12:00:17 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/afrouter.proto
3
4package afrouter
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
Scott Baker112b0d42019-08-22 08:32:26 -070010 common "github.com/opencord/voltha-protos/go/common"
Matt Jeanneret9fba8652019-04-02 12:00:17 -040011 grpc "google.golang.org/grpc"
Matt Jeanneret9fba8652019-04-02 12:00:17 -040012 math "math"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26type Result struct {
27 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
28 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
David Bainbridge142516e2019-04-19 01:34:58 +000029 Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
Matt Jeanneret9fba8652019-04-02 12:00:17 -040030 XXX_NoUnkeyedLiteral struct{} `json:"-"`
31 XXX_unrecognized []byte `json:"-"`
32 XXX_sizecache int32 `json:"-"`
33}
34
35func (m *Result) Reset() { *m = Result{} }
36func (m *Result) String() string { return proto.CompactTextString(m) }
37func (*Result) ProtoMessage() {}
38func (*Result) Descriptor() ([]byte, []int) {
39 return fileDescriptor_be7e2f565b9e1c96, []int{0}
40}
41
42func (m *Result) XXX_Unmarshal(b []byte) error {
43 return xxx_messageInfo_Result.Unmarshal(m, b)
44}
45func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
46 return xxx_messageInfo_Result.Marshal(b, m, deterministic)
47}
48func (m *Result) XXX_Merge(src proto.Message) {
49 xxx_messageInfo_Result.Merge(m, src)
50}
51func (m *Result) XXX_Size() int {
52 return xxx_messageInfo_Result.Size(m)
53}
54func (m *Result) XXX_DiscardUnknown() {
55 xxx_messageInfo_Result.DiscardUnknown(m)
56}
57
58var xxx_messageInfo_Result proto.InternalMessageInfo
59
60func (m *Result) GetSuccess() bool {
61 if m != nil {
62 return m.Success
63 }
64 return false
65}
66
67func (m *Result) GetError() string {
68 if m != nil {
69 return m.Error
70 }
71 return ""
72}
73
David Bainbridge142516e2019-04-19 01:34:58 +000074func (m *Result) GetInfo() string {
75 if m != nil {
76 return m.Info
77 }
78 return ""
79}
80
Matt Jeanneret9fba8652019-04-02 12:00:17 -040081type Empty struct {
82 XXX_NoUnkeyedLiteral struct{} `json:"-"`
83 XXX_unrecognized []byte `json:"-"`
84 XXX_sizecache int32 `json:"-"`
85}
86
87func (m *Empty) Reset() { *m = Empty{} }
88func (m *Empty) String() string { return proto.CompactTextString(m) }
89func (*Empty) ProtoMessage() {}
90func (*Empty) Descriptor() ([]byte, []int) {
91 return fileDescriptor_be7e2f565b9e1c96, []int{1}
92}
93
94func (m *Empty) XXX_Unmarshal(b []byte) error {
95 return xxx_messageInfo_Empty.Unmarshal(m, b)
96}
97func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
98 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
99}
100func (m *Empty) XXX_Merge(src proto.Message) {
101 xxx_messageInfo_Empty.Merge(m, src)
102}
103func (m *Empty) XXX_Size() int {
104 return xxx_messageInfo_Empty.Size(m)
105}
106func (m *Empty) XXX_DiscardUnknown() {
107 xxx_messageInfo_Empty.DiscardUnknown(m)
108}
109
110var xxx_messageInfo_Empty proto.InternalMessageInfo
111
112type Count struct {
113 Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
114 XXX_NoUnkeyedLiteral struct{} `json:"-"`
115 XXX_unrecognized []byte `json:"-"`
116 XXX_sizecache int32 `json:"-"`
117}
118
119func (m *Count) Reset() { *m = Count{} }
120func (m *Count) String() string { return proto.CompactTextString(m) }
121func (*Count) ProtoMessage() {}
122func (*Count) Descriptor() ([]byte, []int) {
123 return fileDescriptor_be7e2f565b9e1c96, []int{2}
124}
125
126func (m *Count) XXX_Unmarshal(b []byte) error {
127 return xxx_messageInfo_Count.Unmarshal(m, b)
128}
129func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
130 return xxx_messageInfo_Count.Marshal(b, m, deterministic)
131}
132func (m *Count) XXX_Merge(src proto.Message) {
133 xxx_messageInfo_Count.Merge(m, src)
134}
135func (m *Count) XXX_Size() int {
136 return xxx_messageInfo_Count.Size(m)
137}
138func (m *Count) XXX_DiscardUnknown() {
139 xxx_messageInfo_Count.DiscardUnknown(m)
140}
141
142var xxx_messageInfo_Count proto.InternalMessageInfo
143
144func (m *Count) GetCount() uint32 {
145 if m != nil {
146 return m.Count
147 }
148 return 0
149}
150
151type Conn struct {
152 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
153 Pkg string `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"`
154 Svc string `protobuf:"bytes,3,opt,name=svc,proto3" json:"svc,omitempty"`
155 Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
156 Backend string `protobuf:"bytes,5,opt,name=backend,proto3" json:"backend,omitempty"`
157 Connection string `protobuf:"bytes,6,opt,name=connection,proto3" json:"connection,omitempty"`
158 Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"`
159 Port uint64 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"`
160 XXX_NoUnkeyedLiteral struct{} `json:"-"`
161 XXX_unrecognized []byte `json:"-"`
162 XXX_sizecache int32 `json:"-"`
163}
164
165func (m *Conn) Reset() { *m = Conn{} }
166func (m *Conn) String() string { return proto.CompactTextString(m) }
167func (*Conn) ProtoMessage() {}
168func (*Conn) Descriptor() ([]byte, []int) {
169 return fileDescriptor_be7e2f565b9e1c96, []int{3}
170}
171
172func (m *Conn) XXX_Unmarshal(b []byte) error {
173 return xxx_messageInfo_Conn.Unmarshal(m, b)
174}
175func (m *Conn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
176 return xxx_messageInfo_Conn.Marshal(b, m, deterministic)
177}
178func (m *Conn) XXX_Merge(src proto.Message) {
179 xxx_messageInfo_Conn.Merge(m, src)
180}
181func (m *Conn) XXX_Size() int {
182 return xxx_messageInfo_Conn.Size(m)
183}
184func (m *Conn) XXX_DiscardUnknown() {
185 xxx_messageInfo_Conn.DiscardUnknown(m)
186}
187
188var xxx_messageInfo_Conn proto.InternalMessageInfo
189
190func (m *Conn) GetServer() string {
191 if m != nil {
192 return m.Server
193 }
194 return ""
195}
196
197func (m *Conn) GetPkg() string {
198 if m != nil {
199 return m.Pkg
200 }
201 return ""
202}
203
204func (m *Conn) GetSvc() string {
205 if m != nil {
206 return m.Svc
207 }
208 return ""
209}
210
211func (m *Conn) GetCluster() string {
212 if m != nil {
213 return m.Cluster
214 }
215 return ""
216}
217
218func (m *Conn) GetBackend() string {
219 if m != nil {
220 return m.Backend
221 }
222 return ""
223}
224
225func (m *Conn) GetConnection() string {
226 if m != nil {
227 return m.Connection
228 }
229 return ""
230}
231
232func (m *Conn) GetAddr() string {
233 if m != nil {
234 return m.Addr
235 }
236 return ""
237}
238
239func (m *Conn) GetPort() uint64 {
240 if m != nil {
241 return m.Port
242 }
243 return 0
244}
245
246type Affinity struct {
247 Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"`
248 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
249 Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
250 Backend string `protobuf:"bytes,4,opt,name=backend,proto3" json:"backend,omitempty"`
251 Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
252 XXX_NoUnkeyedLiteral struct{} `json:"-"`
253 XXX_unrecognized []byte `json:"-"`
254 XXX_sizecache int32 `json:"-"`
255}
256
257func (m *Affinity) Reset() { *m = Affinity{} }
258func (m *Affinity) String() string { return proto.CompactTextString(m) }
259func (*Affinity) ProtoMessage() {}
260func (*Affinity) Descriptor() ([]byte, []int) {
261 return fileDescriptor_be7e2f565b9e1c96, []int{4}
262}
263
264func (m *Affinity) XXX_Unmarshal(b []byte) error {
265 return xxx_messageInfo_Affinity.Unmarshal(m, b)
266}
267func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
268 return xxx_messageInfo_Affinity.Marshal(b, m, deterministic)
269}
270func (m *Affinity) XXX_Merge(src proto.Message) {
271 xxx_messageInfo_Affinity.Merge(m, src)
272}
273func (m *Affinity) XXX_Size() int {
274 return xxx_messageInfo_Affinity.Size(m)
275}
276func (m *Affinity) XXX_DiscardUnknown() {
277 xxx_messageInfo_Affinity.DiscardUnknown(m)
278}
279
280var xxx_messageInfo_Affinity proto.InternalMessageInfo
281
282func (m *Affinity) GetRouter() string {
283 if m != nil {
284 return m.Router
285 }
286 return ""
287}
288
289func (m *Affinity) GetRoute() string {
290 if m != nil {
291 return m.Route
292 }
293 return ""
294}
295
296func (m *Affinity) GetCluster() string {
297 if m != nil {
298 return m.Cluster
299 }
300 return ""
301}
302
303func (m *Affinity) GetBackend() string {
304 if m != nil {
305 return m.Backend
306 }
307 return ""
308}
309
310func (m *Affinity) GetId() string {
311 if m != nil {
312 return m.Id
313 }
314 return ""
315}
316
317func init() {
318 proto.RegisterType((*Result)(nil), "afrouter.Result")
319 proto.RegisterType((*Empty)(nil), "afrouter.Empty")
320 proto.RegisterType((*Count)(nil), "afrouter.Count")
321 proto.RegisterType((*Conn)(nil), "afrouter.Conn")
322 proto.RegisterType((*Affinity)(nil), "afrouter.Affinity")
323}
324
325func init() { proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_be7e2f565b9e1c96) }
326
327var fileDescriptor_be7e2f565b9e1c96 = []byte{
Scott Baker112b0d42019-08-22 08:32:26 -0700328 // 463 bytes of a gzipped FileDescriptorProto
329 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xcb, 0x8e, 0xd3, 0x30,
330 0x14, 0x6d, 0xda, 0xf4, 0x31, 0x17, 0xfa, 0xc0, 0x42, 0xc8, 0x8a, 0x00, 0x55, 0x59, 0x75, 0x33,
331 0xad, 0xc4, 0x80, 0xd8, 0xb0, 0x81, 0x08, 0x75, 0xd3, 0x55, 0x46, 0x6c, 0xd8, 0xa0, 0xd4, 0x71,
332 0x32, 0xd6, 0xb4, 0xbe, 0x91, 0xed, 0x54, 0x1a, 0x89, 0x0f, 0xe2, 0x2b, 0xf8, 0x36, 0x64, 0x3b,
333 0xe9, 0x4b, 0xcc, 0xee, 0x9c, 0x73, 0xef, 0xb5, 0xcf, 0xf1, 0x03, 0xde, 0x1e, 0x70, 0x67, 0x1e,
334 0xb2, 0x5f, 0x95, 0x42, 0x83, 0x7a, 0x95, 0x15, 0x0a, 0x6b, 0xc3, 0xd5, 0xd2, 0x71, 0x32, 0x6a,
335 0x79, 0x14, 0x5d, 0xf6, 0x31, 0xdc, 0xef, 0x51, 0xfa, 0xae, 0x78, 0x03, 0x83, 0x94, 0xeb, 0x7a,
336 0x67, 0x08, 0x85, 0xa1, 0xae, 0x19, 0xe3, 0x5a, 0xd3, 0x60, 0x1e, 0x2c, 0x46, 0x69, 0x4b, 0xc9,
337 0x6b, 0xe8, 0x73, 0xa5, 0x50, 0xd1, 0xee, 0x3c, 0x58, 0xdc, 0xa4, 0x9e, 0x10, 0x02, 0xa1, 0x90,
338 0x05, 0xd2, 0x9e, 0x13, 0x1d, 0x8e, 0x87, 0xd0, 0xff, 0xbe, 0xaf, 0xcc, 0x53, 0xfc, 0x0e, 0xfa,
339 0x09, 0xd6, 0xd2, 0xd8, 0x59, 0x66, 0x81, 0x5b, 0x73, 0x9c, 0x7a, 0x12, 0xff, 0x0d, 0x20, 0x4c,
340 0x50, 0x4a, 0xf2, 0x06, 0x06, 0x9a, 0xab, 0x03, 0x57, 0xae, 0x7e, 0x93, 0x36, 0x8c, 0xcc, 0xa0,
341 0x57, 0x3d, 0x96, 0xcd, 0x86, 0x16, 0x5a, 0x45, 0x1f, 0x58, 0xb3, 0x9b, 0x85, 0xd6, 0x30, 0xdb,
342 0xd5, 0xda, 0x70, 0x45, 0x43, 0xa7, 0xb6, 0xd4, 0x56, 0xb6, 0x19, 0x7b, 0xe4, 0x32, 0xa7, 0x7d,
343 0x5f, 0x69, 0x28, 0x79, 0x0f, 0xc0, 0x50, 0x4a, 0xce, 0x8c, 0x40, 0x49, 0x07, 0xae, 0x78, 0xa6,
344 0xd8, 0x50, 0x59, 0x9e, 0x2b, 0x3a, 0xf4, 0xa1, 0x2c, 0xb6, 0x5a, 0x85, 0xca, 0xd0, 0xd1, 0x3c,
345 0x58, 0x84, 0xa9, 0xc3, 0xf1, 0x6f, 0x18, 0x7d, 0x2d, 0x0a, 0x21, 0x85, 0x79, 0xb2, 0x19, 0xfc,
346 0x41, 0xb7, 0x19, 0x3c, 0xb3, 0xd1, 0x1d, 0x6a, 0x8f, 0xcd, 0x91, 0x73, 0xd7, 0xbd, 0x67, 0x5d,
347 0x87, 0x97, 0xae, 0x27, 0xd0, 0x15, 0x6d, 0x94, 0xae, 0xc8, 0x3f, 0xfc, 0xe9, 0xc2, 0x38, 0x41,
348 0x59, 0x88, 0xb2, 0x56, 0x99, 0xf3, 0x7d, 0x07, 0xe3, 0x7b, 0x6e, 0x92, 0x53, 0x90, 0xc9, 0xf2,
349 0xf8, 0x1c, 0xac, 0x1a, 0xcd, 0x4e, 0xdc, 0xdf, 0x77, 0xdc, 0x21, 0x9f, 0xe0, 0xc5, 0x3d, 0x37,
350 0xc7, 0x1c, 0xe4, 0xd4, 0xd2, 0x6a, 0xff, 0x1d, 0xfb, 0x0c, 0xaf, 0xd6, 0xdc, 0xac, 0xd1, 0xea,
351 0x42, 0x72, 0x7f, 0xcf, 0xd3, 0x53, 0xa3, 0x7b, 0x01, 0xd1, 0xf4, 0xdc, 0x80, 0xbd, 0xf3, 0x0e,
352 0xf9, 0x08, 0x93, 0x1f, 0x55, 0x9e, 0x19, 0xbe, 0xc1, 0x72, 0xc3, 0x0f, 0x7c, 0x47, 0xa6, 0xcb,
353 0xe6, 0x31, 0x6e, 0xb0, 0x2c, 0x85, 0x2c, 0xa3, 0xeb, 0x65, 0xe2, 0x0e, 0xf9, 0x02, 0x2f, 0xd7,
354 0xdc, 0xb4, 0x23, 0x9a, 0xd0, 0xab, 0x99, 0x04, 0xf7, 0x15, 0x4a, 0x2e, 0x4d, 0x34, 0xbb, 0xaa,
355 0xe8, 0xb8, 0xf3, 0x6d, 0xf5, 0xf3, 0xb6, 0x14, 0xe6, 0xa1, 0xde, 0xda, 0xda, 0x0a, 0x2b, 0x2e,
356 0x19, 0xaa, 0x7c, 0xe5, 0x7f, 0xc4, 0x6d, 0xf3, 0x23, 0x4a, 0x3c, 0x7e, 0x9e, 0xed, 0xc0, 0x69,
357 0x77, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xec, 0x41, 0x8b, 0x29, 0x5d, 0x03, 0x00, 0x00,
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400358}
359
360// Reference imports to suppress errors if they are not otherwise used.
361var _ context.Context
362var _ grpc.ClientConn
363
364// This is a compile-time assertion to ensure that this generated file
365// is compatible with the grpc package it is being compiled against.
366const _ = grpc.SupportPackageIsVersion4
367
368// ConfigurationClient is the client API for Configuration service.
369//
370// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
371type ConfigurationClient interface {
372 SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error)
373 SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error)
David Bainbridge142516e2019-04-19 01:34:58 +0000374 GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error)
Scott Baker112b0d42019-08-22 08:32:26 -0700375 UpdateLogLevel(ctx context.Context, in *common.Logging, opts ...grpc.CallOption) (*Empty, error)
376 GetLogLevels(ctx context.Context, in *common.LoggingComponent, opts ...grpc.CallOption) (*common.Loggings, error)
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400377}
378
379type configurationClient struct {
380 cc *grpc.ClientConn
381}
382
383func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient {
384 return &configurationClient{cc}
385}
386
387func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) {
388 out := new(Result)
389 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...)
390 if err != nil {
391 return nil, err
392 }
393 return out, nil
394}
395
396func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) {
397 out := new(Result)
398 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...)
399 if err != nil {
400 return nil, err
401 }
402 return out, nil
403}
404
David Bainbridge142516e2019-04-19 01:34:58 +0000405func (c *configurationClient) GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) {
406 out := new(Count)
407 err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetGoroutineCount", in, out, opts...)
408 if err != nil {
409 return nil, err
410 }
411 return out, nil
412}
413
Scott Baker112b0d42019-08-22 08:32:26 -0700414func (c *configurationClient) UpdateLogLevel(ctx context.Context, in *common.Logging, opts ...grpc.CallOption) (*Empty, error) {
415 out := new(Empty)
416 err := c.cc.Invoke(ctx, "/afrouter.Configuration/UpdateLogLevel", in, out, opts...)
417 if err != nil {
418 return nil, err
419 }
420 return out, nil
421}
422
423func (c *configurationClient) GetLogLevels(ctx context.Context, in *common.LoggingComponent, opts ...grpc.CallOption) (*common.Loggings, error) {
424 out := new(common.Loggings)
425 err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetLogLevels", in, out, opts...)
426 if err != nil {
427 return nil, err
428 }
429 return out, nil
430}
431
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400432// ConfigurationServer is the server API for Configuration service.
433type ConfigurationServer interface {
434 SetConnection(context.Context, *Conn) (*Result, error)
435 SetAffinity(context.Context, *Affinity) (*Result, error)
David Bainbridge142516e2019-04-19 01:34:58 +0000436 GetGoroutineCount(context.Context, *Empty) (*Count, error)
Scott Baker112b0d42019-08-22 08:32:26 -0700437 UpdateLogLevel(context.Context, *common.Logging) (*Empty, error)
438 GetLogLevels(context.Context, *common.LoggingComponent) (*common.Loggings, error)
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400439}
440
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400441func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) {
442 s.RegisterService(&_Configuration_serviceDesc, srv)
443}
444
445func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
446 in := new(Conn)
447 if err := dec(in); err != nil {
448 return nil, err
449 }
450 if interceptor == nil {
451 return srv.(ConfigurationServer).SetConnection(ctx, in)
452 }
453 info := &grpc.UnaryServerInfo{
454 Server: srv,
455 FullMethod: "/afrouter.Configuration/SetConnection",
456 }
457 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
458 return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn))
459 }
460 return interceptor(ctx, in, info, handler)
461}
462
463func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
464 in := new(Affinity)
465 if err := dec(in); err != nil {
466 return nil, err
467 }
468 if interceptor == nil {
469 return srv.(ConfigurationServer).SetAffinity(ctx, in)
470 }
471 info := &grpc.UnaryServerInfo{
472 Server: srv,
473 FullMethod: "/afrouter.Configuration/SetAffinity",
474 }
475 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
476 return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity))
477 }
478 return interceptor(ctx, in, info, handler)
479}
480
David Bainbridge142516e2019-04-19 01:34:58 +0000481func _Configuration_GetGoroutineCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
482 in := new(Empty)
483 if err := dec(in); err != nil {
484 return nil, err
485 }
486 if interceptor == nil {
487 return srv.(ConfigurationServer).GetGoroutineCount(ctx, in)
488 }
489 info := &grpc.UnaryServerInfo{
490 Server: srv,
491 FullMethod: "/afrouter.Configuration/GetGoroutineCount",
492 }
493 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
494 return srv.(ConfigurationServer).GetGoroutineCount(ctx, req.(*Empty))
495 }
496 return interceptor(ctx, in, info, handler)
497}
498
Scott Baker112b0d42019-08-22 08:32:26 -0700499func _Configuration_UpdateLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
500 in := new(common.Logging)
501 if err := dec(in); err != nil {
502 return nil, err
503 }
504 if interceptor == nil {
505 return srv.(ConfigurationServer).UpdateLogLevel(ctx, in)
506 }
507 info := &grpc.UnaryServerInfo{
508 Server: srv,
509 FullMethod: "/afrouter.Configuration/UpdateLogLevel",
510 }
511 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
512 return srv.(ConfigurationServer).UpdateLogLevel(ctx, req.(*common.Logging))
513 }
514 return interceptor(ctx, in, info, handler)
515}
516
517func _Configuration_GetLogLevels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
518 in := new(common.LoggingComponent)
519 if err := dec(in); err != nil {
520 return nil, err
521 }
522 if interceptor == nil {
523 return srv.(ConfigurationServer).GetLogLevels(ctx, in)
524 }
525 info := &grpc.UnaryServerInfo{
526 Server: srv,
527 FullMethod: "/afrouter.Configuration/GetLogLevels",
528 }
529 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
530 return srv.(ConfigurationServer).GetLogLevels(ctx, req.(*common.LoggingComponent))
531 }
532 return interceptor(ctx, in, info, handler)
533}
534
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400535var _Configuration_serviceDesc = grpc.ServiceDesc{
536 ServiceName: "afrouter.Configuration",
537 HandlerType: (*ConfigurationServer)(nil),
538 Methods: []grpc.MethodDesc{
539 {
540 MethodName: "SetConnection",
541 Handler: _Configuration_SetConnection_Handler,
542 },
543 {
544 MethodName: "SetAffinity",
545 Handler: _Configuration_SetAffinity_Handler,
546 },
David Bainbridge142516e2019-04-19 01:34:58 +0000547 {
548 MethodName: "GetGoroutineCount",
549 Handler: _Configuration_GetGoroutineCount_Handler,
550 },
Scott Baker112b0d42019-08-22 08:32:26 -0700551 {
552 MethodName: "UpdateLogLevel",
553 Handler: _Configuration_UpdateLogLevel_Handler,
554 },
555 {
556 MethodName: "GetLogLevels",
557 Handler: _Configuration_GetLogLevels_Handler,
558 },
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400559 },
560 Streams: []grpc.StreamDesc{},
561 Metadata: "voltha_protos/afrouter.proto",
562}