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