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