blob: ffe8dc3ecaeb8fdbb96c50d8a3aebbe2dbdca516 [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"
divyadesaid11cf312020-02-26 12:23:31 +000010 _ "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{
divyadesaid11cf312020-02-26 12:23:31 +0000328 // 420 bytes of a gzipped FileDescriptor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0xb0, 0xbc, 0x3d, 0x0f, 0x60, 0xdf, 0xfc, 0xea, 0xdb, 0x1e, 0x5e,
352 0xa1, 0xaa, 0x52, 0x6c, 0xb8, 0x64, 0xa8, 0x8a, 0xd4, 0xaf, 0xe5, 0xcf, 0x8f, 0x95, 0x30, 0x0f,
353 0xed, 0x21, 0x65, 0x58, 0x6f, 0x82, 0xb7, 0xf1, 0xde, 0x87, 0x7e, 0x65, 0xbb, 0xed, 0xa6, 0xc2,
354 0xd3, 0x82, 0x1f, 0xa6, 0x4e, 0xde, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x28, 0xe9, 0x22,
355 0x01, 0x03, 0x00, 0x00,
William Kurkianad745652019-03-20 08:45:51 -0400356}
357
William Kurkian1b363f42019-03-12 15:28:12 -0400358// Reference imports to suppress errors if they are not otherwise used.
359var _ context.Context
360var _ grpc.ClientConn
361
362// This is a compile-time assertion to ensure that this generated file
363// is compatible with the grpc package it is being compiled against.
364const _ = grpc.SupportPackageIsVersion4
365
366// ConfigurationClient is the client API for Configuration service.
367//
368// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
369type ConfigurationClient interface {
370 SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error)
371 SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error)
William Kurkian9f2e64c2019-04-16 15:11:44 -0400372 GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error)
William Kurkian1b363f42019-03-12 15:28:12 -0400373}
374
375type configurationClient struct {
376 cc *grpc.ClientConn
377}
378
379func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient {
380 return &configurationClient{cc}
381}
382
383func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) {
384 out := new(Result)
385 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...)
386 if err != nil {
387 return nil, err
388 }
389 return out, nil
390}
391
392func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) {
393 out := new(Result)
394 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...)
395 if err != nil {
396 return nil, err
397 }
398 return out, nil
399}
400
William Kurkian9f2e64c2019-04-16 15:11:44 -0400401func (c *configurationClient) GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) {
402 out := new(Count)
403 err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetGoroutineCount", in, out, opts...)
404 if err != nil {
405 return nil, err
406 }
407 return out, nil
408}
409
William Kurkian1b363f42019-03-12 15:28:12 -0400410// ConfigurationServer is the server API for Configuration service.
411type ConfigurationServer interface {
412 SetConnection(context.Context, *Conn) (*Result, error)
413 SetAffinity(context.Context, *Affinity) (*Result, error)
William Kurkian9f2e64c2019-04-16 15:11:44 -0400414 GetGoroutineCount(context.Context, *Empty) (*Count, error)
William Kurkian1b363f42019-03-12 15:28:12 -0400415}
416
417func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) {
418 s.RegisterService(&_Configuration_serviceDesc, srv)
419}
420
421func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
422 in := new(Conn)
423 if err := dec(in); err != nil {
424 return nil, err
425 }
426 if interceptor == nil {
427 return srv.(ConfigurationServer).SetConnection(ctx, in)
428 }
429 info := &grpc.UnaryServerInfo{
430 Server: srv,
431 FullMethod: "/afrouter.Configuration/SetConnection",
432 }
433 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
434 return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn))
435 }
436 return interceptor(ctx, in, info, handler)
437}
438
439func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
440 in := new(Affinity)
441 if err := dec(in); err != nil {
442 return nil, err
443 }
444 if interceptor == nil {
445 return srv.(ConfigurationServer).SetAffinity(ctx, in)
446 }
447 info := &grpc.UnaryServerInfo{
448 Server: srv,
449 FullMethod: "/afrouter.Configuration/SetAffinity",
450 }
451 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
452 return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity))
453 }
454 return interceptor(ctx, in, info, handler)
455}
456
William Kurkian9f2e64c2019-04-16 15:11:44 -0400457func _Configuration_GetGoroutineCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
458 in := new(Empty)
459 if err := dec(in); err != nil {
460 return nil, err
461 }
462 if interceptor == nil {
463 return srv.(ConfigurationServer).GetGoroutineCount(ctx, in)
464 }
465 info := &grpc.UnaryServerInfo{
466 Server: srv,
467 FullMethod: "/afrouter.Configuration/GetGoroutineCount",
468 }
469 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
470 return srv.(ConfigurationServer).GetGoroutineCount(ctx, req.(*Empty))
471 }
472 return interceptor(ctx, in, info, handler)
473}
474
William Kurkian1b363f42019-03-12 15:28:12 -0400475var _Configuration_serviceDesc = grpc.ServiceDesc{
476 ServiceName: "afrouter.Configuration",
477 HandlerType: (*ConfigurationServer)(nil),
478 Methods: []grpc.MethodDesc{
479 {
480 MethodName: "SetConnection",
481 Handler: _Configuration_SetConnection_Handler,
482 },
483 {
484 MethodName: "SetAffinity",
485 Handler: _Configuration_SetAffinity_Handler,
486 },
William Kurkian9f2e64c2019-04-16 15:11:44 -0400487 {
488 MethodName: "GetGoroutineCount",
489 Handler: _Configuration_GetGoroutineCount_Handler,
490 },
William Kurkian1b363f42019-03-12 15:28:12 -0400491 },
492 Streams: []grpc.StreamDesc{},
493 Metadata: "voltha_protos/afrouter.proto",
494}