William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/afrouter.proto |
| 3 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 4 | package afrouter |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | |
| 6 | import ( |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 10 | grpc "google.golang.org/grpc" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 11 | codes "google.golang.org/grpc/codes" |
| 12 | status "google.golang.org/grpc/status" |
| 13 | math "math" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | // Reference imports to suppress errors if they are not otherwise used. |
| 17 | var _ = proto.Marshal |
| 18 | var _ = fmt.Errorf |
| 19 | var _ = 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. |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 25 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 26 | |
| 27 | type 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 | |
| 35 | func (m *Result) Reset() { *m = Result{} } |
| 36 | func (m *Result) String() string { return proto.CompactTextString(m) } |
| 37 | func (*Result) ProtoMessage() {} |
| 38 | func (*Result) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 39 | return fileDescriptor_be7e2f565b9e1c96, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 40 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 41 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 42 | func (m *Result) XXX_Unmarshal(b []byte) error { |
| 43 | return xxx_messageInfo_Result.Unmarshal(m, b) |
| 44 | } |
| 45 | func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 46 | return xxx_messageInfo_Result.Marshal(b, m, deterministic) |
| 47 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 48 | func (m *Result) XXX_Merge(src proto.Message) { |
| 49 | xxx_messageInfo_Result.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 50 | } |
| 51 | func (m *Result) XXX_Size() int { |
| 52 | return xxx_messageInfo_Result.Size(m) |
| 53 | } |
| 54 | func (m *Result) XXX_DiscardUnknown() { |
| 55 | xxx_messageInfo_Result.DiscardUnknown(m) |
| 56 | } |
| 57 | |
| 58 | var xxx_messageInfo_Result proto.InternalMessageInfo |
| 59 | |
| 60 | func (m *Result) GetSuccess() bool { |
| 61 | if m != nil { |
| 62 | return m.Success |
| 63 | } |
| 64 | return false |
| 65 | } |
| 66 | |
| 67 | func (m *Result) GetError() string { |
| 68 | if m != nil { |
| 69 | return m.Error |
| 70 | } |
| 71 | return "" |
| 72 | } |
| 73 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 74 | type Empty struct { |
| 75 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 76 | XXX_unrecognized []byte `json:"-"` |
| 77 | XXX_sizecache int32 `json:"-"` |
| 78 | } |
| 79 | |
| 80 | func (m *Empty) Reset() { *m = Empty{} } |
| 81 | func (m *Empty) String() string { return proto.CompactTextString(m) } |
| 82 | func (*Empty) ProtoMessage() {} |
| 83 | func (*Empty) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 84 | return fileDescriptor_be7e2f565b9e1c96, []int{1} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 85 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 86 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 87 | func (m *Empty) XXX_Unmarshal(b []byte) error { |
| 88 | return xxx_messageInfo_Empty.Unmarshal(m, b) |
| 89 | } |
| 90 | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 91 | return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
| 92 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 93 | func (m *Empty) XXX_Merge(src proto.Message) { |
| 94 | xxx_messageInfo_Empty.Merge(m, src) |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 95 | } |
| 96 | func (m *Empty) XXX_Size() int { |
| 97 | return xxx_messageInfo_Empty.Size(m) |
| 98 | } |
| 99 | func (m *Empty) XXX_DiscardUnknown() { |
| 100 | xxx_messageInfo_Empty.DiscardUnknown(m) |
| 101 | } |
| 102 | |
| 103 | var xxx_messageInfo_Empty proto.InternalMessageInfo |
| 104 | |
| 105 | type 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 | |
| 112 | func (m *Count) Reset() { *m = Count{} } |
| 113 | func (m *Count) String() string { return proto.CompactTextString(m) } |
| 114 | func (*Count) ProtoMessage() {} |
| 115 | func (*Count) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 116 | return fileDescriptor_be7e2f565b9e1c96, []int{2} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 117 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 118 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 119 | func (m *Count) XXX_Unmarshal(b []byte) error { |
| 120 | return xxx_messageInfo_Count.Unmarshal(m, b) |
| 121 | } |
| 122 | func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 123 | return xxx_messageInfo_Count.Marshal(b, m, deterministic) |
| 124 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 125 | func (m *Count) XXX_Merge(src proto.Message) { |
| 126 | xxx_messageInfo_Count.Merge(m, src) |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 127 | } |
| 128 | func (m *Count) XXX_Size() int { |
| 129 | return xxx_messageInfo_Count.Size(m) |
| 130 | } |
| 131 | func (m *Count) XXX_DiscardUnknown() { |
| 132 | xxx_messageInfo_Count.DiscardUnknown(m) |
| 133 | } |
| 134 | |
| 135 | var xxx_messageInfo_Count proto.InternalMessageInfo |
| 136 | |
| 137 | func (m *Count) GetCount() uint32 { |
| 138 | if m != nil { |
| 139 | return m.Count |
| 140 | } |
| 141 | return 0 |
| 142 | } |
| 143 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 144 | type 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 | |
| 158 | func (m *Conn) Reset() { *m = Conn{} } |
| 159 | func (m *Conn) String() string { return proto.CompactTextString(m) } |
| 160 | func (*Conn) ProtoMessage() {} |
| 161 | func (*Conn) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 162 | return fileDescriptor_be7e2f565b9e1c96, []int{3} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 163 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 164 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 165 | func (m *Conn) XXX_Unmarshal(b []byte) error { |
| 166 | return xxx_messageInfo_Conn.Unmarshal(m, b) |
| 167 | } |
| 168 | func (m *Conn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 169 | return xxx_messageInfo_Conn.Marshal(b, m, deterministic) |
| 170 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 171 | func (m *Conn) XXX_Merge(src proto.Message) { |
| 172 | xxx_messageInfo_Conn.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 173 | } |
| 174 | func (m *Conn) XXX_Size() int { |
| 175 | return xxx_messageInfo_Conn.Size(m) |
| 176 | } |
| 177 | func (m *Conn) XXX_DiscardUnknown() { |
| 178 | xxx_messageInfo_Conn.DiscardUnknown(m) |
| 179 | } |
| 180 | |
| 181 | var xxx_messageInfo_Conn proto.InternalMessageInfo |
| 182 | |
| 183 | func (m *Conn) GetServer() string { |
| 184 | if m != nil { |
| 185 | return m.Server |
| 186 | } |
| 187 | return "" |
| 188 | } |
| 189 | |
| 190 | func (m *Conn) GetPkg() string { |
| 191 | if m != nil { |
| 192 | return m.Pkg |
| 193 | } |
| 194 | return "" |
| 195 | } |
| 196 | |
| 197 | func (m *Conn) GetSvc() string { |
| 198 | if m != nil { |
| 199 | return m.Svc |
| 200 | } |
| 201 | return "" |
| 202 | } |
| 203 | |
| 204 | func (m *Conn) GetCluster() string { |
| 205 | if m != nil { |
| 206 | return m.Cluster |
| 207 | } |
| 208 | return "" |
| 209 | } |
| 210 | |
| 211 | func (m *Conn) GetBackend() string { |
| 212 | if m != nil { |
| 213 | return m.Backend |
| 214 | } |
| 215 | return "" |
| 216 | } |
| 217 | |
| 218 | func (m *Conn) GetConnection() string { |
| 219 | if m != nil { |
| 220 | return m.Connection |
| 221 | } |
| 222 | return "" |
| 223 | } |
| 224 | |
| 225 | func (m *Conn) GetAddr() string { |
| 226 | if m != nil { |
| 227 | return m.Addr |
| 228 | } |
| 229 | return "" |
| 230 | } |
| 231 | |
| 232 | func (m *Conn) GetPort() uint64 { |
| 233 | if m != nil { |
| 234 | return m.Port |
| 235 | } |
| 236 | return 0 |
| 237 | } |
| 238 | |
| 239 | type 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 | |
| 250 | func (m *Affinity) Reset() { *m = Affinity{} } |
| 251 | func (m *Affinity) String() string { return proto.CompactTextString(m) } |
| 252 | func (*Affinity) ProtoMessage() {} |
| 253 | func (*Affinity) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 254 | return fileDescriptor_be7e2f565b9e1c96, []int{4} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 255 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 256 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 257 | func (m *Affinity) XXX_Unmarshal(b []byte) error { |
| 258 | return xxx_messageInfo_Affinity.Unmarshal(m, b) |
| 259 | } |
| 260 | func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 261 | return xxx_messageInfo_Affinity.Marshal(b, m, deterministic) |
| 262 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 263 | func (m *Affinity) XXX_Merge(src proto.Message) { |
| 264 | xxx_messageInfo_Affinity.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 265 | } |
| 266 | func (m *Affinity) XXX_Size() int { |
| 267 | return xxx_messageInfo_Affinity.Size(m) |
| 268 | } |
| 269 | func (m *Affinity) XXX_DiscardUnknown() { |
| 270 | xxx_messageInfo_Affinity.DiscardUnknown(m) |
| 271 | } |
| 272 | |
| 273 | var xxx_messageInfo_Affinity proto.InternalMessageInfo |
| 274 | |
| 275 | func (m *Affinity) GetRouter() string { |
| 276 | if m != nil { |
| 277 | return m.Router |
| 278 | } |
| 279 | return "" |
| 280 | } |
| 281 | |
| 282 | func (m *Affinity) GetRoute() string { |
| 283 | if m != nil { |
| 284 | return m.Route |
| 285 | } |
| 286 | return "" |
| 287 | } |
| 288 | |
| 289 | func (m *Affinity) GetCluster() string { |
| 290 | if m != nil { |
| 291 | return m.Cluster |
| 292 | } |
| 293 | return "" |
| 294 | } |
| 295 | |
| 296 | func (m *Affinity) GetBackend() string { |
| 297 | if m != nil { |
| 298 | return m.Backend |
| 299 | } |
| 300 | return "" |
| 301 | } |
| 302 | |
| 303 | func (m *Affinity) GetId() string { |
| 304 | if m != nil { |
| 305 | return m.Id |
| 306 | } |
| 307 | return "" |
| 308 | } |
| 309 | |
| 310 | func init() { |
| 311 | proto.RegisterType((*Result)(nil), "afrouter.Result") |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 312 | proto.RegisterType((*Empty)(nil), "afrouter.Empty") |
| 313 | proto.RegisterType((*Count)(nil), "afrouter.Count") |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 314 | proto.RegisterType((*Conn)(nil), "afrouter.Conn") |
| 315 | proto.RegisterType((*Affinity)(nil), "afrouter.Affinity") |
| 316 | } |
| 317 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 318 | func init() { proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_be7e2f565b9e1c96) } |
| 319 | |
| 320 | var 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 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 347 | // Reference imports to suppress errors if they are not otherwise used. |
| 348 | var _ context.Context |
| 349 | var _ 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. |
| 353 | const _ = 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. |
| 358 | type 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 | |
| 363 | type configurationClient struct { |
| 364 | cc *grpc.ClientConn |
| 365 | } |
| 366 | |
| 367 | func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient { |
| 368 | return &configurationClient{cc} |
| 369 | } |
| 370 | |
| 371 | func (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 | |
| 380 | func (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. |
| 390 | type ConfigurationServer interface { |
| 391 | SetConnection(context.Context, *Conn) (*Result, error) |
| 392 | SetAffinity(context.Context, *Affinity) (*Result, error) |
| 393 | } |
| 394 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 395 | // UnimplementedConfigurationServer can be embedded to have forward compatible implementations. |
| 396 | type UnimplementedConfigurationServer struct { |
| 397 | } |
| 398 | |
| 399 | func (*UnimplementedConfigurationServer) SetConnection(ctx context.Context, req *Conn) (*Result, error) { |
| 400 | return nil, status.Errorf(codes.Unimplemented, "method SetConnection not implemented") |
| 401 | } |
| 402 | func (*UnimplementedConfigurationServer) SetAffinity(ctx context.Context, req *Affinity) (*Result, error) { |
| 403 | return nil, status.Errorf(codes.Unimplemented, "method SetAffinity not implemented") |
| 404 | } |
| 405 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 406 | func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) { |
| 407 | s.RegisterService(&_Configuration_serviceDesc, srv) |
| 408 | } |
| 409 | |
| 410 | func _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 | |
| 428 | func _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 | |
| 446 | var _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 | } |