github.com/microsoft/moc@v0.17.1/rpc/lbagent/moc_lbagent_agent.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_lbagent_agent.proto 3 4 package lbagent 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 empty "github.com/golang/protobuf/ptypes/empty" 11 wrappers "github.com/golang/protobuf/ptypes/wrappers" 12 common "github.com/microsoft/moc/rpc/common" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16 math "math" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 30 type LoadBalancerType int32 31 32 const ( 33 LoadBalancerType_Haproxy LoadBalancerType = 0 34 LoadBalancerType_Keepalived LoadBalancerType = 1 35 LoadBalancerType_Nginx LoadBalancerType = 2 36 ) 37 38 var LoadBalancerType_name = map[int32]string{ 39 0: "Haproxy", 40 1: "Keepalived", 41 2: "Nginx", 42 } 43 44 var LoadBalancerType_value = map[string]int32{ 45 "Haproxy": 0, 46 "Keepalived": 1, 47 "Nginx": 2, 48 } 49 50 func (x LoadBalancerType) String() string { 51 return proto.EnumName(LoadBalancerType_name, int32(x)) 52 } 53 54 func (LoadBalancerType) EnumDescriptor() ([]byte, []int) { 55 return fileDescriptor_f2129e850e085f66, []int{0} 56 } 57 58 type LoadBalancerRequest struct { 59 LoadBalancers []*LoadBalancer `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"` 60 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 61 XXX_NoUnkeyedLiteral struct{} `json:"-"` 62 XXX_unrecognized []byte `json:"-"` 63 XXX_sizecache int32 `json:"-"` 64 } 65 66 func (m *LoadBalancerRequest) Reset() { *m = LoadBalancerRequest{} } 67 func (m *LoadBalancerRequest) String() string { return proto.CompactTextString(m) } 68 func (*LoadBalancerRequest) ProtoMessage() {} 69 func (*LoadBalancerRequest) Descriptor() ([]byte, []int) { 70 return fileDescriptor_f2129e850e085f66, []int{0} 71 } 72 73 func (m *LoadBalancerRequest) XXX_Unmarshal(b []byte) error { 74 return xxx_messageInfo_LoadBalancerRequest.Unmarshal(m, b) 75 } 76 func (m *LoadBalancerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 77 return xxx_messageInfo_LoadBalancerRequest.Marshal(b, m, deterministic) 78 } 79 func (m *LoadBalancerRequest) XXX_Merge(src proto.Message) { 80 xxx_messageInfo_LoadBalancerRequest.Merge(m, src) 81 } 82 func (m *LoadBalancerRequest) XXX_Size() int { 83 return xxx_messageInfo_LoadBalancerRequest.Size(m) 84 } 85 func (m *LoadBalancerRequest) XXX_DiscardUnknown() { 86 xxx_messageInfo_LoadBalancerRequest.DiscardUnknown(m) 87 } 88 89 var xxx_messageInfo_LoadBalancerRequest proto.InternalMessageInfo 90 91 func (m *LoadBalancerRequest) GetLoadBalancers() []*LoadBalancer { 92 if m != nil { 93 return m.LoadBalancers 94 } 95 return nil 96 } 97 98 func (m *LoadBalancerRequest) GetOperationType() common.Operation { 99 if m != nil { 100 return m.OperationType 101 } 102 return common.Operation_GET 103 } 104 105 type LoadBalancerResponse struct { 106 LoadBalancers []*LoadBalancer `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"` 107 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 108 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 109 XXX_NoUnkeyedLiteral struct{} `json:"-"` 110 XXX_unrecognized []byte `json:"-"` 111 XXX_sizecache int32 `json:"-"` 112 } 113 114 func (m *LoadBalancerResponse) Reset() { *m = LoadBalancerResponse{} } 115 func (m *LoadBalancerResponse) String() string { return proto.CompactTextString(m) } 116 func (*LoadBalancerResponse) ProtoMessage() {} 117 func (*LoadBalancerResponse) Descriptor() ([]byte, []int) { 118 return fileDescriptor_f2129e850e085f66, []int{1} 119 } 120 121 func (m *LoadBalancerResponse) XXX_Unmarshal(b []byte) error { 122 return xxx_messageInfo_LoadBalancerResponse.Unmarshal(m, b) 123 } 124 func (m *LoadBalancerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 125 return xxx_messageInfo_LoadBalancerResponse.Marshal(b, m, deterministic) 126 } 127 func (m *LoadBalancerResponse) XXX_Merge(src proto.Message) { 128 xxx_messageInfo_LoadBalancerResponse.Merge(m, src) 129 } 130 func (m *LoadBalancerResponse) XXX_Size() int { 131 return xxx_messageInfo_LoadBalancerResponse.Size(m) 132 } 133 func (m *LoadBalancerResponse) XXX_DiscardUnknown() { 134 xxx_messageInfo_LoadBalancerResponse.DiscardUnknown(m) 135 } 136 137 var xxx_messageInfo_LoadBalancerResponse proto.InternalMessageInfo 138 139 func (m *LoadBalancerResponse) GetLoadBalancers() []*LoadBalancer { 140 if m != nil { 141 return m.LoadBalancers 142 } 143 return nil 144 } 145 146 func (m *LoadBalancerResponse) GetResult() *wrappers.BoolValue { 147 if m != nil { 148 return m.Result 149 } 150 return nil 151 } 152 153 func (m *LoadBalancerResponse) GetError() string { 154 if m != nil { 155 return m.Error 156 } 157 return "" 158 } 159 160 type LoadBalancingRule struct { 161 FrontendPort uint32 `protobuf:"varint,1,opt,name=frontendPort,proto3" json:"frontendPort,omitempty"` 162 BackendPort uint32 `protobuf:"varint,2,opt,name=backendPort,proto3" json:"backendPort,omitempty"` 163 Protocol common.Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=moc.Protocol" json:"protocol,omitempty"` 164 XXX_NoUnkeyedLiteral struct{} `json:"-"` 165 XXX_unrecognized []byte `json:"-"` 166 XXX_sizecache int32 `json:"-"` 167 } 168 169 func (m *LoadBalancingRule) Reset() { *m = LoadBalancingRule{} } 170 func (m *LoadBalancingRule) String() string { return proto.CompactTextString(m) } 171 func (*LoadBalancingRule) ProtoMessage() {} 172 func (*LoadBalancingRule) Descriptor() ([]byte, []int) { 173 return fileDescriptor_f2129e850e085f66, []int{2} 174 } 175 176 func (m *LoadBalancingRule) XXX_Unmarshal(b []byte) error { 177 return xxx_messageInfo_LoadBalancingRule.Unmarshal(m, b) 178 } 179 func (m *LoadBalancingRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 180 return xxx_messageInfo_LoadBalancingRule.Marshal(b, m, deterministic) 181 } 182 func (m *LoadBalancingRule) XXX_Merge(src proto.Message) { 183 xxx_messageInfo_LoadBalancingRule.Merge(m, src) 184 } 185 func (m *LoadBalancingRule) XXX_Size() int { 186 return xxx_messageInfo_LoadBalancingRule.Size(m) 187 } 188 func (m *LoadBalancingRule) XXX_DiscardUnknown() { 189 xxx_messageInfo_LoadBalancingRule.DiscardUnknown(m) 190 } 191 192 var xxx_messageInfo_LoadBalancingRule proto.InternalMessageInfo 193 194 func (m *LoadBalancingRule) GetFrontendPort() uint32 { 195 if m != nil { 196 return m.FrontendPort 197 } 198 return 0 199 } 200 201 func (m *LoadBalancingRule) GetBackendPort() uint32 { 202 if m != nil { 203 return m.BackendPort 204 } 205 return 0 206 } 207 208 func (m *LoadBalancingRule) GetProtocol() common.Protocol { 209 if m != nil { 210 return m.Protocol 211 } 212 return common.Protocol_All 213 } 214 215 type LoadBalancer struct { 216 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 217 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 218 Backendips []string `protobuf:"bytes,3,rep,name=backendips,proto3" json:"backendips,omitempty"` 219 Frontendip string `protobuf:"bytes,4,opt,name=frontendip,proto3" json:"frontendip,omitempty"` 220 Loadbalancingrules []*LoadBalancingRule `protobuf:"bytes,5,rep,name=loadbalancingrules,proto3" json:"loadbalancingrules,omitempty"` 221 Status *common.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` 222 XXX_NoUnkeyedLiteral struct{} `json:"-"` 223 XXX_unrecognized []byte `json:"-"` 224 XXX_sizecache int32 `json:"-"` 225 } 226 227 func (m *LoadBalancer) Reset() { *m = LoadBalancer{} } 228 func (m *LoadBalancer) String() string { return proto.CompactTextString(m) } 229 func (*LoadBalancer) ProtoMessage() {} 230 func (*LoadBalancer) Descriptor() ([]byte, []int) { 231 return fileDescriptor_f2129e850e085f66, []int{3} 232 } 233 234 func (m *LoadBalancer) XXX_Unmarshal(b []byte) error { 235 return xxx_messageInfo_LoadBalancer.Unmarshal(m, b) 236 } 237 func (m *LoadBalancer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 238 return xxx_messageInfo_LoadBalancer.Marshal(b, m, deterministic) 239 } 240 func (m *LoadBalancer) XXX_Merge(src proto.Message) { 241 xxx_messageInfo_LoadBalancer.Merge(m, src) 242 } 243 func (m *LoadBalancer) XXX_Size() int { 244 return xxx_messageInfo_LoadBalancer.Size(m) 245 } 246 func (m *LoadBalancer) XXX_DiscardUnknown() { 247 xxx_messageInfo_LoadBalancer.DiscardUnknown(m) 248 } 249 250 var xxx_messageInfo_LoadBalancer proto.InternalMessageInfo 251 252 func (m *LoadBalancer) GetName() string { 253 if m != nil { 254 return m.Name 255 } 256 return "" 257 } 258 259 func (m *LoadBalancer) GetId() string { 260 if m != nil { 261 return m.Id 262 } 263 return "" 264 } 265 266 func (m *LoadBalancer) GetBackendips() []string { 267 if m != nil { 268 return m.Backendips 269 } 270 return nil 271 } 272 273 func (m *LoadBalancer) GetFrontendip() string { 274 if m != nil { 275 return m.Frontendip 276 } 277 return "" 278 } 279 280 func (m *LoadBalancer) GetLoadbalancingrules() []*LoadBalancingRule { 281 if m != nil { 282 return m.Loadbalancingrules 283 } 284 return nil 285 } 286 287 func (m *LoadBalancer) GetStatus() *common.Status { 288 if m != nil { 289 return m.Status 290 } 291 return nil 292 } 293 294 type LoadBalancerConfigRequest struct { 295 Loadbalancertype LoadBalancerType `protobuf:"varint,1,opt,name=loadbalancertype,proto3,enum=moc.lbagent.LoadBalancerType" json:"loadbalancertype,omitempty"` 296 XXX_NoUnkeyedLiteral struct{} `json:"-"` 297 XXX_unrecognized []byte `json:"-"` 298 XXX_sizecache int32 `json:"-"` 299 } 300 301 func (m *LoadBalancerConfigRequest) Reset() { *m = LoadBalancerConfigRequest{} } 302 func (m *LoadBalancerConfigRequest) String() string { return proto.CompactTextString(m) } 303 func (*LoadBalancerConfigRequest) ProtoMessage() {} 304 func (*LoadBalancerConfigRequest) Descriptor() ([]byte, []int) { 305 return fileDescriptor_f2129e850e085f66, []int{4} 306 } 307 308 func (m *LoadBalancerConfigRequest) XXX_Unmarshal(b []byte) error { 309 return xxx_messageInfo_LoadBalancerConfigRequest.Unmarshal(m, b) 310 } 311 func (m *LoadBalancerConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 312 return xxx_messageInfo_LoadBalancerConfigRequest.Marshal(b, m, deterministic) 313 } 314 func (m *LoadBalancerConfigRequest) XXX_Merge(src proto.Message) { 315 xxx_messageInfo_LoadBalancerConfigRequest.Merge(m, src) 316 } 317 func (m *LoadBalancerConfigRequest) XXX_Size() int { 318 return xxx_messageInfo_LoadBalancerConfigRequest.Size(m) 319 } 320 func (m *LoadBalancerConfigRequest) XXX_DiscardUnknown() { 321 xxx_messageInfo_LoadBalancerConfigRequest.DiscardUnknown(m) 322 } 323 324 var xxx_messageInfo_LoadBalancerConfigRequest proto.InternalMessageInfo 325 326 func (m *LoadBalancerConfigRequest) GetLoadbalancertype() LoadBalancerType { 327 if m != nil { 328 return m.Loadbalancertype 329 } 330 return LoadBalancerType_Haproxy 331 } 332 333 type LoadBalancerConfigResponse struct { 334 Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` 335 XXX_NoUnkeyedLiteral struct{} `json:"-"` 336 XXX_unrecognized []byte `json:"-"` 337 XXX_sizecache int32 `json:"-"` 338 } 339 340 func (m *LoadBalancerConfigResponse) Reset() { *m = LoadBalancerConfigResponse{} } 341 func (m *LoadBalancerConfigResponse) String() string { return proto.CompactTextString(m) } 342 func (*LoadBalancerConfigResponse) ProtoMessage() {} 343 func (*LoadBalancerConfigResponse) Descriptor() ([]byte, []int) { 344 return fileDescriptor_f2129e850e085f66, []int{5} 345 } 346 347 func (m *LoadBalancerConfigResponse) XXX_Unmarshal(b []byte) error { 348 return xxx_messageInfo_LoadBalancerConfigResponse.Unmarshal(m, b) 349 } 350 func (m *LoadBalancerConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 351 return xxx_messageInfo_LoadBalancerConfigResponse.Marshal(b, m, deterministic) 352 } 353 func (m *LoadBalancerConfigResponse) XXX_Merge(src proto.Message) { 354 xxx_messageInfo_LoadBalancerConfigResponse.Merge(m, src) 355 } 356 func (m *LoadBalancerConfigResponse) XXX_Size() int { 357 return xxx_messageInfo_LoadBalancerConfigResponse.Size(m) 358 } 359 func (m *LoadBalancerConfigResponse) XXX_DiscardUnknown() { 360 xxx_messageInfo_LoadBalancerConfigResponse.DiscardUnknown(m) 361 } 362 363 var xxx_messageInfo_LoadBalancerConfigResponse proto.InternalMessageInfo 364 365 func (m *LoadBalancerConfigResponse) GetConfig() string { 366 if m != nil { 367 return m.Config 368 } 369 return "" 370 } 371 372 type LoadBalancerPeerRequest struct { 373 Peers []string `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` 374 XXX_NoUnkeyedLiteral struct{} `json:"-"` 375 XXX_unrecognized []byte `json:"-"` 376 XXX_sizecache int32 `json:"-"` 377 } 378 379 func (m *LoadBalancerPeerRequest) Reset() { *m = LoadBalancerPeerRequest{} } 380 func (m *LoadBalancerPeerRequest) String() string { return proto.CompactTextString(m) } 381 func (*LoadBalancerPeerRequest) ProtoMessage() {} 382 func (*LoadBalancerPeerRequest) Descriptor() ([]byte, []int) { 383 return fileDescriptor_f2129e850e085f66, []int{6} 384 } 385 386 func (m *LoadBalancerPeerRequest) XXX_Unmarshal(b []byte) error { 387 return xxx_messageInfo_LoadBalancerPeerRequest.Unmarshal(m, b) 388 } 389 func (m *LoadBalancerPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 390 return xxx_messageInfo_LoadBalancerPeerRequest.Marshal(b, m, deterministic) 391 } 392 func (m *LoadBalancerPeerRequest) XXX_Merge(src proto.Message) { 393 xxx_messageInfo_LoadBalancerPeerRequest.Merge(m, src) 394 } 395 func (m *LoadBalancerPeerRequest) XXX_Size() int { 396 return xxx_messageInfo_LoadBalancerPeerRequest.Size(m) 397 } 398 func (m *LoadBalancerPeerRequest) XXX_DiscardUnknown() { 399 xxx_messageInfo_LoadBalancerPeerRequest.DiscardUnknown(m) 400 } 401 402 var xxx_messageInfo_LoadBalancerPeerRequest proto.InternalMessageInfo 403 404 func (m *LoadBalancerPeerRequest) GetPeers() []string { 405 if m != nil { 406 return m.Peers 407 } 408 return nil 409 } 410 411 type LoadBalancerPeerResponse struct { 412 Peers []string `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` 413 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 414 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 415 XXX_NoUnkeyedLiteral struct{} `json:"-"` 416 XXX_unrecognized []byte `json:"-"` 417 XXX_sizecache int32 `json:"-"` 418 } 419 420 func (m *LoadBalancerPeerResponse) Reset() { *m = LoadBalancerPeerResponse{} } 421 func (m *LoadBalancerPeerResponse) String() string { return proto.CompactTextString(m) } 422 func (*LoadBalancerPeerResponse) ProtoMessage() {} 423 func (*LoadBalancerPeerResponse) Descriptor() ([]byte, []int) { 424 return fileDescriptor_f2129e850e085f66, []int{7} 425 } 426 427 func (m *LoadBalancerPeerResponse) XXX_Unmarshal(b []byte) error { 428 return xxx_messageInfo_LoadBalancerPeerResponse.Unmarshal(m, b) 429 } 430 func (m *LoadBalancerPeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 431 return xxx_messageInfo_LoadBalancerPeerResponse.Marshal(b, m, deterministic) 432 } 433 func (m *LoadBalancerPeerResponse) XXX_Merge(src proto.Message) { 434 xxx_messageInfo_LoadBalancerPeerResponse.Merge(m, src) 435 } 436 func (m *LoadBalancerPeerResponse) XXX_Size() int { 437 return xxx_messageInfo_LoadBalancerPeerResponse.Size(m) 438 } 439 func (m *LoadBalancerPeerResponse) XXX_DiscardUnknown() { 440 xxx_messageInfo_LoadBalancerPeerResponse.DiscardUnknown(m) 441 } 442 443 var xxx_messageInfo_LoadBalancerPeerResponse proto.InternalMessageInfo 444 445 func (m *LoadBalancerPeerResponse) GetPeers() []string { 446 if m != nil { 447 return m.Peers 448 } 449 return nil 450 } 451 452 func (m *LoadBalancerPeerResponse) GetResult() *wrappers.BoolValue { 453 if m != nil { 454 return m.Result 455 } 456 return nil 457 } 458 459 func (m *LoadBalancerPeerResponse) GetError() string { 460 if m != nil { 461 return m.Error 462 } 463 return "" 464 } 465 466 type LoadBalancerResyncRequest struct { 467 LoadBalancers []*LoadBalancer `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"` 468 Peers []string `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` 469 XXX_NoUnkeyedLiteral struct{} `json:"-"` 470 XXX_unrecognized []byte `json:"-"` 471 XXX_sizecache int32 `json:"-"` 472 } 473 474 func (m *LoadBalancerResyncRequest) Reset() { *m = LoadBalancerResyncRequest{} } 475 func (m *LoadBalancerResyncRequest) String() string { return proto.CompactTextString(m) } 476 func (*LoadBalancerResyncRequest) ProtoMessage() {} 477 func (*LoadBalancerResyncRequest) Descriptor() ([]byte, []int) { 478 return fileDescriptor_f2129e850e085f66, []int{8} 479 } 480 481 func (m *LoadBalancerResyncRequest) XXX_Unmarshal(b []byte) error { 482 return xxx_messageInfo_LoadBalancerResyncRequest.Unmarshal(m, b) 483 } 484 func (m *LoadBalancerResyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 485 return xxx_messageInfo_LoadBalancerResyncRequest.Marshal(b, m, deterministic) 486 } 487 func (m *LoadBalancerResyncRequest) XXX_Merge(src proto.Message) { 488 xxx_messageInfo_LoadBalancerResyncRequest.Merge(m, src) 489 } 490 func (m *LoadBalancerResyncRequest) XXX_Size() int { 491 return xxx_messageInfo_LoadBalancerResyncRequest.Size(m) 492 } 493 func (m *LoadBalancerResyncRequest) XXX_DiscardUnknown() { 494 xxx_messageInfo_LoadBalancerResyncRequest.DiscardUnknown(m) 495 } 496 497 var xxx_messageInfo_LoadBalancerResyncRequest proto.InternalMessageInfo 498 499 func (m *LoadBalancerResyncRequest) GetLoadBalancers() []*LoadBalancer { 500 if m != nil { 501 return m.LoadBalancers 502 } 503 return nil 504 } 505 506 func (m *LoadBalancerResyncRequest) GetPeers() []string { 507 if m != nil { 508 return m.Peers 509 } 510 return nil 511 } 512 513 type LoadBalancerResyncResponse struct { 514 LoadBalancers []*LoadBalancer `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"` 515 Peers []string `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` 516 Result *wrappers.BoolValue `protobuf:"bytes,3,opt,name=Result,proto3" json:"Result,omitempty"` 517 Error string `protobuf:"bytes,4,opt,name=Error,proto3" json:"Error,omitempty"` 518 XXX_NoUnkeyedLiteral struct{} `json:"-"` 519 XXX_unrecognized []byte `json:"-"` 520 XXX_sizecache int32 `json:"-"` 521 } 522 523 func (m *LoadBalancerResyncResponse) Reset() { *m = LoadBalancerResyncResponse{} } 524 func (m *LoadBalancerResyncResponse) String() string { return proto.CompactTextString(m) } 525 func (*LoadBalancerResyncResponse) ProtoMessage() {} 526 func (*LoadBalancerResyncResponse) Descriptor() ([]byte, []int) { 527 return fileDescriptor_f2129e850e085f66, []int{9} 528 } 529 530 func (m *LoadBalancerResyncResponse) XXX_Unmarshal(b []byte) error { 531 return xxx_messageInfo_LoadBalancerResyncResponse.Unmarshal(m, b) 532 } 533 func (m *LoadBalancerResyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 534 return xxx_messageInfo_LoadBalancerResyncResponse.Marshal(b, m, deterministic) 535 } 536 func (m *LoadBalancerResyncResponse) XXX_Merge(src proto.Message) { 537 xxx_messageInfo_LoadBalancerResyncResponse.Merge(m, src) 538 } 539 func (m *LoadBalancerResyncResponse) XXX_Size() int { 540 return xxx_messageInfo_LoadBalancerResyncResponse.Size(m) 541 } 542 func (m *LoadBalancerResyncResponse) XXX_DiscardUnknown() { 543 xxx_messageInfo_LoadBalancerResyncResponse.DiscardUnknown(m) 544 } 545 546 var xxx_messageInfo_LoadBalancerResyncResponse proto.InternalMessageInfo 547 548 func (m *LoadBalancerResyncResponse) GetLoadBalancers() []*LoadBalancer { 549 if m != nil { 550 return m.LoadBalancers 551 } 552 return nil 553 } 554 555 func (m *LoadBalancerResyncResponse) GetPeers() []string { 556 if m != nil { 557 return m.Peers 558 } 559 return nil 560 } 561 562 func (m *LoadBalancerResyncResponse) GetResult() *wrappers.BoolValue { 563 if m != nil { 564 return m.Result 565 } 566 return nil 567 } 568 569 func (m *LoadBalancerResyncResponse) GetError() string { 570 if m != nil { 571 return m.Error 572 } 573 return "" 574 } 575 576 func init() { 577 proto.RegisterEnum("moc.lbagent.LoadBalancerType", LoadBalancerType_name, LoadBalancerType_value) 578 proto.RegisterType((*LoadBalancerRequest)(nil), "moc.lbagent.LoadBalancerRequest") 579 proto.RegisterType((*LoadBalancerResponse)(nil), "moc.lbagent.LoadBalancerResponse") 580 proto.RegisterType((*LoadBalancingRule)(nil), "moc.lbagent.LoadBalancingRule") 581 proto.RegisterType((*LoadBalancer)(nil), "moc.lbagent.LoadBalancer") 582 proto.RegisterType((*LoadBalancerConfigRequest)(nil), "moc.lbagent.LoadBalancerConfigRequest") 583 proto.RegisterType((*LoadBalancerConfigResponse)(nil), "moc.lbagent.LoadBalancerConfigResponse") 584 proto.RegisterType((*LoadBalancerPeerRequest)(nil), "moc.lbagent.LoadBalancerPeerRequest") 585 proto.RegisterType((*LoadBalancerPeerResponse)(nil), "moc.lbagent.LoadBalancerPeerResponse") 586 proto.RegisterType((*LoadBalancerResyncRequest)(nil), "moc.lbagent.LoadBalancerResyncRequest") 587 proto.RegisterType((*LoadBalancerResyncResponse)(nil), "moc.lbagent.LoadBalancerResyncResponse") 588 } 589 590 func init() { proto.RegisterFile("moc_lbagent_agent.proto", fileDescriptor_f2129e850e085f66) } 591 592 var fileDescriptor_f2129e850e085f66 = []byte{ 593 // 767 bytes of a gzipped FileDescriptorProto 594 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x51, 0x4f, 0xe3, 0x46, 595 0x10, 0xc6, 0x09, 0x09, 0x64, 0x42, 0xa2, 0xb0, 0x45, 0x60, 0x5c, 0x11, 0xa5, 0x2e, 0xa5, 0x69, 596 0x1f, 0x1c, 0x29, 0xe5, 0xa9, 0x2f, 0x15, 0x50, 0x04, 0x55, 0x11, 0xa0, 0x6d, 0x55, 0x55, 0xad, 597 0x54, 0xe4, 0xd8, 0x93, 0x60, 0x61, 0x7b, 0xdd, 0xf5, 0x1a, 0xc8, 0x3d, 0xdf, 0xe3, 0xfd, 0x89, 598 0xfb, 0x21, 0xf7, 0x70, 0xbf, 0xe6, 0xfe, 0xc6, 0x29, 0x6b, 0x3b, 0xac, 0x21, 0x01, 0x9d, 0x2e, 599 0xf7, 0x92, 0xc4, 0xf3, 0xcd, 0x7c, 0xdf, 0xce, 0xb7, 0x33, 0x31, 0x6c, 0x05, 0xcc, 0xb9, 0xf2, 600 0x07, 0xf6, 0x08, 0x43, 0x71, 0x25, 0x3f, 0xad, 0x88, 0x33, 0xc1, 0x48, 0x3d, 0x60, 0x8e, 0x95, 601 0x01, 0x46, 0x7b, 0xc4, 0xd8, 0xc8, 0xc7, 0x9e, 0x84, 0x06, 0xc9, 0xb0, 0x77, 0xc7, 0xed, 0x28, 602 0x42, 0x1e, 0xa7, 0xc9, 0xc6, 0xd7, 0x8f, 0x71, 0x0c, 0x22, 0x31, 0xce, 0x40, 0x29, 0xe1, 0xb0, 603 0x20, 0x60, 0x61, 0xf6, 0x95, 0x01, 0x6d, 0x05, 0x08, 0x51, 0xdc, 0x31, 0x7e, 0x53, 0xc0, 0x77, 604 0x54, 0x9c, 0x09, 0x6f, 0xe8, 0x39, 0xb6, 0xf0, 0x72, 0xd8, 0x7c, 0xa3, 0xc1, 0x57, 0x67, 0xcc, 605 0x76, 0x0f, 0x6d, 0xdf, 0x0e, 0x1d, 0xe4, 0x14, 0xff, 0x4f, 0x30, 0x16, 0xe4, 0x17, 0x68, 0xa8, 606 0xe1, 0x58, 0xd7, 0x3a, 0xe5, 0x6e, 0xbd, 0xbf, 0x6d, 0x29, 0x1d, 0x59, 0x85, 0xc2, 0x62, 0x3e, 607 0xd9, 0x87, 0xc6, 0x45, 0x84, 0x5c, 0x6a, 0xfd, 0x39, 0x8e, 0x50, 0x2f, 0x75, 0xb4, 0x6e, 0xb3, 608 0xdf, 0x94, 0x04, 0x53, 0x84, 0x16, 0x93, 0xcc, 0xb7, 0x1a, 0x6c, 0x14, 0x8f, 0x13, 0x47, 0x2c, 609 0x8c, 0xf1, 0xf3, 0xcf, 0xd3, 0x87, 0x2a, 0xc5, 0x38, 0xf1, 0x85, 0x3c, 0x48, 0xbd, 0x6f, 0x58, 610 0xa9, 0xdd, 0x56, 0x6e, 0xb7, 0x75, 0xc8, 0x98, 0xff, 0x97, 0xed, 0x27, 0x48, 0xb3, 0x4c, 0xb2, 611 0x01, 0x95, 0x63, 0xce, 0x19, 0xd7, 0xcb, 0x1d, 0xad, 0x5b, 0xa3, 0xe9, 0x83, 0xf9, 0x5a, 0x83, 612 0xf5, 0x07, 0x6e, 0x2f, 0x1c, 0xd1, 0xc4, 0x47, 0x62, 0xc2, 0xda, 0x90, 0xb3, 0x50, 0x60, 0xe8, 613 0x5e, 0x32, 0x2e, 0x74, 0xad, 0xa3, 0x75, 0x1b, 0xb4, 0x10, 0x23, 0x1d, 0xa8, 0x0f, 0x6c, 0xe7, 614 0x26, 0x4f, 0x29, 0xc9, 0x14, 0x35, 0x44, 0x7e, 0x80, 0x55, 0x79, 0x1e, 0x87, 0xf9, 0x52, 0xb4, 615 0xd9, 0x6f, 0xc8, 0x0e, 0x2f, 0xb3, 0x20, 0x9d, 0xc2, 0xe6, 0x07, 0x0d, 0xd6, 0xd4, 0x16, 0x09, 616 0x81, 0xe5, 0xd0, 0x0e, 0x50, 0x2a, 0xd7, 0xa8, 0xfc, 0x4d, 0x9a, 0x50, 0xf2, 0x5c, 0x29, 0x54, 617 0xa3, 0x25, 0xcf, 0x25, 0x6d, 0x80, 0x4c, 0xce, 0x8b, 0x62, 0xbd, 0xdc, 0x29, 0x77, 0x6b, 0x54, 618 0x89, 0x4c, 0xf0, 0xfc, 0xc4, 0x5e, 0xa4, 0x2f, 0xcb, 0x3a, 0x25, 0x42, 0xce, 0x81, 0xf8, 0xcc, 619 0x76, 0x07, 0x79, 0xeb, 0x3c, 0xf1, 0x31, 0xd6, 0x2b, 0xf2, 0x2e, 0xda, 0x73, 0xee, 0x22, 0x73, 620 0x88, 0xce, 0xa8, 0x24, 0xdf, 0x42, 0x35, 0x16, 0xb6, 0x48, 0x62, 0x7d, 0x55, 0xde, 0x4a, 0x5d, 621 0x72, 0xfc, 0x21, 0x43, 0x34, 0x83, 0xcc, 0x21, 0x6c, 0xab, 0x8d, 0x1e, 0xb1, 0x70, 0xe8, 0x8d, 622 0xf2, 0x41, 0xfd, 0x0d, 0x5a, 0x0f, 0xbc, 0xc8, 0xc5, 0x64, 0xd4, 0x34, 0xe9, 0xdc, 0xce, 0xdc, 623 0xd9, 0x98, 0x8c, 0x1a, 0x7d, 0x52, 0x66, 0xee, 0x83, 0x31, 0x4b, 0x27, 0x9b, 0xc0, 0x4d, 0xa8, 624 0x3a, 0x32, 0x92, 0x19, 0x9c, 0x3d, 0x99, 0x3d, 0xd8, 0x52, 0xab, 0x2e, 0xf1, 0x61, 0x89, 0x36, 625 0xa0, 0x12, 0x61, 0x3e, 0xac, 0x35, 0x9a, 0x3e, 0x98, 0xaf, 0x40, 0x7f, 0x5a, 0x90, 0x89, 0xcc, 626 0xac, 0x58, 0xe0, 0xec, 0xf2, 0xa2, 0x95, 0x14, 0xe3, 0x71, 0xe8, 0x2c, 0x6c, 0xe7, 0xa7, 0xa7, 627 0x2f, 0xa9, 0xfd, 0xbe, 0xd3, 0x8a, 0xbe, 0xe6, 0xa2, 0x8b, 0xda, 0xec, 0x99, 0xaa, 0x8a, 0x67, 628 0xe5, 0x4f, 0xf7, 0x6c, 0x59, 0xf1, 0xec, 0xc7, 0x9f, 0xa1, 0xf5, 0x78, 0x78, 0x48, 0x1d, 0x56, 629 0x4e, 0xed, 0x88, 0xb3, 0xfb, 0x71, 0x6b, 0x89, 0x34, 0x01, 0x7e, 0x47, 0x8c, 0x6c, 0xdf, 0xbb, 630 0x45, 0xb7, 0xa5, 0x91, 0x1a, 0x54, 0xce, 0x47, 0x5e, 0x78, 0xdf, 0x2a, 0xf5, 0xdf, 0x57, 0xd4, 631 0xff, 0x0a, 0xe4, 0x07, 0x93, 0x6e, 0xc8, 0x05, 0x54, 0x8f, 0x38, 0xda, 0x02, 0x49, 0x67, 0x7e, 632 0x97, 0xe9, 0xa5, 0x18, 0xdf, 0x3c, 0x93, 0x91, 0x3a, 0x68, 0x2e, 0x4d, 0x08, 0x7f, 0x45, 0x1f, 633 0x17, 0x47, 0x78, 0x06, 0xe5, 0x13, 0x14, 0x8b, 0x62, 0xfb, 0x0f, 0x6a, 0x27, 0x28, 0xd2, 0x7d, 634 0x22, 0x7b, 0x73, 0x2b, 0x0a, 0x8b, 0x6d, 0x7c, 0xff, 0x62, 0xde, 0x94, 0xff, 0x14, 0xd6, 0x8f, 635 0xae, 0xd1, 0xb9, 0x39, 0x57, 0xde, 0x6f, 0x64, 0xf3, 0xc9, 0x85, 0x1f, 0x4f, 0xde, 0xa7, 0x46, 636 0x3a, 0x58, 0x6a, 0xaa, 0xc2, 0xf4, 0x37, 0xac, 0x1c, 0xb8, 0xee, 0x64, 0x25, 0xc9, 0xee, 0x5c, 637 0x7d, 0x65, 0xc5, 0x8d, 0xef, 0x5e, 0xc8, 0x9a, 0x32, 0xff, 0x0b, 0x40, 0x31, 0x60, 0xb7, 0xf8, 638 0x65, 0xc8, 0xab, 0xe9, 0x56, 0x3d, 0xe3, 0x6e, 0x61, 0xd7, 0x9f, 0x71, 0xb7, 0xb8, 0x9e, 0xe6, 639 0xd2, 0xe1, 0xde, 0x3f, 0xbb, 0x23, 0x4f, 0x5c, 0x27, 0x03, 0xcb, 0x61, 0x41, 0x2f, 0xf0, 0x1c, 640 0xce, 0x62, 0x36, 0x14, 0xbd, 0x80, 0x39, 0x3d, 0x1e, 0x39, 0xbd, 0x8c, 0x64, 0x50, 0x95, 0x46, 641 0xff, 0xf4, 0x31, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x14, 0xdf, 0x42, 0x0e, 0x09, 0x00, 0x00, 642 } 643 644 // Reference imports to suppress errors if they are not otherwise used. 645 var _ context.Context 646 var _ grpc.ClientConn 647 648 // This is a compile-time assertion to ensure that this generated file 649 // is compatible with the grpc package it is being compiled against. 650 const _ = grpc.SupportPackageIsVersion4 651 652 // LoadBalancerAgentClient is the client API for LoadBalancerAgent service. 653 // 654 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 655 type LoadBalancerAgentClient interface { 656 Create(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) 657 Delete(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) 658 Get(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) 659 // GetConfig is for debugging/testing 660 GetConfig(ctx context.Context, in *LoadBalancerConfigRequest, opts ...grpc.CallOption) (*LoadBalancerConfigResponse, error) 661 CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) 662 AddPeer(ctx context.Context, in *LoadBalancerPeerRequest, opts ...grpc.CallOption) (*LoadBalancerPeerResponse, error) 663 RemovePeer(ctx context.Context, in *LoadBalancerPeerRequest, opts ...grpc.CallOption) (*LoadBalancerPeerResponse, error) 664 Resync(ctx context.Context, in *LoadBalancerResyncRequest, opts ...grpc.CallOption) (*LoadBalancerResyncResponse, error) 665 } 666 667 type loadBalancerAgentClient struct { 668 cc *grpc.ClientConn 669 } 670 671 func NewLoadBalancerAgentClient(cc *grpc.ClientConn) LoadBalancerAgentClient { 672 return &loadBalancerAgentClient{cc} 673 } 674 675 func (c *loadBalancerAgentClient) Create(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) { 676 out := new(LoadBalancerResponse) 677 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/Create", in, out, opts...) 678 if err != nil { 679 return nil, err 680 } 681 return out, nil 682 } 683 684 func (c *loadBalancerAgentClient) Delete(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) { 685 out := new(LoadBalancerResponse) 686 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/Delete", in, out, opts...) 687 if err != nil { 688 return nil, err 689 } 690 return out, nil 691 } 692 693 func (c *loadBalancerAgentClient) Get(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) { 694 out := new(LoadBalancerResponse) 695 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/Get", in, out, opts...) 696 if err != nil { 697 return nil, err 698 } 699 return out, nil 700 } 701 702 func (c *loadBalancerAgentClient) GetConfig(ctx context.Context, in *LoadBalancerConfigRequest, opts ...grpc.CallOption) (*LoadBalancerConfigResponse, error) { 703 out := new(LoadBalancerConfigResponse) 704 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/GetConfig", in, out, opts...) 705 if err != nil { 706 return nil, err 707 } 708 return out, nil 709 } 710 711 func (c *loadBalancerAgentClient) CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) { 712 out := new(common.NotificationResponse) 713 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/CheckNotification", in, out, opts...) 714 if err != nil { 715 return nil, err 716 } 717 return out, nil 718 } 719 720 func (c *loadBalancerAgentClient) AddPeer(ctx context.Context, in *LoadBalancerPeerRequest, opts ...grpc.CallOption) (*LoadBalancerPeerResponse, error) { 721 out := new(LoadBalancerPeerResponse) 722 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/AddPeer", in, out, opts...) 723 if err != nil { 724 return nil, err 725 } 726 return out, nil 727 } 728 729 func (c *loadBalancerAgentClient) RemovePeer(ctx context.Context, in *LoadBalancerPeerRequest, opts ...grpc.CallOption) (*LoadBalancerPeerResponse, error) { 730 out := new(LoadBalancerPeerResponse) 731 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/RemovePeer", in, out, opts...) 732 if err != nil { 733 return nil, err 734 } 735 return out, nil 736 } 737 738 func (c *loadBalancerAgentClient) Resync(ctx context.Context, in *LoadBalancerResyncRequest, opts ...grpc.CallOption) (*LoadBalancerResyncResponse, error) { 739 out := new(LoadBalancerResyncResponse) 740 err := c.cc.Invoke(ctx, "/moc.lbagent.LoadBalancerAgent/Resync", in, out, opts...) 741 if err != nil { 742 return nil, err 743 } 744 return out, nil 745 } 746 747 // LoadBalancerAgentServer is the server API for LoadBalancerAgent service. 748 type LoadBalancerAgentServer interface { 749 Create(context.Context, *LoadBalancerRequest) (*LoadBalancerResponse, error) 750 Delete(context.Context, *LoadBalancerRequest) (*LoadBalancerResponse, error) 751 Get(context.Context, *LoadBalancerRequest) (*LoadBalancerResponse, error) 752 // GetConfig is for debugging/testing 753 GetConfig(context.Context, *LoadBalancerConfigRequest) (*LoadBalancerConfigResponse, error) 754 CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error) 755 AddPeer(context.Context, *LoadBalancerPeerRequest) (*LoadBalancerPeerResponse, error) 756 RemovePeer(context.Context, *LoadBalancerPeerRequest) (*LoadBalancerPeerResponse, error) 757 Resync(context.Context, *LoadBalancerResyncRequest) (*LoadBalancerResyncResponse, error) 758 } 759 760 // UnimplementedLoadBalancerAgentServer can be embedded to have forward compatible implementations. 761 type UnimplementedLoadBalancerAgentServer struct { 762 } 763 764 func (*UnimplementedLoadBalancerAgentServer) Create(ctx context.Context, req *LoadBalancerRequest) (*LoadBalancerResponse, error) { 765 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 766 } 767 func (*UnimplementedLoadBalancerAgentServer) Delete(ctx context.Context, req *LoadBalancerRequest) (*LoadBalancerResponse, error) { 768 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 769 } 770 func (*UnimplementedLoadBalancerAgentServer) Get(ctx context.Context, req *LoadBalancerRequest) (*LoadBalancerResponse, error) { 771 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") 772 } 773 func (*UnimplementedLoadBalancerAgentServer) GetConfig(ctx context.Context, req *LoadBalancerConfigRequest) (*LoadBalancerConfigResponse, error) { 774 return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented") 775 } 776 func (*UnimplementedLoadBalancerAgentServer) CheckNotification(ctx context.Context, req *empty.Empty) (*common.NotificationResponse, error) { 777 return nil, status.Errorf(codes.Unimplemented, "method CheckNotification not implemented") 778 } 779 func (*UnimplementedLoadBalancerAgentServer) AddPeer(ctx context.Context, req *LoadBalancerPeerRequest) (*LoadBalancerPeerResponse, error) { 780 return nil, status.Errorf(codes.Unimplemented, "method AddPeer not implemented") 781 } 782 func (*UnimplementedLoadBalancerAgentServer) RemovePeer(ctx context.Context, req *LoadBalancerPeerRequest) (*LoadBalancerPeerResponse, error) { 783 return nil, status.Errorf(codes.Unimplemented, "method RemovePeer not implemented") 784 } 785 func (*UnimplementedLoadBalancerAgentServer) Resync(ctx context.Context, req *LoadBalancerResyncRequest) (*LoadBalancerResyncResponse, error) { 786 return nil, status.Errorf(codes.Unimplemented, "method Resync not implemented") 787 } 788 789 func RegisterLoadBalancerAgentServer(s *grpc.Server, srv LoadBalancerAgentServer) { 790 s.RegisterService(&_LoadBalancerAgent_serviceDesc, srv) 791 } 792 793 func _LoadBalancerAgent_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 794 in := new(LoadBalancerRequest) 795 if err := dec(in); err != nil { 796 return nil, err 797 } 798 if interceptor == nil { 799 return srv.(LoadBalancerAgentServer).Create(ctx, in) 800 } 801 info := &grpc.UnaryServerInfo{ 802 Server: srv, 803 FullMethod: "/moc.lbagent.LoadBalancerAgent/Create", 804 } 805 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 806 return srv.(LoadBalancerAgentServer).Create(ctx, req.(*LoadBalancerRequest)) 807 } 808 return interceptor(ctx, in, info, handler) 809 } 810 811 func _LoadBalancerAgent_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 812 in := new(LoadBalancerRequest) 813 if err := dec(in); err != nil { 814 return nil, err 815 } 816 if interceptor == nil { 817 return srv.(LoadBalancerAgentServer).Delete(ctx, in) 818 } 819 info := &grpc.UnaryServerInfo{ 820 Server: srv, 821 FullMethod: "/moc.lbagent.LoadBalancerAgent/Delete", 822 } 823 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 824 return srv.(LoadBalancerAgentServer).Delete(ctx, req.(*LoadBalancerRequest)) 825 } 826 return interceptor(ctx, in, info, handler) 827 } 828 829 func _LoadBalancerAgent_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 830 in := new(LoadBalancerRequest) 831 if err := dec(in); err != nil { 832 return nil, err 833 } 834 if interceptor == nil { 835 return srv.(LoadBalancerAgentServer).Get(ctx, in) 836 } 837 info := &grpc.UnaryServerInfo{ 838 Server: srv, 839 FullMethod: "/moc.lbagent.LoadBalancerAgent/Get", 840 } 841 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 842 return srv.(LoadBalancerAgentServer).Get(ctx, req.(*LoadBalancerRequest)) 843 } 844 return interceptor(ctx, in, info, handler) 845 } 846 847 func _LoadBalancerAgent_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 848 in := new(LoadBalancerConfigRequest) 849 if err := dec(in); err != nil { 850 return nil, err 851 } 852 if interceptor == nil { 853 return srv.(LoadBalancerAgentServer).GetConfig(ctx, in) 854 } 855 info := &grpc.UnaryServerInfo{ 856 Server: srv, 857 FullMethod: "/moc.lbagent.LoadBalancerAgent/GetConfig", 858 } 859 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 860 return srv.(LoadBalancerAgentServer).GetConfig(ctx, req.(*LoadBalancerConfigRequest)) 861 } 862 return interceptor(ctx, in, info, handler) 863 } 864 865 func _LoadBalancerAgent_CheckNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 866 in := new(empty.Empty) 867 if err := dec(in); err != nil { 868 return nil, err 869 } 870 if interceptor == nil { 871 return srv.(LoadBalancerAgentServer).CheckNotification(ctx, in) 872 } 873 info := &grpc.UnaryServerInfo{ 874 Server: srv, 875 FullMethod: "/moc.lbagent.LoadBalancerAgent/CheckNotification", 876 } 877 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 878 return srv.(LoadBalancerAgentServer).CheckNotification(ctx, req.(*empty.Empty)) 879 } 880 return interceptor(ctx, in, info, handler) 881 } 882 883 func _LoadBalancerAgent_AddPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 884 in := new(LoadBalancerPeerRequest) 885 if err := dec(in); err != nil { 886 return nil, err 887 } 888 if interceptor == nil { 889 return srv.(LoadBalancerAgentServer).AddPeer(ctx, in) 890 } 891 info := &grpc.UnaryServerInfo{ 892 Server: srv, 893 FullMethod: "/moc.lbagent.LoadBalancerAgent/AddPeer", 894 } 895 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 896 return srv.(LoadBalancerAgentServer).AddPeer(ctx, req.(*LoadBalancerPeerRequest)) 897 } 898 return interceptor(ctx, in, info, handler) 899 } 900 901 func _LoadBalancerAgent_RemovePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 902 in := new(LoadBalancerPeerRequest) 903 if err := dec(in); err != nil { 904 return nil, err 905 } 906 if interceptor == nil { 907 return srv.(LoadBalancerAgentServer).RemovePeer(ctx, in) 908 } 909 info := &grpc.UnaryServerInfo{ 910 Server: srv, 911 FullMethod: "/moc.lbagent.LoadBalancerAgent/RemovePeer", 912 } 913 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 914 return srv.(LoadBalancerAgentServer).RemovePeer(ctx, req.(*LoadBalancerPeerRequest)) 915 } 916 return interceptor(ctx, in, info, handler) 917 } 918 919 func _LoadBalancerAgent_Resync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 920 in := new(LoadBalancerResyncRequest) 921 if err := dec(in); err != nil { 922 return nil, err 923 } 924 if interceptor == nil { 925 return srv.(LoadBalancerAgentServer).Resync(ctx, in) 926 } 927 info := &grpc.UnaryServerInfo{ 928 Server: srv, 929 FullMethod: "/moc.lbagent.LoadBalancerAgent/Resync", 930 } 931 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 932 return srv.(LoadBalancerAgentServer).Resync(ctx, req.(*LoadBalancerResyncRequest)) 933 } 934 return interceptor(ctx, in, info, handler) 935 } 936 937 var _LoadBalancerAgent_serviceDesc = grpc.ServiceDesc{ 938 ServiceName: "moc.lbagent.LoadBalancerAgent", 939 HandlerType: (*LoadBalancerAgentServer)(nil), 940 Methods: []grpc.MethodDesc{ 941 { 942 MethodName: "Create", 943 Handler: _LoadBalancerAgent_Create_Handler, 944 }, 945 { 946 MethodName: "Delete", 947 Handler: _LoadBalancerAgent_Delete_Handler, 948 }, 949 { 950 MethodName: "Get", 951 Handler: _LoadBalancerAgent_Get_Handler, 952 }, 953 { 954 MethodName: "GetConfig", 955 Handler: _LoadBalancerAgent_GetConfig_Handler, 956 }, 957 { 958 MethodName: "CheckNotification", 959 Handler: _LoadBalancerAgent_CheckNotification_Handler, 960 }, 961 { 962 MethodName: "AddPeer", 963 Handler: _LoadBalancerAgent_AddPeer_Handler, 964 }, 965 { 966 MethodName: "RemovePeer", 967 Handler: _LoadBalancerAgent_RemovePeer_Handler, 968 }, 969 { 970 MethodName: "Resync", 971 Handler: _LoadBalancerAgent_Resync_Handler, 972 }, 973 }, 974 Streams: []grpc.StreamDesc{}, 975 Metadata: "moc_lbagent_agent.proto", 976 }