blob: c10c7dcab34571bd420d9f7ea0b67c1662f40ff1 [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"
11 codes "google.golang.org/grpc/codes"
12 status "google.golang.org/grpc/status"
13 math "math"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
27type Result struct {
28 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
29 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
30 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
74type Empty struct {
75 XXX_NoUnkeyedLiteral struct{} `json:"-"`
76 XXX_unrecognized []byte `json:"-"`
77 XXX_sizecache int32 `json:"-"`
78}
79
80func (m *Empty) Reset() { *m = Empty{} }
81func (m *Empty) String() string { return proto.CompactTextString(m) }
82func (*Empty) ProtoMessage() {}
83func (*Empty) Descriptor() ([]byte, []int) {
84 return fileDescriptor_be7e2f565b9e1c96, []int{1}
85}
86
87func (m *Empty) XXX_Unmarshal(b []byte) error {
88 return xxx_messageInfo_Empty.Unmarshal(m, b)
89}
90func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
91 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
92}
93func (m *Empty) XXX_Merge(src proto.Message) {
94 xxx_messageInfo_Empty.Merge(m, src)
95}
96func (m *Empty) XXX_Size() int {
97 return xxx_messageInfo_Empty.Size(m)
98}
99func (m *Empty) XXX_DiscardUnknown() {
100 xxx_messageInfo_Empty.DiscardUnknown(m)
101}
102
103var xxx_messageInfo_Empty proto.InternalMessageInfo
104
105type Count struct {
106 Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
107 XXX_NoUnkeyedLiteral struct{} `json:"-"`
108 XXX_unrecognized []byte `json:"-"`
109 XXX_sizecache int32 `json:"-"`
110}
111
112func (m *Count) Reset() { *m = Count{} }
113func (m *Count) String() string { return proto.CompactTextString(m) }
114func (*Count) ProtoMessage() {}
115func (*Count) Descriptor() ([]byte, []int) {
116 return fileDescriptor_be7e2f565b9e1c96, []int{2}
117}
118
119func (m *Count) XXX_Unmarshal(b []byte) error {
120 return xxx_messageInfo_Count.Unmarshal(m, b)
121}
122func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
123 return xxx_messageInfo_Count.Marshal(b, m, deterministic)
124}
125func (m *Count) XXX_Merge(src proto.Message) {
126 xxx_messageInfo_Count.Merge(m, src)
127}
128func (m *Count) XXX_Size() int {
129 return xxx_messageInfo_Count.Size(m)
130}
131func (m *Count) XXX_DiscardUnknown() {
132 xxx_messageInfo_Count.DiscardUnknown(m)
133}
134
135var xxx_messageInfo_Count proto.InternalMessageInfo
136
137func (m *Count) GetCount() uint32 {
138 if m != nil {
139 return m.Count
140 }
141 return 0
142}
143
144type Conn struct {
145 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
146 Pkg string `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"`
147 Svc string `protobuf:"bytes,3,opt,name=svc,proto3" json:"svc,omitempty"`
148 Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
149 Backend string `protobuf:"bytes,5,opt,name=backend,proto3" json:"backend,omitempty"`
150 Connection string `protobuf:"bytes,6,opt,name=connection,proto3" json:"connection,omitempty"`
151 Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"`
152 Port uint64 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"`
153 XXX_NoUnkeyedLiteral struct{} `json:"-"`
154 XXX_unrecognized []byte `json:"-"`
155 XXX_sizecache int32 `json:"-"`
156}
157
158func (m *Conn) Reset() { *m = Conn{} }
159func (m *Conn) String() string { return proto.CompactTextString(m) }
160func (*Conn) ProtoMessage() {}
161func (*Conn) Descriptor() ([]byte, []int) {
162 return fileDescriptor_be7e2f565b9e1c96, []int{3}
163}
164
165func (m *Conn) XXX_Unmarshal(b []byte) error {
166 return xxx_messageInfo_Conn.Unmarshal(m, b)
167}
168func (m *Conn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
169 return xxx_messageInfo_Conn.Marshal(b, m, deterministic)
170}
171func (m *Conn) XXX_Merge(src proto.Message) {
172 xxx_messageInfo_Conn.Merge(m, src)
173}
174func (m *Conn) XXX_Size() int {
175 return xxx_messageInfo_Conn.Size(m)
176}
177func (m *Conn) XXX_DiscardUnknown() {
178 xxx_messageInfo_Conn.DiscardUnknown(m)
179}
180
181var xxx_messageInfo_Conn proto.InternalMessageInfo
182
183func (m *Conn) GetServer() string {
184 if m != nil {
185 return m.Server
186 }
187 return ""
188}
189
190func (m *Conn) GetPkg() string {
191 if m != nil {
192 return m.Pkg
193 }
194 return ""
195}
196
197func (m *Conn) GetSvc() string {
198 if m != nil {
199 return m.Svc
200 }
201 return ""
202}
203
204func (m *Conn) GetCluster() string {
205 if m != nil {
206 return m.Cluster
207 }
208 return ""
209}
210
211func (m *Conn) GetBackend() string {
212 if m != nil {
213 return m.Backend
214 }
215 return ""
216}
217
218func (m *Conn) GetConnection() string {
219 if m != nil {
220 return m.Connection
221 }
222 return ""
223}
224
225func (m *Conn) GetAddr() string {
226 if m != nil {
227 return m.Addr
228 }
229 return ""
230}
231
232func (m *Conn) GetPort() uint64 {
233 if m != nil {
234 return m.Port
235 }
236 return 0
237}
238
239type Affinity struct {
240 Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"`
241 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
242 Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
243 Backend string `protobuf:"bytes,4,opt,name=backend,proto3" json:"backend,omitempty"`
244 Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
245 XXX_NoUnkeyedLiteral struct{} `json:"-"`
246 XXX_unrecognized []byte `json:"-"`
247 XXX_sizecache int32 `json:"-"`
248}
249
250func (m *Affinity) Reset() { *m = Affinity{} }
251func (m *Affinity) String() string { return proto.CompactTextString(m) }
252func (*Affinity) ProtoMessage() {}
253func (*Affinity) Descriptor() ([]byte, []int) {
254 return fileDescriptor_be7e2f565b9e1c96, []int{4}
255}
256
257func (m *Affinity) XXX_Unmarshal(b []byte) error {
258 return xxx_messageInfo_Affinity.Unmarshal(m, b)
259}
260func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
261 return xxx_messageInfo_Affinity.Marshal(b, m, deterministic)
262}
263func (m *Affinity) XXX_Merge(src proto.Message) {
264 xxx_messageInfo_Affinity.Merge(m, src)
265}
266func (m *Affinity) XXX_Size() int {
267 return xxx_messageInfo_Affinity.Size(m)
268}
269func (m *Affinity) XXX_DiscardUnknown() {
270 xxx_messageInfo_Affinity.DiscardUnknown(m)
271}
272
273var xxx_messageInfo_Affinity proto.InternalMessageInfo
274
275func (m *Affinity) GetRouter() string {
276 if m != nil {
277 return m.Router
278 }
279 return ""
280}
281
282func (m *Affinity) GetRoute() string {
283 if m != nil {
284 return m.Route
285 }
286 return ""
287}
288
289func (m *Affinity) GetCluster() string {
290 if m != nil {
291 return m.Cluster
292 }
293 return ""
294}
295
296func (m *Affinity) GetBackend() string {
297 if m != nil {
298 return m.Backend
299 }
300 return ""
301}
302
303func (m *Affinity) GetId() string {
304 if m != nil {
305 return m.Id
306 }
307 return ""
308}
309
310func init() {
311 proto.RegisterType((*Result)(nil), "afrouter.Result")
312 proto.RegisterType((*Empty)(nil), "afrouter.Empty")
313 proto.RegisterType((*Count)(nil), "afrouter.Count")
314 proto.RegisterType((*Conn)(nil), "afrouter.Conn")
315 proto.RegisterType((*Affinity)(nil), "afrouter.Affinity")
316}
317
318func init() { proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_be7e2f565b9e1c96) }
319
320var fileDescriptor_be7e2f565b9e1c96 = []byte{
321 // 365 bytes of a gzipped FileDescriptorProto
322 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x8b, 0xdb, 0x30,
323 0x10, 0x85, 0xeb, 0xc4, 0x76, 0x9c, 0x29, 0x09, 0x41, 0x94, 0x22, 0x4a, 0x5b, 0x82, 0x4f, 0xb9,
324 0x24, 0x86, 0x86, 0x42, 0xaf, 0xad, 0xe9, 0x1f, 0x70, 0x6e, 0x7b, 0x59, 0x1c, 0x59, 0x76, 0x4c,
325 0x12, 0x8d, 0x91, 0x64, 0x43, 0xd8, 0xfd, 0x6d, 0xfb, 0xdb, 0x16, 0x49, 0x76, 0x92, 0x85, 0xdd,
326 0xdb, 0x7c, 0xef, 0x59, 0xe6, 0x3d, 0x69, 0xe0, 0x7b, 0x87, 0x27, 0x7d, 0xc8, 0x1f, 0x1b, 0x89,
327 0x1a, 0x55, 0x92, 0x97, 0x12, 0x5b, 0xcd, 0xe5, 0xc6, 0x32, 0x89, 0x06, 0x8e, 0xff, 0x40, 0x98,
328 0x71, 0xd5, 0x9e, 0x34, 0xa1, 0x30, 0x51, 0x2d, 0x63, 0x5c, 0x29, 0xea, 0x2d, 0xbd, 0x55, 0x94,
329 0x0d, 0x48, 0xbe, 0x40, 0xc0, 0xa5, 0x44, 0x49, 0x47, 0x4b, 0x6f, 0x35, 0xcd, 0x1c, 0xc4, 0x13,
330 0x08, 0xfe, 0x9f, 0x1b, 0x7d, 0x89, 0x7f, 0x40, 0x90, 0x62, 0x2b, 0xb4, 0xf9, 0x8e, 0x99, 0xc1,
331 0x9e, 0x9f, 0x65, 0x0e, 0xe2, 0x17, 0x0f, 0xfc, 0x14, 0x85, 0x20, 0x5f, 0x21, 0x54, 0x5c, 0x76,
332 0x5c, 0x5a, 0x7f, 0x9a, 0xf5, 0x44, 0x16, 0x30, 0x6e, 0x8e, 0x55, 0xff, 0x73, 0x33, 0x1a, 0x45,
333 0x75, 0x8c, 0x8e, 0x9d, 0xa2, 0x3a, 0x66, 0xc2, 0xb1, 0x53, 0xab, 0x34, 0x97, 0xd4, 0xb7, 0xea,
334 0x80, 0xc6, 0xd9, 0xe7, 0xec, 0xc8, 0x45, 0x41, 0x03, 0xe7, 0xf4, 0x48, 0x7e, 0x02, 0x30, 0x14,
335 0x82, 0x33, 0x5d, 0xa3, 0xa0, 0xa1, 0x35, 0xef, 0x14, 0x42, 0xc0, 0xcf, 0x8b, 0x42, 0xd2, 0x89,
336 0x75, 0xec, 0x6c, 0xb4, 0x06, 0xa5, 0xa6, 0xd1, 0xd2, 0x5b, 0xf9, 0x99, 0x9d, 0xe3, 0x67, 0x88,
337 0xfe, 0x96, 0x65, 0x2d, 0x6a, 0x7d, 0x31, 0x1d, 0xdc, 0xc5, 0x0d, 0x1d, 0x1c, 0x99, 0xea, 0x76,
338 0x1a, 0xae, 0xc8, 0xc2, 0x7d, 0xea, 0xf1, 0x87, 0xa9, 0xfd, 0xb7, 0xa9, 0xe7, 0x30, 0xaa, 0x87,
339 0x2a, 0xa3, 0xba, 0xf8, 0xf5, 0x04, 0xb3, 0x14, 0x45, 0x59, 0x57, 0xad, 0xcc, 0x6d, 0xec, 0x2d,
340 0xcc, 0x76, 0x5c, 0xa7, 0xb7, 0x1e, 0xf3, 0xcd, 0xf5, 0x75, 0x8d, 0xfa, 0x6d, 0x71, 0x63, 0xf7,
341 0xb4, 0xf1, 0x27, 0xf2, 0x1b, 0x3e, 0xef, 0xb8, 0xbe, 0xd6, 0x20, 0xb7, 0x4f, 0x06, 0xed, 0xbd,
342 0x63, 0xff, 0x92, 0x87, 0x75, 0x55, 0xeb, 0x43, 0xbb, 0xdf, 0x30, 0x3c, 0x27, 0xd8, 0x70, 0xc1,
343 0x50, 0x16, 0x89, 0xdb, 0xad, 0x75, 0xbf, 0x5b, 0x15, 0x5e, 0xd7, 0x6b, 0x1f, 0x5a, 0x6d, 0xfb,
344 0x1a, 0x00, 0x00, 0xff, 0xff, 0x40, 0x18, 0x4d, 0xa7, 0x7f, 0x02, 0x00, 0x00,
345}
346
347// Reference imports to suppress errors if they are not otherwise used.
348var _ context.Context
349var _ grpc.ClientConn
350
351// This is a compile-time assertion to ensure that this generated file
352// is compatible with the grpc package it is being compiled against.
353const _ = grpc.SupportPackageIsVersion4
354
355// ConfigurationClient is the client API for Configuration service.
356//
357// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
358type ConfigurationClient interface {
359 SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error)
360 SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error)
361}
362
363type configurationClient struct {
364 cc *grpc.ClientConn
365}
366
367func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient {
368 return &configurationClient{cc}
369}
370
371func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) {
372 out := new(Result)
373 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...)
374 if err != nil {
375 return nil, err
376 }
377 return out, nil
378}
379
380func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) {
381 out := new(Result)
382 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...)
383 if err != nil {
384 return nil, err
385 }
386 return out, nil
387}
388
389// ConfigurationServer is the server API for Configuration service.
390type ConfigurationServer interface {
391 SetConnection(context.Context, *Conn) (*Result, error)
392 SetAffinity(context.Context, *Affinity) (*Result, error)
393}
394
395// UnimplementedConfigurationServer can be embedded to have forward compatible implementations.
396type UnimplementedConfigurationServer struct {
397}
398
399func (*UnimplementedConfigurationServer) SetConnection(ctx context.Context, req *Conn) (*Result, error) {
400 return nil, status.Errorf(codes.Unimplemented, "method SetConnection not implemented")
401}
402func (*UnimplementedConfigurationServer) SetAffinity(ctx context.Context, req *Affinity) (*Result, error) {
403 return nil, status.Errorf(codes.Unimplemented, "method SetAffinity not implemented")
404}
405
406func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) {
407 s.RegisterService(&_Configuration_serviceDesc, srv)
408}
409
410func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
411 in := new(Conn)
412 if err := dec(in); err != nil {
413 return nil, err
414 }
415 if interceptor == nil {
416 return srv.(ConfigurationServer).SetConnection(ctx, in)
417 }
418 info := &grpc.UnaryServerInfo{
419 Server: srv,
420 FullMethod: "/afrouter.Configuration/SetConnection",
421 }
422 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
423 return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn))
424 }
425 return interceptor(ctx, in, info, handler)
426}
427
428func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
429 in := new(Affinity)
430 if err := dec(in); err != nil {
431 return nil, err
432 }
433 if interceptor == nil {
434 return srv.(ConfigurationServer).SetAffinity(ctx, in)
435 }
436 info := &grpc.UnaryServerInfo{
437 Server: srv,
438 FullMethod: "/afrouter.Configuration/SetAffinity",
439 }
440 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
441 return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity))
442 }
443 return interceptor(ctx, in, info, handler)
444}
445
446var _Configuration_serviceDesc = grpc.ServiceDesc{
447 ServiceName: "afrouter.Configuration",
448 HandlerType: (*ConfigurationServer)(nil),
449 Methods: []grpc.MethodDesc{
450 {
451 MethodName: "SetConnection",
452 Handler: _Configuration_SetConnection_Handler,
453 },
454 {
455 MethodName: "SetAffinity",
456 Handler: _Configuration_SetAffinity_Handler,
457 },
458 },
459 Streams: []grpc.StreamDesc{},
460 Metadata: "voltha_protos/afrouter.proto",
461}