blob: c80cbc9dcff999dddcf1598ce96fb04be71bace3 [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) {
38 return fileDescriptor_afrouter_bf0ddf9ad3e54d0f, []int{0}
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 (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
72type Conn struct {
73 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
74 Pkg string `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"`
75 Svc string `protobuf:"bytes,3,opt,name=svc,proto3" json:"svc,omitempty"`
76 Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
77 Backend string `protobuf:"bytes,5,opt,name=backend,proto3" json:"backend,omitempty"`
78 Connection string `protobuf:"bytes,6,opt,name=connection,proto3" json:"connection,omitempty"`
79 Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"`
80 Port uint64 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"`
81 XXX_NoUnkeyedLiteral struct{} `json:"-"`
82 XXX_unrecognized []byte `json:"-"`
83 XXX_sizecache int32 `json:"-"`
84}
85
86func (m *Conn) Reset() { *m = Conn{} }
87func (m *Conn) String() string { return proto.CompactTextString(m) }
88func (*Conn) ProtoMessage() {}
89func (*Conn) Descriptor() ([]byte, []int) {
90 return fileDescriptor_afrouter_bf0ddf9ad3e54d0f, []int{1}
91}
92func (m *Conn) XXX_Unmarshal(b []byte) error {
93 return xxx_messageInfo_Conn.Unmarshal(m, b)
94}
95func (m *Conn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
96 return xxx_messageInfo_Conn.Marshal(b, m, deterministic)
97}
98func (dst *Conn) XXX_Merge(src proto.Message) {
99 xxx_messageInfo_Conn.Merge(dst, src)
100}
101func (m *Conn) XXX_Size() int {
102 return xxx_messageInfo_Conn.Size(m)
103}
104func (m *Conn) XXX_DiscardUnknown() {
105 xxx_messageInfo_Conn.DiscardUnknown(m)
106}
107
108var xxx_messageInfo_Conn proto.InternalMessageInfo
109
110func (m *Conn) GetServer() string {
111 if m != nil {
112 return m.Server
113 }
114 return ""
115}
116
117func (m *Conn) GetPkg() string {
118 if m != nil {
119 return m.Pkg
120 }
121 return ""
122}
123
124func (m *Conn) GetSvc() string {
125 if m != nil {
126 return m.Svc
127 }
128 return ""
129}
130
131func (m *Conn) GetCluster() string {
132 if m != nil {
133 return m.Cluster
134 }
135 return ""
136}
137
138func (m *Conn) GetBackend() string {
139 if m != nil {
140 return m.Backend
141 }
142 return ""
143}
144
145func (m *Conn) GetConnection() string {
146 if m != nil {
147 return m.Connection
148 }
149 return ""
150}
151
152func (m *Conn) GetAddr() string {
153 if m != nil {
154 return m.Addr
155 }
156 return ""
157}
158
159func (m *Conn) GetPort() uint64 {
160 if m != nil {
161 return m.Port
162 }
163 return 0
164}
165
166type Affinity struct {
167 Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"`
168 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
169 Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
170 Backend string `protobuf:"bytes,4,opt,name=backend,proto3" json:"backend,omitempty"`
171 Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
172 XXX_NoUnkeyedLiteral struct{} `json:"-"`
173 XXX_unrecognized []byte `json:"-"`
174 XXX_sizecache int32 `json:"-"`
175}
176
177func (m *Affinity) Reset() { *m = Affinity{} }
178func (m *Affinity) String() string { return proto.CompactTextString(m) }
179func (*Affinity) ProtoMessage() {}
180func (*Affinity) Descriptor() ([]byte, []int) {
181 return fileDescriptor_afrouter_bf0ddf9ad3e54d0f, []int{2}
182}
183func (m *Affinity) XXX_Unmarshal(b []byte) error {
184 return xxx_messageInfo_Affinity.Unmarshal(m, b)
185}
186func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
187 return xxx_messageInfo_Affinity.Marshal(b, m, deterministic)
188}
189func (dst *Affinity) XXX_Merge(src proto.Message) {
190 xxx_messageInfo_Affinity.Merge(dst, src)
191}
192func (m *Affinity) XXX_Size() int {
193 return xxx_messageInfo_Affinity.Size(m)
194}
195func (m *Affinity) XXX_DiscardUnknown() {
196 xxx_messageInfo_Affinity.DiscardUnknown(m)
197}
198
199var xxx_messageInfo_Affinity proto.InternalMessageInfo
200
201func (m *Affinity) GetRouter() string {
202 if m != nil {
203 return m.Router
204 }
205 return ""
206}
207
208func (m *Affinity) GetRoute() string {
209 if m != nil {
210 return m.Route
211 }
212 return ""
213}
214
215func (m *Affinity) GetCluster() string {
216 if m != nil {
217 return m.Cluster
218 }
219 return ""
220}
221
222func (m *Affinity) GetBackend() string {
223 if m != nil {
224 return m.Backend
225 }
226 return ""
227}
228
229func (m *Affinity) GetId() string {
230 if m != nil {
231 return m.Id
232 }
233 return ""
234}
235
236func init() {
237 proto.RegisterType((*Result)(nil), "afrouter.Result")
238 proto.RegisterType((*Conn)(nil), "afrouter.Conn")
239 proto.RegisterType((*Affinity)(nil), "afrouter.Affinity")
240}
241
242// Reference imports to suppress errors if they are not otherwise used.
243var _ context.Context
244var _ grpc.ClientConn
245
246// This is a compile-time assertion to ensure that this generated file
247// is compatible with the grpc package it is being compiled against.
248const _ = grpc.SupportPackageIsVersion4
249
250// ConfigurationClient is the client API for Configuration service.
251//
252// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
253type ConfigurationClient interface {
254 SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error)
255 SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error)
256}
257
258type configurationClient struct {
259 cc *grpc.ClientConn
260}
261
262func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient {
263 return &configurationClient{cc}
264}
265
266func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) {
267 out := new(Result)
268 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...)
269 if err != nil {
270 return nil, err
271 }
272 return out, nil
273}
274
275func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) {
276 out := new(Result)
277 err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...)
278 if err != nil {
279 return nil, err
280 }
281 return out, nil
282}
283
284// ConfigurationServer is the server API for Configuration service.
285type ConfigurationServer interface {
286 SetConnection(context.Context, *Conn) (*Result, error)
287 SetAffinity(context.Context, *Affinity) (*Result, error)
288}
289
290func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) {
291 s.RegisterService(&_Configuration_serviceDesc, srv)
292}
293
294func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
295 in := new(Conn)
296 if err := dec(in); err != nil {
297 return nil, err
298 }
299 if interceptor == nil {
300 return srv.(ConfigurationServer).SetConnection(ctx, in)
301 }
302 info := &grpc.UnaryServerInfo{
303 Server: srv,
304 FullMethod: "/afrouter.Configuration/SetConnection",
305 }
306 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
307 return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn))
308 }
309 return interceptor(ctx, in, info, handler)
310}
311
312func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
313 in := new(Affinity)
314 if err := dec(in); err != nil {
315 return nil, err
316 }
317 if interceptor == nil {
318 return srv.(ConfigurationServer).SetAffinity(ctx, in)
319 }
320 info := &grpc.UnaryServerInfo{
321 Server: srv,
322 FullMethod: "/afrouter.Configuration/SetAffinity",
323 }
324 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
325 return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity))
326 }
327 return interceptor(ctx, in, info, handler)
328}
329
330var _Configuration_serviceDesc = grpc.ServiceDesc{
331 ServiceName: "afrouter.Configuration",
332 HandlerType: (*ConfigurationServer)(nil),
333 Methods: []grpc.MethodDesc{
334 {
335 MethodName: "SetConnection",
336 Handler: _Configuration_SetConnection_Handler,
337 },
338 {
339 MethodName: "SetAffinity",
340 Handler: _Configuration_SetAffinity_Handler,
341 },
342 },
343 Streams: []grpc.StreamDesc{},
344 Metadata: "voltha_protos/afrouter.proto",
345}
346
347func init() {
348 proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_afrouter_bf0ddf9ad3e54d0f)
349}
350
351var fileDescriptor_afrouter_bf0ddf9ad3e54d0f = []byte{
352 // 342 bytes of a gzipped FileDescriptorProto
353 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6a, 0xe3, 0x30,
354 0x10, 0x86, 0xd7, 0x89, 0xe3, 0x38, 0xb3, 0x24, 0x04, 0xb1, 0x2c, 0x62, 0x59, 0x4a, 0xf0, 0x29,
355 0x97, 0xc4, 0xd0, 0x50, 0xe8, 0xb5, 0xcd, 0x1b, 0x38, 0xb7, 0x5e, 0x8a, 0x23, 0xcb, 0x8e, 0x49,
356 0xaa, 0x31, 0x92, 0x6c, 0x28, 0xed, 0xb3, 0xf5, 0xd9, 0x8a, 0x24, 0x2b, 0x49, 0xa1, 0xbd, 0xcd,
357 0xf7, 0x8f, 0x07, 0xff, 0xbf, 0x66, 0xe0, 0x7f, 0x87, 0x27, 0x7d, 0xc8, 0x9f, 0x1b, 0x89, 0x1a,
358 0x55, 0x9a, 0x97, 0x12, 0x5b, 0xcd, 0xe5, 0xda, 0x32, 0x89, 0x3d, 0x27, 0xf7, 0x10, 0x65, 0x5c,
359 0xb5, 0x27, 0x4d, 0x28, 0x8c, 0x55, 0xcb, 0x18, 0x57, 0x8a, 0x06, 0x8b, 0x60, 0x19, 0x67, 0x1e,
360 0xc9, 0x1f, 0x18, 0x71, 0x29, 0x51, 0xd2, 0xc1, 0x22, 0x58, 0x4e, 0x32, 0x07, 0xc9, 0x47, 0x00,
361 0xe1, 0x16, 0x85, 0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0x05, 0x43, 0x59, 0xa4, 0xee, 0x66, 0x56, 0xfd, 0xcd,
373 0x54, 0x78, 0x3e, 0x9b, 0x7d, 0x64, 0xb5, 0xcd, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x09,
374 0xb0, 0xd2, 0x57, 0x02, 0x00, 0x00,
375}