github.com/microsoft/moc@v0.17.1/rpc/nodeagent/network/moc_nodeagent_virtualnetwork.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_virtualnetwork.proto 3 4 package network 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 VirtualNetworkType int32 31 32 const ( 33 VirtualNetworkType_NAT VirtualNetworkType = 0 34 VirtualNetworkType_Transparent VirtualNetworkType = 1 35 VirtualNetworkType_L2Bridge VirtualNetworkType = 2 36 VirtualNetworkType_L2Tunnel VirtualNetworkType = 3 37 VirtualNetworkType_ICS VirtualNetworkType = 4 38 VirtualNetworkType_Private VirtualNetworkType = 5 39 VirtualNetworkType_Overlay VirtualNetworkType = 6 40 VirtualNetworkType_Internal VirtualNetworkType = 7 41 VirtualNetworkType_Mirrored VirtualNetworkType = 8 42 ) 43 44 var VirtualNetworkType_name = map[int32]string{ 45 0: "NAT", 46 1: "Transparent", 47 2: "L2Bridge", 48 3: "L2Tunnel", 49 4: "ICS", 50 5: "Private", 51 6: "Overlay", 52 7: "Internal", 53 8: "Mirrored", 54 } 55 56 var VirtualNetworkType_value = map[string]int32{ 57 "NAT": 0, 58 "Transparent": 1, 59 "L2Bridge": 2, 60 "L2Tunnel": 3, 61 "ICS": 4, 62 "Private": 5, 63 "Overlay": 6, 64 "Internal": 7, 65 "Mirrored": 8, 66 } 67 68 func (x VirtualNetworkType) String() string { 69 return proto.EnumName(VirtualNetworkType_name, int32(x)) 70 } 71 72 func (VirtualNetworkType) EnumDescriptor() ([]byte, []int) { 73 return fileDescriptor_f1b8ece8397de968, []int{0} 74 } 75 76 type VirtualNetworkRequest struct { 77 VirtualNetworks []*VirtualNetwork `protobuf:"bytes,1,rep,name=VirtualNetworks,proto3" json:"VirtualNetworks,omitempty"` 78 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 79 XXX_NoUnkeyedLiteral struct{} `json:"-"` 80 XXX_unrecognized []byte `json:"-"` 81 XXX_sizecache int32 `json:"-"` 82 } 83 84 func (m *VirtualNetworkRequest) Reset() { *m = VirtualNetworkRequest{} } 85 func (m *VirtualNetworkRequest) String() string { return proto.CompactTextString(m) } 86 func (*VirtualNetworkRequest) ProtoMessage() {} 87 func (*VirtualNetworkRequest) Descriptor() ([]byte, []int) { 88 return fileDescriptor_f1b8ece8397de968, []int{0} 89 } 90 91 func (m *VirtualNetworkRequest) XXX_Unmarshal(b []byte) error { 92 return xxx_messageInfo_VirtualNetworkRequest.Unmarshal(m, b) 93 } 94 func (m *VirtualNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 95 return xxx_messageInfo_VirtualNetworkRequest.Marshal(b, m, deterministic) 96 } 97 func (m *VirtualNetworkRequest) XXX_Merge(src proto.Message) { 98 xxx_messageInfo_VirtualNetworkRequest.Merge(m, src) 99 } 100 func (m *VirtualNetworkRequest) XXX_Size() int { 101 return xxx_messageInfo_VirtualNetworkRequest.Size(m) 102 } 103 func (m *VirtualNetworkRequest) XXX_DiscardUnknown() { 104 xxx_messageInfo_VirtualNetworkRequest.DiscardUnknown(m) 105 } 106 107 var xxx_messageInfo_VirtualNetworkRequest proto.InternalMessageInfo 108 109 func (m *VirtualNetworkRequest) GetVirtualNetworks() []*VirtualNetwork { 110 if m != nil { 111 return m.VirtualNetworks 112 } 113 return nil 114 } 115 116 func (m *VirtualNetworkRequest) GetOperationType() common.Operation { 117 if m != nil { 118 return m.OperationType 119 } 120 return common.Operation_GET 121 } 122 123 type VirtualNetworkResponse struct { 124 VirtualNetworks []*VirtualNetwork `protobuf:"bytes,1,rep,name=VirtualNetworks,proto3" json:"VirtualNetworks,omitempty"` 125 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 126 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 127 XXX_NoUnkeyedLiteral struct{} `json:"-"` 128 XXX_unrecognized []byte `json:"-"` 129 XXX_sizecache int32 `json:"-"` 130 } 131 132 func (m *VirtualNetworkResponse) Reset() { *m = VirtualNetworkResponse{} } 133 func (m *VirtualNetworkResponse) String() string { return proto.CompactTextString(m) } 134 func (*VirtualNetworkResponse) ProtoMessage() {} 135 func (*VirtualNetworkResponse) Descriptor() ([]byte, []int) { 136 return fileDescriptor_f1b8ece8397de968, []int{1} 137 } 138 139 func (m *VirtualNetworkResponse) XXX_Unmarshal(b []byte) error { 140 return xxx_messageInfo_VirtualNetworkResponse.Unmarshal(m, b) 141 } 142 func (m *VirtualNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 143 return xxx_messageInfo_VirtualNetworkResponse.Marshal(b, m, deterministic) 144 } 145 func (m *VirtualNetworkResponse) XXX_Merge(src proto.Message) { 146 xxx_messageInfo_VirtualNetworkResponse.Merge(m, src) 147 } 148 func (m *VirtualNetworkResponse) XXX_Size() int { 149 return xxx_messageInfo_VirtualNetworkResponse.Size(m) 150 } 151 func (m *VirtualNetworkResponse) XXX_DiscardUnknown() { 152 xxx_messageInfo_VirtualNetworkResponse.DiscardUnknown(m) 153 } 154 155 var xxx_messageInfo_VirtualNetworkResponse proto.InternalMessageInfo 156 157 func (m *VirtualNetworkResponse) GetVirtualNetworks() []*VirtualNetwork { 158 if m != nil { 159 return m.VirtualNetworks 160 } 161 return nil 162 } 163 164 func (m *VirtualNetworkResponse) GetResult() *wrappers.BoolValue { 165 if m != nil { 166 return m.Result 167 } 168 return nil 169 } 170 171 func (m *VirtualNetworkResponse) GetError() string { 172 if m != nil { 173 return m.Error 174 } 175 return "" 176 } 177 178 type VirtualNetwork struct { 179 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 180 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 181 Ipams []*Ipam `protobuf:"bytes,3,rep,name=ipams,proto3" json:"ipams,omitempty"` 182 Dns *common.Dns `protobuf:"bytes,4,opt,name=dns,proto3" json:"dns,omitempty"` 183 Type VirtualNetworkType `protobuf:"varint,5,opt,name=type,proto3,enum=moc.nodeagent.network.VirtualNetworkType" json:"type,omitempty"` 184 MacPool *MacPool `protobuf:"bytes,6,opt,name=macPool,proto3" json:"macPool,omitempty"` 185 Status *common.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` 186 Entity *common.Entity `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"` 187 Tags *common.Tags `protobuf:"bytes,10,opt,name=tags,proto3" json:"tags,omitempty"` 188 XXX_NoUnkeyedLiteral struct{} `json:"-"` 189 XXX_unrecognized []byte `json:"-"` 190 XXX_sizecache int32 `json:"-"` 191 } 192 193 func (m *VirtualNetwork) Reset() { *m = VirtualNetwork{} } 194 func (m *VirtualNetwork) String() string { return proto.CompactTextString(m) } 195 func (*VirtualNetwork) ProtoMessage() {} 196 func (*VirtualNetwork) Descriptor() ([]byte, []int) { 197 return fileDescriptor_f1b8ece8397de968, []int{2} 198 } 199 200 func (m *VirtualNetwork) XXX_Unmarshal(b []byte) error { 201 return xxx_messageInfo_VirtualNetwork.Unmarshal(m, b) 202 } 203 func (m *VirtualNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 204 return xxx_messageInfo_VirtualNetwork.Marshal(b, m, deterministic) 205 } 206 func (m *VirtualNetwork) XXX_Merge(src proto.Message) { 207 xxx_messageInfo_VirtualNetwork.Merge(m, src) 208 } 209 func (m *VirtualNetwork) XXX_Size() int { 210 return xxx_messageInfo_VirtualNetwork.Size(m) 211 } 212 func (m *VirtualNetwork) XXX_DiscardUnknown() { 213 xxx_messageInfo_VirtualNetwork.DiscardUnknown(m) 214 } 215 216 var xxx_messageInfo_VirtualNetwork proto.InternalMessageInfo 217 218 func (m *VirtualNetwork) GetName() string { 219 if m != nil { 220 return m.Name 221 } 222 return "" 223 } 224 225 func (m *VirtualNetwork) GetId() string { 226 if m != nil { 227 return m.Id 228 } 229 return "" 230 } 231 232 func (m *VirtualNetwork) GetIpams() []*Ipam { 233 if m != nil { 234 return m.Ipams 235 } 236 return nil 237 } 238 239 func (m *VirtualNetwork) GetDns() *common.Dns { 240 if m != nil { 241 return m.Dns 242 } 243 return nil 244 } 245 246 func (m *VirtualNetwork) GetType() VirtualNetworkType { 247 if m != nil { 248 return m.Type 249 } 250 return VirtualNetworkType_NAT 251 } 252 253 func (m *VirtualNetwork) GetMacPool() *MacPool { 254 if m != nil { 255 return m.MacPool 256 } 257 return nil 258 } 259 260 func (m *VirtualNetwork) GetStatus() *common.Status { 261 if m != nil { 262 return m.Status 263 } 264 return nil 265 } 266 267 func (m *VirtualNetwork) GetEntity() *common.Entity { 268 if m != nil { 269 return m.Entity 270 } 271 return nil 272 } 273 274 func (m *VirtualNetwork) GetTags() *common.Tags { 275 if m != nil { 276 return m.Tags 277 } 278 return nil 279 } 280 281 type MacRange struct { 282 StartMacAddress string `protobuf:"bytes,1,opt,name=startMacAddress,proto3" json:"startMacAddress,omitempty"` 283 EndMacAddress string `protobuf:"bytes,2,opt,name=endMacAddress,proto3" json:"endMacAddress,omitempty"` 284 XXX_NoUnkeyedLiteral struct{} `json:"-"` 285 XXX_unrecognized []byte `json:"-"` 286 XXX_sizecache int32 `json:"-"` 287 } 288 289 func (m *MacRange) Reset() { *m = MacRange{} } 290 func (m *MacRange) String() string { return proto.CompactTextString(m) } 291 func (*MacRange) ProtoMessage() {} 292 func (*MacRange) Descriptor() ([]byte, []int) { 293 return fileDescriptor_f1b8ece8397de968, []int{3} 294 } 295 296 func (m *MacRange) XXX_Unmarshal(b []byte) error { 297 return xxx_messageInfo_MacRange.Unmarshal(m, b) 298 } 299 func (m *MacRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 300 return xxx_messageInfo_MacRange.Marshal(b, m, deterministic) 301 } 302 func (m *MacRange) XXX_Merge(src proto.Message) { 303 xxx_messageInfo_MacRange.Merge(m, src) 304 } 305 func (m *MacRange) XXX_Size() int { 306 return xxx_messageInfo_MacRange.Size(m) 307 } 308 func (m *MacRange) XXX_DiscardUnknown() { 309 xxx_messageInfo_MacRange.DiscardUnknown(m) 310 } 311 312 var xxx_messageInfo_MacRange proto.InternalMessageInfo 313 314 func (m *MacRange) GetStartMacAddress() string { 315 if m != nil { 316 return m.StartMacAddress 317 } 318 return "" 319 } 320 321 func (m *MacRange) GetEndMacAddress() string { 322 if m != nil { 323 return m.EndMacAddress 324 } 325 return "" 326 } 327 328 type MacPool struct { 329 Ranges []*MacRange `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"` 330 XXX_NoUnkeyedLiteral struct{} `json:"-"` 331 XXX_unrecognized []byte `json:"-"` 332 XXX_sizecache int32 `json:"-"` 333 } 334 335 func (m *MacPool) Reset() { *m = MacPool{} } 336 func (m *MacPool) String() string { return proto.CompactTextString(m) } 337 func (*MacPool) ProtoMessage() {} 338 func (*MacPool) Descriptor() ([]byte, []int) { 339 return fileDescriptor_f1b8ece8397de968, []int{4} 340 } 341 342 func (m *MacPool) XXX_Unmarshal(b []byte) error { 343 return xxx_messageInfo_MacPool.Unmarshal(m, b) 344 } 345 func (m *MacPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 346 return xxx_messageInfo_MacPool.Marshal(b, m, deterministic) 347 } 348 func (m *MacPool) XXX_Merge(src proto.Message) { 349 xxx_messageInfo_MacPool.Merge(m, src) 350 } 351 func (m *MacPool) XXX_Size() int { 352 return xxx_messageInfo_MacPool.Size(m) 353 } 354 func (m *MacPool) XXX_DiscardUnknown() { 355 xxx_messageInfo_MacPool.DiscardUnknown(m) 356 } 357 358 var xxx_messageInfo_MacPool proto.InternalMessageInfo 359 360 func (m *MacPool) GetRanges() []*MacRange { 361 if m != nil { 362 return m.Ranges 363 } 364 return nil 365 } 366 367 type Subnet struct { 368 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 369 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 370 Cidr string `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` 371 Routes []*common.Route `protobuf:"bytes,4,rep,name=routes,proto3" json:"routes,omitempty"` 372 Allocation common.IPAllocationMethod `protobuf:"varint,5,opt,name=allocation,proto3,enum=moc.IPAllocationMethod" json:"allocation,omitempty"` 373 Vlan uint32 `protobuf:"varint,6,opt,name=vlan,proto3" json:"vlan,omitempty"` 374 XXX_NoUnkeyedLiteral struct{} `json:"-"` 375 XXX_unrecognized []byte `json:"-"` 376 XXX_sizecache int32 `json:"-"` 377 } 378 379 func (m *Subnet) Reset() { *m = Subnet{} } 380 func (m *Subnet) String() string { return proto.CompactTextString(m) } 381 func (*Subnet) ProtoMessage() {} 382 func (*Subnet) Descriptor() ([]byte, []int) { 383 return fileDescriptor_f1b8ece8397de968, []int{5} 384 } 385 386 func (m *Subnet) XXX_Unmarshal(b []byte) error { 387 return xxx_messageInfo_Subnet.Unmarshal(m, b) 388 } 389 func (m *Subnet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 390 return xxx_messageInfo_Subnet.Marshal(b, m, deterministic) 391 } 392 func (m *Subnet) XXX_Merge(src proto.Message) { 393 xxx_messageInfo_Subnet.Merge(m, src) 394 } 395 func (m *Subnet) XXX_Size() int { 396 return xxx_messageInfo_Subnet.Size(m) 397 } 398 func (m *Subnet) XXX_DiscardUnknown() { 399 xxx_messageInfo_Subnet.DiscardUnknown(m) 400 } 401 402 var xxx_messageInfo_Subnet proto.InternalMessageInfo 403 404 func (m *Subnet) GetName() string { 405 if m != nil { 406 return m.Name 407 } 408 return "" 409 } 410 411 func (m *Subnet) GetId() string { 412 if m != nil { 413 return m.Id 414 } 415 return "" 416 } 417 418 func (m *Subnet) GetCidr() string { 419 if m != nil { 420 return m.Cidr 421 } 422 return "" 423 } 424 425 func (m *Subnet) GetRoutes() []*common.Route { 426 if m != nil { 427 return m.Routes 428 } 429 return nil 430 } 431 432 func (m *Subnet) GetAllocation() common.IPAllocationMethod { 433 if m != nil { 434 return m.Allocation 435 } 436 return common.IPAllocationMethod_Invalid 437 } 438 439 func (m *Subnet) GetVlan() uint32 { 440 if m != nil { 441 return m.Vlan 442 } 443 return 0 444 } 445 446 type Ipam struct { 447 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 448 Subnets []*Subnet `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` 449 XXX_NoUnkeyedLiteral struct{} `json:"-"` 450 XXX_unrecognized []byte `json:"-"` 451 XXX_sizecache int32 `json:"-"` 452 } 453 454 func (m *Ipam) Reset() { *m = Ipam{} } 455 func (m *Ipam) String() string { return proto.CompactTextString(m) } 456 func (*Ipam) ProtoMessage() {} 457 func (*Ipam) Descriptor() ([]byte, []int) { 458 return fileDescriptor_f1b8ece8397de968, []int{6} 459 } 460 461 func (m *Ipam) XXX_Unmarshal(b []byte) error { 462 return xxx_messageInfo_Ipam.Unmarshal(m, b) 463 } 464 func (m *Ipam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 465 return xxx_messageInfo_Ipam.Marshal(b, m, deterministic) 466 } 467 func (m *Ipam) XXX_Merge(src proto.Message) { 468 xxx_messageInfo_Ipam.Merge(m, src) 469 } 470 func (m *Ipam) XXX_Size() int { 471 return xxx_messageInfo_Ipam.Size(m) 472 } 473 func (m *Ipam) XXX_DiscardUnknown() { 474 xxx_messageInfo_Ipam.DiscardUnknown(m) 475 } 476 477 var xxx_messageInfo_Ipam proto.InternalMessageInfo 478 479 func (m *Ipam) GetType() string { 480 if m != nil { 481 return m.Type 482 } 483 return "" 484 } 485 486 func (m *Ipam) GetSubnets() []*Subnet { 487 if m != nil { 488 return m.Subnets 489 } 490 return nil 491 } 492 493 func init() { 494 proto.RegisterEnum("moc.nodeagent.network.VirtualNetworkType", VirtualNetworkType_name, VirtualNetworkType_value) 495 proto.RegisterType((*VirtualNetworkRequest)(nil), "moc.nodeagent.network.VirtualNetworkRequest") 496 proto.RegisterType((*VirtualNetworkResponse)(nil), "moc.nodeagent.network.VirtualNetworkResponse") 497 proto.RegisterType((*VirtualNetwork)(nil), "moc.nodeagent.network.VirtualNetwork") 498 proto.RegisterType((*MacRange)(nil), "moc.nodeagent.network.MacRange") 499 proto.RegisterType((*MacPool)(nil), "moc.nodeagent.network.MacPool") 500 proto.RegisterType((*Subnet)(nil), "moc.nodeagent.network.Subnet") 501 proto.RegisterType((*Ipam)(nil), "moc.nodeagent.network.Ipam") 502 } 503 504 func init() { 505 proto.RegisterFile("moc_nodeagent_virtualnetwork.proto", fileDescriptor_f1b8ece8397de968) 506 } 507 508 var fileDescriptor_f1b8ece8397de968 = []byte{ 509 // 806 bytes of a gzipped FileDescriptorProto 510 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xe1, 0x6e, 0xe3, 0x44, 511 0x10, 0x3e, 0x27, 0xae, 0x93, 0x4e, 0x68, 0x6b, 0x16, 0xee, 0xce, 0xe4, 0xd4, 0x52, 0x19, 0x21, 512 0x95, 0x13, 0x38, 0x10, 0x90, 0xca, 0x1f, 0x7e, 0x34, 0x47, 0x25, 0x82, 0x48, 0x5b, 0x6d, 0xa3, 513 0xfb, 0xc1, 0x9f, 0xd3, 0xd6, 0xde, 0xb8, 0x56, 0xed, 0x5d, 0xb3, 0xbb, 0xce, 0x29, 0x6f, 0x00, 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82, 0xfd, 0x06, 0xe9, 0xd2, 0x98, 0xb0, 0x85, 0xd0, 0x31, 537 0xb8, 0x8a, 0xa4, 0x32, 0x00, 0x43, 0xd9, 0x37, 0x94, 0x29, 0x49, 0x25, 0x36, 0xe6, 0x1f, 0xdd, 538 0x6e, 0xc7, 0xef, 0x86, 0x33, 0xe8, 0x4e, 0x48, 0x8c, 0x09, 0x4b, 0x29, 0x8a, 0xe0, 0x48, 0x2a, 539 0x22, 0xd4, 0x84, 0xc4, 0x17, 0x49, 0x22, 0xa8, 0x94, 0x75, 0xdf, 0x6d, 0x5f, 0x36, 0x41, 0xf4, 540 0x12, 0x0e, 0x28, 0x4b, 0x1a, 0xec, 0x56, 0x83, 0xbd, 0x0e, 0x85, 0x23, 0xe8, 0xd8, 0x52, 0xd1, 541 0x39, 0x78, 0x42, 0xe7, 0x5b, 0x0e, 0xde, 0xc7, 0xdb, 0x5b, 0x63, 0x74, 0x61, 0x4b, 0x0f, 0xff, 542 0x72, 0xc0, 0xbb, 0xad, 0xee, 0x18, 0x55, 0x3b, 0xcd, 0x45, 0x00, 0x6e, 0x9c, 0x25, 0x76, 0xc6, 543 0xac, 0x2a, 0x63, 0x41, 0x21, 0x78, 0x82, 0x57, 0x8a, 0xea, 0x09, 0xd0, 0x0a, 0xc0, 0x28, 0xc0, 544 0xda, 0x84, 0x2d, 0x82, 0xce, 0x01, 0x48, 0x9e, 0xf3, 0xfa, 0xdd, 0xdb, 0x31, 0x78, 0x6e, 0x78, 545 0xe3, 0x9b, 0x8b, 0x15, 0x30, 0xa1, 0xea, 0x9e, 0x27, 0xb8, 0x41, 0xd5, 0xd2, 0xe6, 0x39, 0x61, 546 0xe6, 0xde, 0x0f, 0xb0, 0xf9, 0x0e, 0x6f, 0xc1, 0xd5, 0xe3, 0xa7, 0x31, 0x33, 0x55, 0x56, 0xb6, 547 0x19, 0x95, 0x73, 0xe8, 0x48, 0x53, 0x94, 0xee, 0x9f, 0x56, 0x73, 0xbc, 0xa5, 0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559 0xd4, 0xc0, 0x8a, 0xba, 0xf3, 0x4c, 0xf8, 0xaf, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x35, 560 0xfc, 0x86, 0xe7, 0x06, 0x00, 0x00, 561 } 562 563 // Reference imports to suppress errors if they are not otherwise used. 564 var _ context.Context 565 var _ grpc.ClientConn 566 567 // This is a compile-time assertion to ensure that this generated file 568 // is compatible with the grpc package it is being compiled against. 569 const _ = grpc.SupportPackageIsVersion4 570 571 // VirtualNetworkAgentClient is the client API for VirtualNetworkAgent service. 572 // 573 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 574 type VirtualNetworkAgentClient interface { 575 Invoke(ctx context.Context, in *VirtualNetworkRequest, opts ...grpc.CallOption) (*VirtualNetworkResponse, error) 576 CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) 577 } 578 579 type virtualNetworkAgentClient struct { 580 cc *grpc.ClientConn 581 } 582 583 func NewVirtualNetworkAgentClient(cc *grpc.ClientConn) VirtualNetworkAgentClient { 584 return &virtualNetworkAgentClient{cc} 585 } 586 587 func (c *virtualNetworkAgentClient) Invoke(ctx context.Context, in *VirtualNetworkRequest, opts ...grpc.CallOption) (*VirtualNetworkResponse, error) { 588 out := new(VirtualNetworkResponse) 589 err := c.cc.Invoke(ctx, "/moc.nodeagent.network.VirtualNetworkAgent/Invoke", in, out, opts...) 590 if err != nil { 591 return nil, err 592 } 593 return out, nil 594 } 595 596 func (c *virtualNetworkAgentClient) CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) { 597 out := new(common.NotificationResponse) 598 err := c.cc.Invoke(ctx, "/moc.nodeagent.network.VirtualNetworkAgent/CheckNotification", in, out, opts...) 599 if err != nil { 600 return nil, err 601 } 602 return out, nil 603 } 604 605 // VirtualNetworkAgentServer is the server API for VirtualNetworkAgent service. 606 type VirtualNetworkAgentServer interface { 607 Invoke(context.Context, *VirtualNetworkRequest) (*VirtualNetworkResponse, error) 608 CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error) 609 } 610 611 // UnimplementedVirtualNetworkAgentServer can be embedded to have forward compatible implementations. 612 type UnimplementedVirtualNetworkAgentServer struct { 613 } 614 615 func (*UnimplementedVirtualNetworkAgentServer) Invoke(ctx context.Context, req *VirtualNetworkRequest) (*VirtualNetworkResponse, error) { 616 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 617 } 618 func (*UnimplementedVirtualNetworkAgentServer) CheckNotification(ctx context.Context, req *empty.Empty) (*common.NotificationResponse, error) { 619 return nil, status.Errorf(codes.Unimplemented, "method CheckNotification not implemented") 620 } 621 622 func RegisterVirtualNetworkAgentServer(s *grpc.Server, srv VirtualNetworkAgentServer) { 623 s.RegisterService(&_VirtualNetworkAgent_serviceDesc, srv) 624 } 625 626 func _VirtualNetworkAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 627 in := new(VirtualNetworkRequest) 628 if err := dec(in); err != nil { 629 return nil, err 630 } 631 if interceptor == nil { 632 return srv.(VirtualNetworkAgentServer).Invoke(ctx, in) 633 } 634 info := &grpc.UnaryServerInfo{ 635 Server: srv, 636 FullMethod: "/moc.nodeagent.network.VirtualNetworkAgent/Invoke", 637 } 638 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 639 return srv.(VirtualNetworkAgentServer).Invoke(ctx, req.(*VirtualNetworkRequest)) 640 } 641 return interceptor(ctx, in, info, handler) 642 } 643 644 func _VirtualNetworkAgent_CheckNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 645 in := new(empty.Empty) 646 if err := dec(in); err != nil { 647 return nil, err 648 } 649 if interceptor == nil { 650 return srv.(VirtualNetworkAgentServer).CheckNotification(ctx, in) 651 } 652 info := &grpc.UnaryServerInfo{ 653 Server: srv, 654 FullMethod: "/moc.nodeagent.network.VirtualNetworkAgent/CheckNotification", 655 } 656 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 657 return srv.(VirtualNetworkAgentServer).CheckNotification(ctx, req.(*empty.Empty)) 658 } 659 return interceptor(ctx, in, info, handler) 660 } 661 662 var _VirtualNetworkAgent_serviceDesc = grpc.ServiceDesc{ 663 ServiceName: "moc.nodeagent.network.VirtualNetworkAgent", 664 HandlerType: (*VirtualNetworkAgentServer)(nil), 665 Methods: []grpc.MethodDesc{ 666 { 667 MethodName: "Invoke", 668 Handler: _VirtualNetworkAgent_Invoke_Handler, 669 }, 670 { 671 MethodName: "CheckNotification", 672 Handler: _VirtualNetworkAgent_CheckNotification_Handler, 673 }, 674 }, 675 Streams: []grpc.StreamDesc{}, 676 Metadata: "moc_nodeagent_virtualnetwork.proto", 677 }