blob: 0091b88b03d491376fb31bdfb08551e0b7cefa2d [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"
10 grpc "google.golang.org/grpc"
Matt Jeanneret9fba8652019-04-02 12:00:17 -040011 math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25type Result struct {
26 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
27 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
David Bainbridge142516e2019-04-19 01:34:58 +000028 Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
Matt Jeanneret9fba8652019-04-02 12:00:17 -040029 XXX_NoUnkeyedLiteral struct{} `json:"-"`
30 XXX_unrecognized []byte `json:"-"`
31 XXX_sizecache int32 `json:"-"`
32}
33
34func (m *Result) Reset() { *m = Result{} }
35func (m *Result) String() string { return proto.CompactTextString(m) }
36func (*Result) ProtoMessage() {}
37func (*Result) Descriptor() ([]byte, []int) {
38 return fileDescriptor_be7e2f565b9e1c96, []int{0}
39}
40
41func (m *Result) XXX_Unmarshal(b []byte) error {
42 return xxx_messageInfo_Result.Unmarshal(m, b)
43}
44func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
45 return xxx_messageInfo_Result.Marshal(b, m, deterministic)
46}
47func (m *Result) XXX_Merge(src proto.Message) {
48 xxx_messageInfo_Result.Merge(m, src)
49}
50func (m *Result) XXX_Size() int {
51 return xxx_messageInfo_Result.Size(m)
52}
53func (m *Result) XXX_DiscardUnknown() {
54 xxx_messageInfo_Result.DiscardUnknown(m)
55}
56
57var xxx_messageInfo_Result proto.InternalMessageInfo
58
59func (m *Result) GetSuccess() bool {
60 if m != nil {
61 return m.Success
62 }
63 return false
64}
65
66func (m *Result) GetError() string {
67 if m != nil {
68 return m.Error
69 }
70 return ""
71}
72
David Bainbridge142516e2019-04-19 01:34:58 +000073func (m *Result) GetInfo() string {
74 if m != nil {
75 return m.Info
76 }
77 return ""
78}
79
Matt Jeanneret9fba8652019-04-02 12:00:17 -040080type Empty struct {
81 XXX_NoUnkeyedLiteral struct{} `json:"-"`
82 XXX_unrecognized []byte `json:"-"`
83 XXX_sizecache int32 `json:"-"`
84}
85
86func (m *Empty) Reset() { *m = Empty{} }
87func (m *Empty) String() string { return proto.CompactTextString(m) }
88func (*Empty) ProtoMessage() {}
89func (*Empty) Descriptor() ([]byte, []int) {
90 return fileDescriptor_be7e2f565b9e1c96, []int{1}
91}
92
93func (m *Empty) XXX_Unmarshal(b []byte) error {
94 return xxx_messageInfo_Empty.Unmarshal(m, b)
95}
96func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
97 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
98}
99func (m *Empty) XXX_Merge(src proto.Message) {
100 xxx_messageInfo_Empty.Merge(m, src)
101}
102func (m *Empty) XXX_Size() int {
103 return xxx_messageInfo_Empty.Size(m)
104}
105func (m *Empty) XXX_DiscardUnknown() {
106 xxx_messageInfo_Empty.DiscardUnknown(m)
107}
108
109var xxx_messageInfo_Empty proto.InternalMessageInfo
110
111type Count struct {
112 Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
113 XXX_NoUnkeyedLiteral struct{} `json:"-"`
114 XXX_unrecognized []byte `json:"-"`
115 XXX_sizecache int32 `json:"-"`
116}
117
118func (m *Count) Reset() { *m = Count{} }
119func (m *Count) String() string { return proto.CompactTextString(m) }
120func (*Count) ProtoMessage() {}
121func (*Count) Descriptor() ([]byte, []int) {
122 return fileDescriptor_be7e2f565b9e1c96, []int{2}
123}
124
125func (m *Count) XXX_Unmarshal(b []byte) error {
126 return xxx_messageInfo_Count.Unmarshal(m, b)
127}
128func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
129 return xxx_messageInfo_Count.Marshal(b, m, deterministic)
130}
131func (m *Count) XXX_Merge(src proto.Message) {
132 xxx_messageInfo_Count.Merge(m, src)
133}
134func (m *Count) XXX_Size() int {
135 return xxx_messageInfo_Count.Size(m)
136}
137func (m *Count) XXX_DiscardUnknown() {
138 xxx_messageInfo_Count.DiscardUnknown(m)
139}
140
141var xxx_messageInfo_Count proto.InternalMessageInfo
142
143func (m *Count) GetCount() uint32 {
144 if m != nil {
145 return m.Count
146 }
147 return 0
148}
149
150type Conn struct {
151 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
152 Pkg string `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"`
153 Svc string `protobuf:"bytes,3,opt,name=svc,proto3" json:"svc,omitempty"`
154 Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
155 Backend string `protobuf:"bytes,5,opt,name=backend,proto3" json:"backend,omitempty"`
156 Connection string `protobuf:"bytes,6,opt,name=connection,proto3" json:"connection,omitempty"`
157 Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"`
158 Port uint64 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"`
159 XXX_NoUnkeyedLiteral struct{} `json:"-"`
160 XXX_unrecognized []byte `json:"-"`
161 XXX_sizecache int32 `json:"-"`
162}
163
164func (m *Conn) Reset() { *m = Conn{} }
165func (m *Conn) String() string { return proto.CompactTextString(m) }
166func (*Conn) ProtoMessage() {}
167func (*Conn) Descriptor() ([]byte, []int) {
168 return fileDescriptor_be7e2f565b9e1c96, []int{3}
169}
170
171func (m *Conn) XXX_Unmarshal(b []byte) error {
172 return xxx_messageInfo_Conn.Unmarshal(m, b)
173}
174func (m *Conn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
175 return xxx_messageInfo_Conn.Marshal(b, m, deterministic)
176}
177func (m *Conn) XXX_Merge(src proto.Message) {
178 xxx_messageInfo_Conn.Merge(m, src)
179}
180func (m *Conn) XXX_Size() int {
181 return xxx_messageInfo_Conn.Size(m)
182}
183func (m *Conn) XXX_DiscardUnknown() {
184 xxx_messageInfo_Conn.DiscardUnknown(m)
185}
186
187var xxx_messageInfo_Conn proto.InternalMessageInfo
188
189func (m *Conn) GetServer() string {
190 if m != nil {
191 return m.Server
192 }
193 return ""
194}
195
196func (m *Conn) GetPkg() string {
197 if m != nil {
198 return m.Pkg
199 }
200 return ""
201}
202
203func (m *Conn) GetSvc() string {
204 if m != nil {
205 return m.Svc
206 }
207 return ""
208}
209
210func (m *Conn) GetCluster() string {
211 if m != nil {
212 return m.Cluster
213 }
214 return ""
215}
216
217func (m *Conn) GetBackend() string {
218 if m != nil {
219 return m.Backend
220 }
221 return ""
222}
223
224func (m *Conn) GetConnection() string {
225 if m != nil {
226 return m.Connection
227 }
228 return ""
229}
230
231func (m *Conn) GetAddr() string {
232 if m != nil {
233 return m.Addr
234 }
235 return ""
236}
237
238func (m *Conn) GetPort() uint64 {
239 if m != nil {
240 return m.Port
241 }
242 return 0
243}
244
245type Affinity struct {
246 Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"`
247 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
248 Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
249 Backend string `protobuf:"bytes,4,opt,name=backend,proto3" json:"backend,omitempty"`
250 Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
251 XXX_NoUnkeyedLiteral struct{} `json:"-"`
252 XXX_unrecognized []byte `json:"-"`
253 XXX_sizecache int32 `json:"-"`
254}
255
256func (m *Affinity) Reset() { *m = Affinity{} }
257func (m *Affinity) String() string { return proto.CompactTextString(m) }
258func (*Affinity) ProtoMessage() {}
259func (*Affinity) Descriptor() ([]byte, []int) {
260 return fileDescriptor_be7e2f565b9e1c96, []int{4}
261}
262
263func (m *Affinity) XXX_Unmarshal(b []byte) error {
264 return xxx_messageInfo_Affinity.Unmarshal(m, b)
265}
266func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
267 return xxx_messageInfo_Affinity.Marshal(b, m, deterministic)
268}
269func (m *Affinity) XXX_Merge(src proto.Message) {
270 xxx_messageInfo_Affinity.Merge(m, src)
271}
272func (m *Affinity) XXX_Size() int {
273 return xxx_messageInfo_Affinity.Size(m)
274}
275func (m *Affinity) XXX_DiscardUnknown() {
276 xxx_messageInfo_Affinity.DiscardUnknown(m)
277}
278
279var xxx_messageInfo_Affinity proto.InternalMessageInfo
280
281func (m *Affinity) GetRouter() string {
282 if m != nil {
283 return m.Router
284 }
285 return ""
286}
287
288func (m *Affinity) GetRoute() string {
289 if m != nil {
290 return m.Route
291 }
292 return ""
293}
294
295func (m *Affinity) GetCluster() string {
296 if m != nil {
297 return m.Cluster
298 }
299 return ""
300}
301
302func (m *Affinity) GetBackend() string {
303 if m != nil {
304 return m.Backend
305 }
306 return ""
307}
308
309func (m *Affinity) GetId() string {
310 if m != nil {
311 return m.Id
312 }
313 return ""
314}
315
316func init() {
317 proto.RegisterType((*Result)(nil), "afrouter.Result")
318 proto.RegisterType((*Empty)(nil), "afrouter.Empty")
319 proto.RegisterType((*Count)(nil), "afrouter.Count")
320 proto.RegisterType((*Conn)(nil), "afrouter.Conn")
321 proto.RegisterType((*Affinity)(nil), "afrouter.Affinity")
322}
323
324func init() { proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_be7e2f565b9e1c96) }
325
326var fileDescriptor_be7e2f565b9e1c96 = []byte{
David Bainbridge142516e2019-04-19 01:34:58 +0000327 // 401 bytes of a gzipped FileDescriptorProto
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400328 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x8b, 0xdb, 0x30,
David Bainbridge142516e2019-04-19 01:34:58 +0000329 0x10, 0x85, 0xd7, 0x89, 0xed, 0x78, 0xa7, 0x64, 0x77, 0x2b, 0x4a, 0x11, 0x4b, 0x5b, 0x82, 0x4f,
330 0xb9, 0x6c, 0x0c, 0x5d, 0x4a, 0xcf, 0xad, 0x29, 0xb9, 0xf4, 0xe4, 0xdc, 0x7a, 0x29, 0x8e, 0x2c,
331 0x3b, 0x22, 0x89, 0xc6, 0x48, 0x72, 0x20, 0xd0, 0x9f, 0xd5, 0x73, 0x7f, 0x5b, 0x91, 0x64, 0xc7,
332 0x29, 0x74, 0x6f, 0xef, 0x7b, 0x63, 0x59, 0xf3, 0x34, 0x03, 0xef, 0x4e, 0x78, 0x30, 0xbb, 0xf2,
333 0x67, 0xab, 0xd0, 0xa0, 0xce, 0xca, 0x5a, 0x61, 0x67, 0xb8, 0x5a, 0x39, 0x26, 0xc9, 0xc0, 0xe9,
334 0x77, 0x88, 0x0b, 0xae, 0xbb, 0x83, 0x21, 0x14, 0x66, 0xba, 0x63, 0x8c, 0x6b, 0x4d, 0x83, 0x45,
335 0xb0, 0x4c, 0x8a, 0x01, 0xc9, 0x1b, 0x88, 0xb8, 0x52, 0xa8, 0xe8, 0x64, 0x11, 0x2c, 0x6f, 0x0b,
336 0x0f, 0x84, 0x40, 0x28, 0x64, 0x8d, 0x74, 0xea, 0x4c, 0xa7, 0xd3, 0x19, 0x44, 0xdf, 0x8e, 0xad,
337 0x39, 0xa7, 0xef, 0x21, 0xca, 0xb1, 0x93, 0xc6, 0x9e, 0x65, 0x56, 0xb8, 0x7f, 0xce, 0x0b, 0x0f,
338 0xe9, 0x9f, 0x00, 0xc2, 0x1c, 0xa5, 0x24, 0x6f, 0x21, 0xd6, 0x5c, 0x9d, 0xb8, 0x72, 0xf5, 0xdb,
339 0xa2, 0x27, 0xf2, 0x00, 0xd3, 0x76, 0xdf, 0xf4, 0x17, 0x5a, 0x69, 0x1d, 0x7d, 0x62, 0xfd, 0x6d,
340 0x56, 0xda, 0x86, 0xd9, 0xa1, 0xd3, 0x86, 0x2b, 0x1a, 0x3a, 0x77, 0x40, 0x5b, 0xd9, 0x96, 0x6c,
341 0xcf, 0x65, 0x45, 0x23, 0x5f, 0xe9, 0x91, 0x7c, 0x00, 0x60, 0x28, 0x25, 0x67, 0x46, 0xa0, 0xa4,
342 0xb1, 0x2b, 0x5e, 0x39, 0x36, 0x54, 0x59, 0x55, 0x8a, 0xce, 0x7c, 0x28, 0xab, 0xad, 0xd7, 0xa2,
343 0x32, 0x34, 0x59, 0x04, 0xcb, 0xb0, 0x70, 0x3a, 0xfd, 0x05, 0xc9, 0x97, 0xba, 0x16, 0x52, 0x98,
344 0xb3, 0xcd, 0xe0, 0x1f, 0x73, 0xc8, 0xe0, 0xc9, 0x46, 0x77, 0x6a, 0x78, 0x36, 0x07, 0xd7, 0x5d,
345 0x4f, 0x5f, 0xec, 0x3a, 0xfc, 0xb7, 0xeb, 0x3b, 0x98, 0x88, 0x21, 0xca, 0x44, 0x54, 0x1f, 0x7f,
346 0x07, 0x30, 0xcf, 0x51, 0xd6, 0xa2, 0xe9, 0x54, 0xe9, 0xfa, 0x7e, 0x86, 0xf9, 0x86, 0x9b, 0x7c,
347 0x0c, 0x72, 0xb7, 0xba, 0x8c, 0xdc, 0xba, 0x8f, 0x0f, 0x23, 0xfb, 0x79, 0xa7, 0x37, 0xe4, 0x13,
348 0xbc, 0xda, 0x70, 0x73, 0xc9, 0x41, 0xc6, 0x4f, 0x06, 0xef, 0xbf, 0xc7, 0x3e, 0xc3, 0xeb, 0x35,
349 0x37, 0x6b, 0xb4, 0xbe, 0x90, 0xdc, 0xcf, 0xf9, 0x7e, 0xfc, 0xd0, 0x6d, 0xc0, 0xe3, 0xfd, 0x75,
350 0x03, 0x76, 0xe6, 0x37, 0x5f, 0xb3, 0x1f, 0x4f, 0x8d, 0x30, 0xbb, 0x6e, 0xbb, 0x62, 0x78, 0xcc,
351 0xb0, 0xe5, 0x92, 0xa1, 0xaa, 0x32, 0xbf, 0xa9, 0x4f, 0xfd, 0xa6, 0x36, 0x78, 0x59, 0xd6, 0x6d,
352 0xec, 0xbc, 0xe7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x03, 0xc8, 0x69, 0xcd, 0x02, 0x00,
353 0x00,
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400354}
355
356// Reference imports to suppress errors if they are not otherwise used.
357var _ context.Context
358var _ grpc.ClientConn
359
360// This is a compile-time assertion to ensure that this generated file
361// is compatible with the grpc package it is being compiled against.
362const _ = grpc.SupportPackageIsVersion4
363
364// ConfigurationClient is the client API for Configuration service.
365//
366// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
367type ConfigurationClient interface {
368 SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error)
369 SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error)
David Bainbridge142516e2019-04-19 01:34:58 +0000370 GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error)
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400371}
372
373type configurationClient struct {
374 cc *grpc.ClientConn
375}
376
377func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient {
378 return &configurationClient{cc}
379}
380
381func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) {
382 out := new(Result)
383 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...)
384 if err != nil {
385 return nil, err
386 }
387 return out, nil
388}
389
390func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) {
391 out := new(Result)
392 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...)
393 if err != nil {
394 return nil, err
395 }
396 return out, nil
397}
398
David Bainbridge142516e2019-04-19 01:34:58 +0000399func (c *configurationClient) GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) {
400 out := new(Count)
401 err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetGoroutineCount", in, out, opts...)
402 if err != nil {
403 return nil, err
404 }
405 return out, nil
406}
407
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400408// ConfigurationServer is the server API for Configuration service.
409type ConfigurationServer interface {
410 SetConnection(context.Context, *Conn) (*Result, error)
411 SetAffinity(context.Context, *Affinity) (*Result, error)
David Bainbridge142516e2019-04-19 01:34:58 +0000412 GetGoroutineCount(context.Context, *Empty) (*Count, error)
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400413}
414
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400415func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) {
416 s.RegisterService(&_Configuration_serviceDesc, srv)
417}
418
419func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
420 in := new(Conn)
421 if err := dec(in); err != nil {
422 return nil, err
423 }
424 if interceptor == nil {
425 return srv.(ConfigurationServer).SetConnection(ctx, in)
426 }
427 info := &grpc.UnaryServerInfo{
428 Server: srv,
429 FullMethod: "/afrouter.Configuration/SetConnection",
430 }
431 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
432 return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn))
433 }
434 return interceptor(ctx, in, info, handler)
435}
436
437func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
438 in := new(Affinity)
439 if err := dec(in); err != nil {
440 return nil, err
441 }
442 if interceptor == nil {
443 return srv.(ConfigurationServer).SetAffinity(ctx, in)
444 }
445 info := &grpc.UnaryServerInfo{
446 Server: srv,
447 FullMethod: "/afrouter.Configuration/SetAffinity",
448 }
449 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
450 return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity))
451 }
452 return interceptor(ctx, in, info, handler)
453}
454
David Bainbridge142516e2019-04-19 01:34:58 +0000455func _Configuration_GetGoroutineCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
456 in := new(Empty)
457 if err := dec(in); err != nil {
458 return nil, err
459 }
460 if interceptor == nil {
461 return srv.(ConfigurationServer).GetGoroutineCount(ctx, in)
462 }
463 info := &grpc.UnaryServerInfo{
464 Server: srv,
465 FullMethod: "/afrouter.Configuration/GetGoroutineCount",
466 }
467 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
468 return srv.(ConfigurationServer).GetGoroutineCount(ctx, req.(*Empty))
469 }
470 return interceptor(ctx, in, info, handler)
471}
472
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400473var _Configuration_serviceDesc = grpc.ServiceDesc{
474 ServiceName: "afrouter.Configuration",
475 HandlerType: (*ConfigurationServer)(nil),
476 Methods: []grpc.MethodDesc{
477 {
478 MethodName: "SetConnection",
479 Handler: _Configuration_SetConnection_Handler,
480 },
481 {
482 MethodName: "SetAffinity",
483 Handler: _Configuration_SetAffinity_Handler,
484 },
David Bainbridge142516e2019-04-19 01:34:58 +0000485 {
486 MethodName: "GetGoroutineCount",
487 Handler: _Configuration_GetGoroutineCount_Handler,
488 },
Matt Jeanneret9fba8652019-04-02 12:00:17 -0400489 },
490 Streams: []grpc.StreamDesc{},
491 Metadata: "voltha_protos/afrouter.proto",
492}