blob: fa8a57dab59a988ffa5403b97190c03937978579 [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/afrouter.proto
3
William Kurkianad745652019-03-20 08:45:51 -04004package afrouter
William Kurkian1b363f42019-03-12 15:28:12 -04005
6import (
William Kurkianad745652019-03-20 08:45:51 -04007 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030010 common "github.com/opencord/voltha-protos/v3/go/common"
William Kurkian1b363f42019-03-12 15:28:12 -040011 grpc "google.golang.org/grpc"
William Kurkianad745652019-03-20 08:45:51 -040012 math "math"
William Kurkian1b363f42019-03-12 15:28:12 -040013)
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.
William Kurkianad745652019-03-20 08:45:51 -040024const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
William Kurkian1b363f42019-03-12 15:28:12 -040025
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"`
William Kurkian9f2e64c2019-04-16 15:11:44 -040029 Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -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) {
William Kurkianad745652019-03-20 08:45:51 -040039 return fileDescriptor_be7e2f565b9e1c96, []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040040}
William Kurkianad745652019-03-20 08:45:51 -040041
William Kurkian1b363f42019-03-12 15:28:12 -040042func (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}
William Kurkianad745652019-03-20 08:45:51 -040048func (m *Result) XXX_Merge(src proto.Message) {
49 xxx_messageInfo_Result.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -040050}
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
William Kurkian9f2e64c2019-04-16 15:11:44 -040074func (m *Result) GetInfo() string {
75 if m != nil {
76 return m.Info
77 }
78 return ""
79}
80
William Kurkian6ea97f82019-03-13 15:51:55 -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) {
William Kurkianad745652019-03-20 08:45:51 -040091 return fileDescriptor_be7e2f565b9e1c96, []int{1}
William Kurkian6ea97f82019-03-13 15:51:55 -040092}
William Kurkianad745652019-03-20 08:45:51 -040093
William Kurkian6ea97f82019-03-13 15:51:55 -040094func (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}
William Kurkianad745652019-03-20 08:45:51 -0400100func (m *Empty) XXX_Merge(src proto.Message) {
101 xxx_messageInfo_Empty.Merge(m, src)
William Kurkian6ea97f82019-03-13 15:51:55 -0400102}
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) {
William Kurkianad745652019-03-20 08:45:51 -0400123 return fileDescriptor_be7e2f565b9e1c96, []int{2}
William Kurkian6ea97f82019-03-13 15:51:55 -0400124}
William Kurkianad745652019-03-20 08:45:51 -0400125
William Kurkian6ea97f82019-03-13 15:51:55 -0400126func (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}
William Kurkianad745652019-03-20 08:45:51 -0400132func (m *Count) XXX_Merge(src proto.Message) {
133 xxx_messageInfo_Count.Merge(m, src)
William Kurkian6ea97f82019-03-13 15:51:55 -0400134}
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
William Kurkian1b363f42019-03-12 15:28:12 -0400151type 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) {
William Kurkianad745652019-03-20 08:45:51 -0400169 return fileDescriptor_be7e2f565b9e1c96, []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400170}
William Kurkianad745652019-03-20 08:45:51 -0400171
William Kurkian1b363f42019-03-12 15:28:12 -0400172func (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}
William Kurkianad745652019-03-20 08:45:51 -0400178func (m *Conn) XXX_Merge(src proto.Message) {
179 xxx_messageInfo_Conn.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400180}
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) {
William Kurkianad745652019-03-20 08:45:51 -0400261 return fileDescriptor_be7e2f565b9e1c96, []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400262}
William Kurkianad745652019-03-20 08:45:51 -0400263
William Kurkian1b363f42019-03-12 15:28:12 -0400264func (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}
William Kurkianad745652019-03-20 08:45:51 -0400270func (m *Affinity) XXX_Merge(src proto.Message) {
271 xxx_messageInfo_Affinity.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400272}
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")
William Kurkian6ea97f82019-03-13 15:51:55 -0400319 proto.RegisterType((*Empty)(nil), "afrouter.Empty")
320 proto.RegisterType((*Count)(nil), "afrouter.Count")
William Kurkian1b363f42019-03-12 15:28:12 -0400321 proto.RegisterType((*Conn)(nil), "afrouter.Conn")
322 proto.RegisterType((*Affinity)(nil), "afrouter.Affinity")
323}
324
William Kurkianad745652019-03-20 08:45:51 -0400325func init() { proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_be7e2f565b9e1c96) }
326
327var fileDescriptor_be7e2f565b9e1c96 = []byte{
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300328 // 472 bytes of a gzipped FileDescriptorProto
329 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4b, 0x8f, 0xd3, 0x30,
330 0x10, 0xee, 0xbb, 0xdd, 0x81, 0x3e, 0x30, 0x08, 0x59, 0x11, 0xa0, 0x2a, 0xa7, 0x5e, 0x48, 0x11,
331 0x05, 0x71, 0xe1, 0x02, 0x11, 0xea, 0xa5, 0xa7, 0xac, 0xb8, 0x70, 0x41, 0xa9, 0xe3, 0x64, 0xad,
332 0x6d, 0x3d, 0x91, 0xed, 0x44, 0x5a, 0x89, 0x1f, 0xc4, 0xaf, 0xe0, 0xb7, 0x21, 0xdb, 0x49, 0xdb,
333 0xad, 0xe0, 0xf6, 0x3d, 0x66, 0xec, 0xf9, 0xfc, 0x80, 0x57, 0x35, 0x1e, 0xcc, 0x5d, 0xfa, 0xb3,
334 0x54, 0x68, 0x50, 0xaf, 0xd3, 0x5c, 0x61, 0x65, 0xb8, 0x8a, 0x1c, 0x27, 0x93, 0x96, 0x07, 0xc1,
335 0xe3, 0x3a, 0x86, 0xc7, 0x23, 0x4a, 0x5f, 0x15, 0xee, 0x60, 0x94, 0x70, 0x5d, 0x1d, 0x0c, 0xa1,
336 0x30, 0xd6, 0x15, 0x63, 0x5c, 0x6b, 0xda, 0x5d, 0x76, 0x57, 0x93, 0xa4, 0xa5, 0xe4, 0x05, 0x0c,
337 0xb9, 0x52, 0xa8, 0x68, 0x6f, 0xd9, 0x5d, 0xdd, 0x24, 0x9e, 0x10, 0x02, 0x03, 0x21, 0x73, 0xa4,
338 0x7d, 0x27, 0x3a, 0x1c, 0x8e, 0x61, 0xf8, 0xed, 0x58, 0x9a, 0x87, 0xf0, 0x35, 0x0c, 0x63, 0xac,
339 0xa4, 0xb1, 0xbd, 0xcc, 0x02, 0xb7, 0xe6, 0x34, 0xf1, 0x24, 0xfc, 0xd3, 0x85, 0x41, 0x8c, 0x52,
340 0x92, 0x97, 0x30, 0xd2, 0x5c, 0xd5, 0x5c, 0x39, 0xff, 0x26, 0x69, 0x18, 0x59, 0x40, 0xbf, 0xbc,
341 0x2f, 0x9a, 0x0d, 0x2d, 0xb4, 0x8a, 0xae, 0x59, 0xb3, 0x9b, 0x85, 0x76, 0x60, 0x76, 0xa8, 0xb4,
342 0xe1, 0x8a, 0x0e, 0x9c, 0xda, 0x52, 0xeb, 0xec, 0x53, 0x76, 0xcf, 0x65, 0x46, 0x87, 0xde, 0x69,
343 0x28, 0x79, 0x03, 0xc0, 0x50, 0x4a, 0xce, 0x8c, 0x40, 0x49, 0x47, 0xce, 0xbc, 0x50, 0x6c, 0xa8,
344 0x34, 0xcb, 0x14, 0x1d, 0xfb, 0x50, 0x16, 0x5b, 0xad, 0x44, 0x65, 0xe8, 0x64, 0xd9, 0x5d, 0x0d,
345 0x12, 0x87, 0xc3, 0x5f, 0x30, 0xf9, 0x92, 0xe7, 0x42, 0x0a, 0xf3, 0x60, 0x33, 0xf8, 0x83, 0x6e,
346 0x33, 0x78, 0x66, 0xa3, 0x3b, 0xd4, 0x1e, 0x9b, 0x23, 0x97, 0x53, 0xf7, 0xff, 0x3b, 0xf5, 0xe0,
347 0xf1, 0xd4, 0x33, 0xe8, 0x89, 0x36, 0x4a, 0x4f, 0x64, 0xef, 0x7f, 0xf7, 0x60, 0x1a, 0xa3, 0xcc,
348 0x45, 0x51, 0xa9, 0xd4, 0xcd, 0xbd, 0x81, 0xe9, 0x2d, 0x37, 0xf1, 0x39, 0xc8, 0x2c, 0x3a, 0x3d,
349 0x07, 0xab, 0x06, 0x8b, 0x33, 0xf7, 0xf7, 0x1d, 0x76, 0xc8, 0x47, 0x78, 0x72, 0xcb, 0xcd, 0x29,
350 0x07, 0x39, 0x97, 0xb4, 0xda, 0x3f, 0xdb, 0x3e, 0xc1, 0xb3, 0x2d, 0x37, 0x5b, 0xb4, 0xba, 0x90,
351 0xdc, 0xdf, 0xf3, 0xfc, 0x5c, 0xe8, 0x5e, 0x40, 0x30, 0xbf, 0x1c, 0xc0, 0xde, 0x79, 0x87, 0x7c,
352 0x80, 0xd9, 0xf7, 0x32, 0x4b, 0x0d, 0xdf, 0x61, 0xb1, 0xe3, 0x35, 0x3f, 0x90, 0x79, 0xd4, 0x3c,
353 0xc6, 0x1d, 0x16, 0x85, 0x90, 0x45, 0x70, 0xbd, 0x4c, 0xd8, 0x21, 0x9f, 0xe1, 0xe9, 0x96, 0x9b,
354 0xb6, 0x45, 0x13, 0x7a, 0xd5, 0x13, 0xe3, 0xb1, 0x44, 0xc9, 0xa5, 0x09, 0x16, 0x57, 0x8e, 0x0e,
355 0x3b, 0x5f, 0xb7, 0xf0, 0x1c, 0x55, 0x11, 0x61, 0xc9, 0x25, 0x43, 0x95, 0x45, 0xfe, 0x2b, 0xfc,
356 0x78, 0x57, 0x08, 0x73, 0x57, 0xed, 0x6d, 0xc3, 0xba, 0xf5, 0xd6, 0xde, 0x7b, 0xdb, 0x7c, 0x93,
357 0x7a, 0xb3, 0x2e, 0xf0, 0xf4, 0xa9, 0xf6, 0x23, 0x27, 0x6f, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff,
358 0xa9, 0x0c, 0xed, 0xe3, 0x75, 0x03, 0x00, 0x00,
William Kurkianad745652019-03-20 08:45:51 -0400359}
360
William Kurkian1b363f42019-03-12 15:28:12 -0400361// Reference imports to suppress errors if they are not otherwise used.
362var _ context.Context
363var _ grpc.ClientConn
364
365// This is a compile-time assertion to ensure that this generated file
366// is compatible with the grpc package it is being compiled against.
367const _ = grpc.SupportPackageIsVersion4
368
369// ConfigurationClient is the client API for Configuration service.
370//
371// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
372type ConfigurationClient interface {
373 SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error)
374 SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error)
William Kurkian9f2e64c2019-04-16 15:11:44 -0400375 GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error)
Scott Baker99af94e2019-08-20 10:45:06 -0700376 UpdateLogLevel(ctx context.Context, in *common.Logging, opts ...grpc.CallOption) (*Empty, error)
377 GetLogLevels(ctx context.Context, in *common.LoggingComponent, opts ...grpc.CallOption) (*common.Loggings, error)
William Kurkian1b363f42019-03-12 15:28:12 -0400378}
379
380type configurationClient struct {
381 cc *grpc.ClientConn
382}
383
384func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient {
385 return &configurationClient{cc}
386}
387
388func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) {
389 out := new(Result)
390 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...)
391 if err != nil {
392 return nil, err
393 }
394 return out, nil
395}
396
397func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) {
398 out := new(Result)
399 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...)
400 if err != nil {
401 return nil, err
402 }
403 return out, nil
404}
405
William Kurkian9f2e64c2019-04-16 15:11:44 -0400406func (c *configurationClient) GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) {
407 out := new(Count)
408 err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetGoroutineCount", in, out, opts...)
409 if err != nil {
410 return nil, err
411 }
412 return out, nil
413}
414
Scott Baker99af94e2019-08-20 10:45:06 -0700415func (c *configurationClient) UpdateLogLevel(ctx context.Context, in *common.Logging, opts ...grpc.CallOption) (*Empty, error) {
416 out := new(Empty)
417 err := c.cc.Invoke(ctx, "/afrouter.Configuration/UpdateLogLevel", in, out, opts...)
418 if err != nil {
419 return nil, err
420 }
421 return out, nil
422}
423
424func (c *configurationClient) GetLogLevels(ctx context.Context, in *common.LoggingComponent, opts ...grpc.CallOption) (*common.Loggings, error) {
425 out := new(common.Loggings)
426 err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetLogLevels", in, out, opts...)
427 if err != nil {
428 return nil, err
429 }
430 return out, nil
431}
432
William Kurkian1b363f42019-03-12 15:28:12 -0400433// ConfigurationServer is the server API for Configuration service.
434type ConfigurationServer interface {
435 SetConnection(context.Context, *Conn) (*Result, error)
436 SetAffinity(context.Context, *Affinity) (*Result, error)
William Kurkian9f2e64c2019-04-16 15:11:44 -0400437 GetGoroutineCount(context.Context, *Empty) (*Count, error)
Scott Baker99af94e2019-08-20 10:45:06 -0700438 UpdateLogLevel(context.Context, *common.Logging) (*Empty, error)
439 GetLogLevels(context.Context, *common.LoggingComponent) (*common.Loggings, error)
William Kurkian1b363f42019-03-12 15:28:12 -0400440}
441
442func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) {
443 s.RegisterService(&_Configuration_serviceDesc, srv)
444}
445
446func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
447 in := new(Conn)
448 if err := dec(in); err != nil {
449 return nil, err
450 }
451 if interceptor == nil {
452 return srv.(ConfigurationServer).SetConnection(ctx, in)
453 }
454 info := &grpc.UnaryServerInfo{
455 Server: srv,
456 FullMethod: "/afrouter.Configuration/SetConnection",
457 }
458 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
459 return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn))
460 }
461 return interceptor(ctx, in, info, handler)
462}
463
464func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
465 in := new(Affinity)
466 if err := dec(in); err != nil {
467 return nil, err
468 }
469 if interceptor == nil {
470 return srv.(ConfigurationServer).SetAffinity(ctx, in)
471 }
472 info := &grpc.UnaryServerInfo{
473 Server: srv,
474 FullMethod: "/afrouter.Configuration/SetAffinity",
475 }
476 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
477 return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity))
478 }
479 return interceptor(ctx, in, info, handler)
480}
481
William Kurkian9f2e64c2019-04-16 15:11:44 -0400482func _Configuration_GetGoroutineCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
483 in := new(Empty)
484 if err := dec(in); err != nil {
485 return nil, err
486 }
487 if interceptor == nil {
488 return srv.(ConfigurationServer).GetGoroutineCount(ctx, in)
489 }
490 info := &grpc.UnaryServerInfo{
491 Server: srv,
492 FullMethod: "/afrouter.Configuration/GetGoroutineCount",
493 }
494 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
495 return srv.(ConfigurationServer).GetGoroutineCount(ctx, req.(*Empty))
496 }
497 return interceptor(ctx, in, info, handler)
498}
499
Scott Baker99af94e2019-08-20 10:45:06 -0700500func _Configuration_UpdateLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
501 in := new(common.Logging)
502 if err := dec(in); err != nil {
503 return nil, err
504 }
505 if interceptor == nil {
506 return srv.(ConfigurationServer).UpdateLogLevel(ctx, in)
507 }
508 info := &grpc.UnaryServerInfo{
509 Server: srv,
510 FullMethod: "/afrouter.Configuration/UpdateLogLevel",
511 }
512 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
513 return srv.(ConfigurationServer).UpdateLogLevel(ctx, req.(*common.Logging))
514 }
515 return interceptor(ctx, in, info, handler)
516}
517
518func _Configuration_GetLogLevels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
519 in := new(common.LoggingComponent)
520 if err := dec(in); err != nil {
521 return nil, err
522 }
523 if interceptor == nil {
524 return srv.(ConfigurationServer).GetLogLevels(ctx, in)
525 }
526 info := &grpc.UnaryServerInfo{
527 Server: srv,
528 FullMethod: "/afrouter.Configuration/GetLogLevels",
529 }
530 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
531 return srv.(ConfigurationServer).GetLogLevels(ctx, req.(*common.LoggingComponent))
532 }
533 return interceptor(ctx, in, info, handler)
534}
535
William Kurkian1b363f42019-03-12 15:28:12 -0400536var _Configuration_serviceDesc = grpc.ServiceDesc{
537 ServiceName: "afrouter.Configuration",
538 HandlerType: (*ConfigurationServer)(nil),
539 Methods: []grpc.MethodDesc{
540 {
541 MethodName: "SetConnection",
542 Handler: _Configuration_SetConnection_Handler,
543 },
544 {
545 MethodName: "SetAffinity",
546 Handler: _Configuration_SetAffinity_Handler,
547 },
William Kurkian9f2e64c2019-04-16 15:11:44 -0400548 {
549 MethodName: "GetGoroutineCount",
550 Handler: _Configuration_GetGoroutineCount_Handler,
551 },
Scott Baker99af94e2019-08-20 10:45:06 -0700552 {
553 MethodName: "UpdateLogLevel",
554 Handler: _Configuration_UpdateLogLevel_Handler,
555 },
556 {
557 MethodName: "GetLogLevels",
558 Handler: _Configuration_GetLogLevels_Handler,
559 },
William Kurkian1b363f42019-03-12 15:28:12 -0400560 },
561 Streams: []grpc.StreamDesc{},
562 Metadata: "voltha_protos/afrouter.proto",
563}