github.com/microsoft/moc@v0.17.1/rpc/nodeagent/network/moc_nodeagent_logicalnetwork.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_logicalnetwork.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 LogicalNetworkRequest struct { 31 LogicalNetworks []*LogicalNetwork `protobuf:"bytes,1,rep,name=LogicalNetworks,proto3" json:"LogicalNetworks,omitempty"` 32 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 33 XXX_NoUnkeyedLiteral struct{} `json:"-"` 34 XXX_unrecognized []byte `json:"-"` 35 XXX_sizecache int32 `json:"-"` 36 } 37 38 func (m *LogicalNetworkRequest) Reset() { *m = LogicalNetworkRequest{} } 39 func (m *LogicalNetworkRequest) String() string { return proto.CompactTextString(m) } 40 func (*LogicalNetworkRequest) ProtoMessage() {} 41 func (*LogicalNetworkRequest) Descriptor() ([]byte, []int) { 42 return fileDescriptor_22bab1e277110390, []int{0} 43 } 44 45 func (m *LogicalNetworkRequest) XXX_Unmarshal(b []byte) error { 46 return xxx_messageInfo_LogicalNetworkRequest.Unmarshal(m, b) 47 } 48 func (m *LogicalNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 return xxx_messageInfo_LogicalNetworkRequest.Marshal(b, m, deterministic) 50 } 51 func (m *LogicalNetworkRequest) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_LogicalNetworkRequest.Merge(m, src) 53 } 54 func (m *LogicalNetworkRequest) XXX_Size() int { 55 return xxx_messageInfo_LogicalNetworkRequest.Size(m) 56 } 57 func (m *LogicalNetworkRequest) XXX_DiscardUnknown() { 58 xxx_messageInfo_LogicalNetworkRequest.DiscardUnknown(m) 59 } 60 61 var xxx_messageInfo_LogicalNetworkRequest proto.InternalMessageInfo 62 63 func (m *LogicalNetworkRequest) GetLogicalNetworks() []*LogicalNetwork { 64 if m != nil { 65 return m.LogicalNetworks 66 } 67 return nil 68 } 69 70 func (m *LogicalNetworkRequest) GetOperationType() common.Operation { 71 if m != nil { 72 return m.OperationType 73 } 74 return common.Operation_GET 75 } 76 77 type LogicalNetworkResponse struct { 78 LogicalNetworks []*LogicalNetwork `protobuf:"bytes,1,rep,name=LogicalNetworks,proto3" json:"LogicalNetworks,omitempty"` 79 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 80 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 81 XXX_NoUnkeyedLiteral struct{} `json:"-"` 82 XXX_unrecognized []byte `json:"-"` 83 XXX_sizecache int32 `json:"-"` 84 } 85 86 func (m *LogicalNetworkResponse) Reset() { *m = LogicalNetworkResponse{} } 87 func (m *LogicalNetworkResponse) String() string { return proto.CompactTextString(m) } 88 func (*LogicalNetworkResponse) ProtoMessage() {} 89 func (*LogicalNetworkResponse) Descriptor() ([]byte, []int) { 90 return fileDescriptor_22bab1e277110390, []int{1} 91 } 92 93 func (m *LogicalNetworkResponse) XXX_Unmarshal(b []byte) error { 94 return xxx_messageInfo_LogicalNetworkResponse.Unmarshal(m, b) 95 } 96 func (m *LogicalNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 97 return xxx_messageInfo_LogicalNetworkResponse.Marshal(b, m, deterministic) 98 } 99 func (m *LogicalNetworkResponse) XXX_Merge(src proto.Message) { 100 xxx_messageInfo_LogicalNetworkResponse.Merge(m, src) 101 } 102 func (m *LogicalNetworkResponse) XXX_Size() int { 103 return xxx_messageInfo_LogicalNetworkResponse.Size(m) 104 } 105 func (m *LogicalNetworkResponse) XXX_DiscardUnknown() { 106 xxx_messageInfo_LogicalNetworkResponse.DiscardUnknown(m) 107 } 108 109 var xxx_messageInfo_LogicalNetworkResponse proto.InternalMessageInfo 110 111 func (m *LogicalNetworkResponse) GetLogicalNetworks() []*LogicalNetwork { 112 if m != nil { 113 return m.LogicalNetworks 114 } 115 return nil 116 } 117 118 func (m *LogicalNetworkResponse) GetResult() *wrappers.BoolValue { 119 if m != nil { 120 return m.Result 121 } 122 return nil 123 } 124 125 func (m *LogicalNetworkResponse) GetError() string { 126 if m != nil { 127 return m.Error 128 } 129 return "" 130 } 131 132 type LogicalNetwork struct { 133 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 134 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 135 Ipams []*LogicalNetworkIpam `protobuf:"bytes,3,rep,name=ipams,proto3" json:"ipams,omitempty"` 136 Status *common.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` 137 Entity *common.Entity `protobuf:"bytes,5,opt,name=entity,proto3" json:"entity,omitempty"` 138 Tags *common.Tags `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` 139 XXX_NoUnkeyedLiteral struct{} `json:"-"` 140 XXX_unrecognized []byte `json:"-"` 141 XXX_sizecache int32 `json:"-"` 142 } 143 144 func (m *LogicalNetwork) Reset() { *m = LogicalNetwork{} } 145 func (m *LogicalNetwork) String() string { return proto.CompactTextString(m) } 146 func (*LogicalNetwork) ProtoMessage() {} 147 func (*LogicalNetwork) Descriptor() ([]byte, []int) { 148 return fileDescriptor_22bab1e277110390, []int{2} 149 } 150 151 func (m *LogicalNetwork) XXX_Unmarshal(b []byte) error { 152 return xxx_messageInfo_LogicalNetwork.Unmarshal(m, b) 153 } 154 func (m *LogicalNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 155 return xxx_messageInfo_LogicalNetwork.Marshal(b, m, deterministic) 156 } 157 func (m *LogicalNetwork) XXX_Merge(src proto.Message) { 158 xxx_messageInfo_LogicalNetwork.Merge(m, src) 159 } 160 func (m *LogicalNetwork) XXX_Size() int { 161 return xxx_messageInfo_LogicalNetwork.Size(m) 162 } 163 func (m *LogicalNetwork) XXX_DiscardUnknown() { 164 xxx_messageInfo_LogicalNetwork.DiscardUnknown(m) 165 } 166 167 var xxx_messageInfo_LogicalNetwork proto.InternalMessageInfo 168 169 func (m *LogicalNetwork) GetName() string { 170 if m != nil { 171 return m.Name 172 } 173 return "" 174 } 175 176 func (m *LogicalNetwork) GetId() string { 177 if m != nil { 178 return m.Id 179 } 180 return "" 181 } 182 183 func (m *LogicalNetwork) GetIpams() []*LogicalNetworkIpam { 184 if m != nil { 185 return m.Ipams 186 } 187 return nil 188 } 189 190 func (m *LogicalNetwork) GetStatus() *common.Status { 191 if m != nil { 192 return m.Status 193 } 194 return nil 195 } 196 197 func (m *LogicalNetwork) GetEntity() *common.Entity { 198 if m != nil { 199 return m.Entity 200 } 201 return nil 202 } 203 204 func (m *LogicalNetwork) GetTags() *common.Tags { 205 if m != nil { 206 return m.Tags 207 } 208 return nil 209 } 210 211 type LogicalSubnet struct { 212 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 213 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 214 AddressPrefix string `protobuf:"bytes,3,opt,name=addressPrefix,proto3" json:"addressPrefix,omitempty"` 215 Routes []*common.Route `protobuf:"bytes,4,rep,name=routes,proto3" json:"routes,omitempty"` 216 Allocation common.IPAllocationMethod `protobuf:"varint,5,opt,name=allocation,proto3,enum=moc.IPAllocationMethod" json:"allocation,omitempty"` 217 Vlan uint32 `protobuf:"varint,6,opt,name=vlan,proto3" json:"vlan,omitempty"` 218 Dns *common.Dns `protobuf:"bytes,7,opt,name=dns,proto3" json:"dns,omitempty"` 219 XXX_NoUnkeyedLiteral struct{} `json:"-"` 220 XXX_unrecognized []byte `json:"-"` 221 XXX_sizecache int32 `json:"-"` 222 } 223 224 func (m *LogicalSubnet) Reset() { *m = LogicalSubnet{} } 225 func (m *LogicalSubnet) String() string { return proto.CompactTextString(m) } 226 func (*LogicalSubnet) ProtoMessage() {} 227 func (*LogicalSubnet) Descriptor() ([]byte, []int) { 228 return fileDescriptor_22bab1e277110390, []int{3} 229 } 230 231 func (m *LogicalSubnet) XXX_Unmarshal(b []byte) error { 232 return xxx_messageInfo_LogicalSubnet.Unmarshal(m, b) 233 } 234 func (m *LogicalSubnet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 235 return xxx_messageInfo_LogicalSubnet.Marshal(b, m, deterministic) 236 } 237 func (m *LogicalSubnet) XXX_Merge(src proto.Message) { 238 xxx_messageInfo_LogicalSubnet.Merge(m, src) 239 } 240 func (m *LogicalSubnet) XXX_Size() int { 241 return xxx_messageInfo_LogicalSubnet.Size(m) 242 } 243 func (m *LogicalSubnet) XXX_DiscardUnknown() { 244 xxx_messageInfo_LogicalSubnet.DiscardUnknown(m) 245 } 246 247 var xxx_messageInfo_LogicalSubnet proto.InternalMessageInfo 248 249 func (m *LogicalSubnet) GetName() string { 250 if m != nil { 251 return m.Name 252 } 253 return "" 254 } 255 256 func (m *LogicalSubnet) GetId() string { 257 if m != nil { 258 return m.Id 259 } 260 return "" 261 } 262 263 func (m *LogicalSubnet) GetAddressPrefix() string { 264 if m != nil { 265 return m.AddressPrefix 266 } 267 return "" 268 } 269 270 func (m *LogicalSubnet) GetRoutes() []*common.Route { 271 if m != nil { 272 return m.Routes 273 } 274 return nil 275 } 276 277 func (m *LogicalSubnet) GetAllocation() common.IPAllocationMethod { 278 if m != nil { 279 return m.Allocation 280 } 281 return common.IPAllocationMethod_Invalid 282 } 283 284 func (m *LogicalSubnet) GetVlan() uint32 { 285 if m != nil { 286 return m.Vlan 287 } 288 return 0 289 } 290 291 func (m *LogicalSubnet) GetDns() *common.Dns { 292 if m != nil { 293 return m.Dns 294 } 295 return nil 296 } 297 298 type LogicalNetworkIpam struct { 299 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 300 Subnets []*LogicalSubnet `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` 301 XXX_NoUnkeyedLiteral struct{} `json:"-"` 302 XXX_unrecognized []byte `json:"-"` 303 XXX_sizecache int32 `json:"-"` 304 } 305 306 func (m *LogicalNetworkIpam) Reset() { *m = LogicalNetworkIpam{} } 307 func (m *LogicalNetworkIpam) String() string { return proto.CompactTextString(m) } 308 func (*LogicalNetworkIpam) ProtoMessage() {} 309 func (*LogicalNetworkIpam) Descriptor() ([]byte, []int) { 310 return fileDescriptor_22bab1e277110390, []int{4} 311 } 312 313 func (m *LogicalNetworkIpam) XXX_Unmarshal(b []byte) error { 314 return xxx_messageInfo_LogicalNetworkIpam.Unmarshal(m, b) 315 } 316 func (m *LogicalNetworkIpam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 317 return xxx_messageInfo_LogicalNetworkIpam.Marshal(b, m, deterministic) 318 } 319 func (m *LogicalNetworkIpam) XXX_Merge(src proto.Message) { 320 xxx_messageInfo_LogicalNetworkIpam.Merge(m, src) 321 } 322 func (m *LogicalNetworkIpam) XXX_Size() int { 323 return xxx_messageInfo_LogicalNetworkIpam.Size(m) 324 } 325 func (m *LogicalNetworkIpam) XXX_DiscardUnknown() { 326 xxx_messageInfo_LogicalNetworkIpam.DiscardUnknown(m) 327 } 328 329 var xxx_messageInfo_LogicalNetworkIpam proto.InternalMessageInfo 330 331 func (m *LogicalNetworkIpam) GetType() string { 332 if m != nil { 333 return m.Type 334 } 335 return "" 336 } 337 338 func (m *LogicalNetworkIpam) GetSubnets() []*LogicalSubnet { 339 if m != nil { 340 return m.Subnets 341 } 342 return nil 343 } 344 345 func init() { 346 proto.RegisterType((*LogicalNetworkRequest)(nil), "moc.nodeagent.network.LogicalNetworkRequest") 347 proto.RegisterType((*LogicalNetworkResponse)(nil), "moc.nodeagent.network.LogicalNetworkResponse") 348 proto.RegisterType((*LogicalNetwork)(nil), "moc.nodeagent.network.LogicalNetwork") 349 proto.RegisterType((*LogicalSubnet)(nil), "moc.nodeagent.network.LogicalSubnet") 350 proto.RegisterType((*LogicalNetworkIpam)(nil), "moc.nodeagent.network.LogicalNetworkIpam") 351 } 352 353 func init() { 354 proto.RegisterFile("moc_nodeagent_logicalnetwork.proto", fileDescriptor_22bab1e277110390) 355 } 356 357 var fileDescriptor_22bab1e277110390 = []byte{ 358 // 611 bytes of a gzipped FileDescriptorProto 359 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x4e, 0xd4, 0x40, 360 0x14, 0xb6, 0xbb, 0xb0, 0xc8, 0x21, 0xbb, 0xc6, 0x51, 0xa0, 0xae, 0x81, 0x90, 0x8a, 0x09, 0x26, 361 0xda, 0x9a, 0xd5, 0xc4, 0x3b, 0x0d, 0x28, 0x89, 0x24, 0x0a, 0x64, 0x20, 0x5e, 0x78, 0x43, 0x66, 362 0xdb, 0xd9, 0x6e, 0x43, 0xdb, 0x53, 0x67, 0xa6, 0x20, 0x2f, 0xe3, 0x4b, 0xf8, 0x12, 0x3e, 0x85, 363 0x97, 0x3e, 0x87, 0xe9, 0xe9, 0xb0, 0x6e, 0x17, 0x63, 0xf6, 0xc2, 0xab, 0x4e, 0xcf, 0xf7, 0x9d, 364 0xef, 0x9c, 0xef, 0xcc, 0x0f, 0x78, 0x19, 0x86, 0x67, 0x39, 0x46, 0x52, 0xc4, 0x32, 0x37, 0x67, 365 0x29, 0xc6, 0x49, 0x28, 0xd2, 0x5c, 0x9a, 0x4b, 0x54, 0xe7, 0x7e, 0xa1, 0xd0, 0x20, 0x5b, 0xcd, 366 0x30, 0xf4, 0x27, 0x1c, 0xdf, 0x82, 0xfd, 0xcd, 0x18, 0x31, 0x4e, 0x65, 0x40, 0xa4, 0x61, 0x39, 367 0x0a, 0x2e, 0x95, 0x28, 0x0a, 0xa9, 0x74, 0x9d, 0xd6, 0x7f, 0x38, 0x8b, 0xcb, 0xac, 0x30, 0x57, 368 0x16, 0x5c, 0xaf, 0xea, 0x86, 0x98, 0x65, 0x98, 0xdb, 0x8f, 0x05, 0x36, 0xa7, 0x00, 0x5b, 0xa9, 369 0x81, 0x6f, 0x4c, 0xe3, 0x68, 0x92, 0x51, 0x12, 0x0a, 0x93, 0x5c, 0xc3, 0xde, 0x37, 0x07, 0x56, 370 0x3f, 0xd4, 0x26, 0x0e, 0xeb, 0x6c, 0x2e, 0xbf, 0x94, 0x52, 0x1b, 0x76, 0x04, 0x77, 0x9a, 0x80, 371 0x76, 0x9d, 0xad, 0xf6, 0xce, 0xca, 0xe0, 0xb1, 0xff, 0x57, 0x7f, 0xfe, 0x8c, 0xcc, 0x6c, 0x36, 372 0x7b, 0x09, 0xdd, 0xa3, 0x42, 0x2a, 0xaa, 0x7e, 0x7a, 0x55, 0x48, 0xb7, 0xb5, 0xe5, 0xec, 0xf4, 373 0x06, 0x3d, 0x92, 0x9b, 0x20, 0xbc, 0x49, 0xf2, 0xbe, 0x3b, 0xb0, 0x36, 0xdb, 0xa0, 0x2e, 0x30, 374 0xd7, 0xf2, 0xff, 0x77, 0x38, 0x80, 0x0e, 0x97, 0xba, 0x4c, 0x0d, 0xb5, 0xb6, 0x32, 0xe8, 0xfb, 375 0xf5, 0x96, 0xf8, 0xd7, 0x5b, 0xe2, 0xef, 0x21, 0xa6, 0x9f, 0x44, 0x5a, 0x4a, 0x6e, 0x99, 0xec, 376 0x3e, 0x2c, 0xee, 0x2b, 0x85, 0xca, 0x6d, 0x6f, 0x39, 0x3b, 0xcb, 0xbc, 0xfe, 0xf1, 0x7e, 0x3a, 377 0xd0, 0x6b, 0xaa, 0x33, 0x06, 0x0b, 0xb9, 0xc8, 0xa4, 0xeb, 0x10, 0x8f, 0xd6, 0xac, 0x07, 0xad, 378 0x24, 0xa2, 0x62, 0xcb, 0xbc, 0x95, 0x44, 0xec, 0x0d, 0x2c, 0x26, 0x85, 0xc8, 0xb4, 0xdb, 0x26, 379 0x1f, 0x4f, 0xe6, 0xf2, 0x71, 0x50, 0x88, 0x8c, 0xd7, 0x79, 0xec, 0x11, 0x74, 0xb4, 0x11, 0xa6, 380 0xd4, 0xee, 0x02, 0x39, 0x58, 0x21, 0x85, 0x13, 0x0a, 0x71, 0x0b, 0x55, 0x24, 0x99, 0x9b, 0xc4, 381 0x5c, 0xb9, 0x8b, 0x53, 0xa4, 0x7d, 0x0a, 0x71, 0x0b, 0xb1, 0x0d, 0x58, 0x30, 0x22, 0xd6, 0x6e, 382 0x87, 0x28, 0xcb, 0x44, 0x39, 0x15, 0xb1, 0xe6, 0x14, 0xf6, 0x7e, 0x39, 0xd0, 0xb5, 0x6d, 0x9c, 383 0x94, 0xc3, 0x5c, 0x9a, 0xb9, 0xfc, 0x6d, 0x43, 0x57, 0x44, 0x91, 0x92, 0x5a, 0x1f, 0x2b, 0x39, 384 0x4a, 0xbe, 0xda, 0xa1, 0x35, 0x83, 0xcc, 0x83, 0x8e, 0xc2, 0xd2, 0xc8, 0xca, 0x44, 0x35, 0x06, 385 0xa0, 0xe2, 0xbc, 0x0a, 0x71, 0x8b, 0xb0, 0x57, 0x00, 0x22, 0x4d, 0xb1, 0x3e, 0xcb, 0xe4, 0xa3, 386 0x37, 0x58, 0x27, 0xde, 0xc1, 0xf1, 0xee, 0x04, 0xf8, 0x28, 0xcd, 0x18, 0x23, 0x3e, 0x45, 0xad, 387 0xda, 0xbc, 0x48, 0x45, 0x4e, 0xbe, 0xba, 0x9c, 0xd6, 0xac, 0x0f, 0xed, 0x28, 0xd7, 0xee, 0x12, 388 0x59, 0xbd, 0x4d, 0x2a, 0xef, 0x72, 0xcd, 0xab, 0xa0, 0x37, 0x06, 0x76, 0x73, 0xdc, 0x95, 0x8a, 389 0xa9, 0x8e, 0xb0, 0x35, 0x5b, 0xad, 0xd9, 0x6b, 0x58, 0xd2, 0x34, 0x0a, 0xed, 0xb6, 0xa8, 0xef, 390 0xed, 0x7f, 0x6f, 0x5f, 0x3d, 0x37, 0x7e, 0x9d, 0x34, 0xf8, 0xe1, 0xc0, 0xbd, 0x66, 0xa9, 0xdd, 391 0x2a, 0x8d, 0xc5, 0xd0, 0x39, 0xc8, 0x2f, 0xf0, 0x5c, 0xb2, 0xa7, 0xf3, 0x9d, 0xeb, 0xfa, 0x02, 392 0xf7, 0x9f, 0xcd, 0xc9, 0xae, 0x6f, 0x93, 0x77, 0x8b, 0xbd, 0x87, 0xbb, 0x6f, 0xc7, 0x32, 0x3c, 393 0x3f, 0x9c, 0x7a, 0x26, 0xd8, 0xda, 0x8d, 0x3b, 0xb0, 0x5f, 0x3d, 0x4b, 0xfd, 0x07, 0xa4, 0x3e, 394 0x4d, 0xfd, 0xa3, 0xb4, 0xf7, 0xfc, 0xb3, 0x1f, 0x27, 0x66, 0x5c, 0x0e, 0xfd, 0x10, 0xb3, 0x20, 395 0x4b, 0x42, 0x85, 0x1a, 0x47, 0x26, 0xc8, 0x30, 0x0c, 0x54, 0x11, 0x06, 0x93, 0xa6, 0x02, 0xdb, 396 0xd4, 0xb0, 0x43, 0xf2, 0x2f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x92, 0x4d, 0xa3, 0x60, 397 0x05, 0x00, 0x00, 398 } 399 400 // Reference imports to suppress errors if they are not otherwise used. 401 var _ context.Context 402 var _ grpc.ClientConn 403 404 // This is a compile-time assertion to ensure that this generated file 405 // is compatible with the grpc package it is being compiled against. 406 const _ = grpc.SupportPackageIsVersion4 407 408 // LogicalNetworkAgentClient is the client API for LogicalNetworkAgent service. 409 // 410 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 411 type LogicalNetworkAgentClient interface { 412 Invoke(ctx context.Context, in *LogicalNetworkRequest, opts ...grpc.CallOption) (*LogicalNetworkResponse, error) 413 CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) 414 } 415 416 type logicalNetworkAgentClient struct { 417 cc *grpc.ClientConn 418 } 419 420 func NewLogicalNetworkAgentClient(cc *grpc.ClientConn) LogicalNetworkAgentClient { 421 return &logicalNetworkAgentClient{cc} 422 } 423 424 func (c *logicalNetworkAgentClient) Invoke(ctx context.Context, in *LogicalNetworkRequest, opts ...grpc.CallOption) (*LogicalNetworkResponse, error) { 425 out := new(LogicalNetworkResponse) 426 err := c.cc.Invoke(ctx, "/moc.nodeagent.network.LogicalNetworkAgent/Invoke", in, out, opts...) 427 if err != nil { 428 return nil, err 429 } 430 return out, nil 431 } 432 433 func (c *logicalNetworkAgentClient) CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) { 434 out := new(common.NotificationResponse) 435 err := c.cc.Invoke(ctx, "/moc.nodeagent.network.LogicalNetworkAgent/CheckNotification", in, out, opts...) 436 if err != nil { 437 return nil, err 438 } 439 return out, nil 440 } 441 442 // LogicalNetworkAgentServer is the server API for LogicalNetworkAgent service. 443 type LogicalNetworkAgentServer interface { 444 Invoke(context.Context, *LogicalNetworkRequest) (*LogicalNetworkResponse, error) 445 CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error) 446 } 447 448 // UnimplementedLogicalNetworkAgentServer can be embedded to have forward compatible implementations. 449 type UnimplementedLogicalNetworkAgentServer struct { 450 } 451 452 func (*UnimplementedLogicalNetworkAgentServer) Invoke(ctx context.Context, req *LogicalNetworkRequest) (*LogicalNetworkResponse, error) { 453 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 454 } 455 func (*UnimplementedLogicalNetworkAgentServer) CheckNotification(ctx context.Context, req *empty.Empty) (*common.NotificationResponse, error) { 456 return nil, status.Errorf(codes.Unimplemented, "method CheckNotification not implemented") 457 } 458 459 func RegisterLogicalNetworkAgentServer(s *grpc.Server, srv LogicalNetworkAgentServer) { 460 s.RegisterService(&_LogicalNetworkAgent_serviceDesc, srv) 461 } 462 463 func _LogicalNetworkAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 464 in := new(LogicalNetworkRequest) 465 if err := dec(in); err != nil { 466 return nil, err 467 } 468 if interceptor == nil { 469 return srv.(LogicalNetworkAgentServer).Invoke(ctx, in) 470 } 471 info := &grpc.UnaryServerInfo{ 472 Server: srv, 473 FullMethod: "/moc.nodeagent.network.LogicalNetworkAgent/Invoke", 474 } 475 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 476 return srv.(LogicalNetworkAgentServer).Invoke(ctx, req.(*LogicalNetworkRequest)) 477 } 478 return interceptor(ctx, in, info, handler) 479 } 480 481 func _LogicalNetworkAgent_CheckNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 482 in := new(empty.Empty) 483 if err := dec(in); err != nil { 484 return nil, err 485 } 486 if interceptor == nil { 487 return srv.(LogicalNetworkAgentServer).CheckNotification(ctx, in) 488 } 489 info := &grpc.UnaryServerInfo{ 490 Server: srv, 491 FullMethod: "/moc.nodeagent.network.LogicalNetworkAgent/CheckNotification", 492 } 493 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 494 return srv.(LogicalNetworkAgentServer).CheckNotification(ctx, req.(*empty.Empty)) 495 } 496 return interceptor(ctx, in, info, handler) 497 } 498 499 var _LogicalNetworkAgent_serviceDesc = grpc.ServiceDesc{ 500 ServiceName: "moc.nodeagent.network.LogicalNetworkAgent", 501 HandlerType: (*LogicalNetworkAgentServer)(nil), 502 Methods: []grpc.MethodDesc{ 503 { 504 MethodName: "Invoke", 505 Handler: _LogicalNetworkAgent_Invoke_Handler, 506 }, 507 { 508 MethodName: "CheckNotification", 509 Handler: _LogicalNetworkAgent_CheckNotification_Handler, 510 }, 511 }, 512 Streams: []grpc.StreamDesc{}, 513 Metadata: "moc_nodeagent_logicalnetwork.proto", 514 }