github.com/osrg/gobgp/v3@v3.30.0/api/gobgp_grpc.pb.go (about) 1 // Code generated by protoc-gen-go-grpc. DO NOT EDIT. 2 3 package apipb 4 5 import ( 6 context "context" 7 grpc "google.golang.org/grpc" 8 codes "google.golang.org/grpc/codes" 9 status "google.golang.org/grpc/status" 10 emptypb "google.golang.org/protobuf/types/known/emptypb" 11 ) 12 13 // This is a compile-time assertion to ensure that this generated file 14 // is compatible with the grpc package it is being compiled against. 15 // Requires gRPC-Go v1.32.0 or later. 16 const _ = grpc.SupportPackageIsVersion7 17 18 // GobgpApiClient is the client API for GobgpApi service. 19 // 20 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 21 type GobgpApiClient interface { 22 StartBgp(ctx context.Context, in *StartBgpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 23 StopBgp(ctx context.Context, in *StopBgpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 24 GetBgp(ctx context.Context, in *GetBgpRequest, opts ...grpc.CallOption) (*GetBgpResponse, error) 25 WatchEvent(ctx context.Context, in *WatchEventRequest, opts ...grpc.CallOption) (GobgpApi_WatchEventClient, error) 26 AddPeer(ctx context.Context, in *AddPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 27 DeletePeer(ctx context.Context, in *DeletePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 28 ListPeer(ctx context.Context, in *ListPeerRequest, opts ...grpc.CallOption) (GobgpApi_ListPeerClient, error) 29 UpdatePeer(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*UpdatePeerResponse, error) 30 ResetPeer(ctx context.Context, in *ResetPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 31 ShutdownPeer(ctx context.Context, in *ShutdownPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 32 EnablePeer(ctx context.Context, in *EnablePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 33 DisablePeer(ctx context.Context, in *DisablePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 34 AddPeerGroup(ctx context.Context, in *AddPeerGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 35 DeletePeerGroup(ctx context.Context, in *DeletePeerGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 36 ListPeerGroup(ctx context.Context, in *ListPeerGroupRequest, opts ...grpc.CallOption) (GobgpApi_ListPeerGroupClient, error) 37 UpdatePeerGroup(ctx context.Context, in *UpdatePeerGroupRequest, opts ...grpc.CallOption) (*UpdatePeerGroupResponse, error) 38 AddDynamicNeighbor(ctx context.Context, in *AddDynamicNeighborRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 39 ListDynamicNeighbor(ctx context.Context, in *ListDynamicNeighborRequest, opts ...grpc.CallOption) (GobgpApi_ListDynamicNeighborClient, error) 40 DeleteDynamicNeighbor(ctx context.Context, in *DeleteDynamicNeighborRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 41 AddPath(ctx context.Context, in *AddPathRequest, opts ...grpc.CallOption) (*AddPathResponse, error) 42 DeletePath(ctx context.Context, in *DeletePathRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 43 ListPath(ctx context.Context, in *ListPathRequest, opts ...grpc.CallOption) (GobgpApi_ListPathClient, error) 44 AddPathStream(ctx context.Context, opts ...grpc.CallOption) (GobgpApi_AddPathStreamClient, error) 45 GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*GetTableResponse, error) 46 AddVrf(ctx context.Context, in *AddVrfRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 47 DeleteVrf(ctx context.Context, in *DeleteVrfRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 48 ListVrf(ctx context.Context, in *ListVrfRequest, opts ...grpc.CallOption) (GobgpApi_ListVrfClient, error) 49 AddPolicy(ctx context.Context, in *AddPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 50 DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 51 ListPolicy(ctx context.Context, in *ListPolicyRequest, opts ...grpc.CallOption) (GobgpApi_ListPolicyClient, error) 52 SetPolicies(ctx context.Context, in *SetPoliciesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 53 AddDefinedSet(ctx context.Context, in *AddDefinedSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 54 DeleteDefinedSet(ctx context.Context, in *DeleteDefinedSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 55 ListDefinedSet(ctx context.Context, in *ListDefinedSetRequest, opts ...grpc.CallOption) (GobgpApi_ListDefinedSetClient, error) 56 AddStatement(ctx context.Context, in *AddStatementRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 57 DeleteStatement(ctx context.Context, in *DeleteStatementRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 58 ListStatement(ctx context.Context, in *ListStatementRequest, opts ...grpc.CallOption) (GobgpApi_ListStatementClient, error) 59 AddPolicyAssignment(ctx context.Context, in *AddPolicyAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 60 DeletePolicyAssignment(ctx context.Context, in *DeletePolicyAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 61 ListPolicyAssignment(ctx context.Context, in *ListPolicyAssignmentRequest, opts ...grpc.CallOption) (GobgpApi_ListPolicyAssignmentClient, error) 62 SetPolicyAssignment(ctx context.Context, in *SetPolicyAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 63 AddRpki(ctx context.Context, in *AddRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 64 DeleteRpki(ctx context.Context, in *DeleteRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 65 ListRpki(ctx context.Context, in *ListRpkiRequest, opts ...grpc.CallOption) (GobgpApi_ListRpkiClient, error) 66 EnableRpki(ctx context.Context, in *EnableRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 67 DisableRpki(ctx context.Context, in *DisableRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 68 ResetRpki(ctx context.Context, in *ResetRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 69 ListRpkiTable(ctx context.Context, in *ListRpkiTableRequest, opts ...grpc.CallOption) (GobgpApi_ListRpkiTableClient, error) 70 EnableZebra(ctx context.Context, in *EnableZebraRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 71 EnableMrt(ctx context.Context, in *EnableMrtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 72 DisableMrt(ctx context.Context, in *DisableMrtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 73 AddBmp(ctx context.Context, in *AddBmpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 74 DeleteBmp(ctx context.Context, in *DeleteBmpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 75 ListBmp(ctx context.Context, in *ListBmpRequest, opts ...grpc.CallOption) (GobgpApi_ListBmpClient, error) 76 SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 77 } 78 79 type gobgpApiClient struct { 80 cc grpc.ClientConnInterface 81 } 82 83 func NewGobgpApiClient(cc grpc.ClientConnInterface) GobgpApiClient { 84 return &gobgpApiClient{cc} 85 } 86 87 func (c *gobgpApiClient) StartBgp(ctx context.Context, in *StartBgpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 88 out := new(emptypb.Empty) 89 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/StartBgp", in, out, opts...) 90 if err != nil { 91 return nil, err 92 } 93 return out, nil 94 } 95 96 func (c *gobgpApiClient) StopBgp(ctx context.Context, in *StopBgpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 97 out := new(emptypb.Empty) 98 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/StopBgp", in, out, opts...) 99 if err != nil { 100 return nil, err 101 } 102 return out, nil 103 } 104 105 func (c *gobgpApiClient) GetBgp(ctx context.Context, in *GetBgpRequest, opts ...grpc.CallOption) (*GetBgpResponse, error) { 106 out := new(GetBgpResponse) 107 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/GetBgp", in, out, opts...) 108 if err != nil { 109 return nil, err 110 } 111 return out, nil 112 } 113 114 func (c *gobgpApiClient) WatchEvent(ctx context.Context, in *WatchEventRequest, opts ...grpc.CallOption) (GobgpApi_WatchEventClient, error) { 115 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[0], "/apipb.GobgpApi/WatchEvent", opts...) 116 if err != nil { 117 return nil, err 118 } 119 x := &gobgpApiWatchEventClient{stream} 120 if err := x.ClientStream.SendMsg(in); err != nil { 121 return nil, err 122 } 123 if err := x.ClientStream.CloseSend(); err != nil { 124 return nil, err 125 } 126 return x, nil 127 } 128 129 type GobgpApi_WatchEventClient interface { 130 Recv() (*WatchEventResponse, error) 131 grpc.ClientStream 132 } 133 134 type gobgpApiWatchEventClient struct { 135 grpc.ClientStream 136 } 137 138 func (x *gobgpApiWatchEventClient) Recv() (*WatchEventResponse, error) { 139 m := new(WatchEventResponse) 140 if err := x.ClientStream.RecvMsg(m); err != nil { 141 return nil, err 142 } 143 return m, nil 144 } 145 146 func (c *gobgpApiClient) AddPeer(ctx context.Context, in *AddPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 147 out := new(emptypb.Empty) 148 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddPeer", in, out, opts...) 149 if err != nil { 150 return nil, err 151 } 152 return out, nil 153 } 154 155 func (c *gobgpApiClient) DeletePeer(ctx context.Context, in *DeletePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 156 out := new(emptypb.Empty) 157 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeletePeer", in, out, opts...) 158 if err != nil { 159 return nil, err 160 } 161 return out, nil 162 } 163 164 func (c *gobgpApiClient) ListPeer(ctx context.Context, in *ListPeerRequest, opts ...grpc.CallOption) (GobgpApi_ListPeerClient, error) { 165 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[1], "/apipb.GobgpApi/ListPeer", opts...) 166 if err != nil { 167 return nil, err 168 } 169 x := &gobgpApiListPeerClient{stream} 170 if err := x.ClientStream.SendMsg(in); err != nil { 171 return nil, err 172 } 173 if err := x.ClientStream.CloseSend(); err != nil { 174 return nil, err 175 } 176 return x, nil 177 } 178 179 type GobgpApi_ListPeerClient interface { 180 Recv() (*ListPeerResponse, error) 181 grpc.ClientStream 182 } 183 184 type gobgpApiListPeerClient struct { 185 grpc.ClientStream 186 } 187 188 func (x *gobgpApiListPeerClient) Recv() (*ListPeerResponse, error) { 189 m := new(ListPeerResponse) 190 if err := x.ClientStream.RecvMsg(m); err != nil { 191 return nil, err 192 } 193 return m, nil 194 } 195 196 func (c *gobgpApiClient) UpdatePeer(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*UpdatePeerResponse, error) { 197 out := new(UpdatePeerResponse) 198 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/UpdatePeer", in, out, opts...) 199 if err != nil { 200 return nil, err 201 } 202 return out, nil 203 } 204 205 func (c *gobgpApiClient) ResetPeer(ctx context.Context, in *ResetPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 206 out := new(emptypb.Empty) 207 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/ResetPeer", in, out, opts...) 208 if err != nil { 209 return nil, err 210 } 211 return out, nil 212 } 213 214 func (c *gobgpApiClient) ShutdownPeer(ctx context.Context, in *ShutdownPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 215 out := new(emptypb.Empty) 216 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/ShutdownPeer", in, out, opts...) 217 if err != nil { 218 return nil, err 219 } 220 return out, nil 221 } 222 223 func (c *gobgpApiClient) EnablePeer(ctx context.Context, in *EnablePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 224 out := new(emptypb.Empty) 225 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/EnablePeer", in, out, opts...) 226 if err != nil { 227 return nil, err 228 } 229 return out, nil 230 } 231 232 func (c *gobgpApiClient) DisablePeer(ctx context.Context, in *DisablePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 233 out := new(emptypb.Empty) 234 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DisablePeer", in, out, opts...) 235 if err != nil { 236 return nil, err 237 } 238 return out, nil 239 } 240 241 func (c *gobgpApiClient) AddPeerGroup(ctx context.Context, in *AddPeerGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 242 out := new(emptypb.Empty) 243 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddPeerGroup", in, out, opts...) 244 if err != nil { 245 return nil, err 246 } 247 return out, nil 248 } 249 250 func (c *gobgpApiClient) DeletePeerGroup(ctx context.Context, in *DeletePeerGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 251 out := new(emptypb.Empty) 252 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeletePeerGroup", in, out, opts...) 253 if err != nil { 254 return nil, err 255 } 256 return out, nil 257 } 258 259 func (c *gobgpApiClient) ListPeerGroup(ctx context.Context, in *ListPeerGroupRequest, opts ...grpc.CallOption) (GobgpApi_ListPeerGroupClient, error) { 260 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[2], "/apipb.GobgpApi/ListPeerGroup", opts...) 261 if err != nil { 262 return nil, err 263 } 264 x := &gobgpApiListPeerGroupClient{stream} 265 if err := x.ClientStream.SendMsg(in); err != nil { 266 return nil, err 267 } 268 if err := x.ClientStream.CloseSend(); err != nil { 269 return nil, err 270 } 271 return x, nil 272 } 273 274 type GobgpApi_ListPeerGroupClient interface { 275 Recv() (*ListPeerGroupResponse, error) 276 grpc.ClientStream 277 } 278 279 type gobgpApiListPeerGroupClient struct { 280 grpc.ClientStream 281 } 282 283 func (x *gobgpApiListPeerGroupClient) Recv() (*ListPeerGroupResponse, error) { 284 m := new(ListPeerGroupResponse) 285 if err := x.ClientStream.RecvMsg(m); err != nil { 286 return nil, err 287 } 288 return m, nil 289 } 290 291 func (c *gobgpApiClient) UpdatePeerGroup(ctx context.Context, in *UpdatePeerGroupRequest, opts ...grpc.CallOption) (*UpdatePeerGroupResponse, error) { 292 out := new(UpdatePeerGroupResponse) 293 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/UpdatePeerGroup", in, out, opts...) 294 if err != nil { 295 return nil, err 296 } 297 return out, nil 298 } 299 300 func (c *gobgpApiClient) AddDynamicNeighbor(ctx context.Context, in *AddDynamicNeighborRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 301 out := new(emptypb.Empty) 302 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddDynamicNeighbor", in, out, opts...) 303 if err != nil { 304 return nil, err 305 } 306 return out, nil 307 } 308 309 func (c *gobgpApiClient) ListDynamicNeighbor(ctx context.Context, in *ListDynamicNeighborRequest, opts ...grpc.CallOption) (GobgpApi_ListDynamicNeighborClient, error) { 310 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[3], "/apipb.GobgpApi/ListDynamicNeighbor", opts...) 311 if err != nil { 312 return nil, err 313 } 314 x := &gobgpApiListDynamicNeighborClient{stream} 315 if err := x.ClientStream.SendMsg(in); err != nil { 316 return nil, err 317 } 318 if err := x.ClientStream.CloseSend(); err != nil { 319 return nil, err 320 } 321 return x, nil 322 } 323 324 type GobgpApi_ListDynamicNeighborClient interface { 325 Recv() (*ListDynamicNeighborResponse, error) 326 grpc.ClientStream 327 } 328 329 type gobgpApiListDynamicNeighborClient struct { 330 grpc.ClientStream 331 } 332 333 func (x *gobgpApiListDynamicNeighborClient) Recv() (*ListDynamicNeighborResponse, error) { 334 m := new(ListDynamicNeighborResponse) 335 if err := x.ClientStream.RecvMsg(m); err != nil { 336 return nil, err 337 } 338 return m, nil 339 } 340 341 func (c *gobgpApiClient) DeleteDynamicNeighbor(ctx context.Context, in *DeleteDynamicNeighborRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 342 out := new(emptypb.Empty) 343 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeleteDynamicNeighbor", in, out, opts...) 344 if err != nil { 345 return nil, err 346 } 347 return out, nil 348 } 349 350 func (c *gobgpApiClient) AddPath(ctx context.Context, in *AddPathRequest, opts ...grpc.CallOption) (*AddPathResponse, error) { 351 out := new(AddPathResponse) 352 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddPath", in, out, opts...) 353 if err != nil { 354 return nil, err 355 } 356 return out, nil 357 } 358 359 func (c *gobgpApiClient) DeletePath(ctx context.Context, in *DeletePathRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 360 out := new(emptypb.Empty) 361 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeletePath", in, out, opts...) 362 if err != nil { 363 return nil, err 364 } 365 return out, nil 366 } 367 368 func (c *gobgpApiClient) ListPath(ctx context.Context, in *ListPathRequest, opts ...grpc.CallOption) (GobgpApi_ListPathClient, error) { 369 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[4], "/apipb.GobgpApi/ListPath", opts...) 370 if err != nil { 371 return nil, err 372 } 373 x := &gobgpApiListPathClient{stream} 374 if err := x.ClientStream.SendMsg(in); err != nil { 375 return nil, err 376 } 377 if err := x.ClientStream.CloseSend(); err != nil { 378 return nil, err 379 } 380 return x, nil 381 } 382 383 type GobgpApi_ListPathClient interface { 384 Recv() (*ListPathResponse, error) 385 grpc.ClientStream 386 } 387 388 type gobgpApiListPathClient struct { 389 grpc.ClientStream 390 } 391 392 func (x *gobgpApiListPathClient) Recv() (*ListPathResponse, error) { 393 m := new(ListPathResponse) 394 if err := x.ClientStream.RecvMsg(m); err != nil { 395 return nil, err 396 } 397 return m, nil 398 } 399 400 func (c *gobgpApiClient) AddPathStream(ctx context.Context, opts ...grpc.CallOption) (GobgpApi_AddPathStreamClient, error) { 401 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[5], "/apipb.GobgpApi/AddPathStream", opts...) 402 if err != nil { 403 return nil, err 404 } 405 x := &gobgpApiAddPathStreamClient{stream} 406 return x, nil 407 } 408 409 type GobgpApi_AddPathStreamClient interface { 410 Send(*AddPathStreamRequest) error 411 CloseAndRecv() (*emptypb.Empty, error) 412 grpc.ClientStream 413 } 414 415 type gobgpApiAddPathStreamClient struct { 416 grpc.ClientStream 417 } 418 419 func (x *gobgpApiAddPathStreamClient) Send(m *AddPathStreamRequest) error { 420 return x.ClientStream.SendMsg(m) 421 } 422 423 func (x *gobgpApiAddPathStreamClient) CloseAndRecv() (*emptypb.Empty, error) { 424 if err := x.ClientStream.CloseSend(); err != nil { 425 return nil, err 426 } 427 m := new(emptypb.Empty) 428 if err := x.ClientStream.RecvMsg(m); err != nil { 429 return nil, err 430 } 431 return m, nil 432 } 433 434 func (c *gobgpApiClient) GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*GetTableResponse, error) { 435 out := new(GetTableResponse) 436 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/GetTable", in, out, opts...) 437 if err != nil { 438 return nil, err 439 } 440 return out, nil 441 } 442 443 func (c *gobgpApiClient) AddVrf(ctx context.Context, in *AddVrfRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 444 out := new(emptypb.Empty) 445 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddVrf", in, out, opts...) 446 if err != nil { 447 return nil, err 448 } 449 return out, nil 450 } 451 452 func (c *gobgpApiClient) DeleteVrf(ctx context.Context, in *DeleteVrfRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 453 out := new(emptypb.Empty) 454 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeleteVrf", in, out, opts...) 455 if err != nil { 456 return nil, err 457 } 458 return out, nil 459 } 460 461 func (c *gobgpApiClient) ListVrf(ctx context.Context, in *ListVrfRequest, opts ...grpc.CallOption) (GobgpApi_ListVrfClient, error) { 462 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[6], "/apipb.GobgpApi/ListVrf", opts...) 463 if err != nil { 464 return nil, err 465 } 466 x := &gobgpApiListVrfClient{stream} 467 if err := x.ClientStream.SendMsg(in); err != nil { 468 return nil, err 469 } 470 if err := x.ClientStream.CloseSend(); err != nil { 471 return nil, err 472 } 473 return x, nil 474 } 475 476 type GobgpApi_ListVrfClient interface { 477 Recv() (*ListVrfResponse, error) 478 grpc.ClientStream 479 } 480 481 type gobgpApiListVrfClient struct { 482 grpc.ClientStream 483 } 484 485 func (x *gobgpApiListVrfClient) Recv() (*ListVrfResponse, error) { 486 m := new(ListVrfResponse) 487 if err := x.ClientStream.RecvMsg(m); err != nil { 488 return nil, err 489 } 490 return m, nil 491 } 492 493 func (c *gobgpApiClient) AddPolicy(ctx context.Context, in *AddPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 494 out := new(emptypb.Empty) 495 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddPolicy", in, out, opts...) 496 if err != nil { 497 return nil, err 498 } 499 return out, nil 500 } 501 502 func (c *gobgpApiClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 503 out := new(emptypb.Empty) 504 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeletePolicy", in, out, opts...) 505 if err != nil { 506 return nil, err 507 } 508 return out, nil 509 } 510 511 func (c *gobgpApiClient) ListPolicy(ctx context.Context, in *ListPolicyRequest, opts ...grpc.CallOption) (GobgpApi_ListPolicyClient, error) { 512 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[7], "/apipb.GobgpApi/ListPolicy", opts...) 513 if err != nil { 514 return nil, err 515 } 516 x := &gobgpApiListPolicyClient{stream} 517 if err := x.ClientStream.SendMsg(in); err != nil { 518 return nil, err 519 } 520 if err := x.ClientStream.CloseSend(); err != nil { 521 return nil, err 522 } 523 return x, nil 524 } 525 526 type GobgpApi_ListPolicyClient interface { 527 Recv() (*ListPolicyResponse, error) 528 grpc.ClientStream 529 } 530 531 type gobgpApiListPolicyClient struct { 532 grpc.ClientStream 533 } 534 535 func (x *gobgpApiListPolicyClient) Recv() (*ListPolicyResponse, error) { 536 m := new(ListPolicyResponse) 537 if err := x.ClientStream.RecvMsg(m); err != nil { 538 return nil, err 539 } 540 return m, nil 541 } 542 543 func (c *gobgpApiClient) SetPolicies(ctx context.Context, in *SetPoliciesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 544 out := new(emptypb.Empty) 545 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/SetPolicies", in, out, opts...) 546 if err != nil { 547 return nil, err 548 } 549 return out, nil 550 } 551 552 func (c *gobgpApiClient) AddDefinedSet(ctx context.Context, in *AddDefinedSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 553 out := new(emptypb.Empty) 554 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddDefinedSet", in, out, opts...) 555 if err != nil { 556 return nil, err 557 } 558 return out, nil 559 } 560 561 func (c *gobgpApiClient) DeleteDefinedSet(ctx context.Context, in *DeleteDefinedSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 562 out := new(emptypb.Empty) 563 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeleteDefinedSet", in, out, opts...) 564 if err != nil { 565 return nil, err 566 } 567 return out, nil 568 } 569 570 func (c *gobgpApiClient) ListDefinedSet(ctx context.Context, in *ListDefinedSetRequest, opts ...grpc.CallOption) (GobgpApi_ListDefinedSetClient, error) { 571 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[8], "/apipb.GobgpApi/ListDefinedSet", opts...) 572 if err != nil { 573 return nil, err 574 } 575 x := &gobgpApiListDefinedSetClient{stream} 576 if err := x.ClientStream.SendMsg(in); err != nil { 577 return nil, err 578 } 579 if err := x.ClientStream.CloseSend(); err != nil { 580 return nil, err 581 } 582 return x, nil 583 } 584 585 type GobgpApi_ListDefinedSetClient interface { 586 Recv() (*ListDefinedSetResponse, error) 587 grpc.ClientStream 588 } 589 590 type gobgpApiListDefinedSetClient struct { 591 grpc.ClientStream 592 } 593 594 func (x *gobgpApiListDefinedSetClient) Recv() (*ListDefinedSetResponse, error) { 595 m := new(ListDefinedSetResponse) 596 if err := x.ClientStream.RecvMsg(m); err != nil { 597 return nil, err 598 } 599 return m, nil 600 } 601 602 func (c *gobgpApiClient) AddStatement(ctx context.Context, in *AddStatementRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 603 out := new(emptypb.Empty) 604 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddStatement", in, out, opts...) 605 if err != nil { 606 return nil, err 607 } 608 return out, nil 609 } 610 611 func (c *gobgpApiClient) DeleteStatement(ctx context.Context, in *DeleteStatementRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 612 out := new(emptypb.Empty) 613 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeleteStatement", in, out, opts...) 614 if err != nil { 615 return nil, err 616 } 617 return out, nil 618 } 619 620 func (c *gobgpApiClient) ListStatement(ctx context.Context, in *ListStatementRequest, opts ...grpc.CallOption) (GobgpApi_ListStatementClient, error) { 621 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[9], "/apipb.GobgpApi/ListStatement", opts...) 622 if err != nil { 623 return nil, err 624 } 625 x := &gobgpApiListStatementClient{stream} 626 if err := x.ClientStream.SendMsg(in); err != nil { 627 return nil, err 628 } 629 if err := x.ClientStream.CloseSend(); err != nil { 630 return nil, err 631 } 632 return x, nil 633 } 634 635 type GobgpApi_ListStatementClient interface { 636 Recv() (*ListStatementResponse, error) 637 grpc.ClientStream 638 } 639 640 type gobgpApiListStatementClient struct { 641 grpc.ClientStream 642 } 643 644 func (x *gobgpApiListStatementClient) Recv() (*ListStatementResponse, error) { 645 m := new(ListStatementResponse) 646 if err := x.ClientStream.RecvMsg(m); err != nil { 647 return nil, err 648 } 649 return m, nil 650 } 651 652 func (c *gobgpApiClient) AddPolicyAssignment(ctx context.Context, in *AddPolicyAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 653 out := new(emptypb.Empty) 654 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddPolicyAssignment", in, out, opts...) 655 if err != nil { 656 return nil, err 657 } 658 return out, nil 659 } 660 661 func (c *gobgpApiClient) DeletePolicyAssignment(ctx context.Context, in *DeletePolicyAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 662 out := new(emptypb.Empty) 663 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeletePolicyAssignment", in, out, opts...) 664 if err != nil { 665 return nil, err 666 } 667 return out, nil 668 } 669 670 func (c *gobgpApiClient) ListPolicyAssignment(ctx context.Context, in *ListPolicyAssignmentRequest, opts ...grpc.CallOption) (GobgpApi_ListPolicyAssignmentClient, error) { 671 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[10], "/apipb.GobgpApi/ListPolicyAssignment", opts...) 672 if err != nil { 673 return nil, err 674 } 675 x := &gobgpApiListPolicyAssignmentClient{stream} 676 if err := x.ClientStream.SendMsg(in); err != nil { 677 return nil, err 678 } 679 if err := x.ClientStream.CloseSend(); err != nil { 680 return nil, err 681 } 682 return x, nil 683 } 684 685 type GobgpApi_ListPolicyAssignmentClient interface { 686 Recv() (*ListPolicyAssignmentResponse, error) 687 grpc.ClientStream 688 } 689 690 type gobgpApiListPolicyAssignmentClient struct { 691 grpc.ClientStream 692 } 693 694 func (x *gobgpApiListPolicyAssignmentClient) Recv() (*ListPolicyAssignmentResponse, error) { 695 m := new(ListPolicyAssignmentResponse) 696 if err := x.ClientStream.RecvMsg(m); err != nil { 697 return nil, err 698 } 699 return m, nil 700 } 701 702 func (c *gobgpApiClient) SetPolicyAssignment(ctx context.Context, in *SetPolicyAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 703 out := new(emptypb.Empty) 704 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/SetPolicyAssignment", in, out, opts...) 705 if err != nil { 706 return nil, err 707 } 708 return out, nil 709 } 710 711 func (c *gobgpApiClient) AddRpki(ctx context.Context, in *AddRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 712 out := new(emptypb.Empty) 713 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddRpki", in, out, opts...) 714 if err != nil { 715 return nil, err 716 } 717 return out, nil 718 } 719 720 func (c *gobgpApiClient) DeleteRpki(ctx context.Context, in *DeleteRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 721 out := new(emptypb.Empty) 722 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeleteRpki", in, out, opts...) 723 if err != nil { 724 return nil, err 725 } 726 return out, nil 727 } 728 729 func (c *gobgpApiClient) ListRpki(ctx context.Context, in *ListRpkiRequest, opts ...grpc.CallOption) (GobgpApi_ListRpkiClient, error) { 730 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[11], "/apipb.GobgpApi/ListRpki", opts...) 731 if err != nil { 732 return nil, err 733 } 734 x := &gobgpApiListRpkiClient{stream} 735 if err := x.ClientStream.SendMsg(in); err != nil { 736 return nil, err 737 } 738 if err := x.ClientStream.CloseSend(); err != nil { 739 return nil, err 740 } 741 return x, nil 742 } 743 744 type GobgpApi_ListRpkiClient interface { 745 Recv() (*ListRpkiResponse, error) 746 grpc.ClientStream 747 } 748 749 type gobgpApiListRpkiClient struct { 750 grpc.ClientStream 751 } 752 753 func (x *gobgpApiListRpkiClient) Recv() (*ListRpkiResponse, error) { 754 m := new(ListRpkiResponse) 755 if err := x.ClientStream.RecvMsg(m); err != nil { 756 return nil, err 757 } 758 return m, nil 759 } 760 761 func (c *gobgpApiClient) EnableRpki(ctx context.Context, in *EnableRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 762 out := new(emptypb.Empty) 763 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/EnableRpki", in, out, opts...) 764 if err != nil { 765 return nil, err 766 } 767 return out, nil 768 } 769 770 func (c *gobgpApiClient) DisableRpki(ctx context.Context, in *DisableRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 771 out := new(emptypb.Empty) 772 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DisableRpki", in, out, opts...) 773 if err != nil { 774 return nil, err 775 } 776 return out, nil 777 } 778 779 func (c *gobgpApiClient) ResetRpki(ctx context.Context, in *ResetRpkiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 780 out := new(emptypb.Empty) 781 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/ResetRpki", in, out, opts...) 782 if err != nil { 783 return nil, err 784 } 785 return out, nil 786 } 787 788 func (c *gobgpApiClient) ListRpkiTable(ctx context.Context, in *ListRpkiTableRequest, opts ...grpc.CallOption) (GobgpApi_ListRpkiTableClient, error) { 789 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[12], "/apipb.GobgpApi/ListRpkiTable", opts...) 790 if err != nil { 791 return nil, err 792 } 793 x := &gobgpApiListRpkiTableClient{stream} 794 if err := x.ClientStream.SendMsg(in); err != nil { 795 return nil, err 796 } 797 if err := x.ClientStream.CloseSend(); err != nil { 798 return nil, err 799 } 800 return x, nil 801 } 802 803 type GobgpApi_ListRpkiTableClient interface { 804 Recv() (*ListRpkiTableResponse, error) 805 grpc.ClientStream 806 } 807 808 type gobgpApiListRpkiTableClient struct { 809 grpc.ClientStream 810 } 811 812 func (x *gobgpApiListRpkiTableClient) Recv() (*ListRpkiTableResponse, error) { 813 m := new(ListRpkiTableResponse) 814 if err := x.ClientStream.RecvMsg(m); err != nil { 815 return nil, err 816 } 817 return m, nil 818 } 819 820 func (c *gobgpApiClient) EnableZebra(ctx context.Context, in *EnableZebraRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 821 out := new(emptypb.Empty) 822 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/EnableZebra", in, out, opts...) 823 if err != nil { 824 return nil, err 825 } 826 return out, nil 827 } 828 829 func (c *gobgpApiClient) EnableMrt(ctx context.Context, in *EnableMrtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 830 out := new(emptypb.Empty) 831 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/EnableMrt", in, out, opts...) 832 if err != nil { 833 return nil, err 834 } 835 return out, nil 836 } 837 838 func (c *gobgpApiClient) DisableMrt(ctx context.Context, in *DisableMrtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 839 out := new(emptypb.Empty) 840 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DisableMrt", in, out, opts...) 841 if err != nil { 842 return nil, err 843 } 844 return out, nil 845 } 846 847 func (c *gobgpApiClient) AddBmp(ctx context.Context, in *AddBmpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 848 out := new(emptypb.Empty) 849 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/AddBmp", in, out, opts...) 850 if err != nil { 851 return nil, err 852 } 853 return out, nil 854 } 855 856 func (c *gobgpApiClient) DeleteBmp(ctx context.Context, in *DeleteBmpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 857 out := new(emptypb.Empty) 858 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/DeleteBmp", in, out, opts...) 859 if err != nil { 860 return nil, err 861 } 862 return out, nil 863 } 864 865 func (c *gobgpApiClient) ListBmp(ctx context.Context, in *ListBmpRequest, opts ...grpc.CallOption) (GobgpApi_ListBmpClient, error) { 866 stream, err := c.cc.NewStream(ctx, &GobgpApi_ServiceDesc.Streams[13], "/apipb.GobgpApi/ListBmp", opts...) 867 if err != nil { 868 return nil, err 869 } 870 x := &gobgpApiListBmpClient{stream} 871 if err := x.ClientStream.SendMsg(in); err != nil { 872 return nil, err 873 } 874 if err := x.ClientStream.CloseSend(); err != nil { 875 return nil, err 876 } 877 return x, nil 878 } 879 880 type GobgpApi_ListBmpClient interface { 881 Recv() (*ListBmpResponse, error) 882 grpc.ClientStream 883 } 884 885 type gobgpApiListBmpClient struct { 886 grpc.ClientStream 887 } 888 889 func (x *gobgpApiListBmpClient) Recv() (*ListBmpResponse, error) { 890 m := new(ListBmpResponse) 891 if err := x.ClientStream.RecvMsg(m); err != nil { 892 return nil, err 893 } 894 return m, nil 895 } 896 897 func (c *gobgpApiClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 898 out := new(emptypb.Empty) 899 err := c.cc.Invoke(ctx, "/apipb.GobgpApi/SetLogLevel", in, out, opts...) 900 if err != nil { 901 return nil, err 902 } 903 return out, nil 904 } 905 906 // GobgpApiServer is the server API for GobgpApi service. 907 // All implementations must embed UnimplementedGobgpApiServer 908 // for forward compatibility 909 type GobgpApiServer interface { 910 StartBgp(context.Context, *StartBgpRequest) (*emptypb.Empty, error) 911 StopBgp(context.Context, *StopBgpRequest) (*emptypb.Empty, error) 912 GetBgp(context.Context, *GetBgpRequest) (*GetBgpResponse, error) 913 WatchEvent(*WatchEventRequest, GobgpApi_WatchEventServer) error 914 AddPeer(context.Context, *AddPeerRequest) (*emptypb.Empty, error) 915 DeletePeer(context.Context, *DeletePeerRequest) (*emptypb.Empty, error) 916 ListPeer(*ListPeerRequest, GobgpApi_ListPeerServer) error 917 UpdatePeer(context.Context, *UpdatePeerRequest) (*UpdatePeerResponse, error) 918 ResetPeer(context.Context, *ResetPeerRequest) (*emptypb.Empty, error) 919 ShutdownPeer(context.Context, *ShutdownPeerRequest) (*emptypb.Empty, error) 920 EnablePeer(context.Context, *EnablePeerRequest) (*emptypb.Empty, error) 921 DisablePeer(context.Context, *DisablePeerRequest) (*emptypb.Empty, error) 922 AddPeerGroup(context.Context, *AddPeerGroupRequest) (*emptypb.Empty, error) 923 DeletePeerGroup(context.Context, *DeletePeerGroupRequest) (*emptypb.Empty, error) 924 ListPeerGroup(*ListPeerGroupRequest, GobgpApi_ListPeerGroupServer) error 925 UpdatePeerGroup(context.Context, *UpdatePeerGroupRequest) (*UpdatePeerGroupResponse, error) 926 AddDynamicNeighbor(context.Context, *AddDynamicNeighborRequest) (*emptypb.Empty, error) 927 ListDynamicNeighbor(*ListDynamicNeighborRequest, GobgpApi_ListDynamicNeighborServer) error 928 DeleteDynamicNeighbor(context.Context, *DeleteDynamicNeighborRequest) (*emptypb.Empty, error) 929 AddPath(context.Context, *AddPathRequest) (*AddPathResponse, error) 930 DeletePath(context.Context, *DeletePathRequest) (*emptypb.Empty, error) 931 ListPath(*ListPathRequest, GobgpApi_ListPathServer) error 932 AddPathStream(GobgpApi_AddPathStreamServer) error 933 GetTable(context.Context, *GetTableRequest) (*GetTableResponse, error) 934 AddVrf(context.Context, *AddVrfRequest) (*emptypb.Empty, error) 935 DeleteVrf(context.Context, *DeleteVrfRequest) (*emptypb.Empty, error) 936 ListVrf(*ListVrfRequest, GobgpApi_ListVrfServer) error 937 AddPolicy(context.Context, *AddPolicyRequest) (*emptypb.Empty, error) 938 DeletePolicy(context.Context, *DeletePolicyRequest) (*emptypb.Empty, error) 939 ListPolicy(*ListPolicyRequest, GobgpApi_ListPolicyServer) error 940 SetPolicies(context.Context, *SetPoliciesRequest) (*emptypb.Empty, error) 941 AddDefinedSet(context.Context, *AddDefinedSetRequest) (*emptypb.Empty, error) 942 DeleteDefinedSet(context.Context, *DeleteDefinedSetRequest) (*emptypb.Empty, error) 943 ListDefinedSet(*ListDefinedSetRequest, GobgpApi_ListDefinedSetServer) error 944 AddStatement(context.Context, *AddStatementRequest) (*emptypb.Empty, error) 945 DeleteStatement(context.Context, *DeleteStatementRequest) (*emptypb.Empty, error) 946 ListStatement(*ListStatementRequest, GobgpApi_ListStatementServer) error 947 AddPolicyAssignment(context.Context, *AddPolicyAssignmentRequest) (*emptypb.Empty, error) 948 DeletePolicyAssignment(context.Context, *DeletePolicyAssignmentRequest) (*emptypb.Empty, error) 949 ListPolicyAssignment(*ListPolicyAssignmentRequest, GobgpApi_ListPolicyAssignmentServer) error 950 SetPolicyAssignment(context.Context, *SetPolicyAssignmentRequest) (*emptypb.Empty, error) 951 AddRpki(context.Context, *AddRpkiRequest) (*emptypb.Empty, error) 952 DeleteRpki(context.Context, *DeleteRpkiRequest) (*emptypb.Empty, error) 953 ListRpki(*ListRpkiRequest, GobgpApi_ListRpkiServer) error 954 EnableRpki(context.Context, *EnableRpkiRequest) (*emptypb.Empty, error) 955 DisableRpki(context.Context, *DisableRpkiRequest) (*emptypb.Empty, error) 956 ResetRpki(context.Context, *ResetRpkiRequest) (*emptypb.Empty, error) 957 ListRpkiTable(*ListRpkiTableRequest, GobgpApi_ListRpkiTableServer) error 958 EnableZebra(context.Context, *EnableZebraRequest) (*emptypb.Empty, error) 959 EnableMrt(context.Context, *EnableMrtRequest) (*emptypb.Empty, error) 960 DisableMrt(context.Context, *DisableMrtRequest) (*emptypb.Empty, error) 961 AddBmp(context.Context, *AddBmpRequest) (*emptypb.Empty, error) 962 DeleteBmp(context.Context, *DeleteBmpRequest) (*emptypb.Empty, error) 963 ListBmp(*ListBmpRequest, GobgpApi_ListBmpServer) error 964 SetLogLevel(context.Context, *SetLogLevelRequest) (*emptypb.Empty, error) 965 mustEmbedUnimplementedGobgpApiServer() 966 } 967 968 // UnimplementedGobgpApiServer must be embedded to have forward compatible implementations. 969 type UnimplementedGobgpApiServer struct { 970 } 971 972 func (UnimplementedGobgpApiServer) StartBgp(context.Context, *StartBgpRequest) (*emptypb.Empty, error) { 973 return nil, status.Errorf(codes.Unimplemented, "method StartBgp not implemented") 974 } 975 func (UnimplementedGobgpApiServer) StopBgp(context.Context, *StopBgpRequest) (*emptypb.Empty, error) { 976 return nil, status.Errorf(codes.Unimplemented, "method StopBgp not implemented") 977 } 978 func (UnimplementedGobgpApiServer) GetBgp(context.Context, *GetBgpRequest) (*GetBgpResponse, error) { 979 return nil, status.Errorf(codes.Unimplemented, "method GetBgp not implemented") 980 } 981 func (UnimplementedGobgpApiServer) WatchEvent(*WatchEventRequest, GobgpApi_WatchEventServer) error { 982 return status.Errorf(codes.Unimplemented, "method WatchEvent not implemented") 983 } 984 func (UnimplementedGobgpApiServer) AddPeer(context.Context, *AddPeerRequest) (*emptypb.Empty, error) { 985 return nil, status.Errorf(codes.Unimplemented, "method AddPeer not implemented") 986 } 987 func (UnimplementedGobgpApiServer) DeletePeer(context.Context, *DeletePeerRequest) (*emptypb.Empty, error) { 988 return nil, status.Errorf(codes.Unimplemented, "method DeletePeer not implemented") 989 } 990 func (UnimplementedGobgpApiServer) ListPeer(*ListPeerRequest, GobgpApi_ListPeerServer) error { 991 return status.Errorf(codes.Unimplemented, "method ListPeer not implemented") 992 } 993 func (UnimplementedGobgpApiServer) UpdatePeer(context.Context, *UpdatePeerRequest) (*UpdatePeerResponse, error) { 994 return nil, status.Errorf(codes.Unimplemented, "method UpdatePeer not implemented") 995 } 996 func (UnimplementedGobgpApiServer) ResetPeer(context.Context, *ResetPeerRequest) (*emptypb.Empty, error) { 997 return nil, status.Errorf(codes.Unimplemented, "method ResetPeer not implemented") 998 } 999 func (UnimplementedGobgpApiServer) ShutdownPeer(context.Context, *ShutdownPeerRequest) (*emptypb.Empty, error) { 1000 return nil, status.Errorf(codes.Unimplemented, "method ShutdownPeer not implemented") 1001 } 1002 func (UnimplementedGobgpApiServer) EnablePeer(context.Context, *EnablePeerRequest) (*emptypb.Empty, error) { 1003 return nil, status.Errorf(codes.Unimplemented, "method EnablePeer not implemented") 1004 } 1005 func (UnimplementedGobgpApiServer) DisablePeer(context.Context, *DisablePeerRequest) (*emptypb.Empty, error) { 1006 return nil, status.Errorf(codes.Unimplemented, "method DisablePeer not implemented") 1007 } 1008 func (UnimplementedGobgpApiServer) AddPeerGroup(context.Context, *AddPeerGroupRequest) (*emptypb.Empty, error) { 1009 return nil, status.Errorf(codes.Unimplemented, "method AddPeerGroup not implemented") 1010 } 1011 func (UnimplementedGobgpApiServer) DeletePeerGroup(context.Context, *DeletePeerGroupRequest) (*emptypb.Empty, error) { 1012 return nil, status.Errorf(codes.Unimplemented, "method DeletePeerGroup not implemented") 1013 } 1014 func (UnimplementedGobgpApiServer) ListPeerGroup(*ListPeerGroupRequest, GobgpApi_ListPeerGroupServer) error { 1015 return status.Errorf(codes.Unimplemented, "method ListPeerGroup not implemented") 1016 } 1017 func (UnimplementedGobgpApiServer) UpdatePeerGroup(context.Context, *UpdatePeerGroupRequest) (*UpdatePeerGroupResponse, error) { 1018 return nil, status.Errorf(codes.Unimplemented, "method UpdatePeerGroup not implemented") 1019 } 1020 func (UnimplementedGobgpApiServer) AddDynamicNeighbor(context.Context, *AddDynamicNeighborRequest) (*emptypb.Empty, error) { 1021 return nil, status.Errorf(codes.Unimplemented, "method AddDynamicNeighbor not implemented") 1022 } 1023 func (UnimplementedGobgpApiServer) ListDynamicNeighbor(*ListDynamicNeighborRequest, GobgpApi_ListDynamicNeighborServer) error { 1024 return status.Errorf(codes.Unimplemented, "method ListDynamicNeighbor not implemented") 1025 } 1026 func (UnimplementedGobgpApiServer) DeleteDynamicNeighbor(context.Context, *DeleteDynamicNeighborRequest) (*emptypb.Empty, error) { 1027 return nil, status.Errorf(codes.Unimplemented, "method DeleteDynamicNeighbor not implemented") 1028 } 1029 func (UnimplementedGobgpApiServer) AddPath(context.Context, *AddPathRequest) (*AddPathResponse, error) { 1030 return nil, status.Errorf(codes.Unimplemented, "method AddPath not implemented") 1031 } 1032 func (UnimplementedGobgpApiServer) DeletePath(context.Context, *DeletePathRequest) (*emptypb.Empty, error) { 1033 return nil, status.Errorf(codes.Unimplemented, "method DeletePath not implemented") 1034 } 1035 func (UnimplementedGobgpApiServer) ListPath(*ListPathRequest, GobgpApi_ListPathServer) error { 1036 return status.Errorf(codes.Unimplemented, "method ListPath not implemented") 1037 } 1038 func (UnimplementedGobgpApiServer) AddPathStream(GobgpApi_AddPathStreamServer) error { 1039 return status.Errorf(codes.Unimplemented, "method AddPathStream not implemented") 1040 } 1041 func (UnimplementedGobgpApiServer) GetTable(context.Context, *GetTableRequest) (*GetTableResponse, error) { 1042 return nil, status.Errorf(codes.Unimplemented, "method GetTable not implemented") 1043 } 1044 func (UnimplementedGobgpApiServer) AddVrf(context.Context, *AddVrfRequest) (*emptypb.Empty, error) { 1045 return nil, status.Errorf(codes.Unimplemented, "method AddVrf not implemented") 1046 } 1047 func (UnimplementedGobgpApiServer) DeleteVrf(context.Context, *DeleteVrfRequest) (*emptypb.Empty, error) { 1048 return nil, status.Errorf(codes.Unimplemented, "method DeleteVrf not implemented") 1049 } 1050 func (UnimplementedGobgpApiServer) ListVrf(*ListVrfRequest, GobgpApi_ListVrfServer) error { 1051 return status.Errorf(codes.Unimplemented, "method ListVrf not implemented") 1052 } 1053 func (UnimplementedGobgpApiServer) AddPolicy(context.Context, *AddPolicyRequest) (*emptypb.Empty, error) { 1054 return nil, status.Errorf(codes.Unimplemented, "method AddPolicy not implemented") 1055 } 1056 func (UnimplementedGobgpApiServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*emptypb.Empty, error) { 1057 return nil, status.Errorf(codes.Unimplemented, "method DeletePolicy not implemented") 1058 } 1059 func (UnimplementedGobgpApiServer) ListPolicy(*ListPolicyRequest, GobgpApi_ListPolicyServer) error { 1060 return status.Errorf(codes.Unimplemented, "method ListPolicy not implemented") 1061 } 1062 func (UnimplementedGobgpApiServer) SetPolicies(context.Context, *SetPoliciesRequest) (*emptypb.Empty, error) { 1063 return nil, status.Errorf(codes.Unimplemented, "method SetPolicies not implemented") 1064 } 1065 func (UnimplementedGobgpApiServer) AddDefinedSet(context.Context, *AddDefinedSetRequest) (*emptypb.Empty, error) { 1066 return nil, status.Errorf(codes.Unimplemented, "method AddDefinedSet not implemented") 1067 } 1068 func (UnimplementedGobgpApiServer) DeleteDefinedSet(context.Context, *DeleteDefinedSetRequest) (*emptypb.Empty, error) { 1069 return nil, status.Errorf(codes.Unimplemented, "method DeleteDefinedSet not implemented") 1070 } 1071 func (UnimplementedGobgpApiServer) ListDefinedSet(*ListDefinedSetRequest, GobgpApi_ListDefinedSetServer) error { 1072 return status.Errorf(codes.Unimplemented, "method ListDefinedSet not implemented") 1073 } 1074 func (UnimplementedGobgpApiServer) AddStatement(context.Context, *AddStatementRequest) (*emptypb.Empty, error) { 1075 return nil, status.Errorf(codes.Unimplemented, "method AddStatement not implemented") 1076 } 1077 func (UnimplementedGobgpApiServer) DeleteStatement(context.Context, *DeleteStatementRequest) (*emptypb.Empty, error) { 1078 return nil, status.Errorf(codes.Unimplemented, "method DeleteStatement not implemented") 1079 } 1080 func (UnimplementedGobgpApiServer) ListStatement(*ListStatementRequest, GobgpApi_ListStatementServer) error { 1081 return status.Errorf(codes.Unimplemented, "method ListStatement not implemented") 1082 } 1083 func (UnimplementedGobgpApiServer) AddPolicyAssignment(context.Context, *AddPolicyAssignmentRequest) (*emptypb.Empty, error) { 1084 return nil, status.Errorf(codes.Unimplemented, "method AddPolicyAssignment not implemented") 1085 } 1086 func (UnimplementedGobgpApiServer) DeletePolicyAssignment(context.Context, *DeletePolicyAssignmentRequest) (*emptypb.Empty, error) { 1087 return nil, status.Errorf(codes.Unimplemented, "method DeletePolicyAssignment not implemented") 1088 } 1089 func (UnimplementedGobgpApiServer) ListPolicyAssignment(*ListPolicyAssignmentRequest, GobgpApi_ListPolicyAssignmentServer) error { 1090 return status.Errorf(codes.Unimplemented, "method ListPolicyAssignment not implemented") 1091 } 1092 func (UnimplementedGobgpApiServer) SetPolicyAssignment(context.Context, *SetPolicyAssignmentRequest) (*emptypb.Empty, error) { 1093 return nil, status.Errorf(codes.Unimplemented, "method SetPolicyAssignment not implemented") 1094 } 1095 func (UnimplementedGobgpApiServer) AddRpki(context.Context, *AddRpkiRequest) (*emptypb.Empty, error) { 1096 return nil, status.Errorf(codes.Unimplemented, "method AddRpki not implemented") 1097 } 1098 func (UnimplementedGobgpApiServer) DeleteRpki(context.Context, *DeleteRpkiRequest) (*emptypb.Empty, error) { 1099 return nil, status.Errorf(codes.Unimplemented, "method DeleteRpki not implemented") 1100 } 1101 func (UnimplementedGobgpApiServer) ListRpki(*ListRpkiRequest, GobgpApi_ListRpkiServer) error { 1102 return status.Errorf(codes.Unimplemented, "method ListRpki not implemented") 1103 } 1104 func (UnimplementedGobgpApiServer) EnableRpki(context.Context, *EnableRpkiRequest) (*emptypb.Empty, error) { 1105 return nil, status.Errorf(codes.Unimplemented, "method EnableRpki not implemented") 1106 } 1107 func (UnimplementedGobgpApiServer) DisableRpki(context.Context, *DisableRpkiRequest) (*emptypb.Empty, error) { 1108 return nil, status.Errorf(codes.Unimplemented, "method DisableRpki not implemented") 1109 } 1110 func (UnimplementedGobgpApiServer) ResetRpki(context.Context, *ResetRpkiRequest) (*emptypb.Empty, error) { 1111 return nil, status.Errorf(codes.Unimplemented, "method ResetRpki not implemented") 1112 } 1113 func (UnimplementedGobgpApiServer) ListRpkiTable(*ListRpkiTableRequest, GobgpApi_ListRpkiTableServer) error { 1114 return status.Errorf(codes.Unimplemented, "method ListRpkiTable not implemented") 1115 } 1116 func (UnimplementedGobgpApiServer) EnableZebra(context.Context, *EnableZebraRequest) (*emptypb.Empty, error) { 1117 return nil, status.Errorf(codes.Unimplemented, "method EnableZebra not implemented") 1118 } 1119 func (UnimplementedGobgpApiServer) EnableMrt(context.Context, *EnableMrtRequest) (*emptypb.Empty, error) { 1120 return nil, status.Errorf(codes.Unimplemented, "method EnableMrt not implemented") 1121 } 1122 func (UnimplementedGobgpApiServer) DisableMrt(context.Context, *DisableMrtRequest) (*emptypb.Empty, error) { 1123 return nil, status.Errorf(codes.Unimplemented, "method DisableMrt not implemented") 1124 } 1125 func (UnimplementedGobgpApiServer) AddBmp(context.Context, *AddBmpRequest) (*emptypb.Empty, error) { 1126 return nil, status.Errorf(codes.Unimplemented, "method AddBmp not implemented") 1127 } 1128 func (UnimplementedGobgpApiServer) DeleteBmp(context.Context, *DeleteBmpRequest) (*emptypb.Empty, error) { 1129 return nil, status.Errorf(codes.Unimplemented, "method DeleteBmp not implemented") 1130 } 1131 func (UnimplementedGobgpApiServer) ListBmp(*ListBmpRequest, GobgpApi_ListBmpServer) error { 1132 return status.Errorf(codes.Unimplemented, "method ListBmp not implemented") 1133 } 1134 func (UnimplementedGobgpApiServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*emptypb.Empty, error) { 1135 return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") 1136 } 1137 func (UnimplementedGobgpApiServer) mustEmbedUnimplementedGobgpApiServer() {} 1138 1139 // UnsafeGobgpApiServer may be embedded to opt out of forward compatibility for this service. 1140 // Use of this interface is not recommended, as added methods to GobgpApiServer will 1141 // result in compilation errors. 1142 type UnsafeGobgpApiServer interface { 1143 mustEmbedUnimplementedGobgpApiServer() 1144 } 1145 1146 func RegisterGobgpApiServer(s grpc.ServiceRegistrar, srv GobgpApiServer) { 1147 s.RegisterService(&GobgpApi_ServiceDesc, srv) 1148 } 1149 1150 func _GobgpApi_StartBgp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1151 in := new(StartBgpRequest) 1152 if err := dec(in); err != nil { 1153 return nil, err 1154 } 1155 if interceptor == nil { 1156 return srv.(GobgpApiServer).StartBgp(ctx, in) 1157 } 1158 info := &grpc.UnaryServerInfo{ 1159 Server: srv, 1160 FullMethod: "/apipb.GobgpApi/StartBgp", 1161 } 1162 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1163 return srv.(GobgpApiServer).StartBgp(ctx, req.(*StartBgpRequest)) 1164 } 1165 return interceptor(ctx, in, info, handler) 1166 } 1167 1168 func _GobgpApi_StopBgp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1169 in := new(StopBgpRequest) 1170 if err := dec(in); err != nil { 1171 return nil, err 1172 } 1173 if interceptor == nil { 1174 return srv.(GobgpApiServer).StopBgp(ctx, in) 1175 } 1176 info := &grpc.UnaryServerInfo{ 1177 Server: srv, 1178 FullMethod: "/apipb.GobgpApi/StopBgp", 1179 } 1180 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1181 return srv.(GobgpApiServer).StopBgp(ctx, req.(*StopBgpRequest)) 1182 } 1183 return interceptor(ctx, in, info, handler) 1184 } 1185 1186 func _GobgpApi_GetBgp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1187 in := new(GetBgpRequest) 1188 if err := dec(in); err != nil { 1189 return nil, err 1190 } 1191 if interceptor == nil { 1192 return srv.(GobgpApiServer).GetBgp(ctx, in) 1193 } 1194 info := &grpc.UnaryServerInfo{ 1195 Server: srv, 1196 FullMethod: "/apipb.GobgpApi/GetBgp", 1197 } 1198 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1199 return srv.(GobgpApiServer).GetBgp(ctx, req.(*GetBgpRequest)) 1200 } 1201 return interceptor(ctx, in, info, handler) 1202 } 1203 1204 func _GobgpApi_WatchEvent_Handler(srv interface{}, stream grpc.ServerStream) error { 1205 m := new(WatchEventRequest) 1206 if err := stream.RecvMsg(m); err != nil { 1207 return err 1208 } 1209 return srv.(GobgpApiServer).WatchEvent(m, &gobgpApiWatchEventServer{stream}) 1210 } 1211 1212 type GobgpApi_WatchEventServer interface { 1213 Send(*WatchEventResponse) error 1214 grpc.ServerStream 1215 } 1216 1217 type gobgpApiWatchEventServer struct { 1218 grpc.ServerStream 1219 } 1220 1221 func (x *gobgpApiWatchEventServer) Send(m *WatchEventResponse) error { 1222 return x.ServerStream.SendMsg(m) 1223 } 1224 1225 func _GobgpApi_AddPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1226 in := new(AddPeerRequest) 1227 if err := dec(in); err != nil { 1228 return nil, err 1229 } 1230 if interceptor == nil { 1231 return srv.(GobgpApiServer).AddPeer(ctx, in) 1232 } 1233 info := &grpc.UnaryServerInfo{ 1234 Server: srv, 1235 FullMethod: "/apipb.GobgpApi/AddPeer", 1236 } 1237 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1238 return srv.(GobgpApiServer).AddPeer(ctx, req.(*AddPeerRequest)) 1239 } 1240 return interceptor(ctx, in, info, handler) 1241 } 1242 1243 func _GobgpApi_DeletePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1244 in := new(DeletePeerRequest) 1245 if err := dec(in); err != nil { 1246 return nil, err 1247 } 1248 if interceptor == nil { 1249 return srv.(GobgpApiServer).DeletePeer(ctx, in) 1250 } 1251 info := &grpc.UnaryServerInfo{ 1252 Server: srv, 1253 FullMethod: "/apipb.GobgpApi/DeletePeer", 1254 } 1255 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1256 return srv.(GobgpApiServer).DeletePeer(ctx, req.(*DeletePeerRequest)) 1257 } 1258 return interceptor(ctx, in, info, handler) 1259 } 1260 1261 func _GobgpApi_ListPeer_Handler(srv interface{}, stream grpc.ServerStream) error { 1262 m := new(ListPeerRequest) 1263 if err := stream.RecvMsg(m); err != nil { 1264 return err 1265 } 1266 return srv.(GobgpApiServer).ListPeer(m, &gobgpApiListPeerServer{stream}) 1267 } 1268 1269 type GobgpApi_ListPeerServer interface { 1270 Send(*ListPeerResponse) error 1271 grpc.ServerStream 1272 } 1273 1274 type gobgpApiListPeerServer struct { 1275 grpc.ServerStream 1276 } 1277 1278 func (x *gobgpApiListPeerServer) Send(m *ListPeerResponse) error { 1279 return x.ServerStream.SendMsg(m) 1280 } 1281 1282 func _GobgpApi_UpdatePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1283 in := new(UpdatePeerRequest) 1284 if err := dec(in); err != nil { 1285 return nil, err 1286 } 1287 if interceptor == nil { 1288 return srv.(GobgpApiServer).UpdatePeer(ctx, in) 1289 } 1290 info := &grpc.UnaryServerInfo{ 1291 Server: srv, 1292 FullMethod: "/apipb.GobgpApi/UpdatePeer", 1293 } 1294 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1295 return srv.(GobgpApiServer).UpdatePeer(ctx, req.(*UpdatePeerRequest)) 1296 } 1297 return interceptor(ctx, in, info, handler) 1298 } 1299 1300 func _GobgpApi_ResetPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1301 in := new(ResetPeerRequest) 1302 if err := dec(in); err != nil { 1303 return nil, err 1304 } 1305 if interceptor == nil { 1306 return srv.(GobgpApiServer).ResetPeer(ctx, in) 1307 } 1308 info := &grpc.UnaryServerInfo{ 1309 Server: srv, 1310 FullMethod: "/apipb.GobgpApi/ResetPeer", 1311 } 1312 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1313 return srv.(GobgpApiServer).ResetPeer(ctx, req.(*ResetPeerRequest)) 1314 } 1315 return interceptor(ctx, in, info, handler) 1316 } 1317 1318 func _GobgpApi_ShutdownPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1319 in := new(ShutdownPeerRequest) 1320 if err := dec(in); err != nil { 1321 return nil, err 1322 } 1323 if interceptor == nil { 1324 return srv.(GobgpApiServer).ShutdownPeer(ctx, in) 1325 } 1326 info := &grpc.UnaryServerInfo{ 1327 Server: srv, 1328 FullMethod: "/apipb.GobgpApi/ShutdownPeer", 1329 } 1330 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1331 return srv.(GobgpApiServer).ShutdownPeer(ctx, req.(*ShutdownPeerRequest)) 1332 } 1333 return interceptor(ctx, in, info, handler) 1334 } 1335 1336 func _GobgpApi_EnablePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1337 in := new(EnablePeerRequest) 1338 if err := dec(in); err != nil { 1339 return nil, err 1340 } 1341 if interceptor == nil { 1342 return srv.(GobgpApiServer).EnablePeer(ctx, in) 1343 } 1344 info := &grpc.UnaryServerInfo{ 1345 Server: srv, 1346 FullMethod: "/apipb.GobgpApi/EnablePeer", 1347 } 1348 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1349 return srv.(GobgpApiServer).EnablePeer(ctx, req.(*EnablePeerRequest)) 1350 } 1351 return interceptor(ctx, in, info, handler) 1352 } 1353 1354 func _GobgpApi_DisablePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1355 in := new(DisablePeerRequest) 1356 if err := dec(in); err != nil { 1357 return nil, err 1358 } 1359 if interceptor == nil { 1360 return srv.(GobgpApiServer).DisablePeer(ctx, in) 1361 } 1362 info := &grpc.UnaryServerInfo{ 1363 Server: srv, 1364 FullMethod: "/apipb.GobgpApi/DisablePeer", 1365 } 1366 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1367 return srv.(GobgpApiServer).DisablePeer(ctx, req.(*DisablePeerRequest)) 1368 } 1369 return interceptor(ctx, in, info, handler) 1370 } 1371 1372 func _GobgpApi_AddPeerGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1373 in := new(AddPeerGroupRequest) 1374 if err := dec(in); err != nil { 1375 return nil, err 1376 } 1377 if interceptor == nil { 1378 return srv.(GobgpApiServer).AddPeerGroup(ctx, in) 1379 } 1380 info := &grpc.UnaryServerInfo{ 1381 Server: srv, 1382 FullMethod: "/apipb.GobgpApi/AddPeerGroup", 1383 } 1384 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1385 return srv.(GobgpApiServer).AddPeerGroup(ctx, req.(*AddPeerGroupRequest)) 1386 } 1387 return interceptor(ctx, in, info, handler) 1388 } 1389 1390 func _GobgpApi_DeletePeerGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1391 in := new(DeletePeerGroupRequest) 1392 if err := dec(in); err != nil { 1393 return nil, err 1394 } 1395 if interceptor == nil { 1396 return srv.(GobgpApiServer).DeletePeerGroup(ctx, in) 1397 } 1398 info := &grpc.UnaryServerInfo{ 1399 Server: srv, 1400 FullMethod: "/apipb.GobgpApi/DeletePeerGroup", 1401 } 1402 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1403 return srv.(GobgpApiServer).DeletePeerGroup(ctx, req.(*DeletePeerGroupRequest)) 1404 } 1405 return interceptor(ctx, in, info, handler) 1406 } 1407 1408 func _GobgpApi_ListPeerGroup_Handler(srv interface{}, stream grpc.ServerStream) error { 1409 m := new(ListPeerGroupRequest) 1410 if err := stream.RecvMsg(m); err != nil { 1411 return err 1412 } 1413 return srv.(GobgpApiServer).ListPeerGroup(m, &gobgpApiListPeerGroupServer{stream}) 1414 } 1415 1416 type GobgpApi_ListPeerGroupServer interface { 1417 Send(*ListPeerGroupResponse) error 1418 grpc.ServerStream 1419 } 1420 1421 type gobgpApiListPeerGroupServer struct { 1422 grpc.ServerStream 1423 } 1424 1425 func (x *gobgpApiListPeerGroupServer) Send(m *ListPeerGroupResponse) error { 1426 return x.ServerStream.SendMsg(m) 1427 } 1428 1429 func _GobgpApi_UpdatePeerGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1430 in := new(UpdatePeerGroupRequest) 1431 if err := dec(in); err != nil { 1432 return nil, err 1433 } 1434 if interceptor == nil { 1435 return srv.(GobgpApiServer).UpdatePeerGroup(ctx, in) 1436 } 1437 info := &grpc.UnaryServerInfo{ 1438 Server: srv, 1439 FullMethod: "/apipb.GobgpApi/UpdatePeerGroup", 1440 } 1441 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1442 return srv.(GobgpApiServer).UpdatePeerGroup(ctx, req.(*UpdatePeerGroupRequest)) 1443 } 1444 return interceptor(ctx, in, info, handler) 1445 } 1446 1447 func _GobgpApi_AddDynamicNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1448 in := new(AddDynamicNeighborRequest) 1449 if err := dec(in); err != nil { 1450 return nil, err 1451 } 1452 if interceptor == nil { 1453 return srv.(GobgpApiServer).AddDynamicNeighbor(ctx, in) 1454 } 1455 info := &grpc.UnaryServerInfo{ 1456 Server: srv, 1457 FullMethod: "/apipb.GobgpApi/AddDynamicNeighbor", 1458 } 1459 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1460 return srv.(GobgpApiServer).AddDynamicNeighbor(ctx, req.(*AddDynamicNeighborRequest)) 1461 } 1462 return interceptor(ctx, in, info, handler) 1463 } 1464 1465 func _GobgpApi_ListDynamicNeighbor_Handler(srv interface{}, stream grpc.ServerStream) error { 1466 m := new(ListDynamicNeighborRequest) 1467 if err := stream.RecvMsg(m); err != nil { 1468 return err 1469 } 1470 return srv.(GobgpApiServer).ListDynamicNeighbor(m, &gobgpApiListDynamicNeighborServer{stream}) 1471 } 1472 1473 type GobgpApi_ListDynamicNeighborServer interface { 1474 Send(*ListDynamicNeighborResponse) error 1475 grpc.ServerStream 1476 } 1477 1478 type gobgpApiListDynamicNeighborServer struct { 1479 grpc.ServerStream 1480 } 1481 1482 func (x *gobgpApiListDynamicNeighborServer) Send(m *ListDynamicNeighborResponse) error { 1483 return x.ServerStream.SendMsg(m) 1484 } 1485 1486 func _GobgpApi_DeleteDynamicNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1487 in := new(DeleteDynamicNeighborRequest) 1488 if err := dec(in); err != nil { 1489 return nil, err 1490 } 1491 if interceptor == nil { 1492 return srv.(GobgpApiServer).DeleteDynamicNeighbor(ctx, in) 1493 } 1494 info := &grpc.UnaryServerInfo{ 1495 Server: srv, 1496 FullMethod: "/apipb.GobgpApi/DeleteDynamicNeighbor", 1497 } 1498 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1499 return srv.(GobgpApiServer).DeleteDynamicNeighbor(ctx, req.(*DeleteDynamicNeighborRequest)) 1500 } 1501 return interceptor(ctx, in, info, handler) 1502 } 1503 1504 func _GobgpApi_AddPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1505 in := new(AddPathRequest) 1506 if err := dec(in); err != nil { 1507 return nil, err 1508 } 1509 if interceptor == nil { 1510 return srv.(GobgpApiServer).AddPath(ctx, in) 1511 } 1512 info := &grpc.UnaryServerInfo{ 1513 Server: srv, 1514 FullMethod: "/apipb.GobgpApi/AddPath", 1515 } 1516 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1517 return srv.(GobgpApiServer).AddPath(ctx, req.(*AddPathRequest)) 1518 } 1519 return interceptor(ctx, in, info, handler) 1520 } 1521 1522 func _GobgpApi_DeletePath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1523 in := new(DeletePathRequest) 1524 if err := dec(in); err != nil { 1525 return nil, err 1526 } 1527 if interceptor == nil { 1528 return srv.(GobgpApiServer).DeletePath(ctx, in) 1529 } 1530 info := &grpc.UnaryServerInfo{ 1531 Server: srv, 1532 FullMethod: "/apipb.GobgpApi/DeletePath", 1533 } 1534 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1535 return srv.(GobgpApiServer).DeletePath(ctx, req.(*DeletePathRequest)) 1536 } 1537 return interceptor(ctx, in, info, handler) 1538 } 1539 1540 func _GobgpApi_ListPath_Handler(srv interface{}, stream grpc.ServerStream) error { 1541 m := new(ListPathRequest) 1542 if err := stream.RecvMsg(m); err != nil { 1543 return err 1544 } 1545 return srv.(GobgpApiServer).ListPath(m, &gobgpApiListPathServer{stream}) 1546 } 1547 1548 type GobgpApi_ListPathServer interface { 1549 Send(*ListPathResponse) error 1550 grpc.ServerStream 1551 } 1552 1553 type gobgpApiListPathServer struct { 1554 grpc.ServerStream 1555 } 1556 1557 func (x *gobgpApiListPathServer) Send(m *ListPathResponse) error { 1558 return x.ServerStream.SendMsg(m) 1559 } 1560 1561 func _GobgpApi_AddPathStream_Handler(srv interface{}, stream grpc.ServerStream) error { 1562 return srv.(GobgpApiServer).AddPathStream(&gobgpApiAddPathStreamServer{stream}) 1563 } 1564 1565 type GobgpApi_AddPathStreamServer interface { 1566 SendAndClose(*emptypb.Empty) error 1567 Recv() (*AddPathStreamRequest, error) 1568 grpc.ServerStream 1569 } 1570 1571 type gobgpApiAddPathStreamServer struct { 1572 grpc.ServerStream 1573 } 1574 1575 func (x *gobgpApiAddPathStreamServer) SendAndClose(m *emptypb.Empty) error { 1576 return x.ServerStream.SendMsg(m) 1577 } 1578 1579 func (x *gobgpApiAddPathStreamServer) Recv() (*AddPathStreamRequest, error) { 1580 m := new(AddPathStreamRequest) 1581 if err := x.ServerStream.RecvMsg(m); err != nil { 1582 return nil, err 1583 } 1584 return m, nil 1585 } 1586 1587 func _GobgpApi_GetTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1588 in := new(GetTableRequest) 1589 if err := dec(in); err != nil { 1590 return nil, err 1591 } 1592 if interceptor == nil { 1593 return srv.(GobgpApiServer).GetTable(ctx, in) 1594 } 1595 info := &grpc.UnaryServerInfo{ 1596 Server: srv, 1597 FullMethod: "/apipb.GobgpApi/GetTable", 1598 } 1599 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1600 return srv.(GobgpApiServer).GetTable(ctx, req.(*GetTableRequest)) 1601 } 1602 return interceptor(ctx, in, info, handler) 1603 } 1604 1605 func _GobgpApi_AddVrf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1606 in := new(AddVrfRequest) 1607 if err := dec(in); err != nil { 1608 return nil, err 1609 } 1610 if interceptor == nil { 1611 return srv.(GobgpApiServer).AddVrf(ctx, in) 1612 } 1613 info := &grpc.UnaryServerInfo{ 1614 Server: srv, 1615 FullMethod: "/apipb.GobgpApi/AddVrf", 1616 } 1617 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1618 return srv.(GobgpApiServer).AddVrf(ctx, req.(*AddVrfRequest)) 1619 } 1620 return interceptor(ctx, in, info, handler) 1621 } 1622 1623 func _GobgpApi_DeleteVrf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1624 in := new(DeleteVrfRequest) 1625 if err := dec(in); err != nil { 1626 return nil, err 1627 } 1628 if interceptor == nil { 1629 return srv.(GobgpApiServer).DeleteVrf(ctx, in) 1630 } 1631 info := &grpc.UnaryServerInfo{ 1632 Server: srv, 1633 FullMethod: "/apipb.GobgpApi/DeleteVrf", 1634 } 1635 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1636 return srv.(GobgpApiServer).DeleteVrf(ctx, req.(*DeleteVrfRequest)) 1637 } 1638 return interceptor(ctx, in, info, handler) 1639 } 1640 1641 func _GobgpApi_ListVrf_Handler(srv interface{}, stream grpc.ServerStream) error { 1642 m := new(ListVrfRequest) 1643 if err := stream.RecvMsg(m); err != nil { 1644 return err 1645 } 1646 return srv.(GobgpApiServer).ListVrf(m, &gobgpApiListVrfServer{stream}) 1647 } 1648 1649 type GobgpApi_ListVrfServer interface { 1650 Send(*ListVrfResponse) error 1651 grpc.ServerStream 1652 } 1653 1654 type gobgpApiListVrfServer struct { 1655 grpc.ServerStream 1656 } 1657 1658 func (x *gobgpApiListVrfServer) Send(m *ListVrfResponse) error { 1659 return x.ServerStream.SendMsg(m) 1660 } 1661 1662 func _GobgpApi_AddPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1663 in := new(AddPolicyRequest) 1664 if err := dec(in); err != nil { 1665 return nil, err 1666 } 1667 if interceptor == nil { 1668 return srv.(GobgpApiServer).AddPolicy(ctx, in) 1669 } 1670 info := &grpc.UnaryServerInfo{ 1671 Server: srv, 1672 FullMethod: "/apipb.GobgpApi/AddPolicy", 1673 } 1674 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1675 return srv.(GobgpApiServer).AddPolicy(ctx, req.(*AddPolicyRequest)) 1676 } 1677 return interceptor(ctx, in, info, handler) 1678 } 1679 1680 func _GobgpApi_DeletePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1681 in := new(DeletePolicyRequest) 1682 if err := dec(in); err != nil { 1683 return nil, err 1684 } 1685 if interceptor == nil { 1686 return srv.(GobgpApiServer).DeletePolicy(ctx, in) 1687 } 1688 info := &grpc.UnaryServerInfo{ 1689 Server: srv, 1690 FullMethod: "/apipb.GobgpApi/DeletePolicy", 1691 } 1692 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1693 return srv.(GobgpApiServer).DeletePolicy(ctx, req.(*DeletePolicyRequest)) 1694 } 1695 return interceptor(ctx, in, info, handler) 1696 } 1697 1698 func _GobgpApi_ListPolicy_Handler(srv interface{}, stream grpc.ServerStream) error { 1699 m := new(ListPolicyRequest) 1700 if err := stream.RecvMsg(m); err != nil { 1701 return err 1702 } 1703 return srv.(GobgpApiServer).ListPolicy(m, &gobgpApiListPolicyServer{stream}) 1704 } 1705 1706 type GobgpApi_ListPolicyServer interface { 1707 Send(*ListPolicyResponse) error 1708 grpc.ServerStream 1709 } 1710 1711 type gobgpApiListPolicyServer struct { 1712 grpc.ServerStream 1713 } 1714 1715 func (x *gobgpApiListPolicyServer) Send(m *ListPolicyResponse) error { 1716 return x.ServerStream.SendMsg(m) 1717 } 1718 1719 func _GobgpApi_SetPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1720 in := new(SetPoliciesRequest) 1721 if err := dec(in); err != nil { 1722 return nil, err 1723 } 1724 if interceptor == nil { 1725 return srv.(GobgpApiServer).SetPolicies(ctx, in) 1726 } 1727 info := &grpc.UnaryServerInfo{ 1728 Server: srv, 1729 FullMethod: "/apipb.GobgpApi/SetPolicies", 1730 } 1731 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1732 return srv.(GobgpApiServer).SetPolicies(ctx, req.(*SetPoliciesRequest)) 1733 } 1734 return interceptor(ctx, in, info, handler) 1735 } 1736 1737 func _GobgpApi_AddDefinedSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1738 in := new(AddDefinedSetRequest) 1739 if err := dec(in); err != nil { 1740 return nil, err 1741 } 1742 if interceptor == nil { 1743 return srv.(GobgpApiServer).AddDefinedSet(ctx, in) 1744 } 1745 info := &grpc.UnaryServerInfo{ 1746 Server: srv, 1747 FullMethod: "/apipb.GobgpApi/AddDefinedSet", 1748 } 1749 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1750 return srv.(GobgpApiServer).AddDefinedSet(ctx, req.(*AddDefinedSetRequest)) 1751 } 1752 return interceptor(ctx, in, info, handler) 1753 } 1754 1755 func _GobgpApi_DeleteDefinedSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1756 in := new(DeleteDefinedSetRequest) 1757 if err := dec(in); err != nil { 1758 return nil, err 1759 } 1760 if interceptor == nil { 1761 return srv.(GobgpApiServer).DeleteDefinedSet(ctx, in) 1762 } 1763 info := &grpc.UnaryServerInfo{ 1764 Server: srv, 1765 FullMethod: "/apipb.GobgpApi/DeleteDefinedSet", 1766 } 1767 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1768 return srv.(GobgpApiServer).DeleteDefinedSet(ctx, req.(*DeleteDefinedSetRequest)) 1769 } 1770 return interceptor(ctx, in, info, handler) 1771 } 1772 1773 func _GobgpApi_ListDefinedSet_Handler(srv interface{}, stream grpc.ServerStream) error { 1774 m := new(ListDefinedSetRequest) 1775 if err := stream.RecvMsg(m); err != nil { 1776 return err 1777 } 1778 return srv.(GobgpApiServer).ListDefinedSet(m, &gobgpApiListDefinedSetServer{stream}) 1779 } 1780 1781 type GobgpApi_ListDefinedSetServer interface { 1782 Send(*ListDefinedSetResponse) error 1783 grpc.ServerStream 1784 } 1785 1786 type gobgpApiListDefinedSetServer struct { 1787 grpc.ServerStream 1788 } 1789 1790 func (x *gobgpApiListDefinedSetServer) Send(m *ListDefinedSetResponse) error { 1791 return x.ServerStream.SendMsg(m) 1792 } 1793 1794 func _GobgpApi_AddStatement_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1795 in := new(AddStatementRequest) 1796 if err := dec(in); err != nil { 1797 return nil, err 1798 } 1799 if interceptor == nil { 1800 return srv.(GobgpApiServer).AddStatement(ctx, in) 1801 } 1802 info := &grpc.UnaryServerInfo{ 1803 Server: srv, 1804 FullMethod: "/apipb.GobgpApi/AddStatement", 1805 } 1806 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1807 return srv.(GobgpApiServer).AddStatement(ctx, req.(*AddStatementRequest)) 1808 } 1809 return interceptor(ctx, in, info, handler) 1810 } 1811 1812 func _GobgpApi_DeleteStatement_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1813 in := new(DeleteStatementRequest) 1814 if err := dec(in); err != nil { 1815 return nil, err 1816 } 1817 if interceptor == nil { 1818 return srv.(GobgpApiServer).DeleteStatement(ctx, in) 1819 } 1820 info := &grpc.UnaryServerInfo{ 1821 Server: srv, 1822 FullMethod: "/apipb.GobgpApi/DeleteStatement", 1823 } 1824 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1825 return srv.(GobgpApiServer).DeleteStatement(ctx, req.(*DeleteStatementRequest)) 1826 } 1827 return interceptor(ctx, in, info, handler) 1828 } 1829 1830 func _GobgpApi_ListStatement_Handler(srv interface{}, stream grpc.ServerStream) error { 1831 m := new(ListStatementRequest) 1832 if err := stream.RecvMsg(m); err != nil { 1833 return err 1834 } 1835 return srv.(GobgpApiServer).ListStatement(m, &gobgpApiListStatementServer{stream}) 1836 } 1837 1838 type GobgpApi_ListStatementServer interface { 1839 Send(*ListStatementResponse) error 1840 grpc.ServerStream 1841 } 1842 1843 type gobgpApiListStatementServer struct { 1844 grpc.ServerStream 1845 } 1846 1847 func (x *gobgpApiListStatementServer) Send(m *ListStatementResponse) error { 1848 return x.ServerStream.SendMsg(m) 1849 } 1850 1851 func _GobgpApi_AddPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1852 in := new(AddPolicyAssignmentRequest) 1853 if err := dec(in); err != nil { 1854 return nil, err 1855 } 1856 if interceptor == nil { 1857 return srv.(GobgpApiServer).AddPolicyAssignment(ctx, in) 1858 } 1859 info := &grpc.UnaryServerInfo{ 1860 Server: srv, 1861 FullMethod: "/apipb.GobgpApi/AddPolicyAssignment", 1862 } 1863 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1864 return srv.(GobgpApiServer).AddPolicyAssignment(ctx, req.(*AddPolicyAssignmentRequest)) 1865 } 1866 return interceptor(ctx, in, info, handler) 1867 } 1868 1869 func _GobgpApi_DeletePolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1870 in := new(DeletePolicyAssignmentRequest) 1871 if err := dec(in); err != nil { 1872 return nil, err 1873 } 1874 if interceptor == nil { 1875 return srv.(GobgpApiServer).DeletePolicyAssignment(ctx, in) 1876 } 1877 info := &grpc.UnaryServerInfo{ 1878 Server: srv, 1879 FullMethod: "/apipb.GobgpApi/DeletePolicyAssignment", 1880 } 1881 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1882 return srv.(GobgpApiServer).DeletePolicyAssignment(ctx, req.(*DeletePolicyAssignmentRequest)) 1883 } 1884 return interceptor(ctx, in, info, handler) 1885 } 1886 1887 func _GobgpApi_ListPolicyAssignment_Handler(srv interface{}, stream grpc.ServerStream) error { 1888 m := new(ListPolicyAssignmentRequest) 1889 if err := stream.RecvMsg(m); err != nil { 1890 return err 1891 } 1892 return srv.(GobgpApiServer).ListPolicyAssignment(m, &gobgpApiListPolicyAssignmentServer{stream}) 1893 } 1894 1895 type GobgpApi_ListPolicyAssignmentServer interface { 1896 Send(*ListPolicyAssignmentResponse) error 1897 grpc.ServerStream 1898 } 1899 1900 type gobgpApiListPolicyAssignmentServer struct { 1901 grpc.ServerStream 1902 } 1903 1904 func (x *gobgpApiListPolicyAssignmentServer) Send(m *ListPolicyAssignmentResponse) error { 1905 return x.ServerStream.SendMsg(m) 1906 } 1907 1908 func _GobgpApi_SetPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1909 in := new(SetPolicyAssignmentRequest) 1910 if err := dec(in); err != nil { 1911 return nil, err 1912 } 1913 if interceptor == nil { 1914 return srv.(GobgpApiServer).SetPolicyAssignment(ctx, in) 1915 } 1916 info := &grpc.UnaryServerInfo{ 1917 Server: srv, 1918 FullMethod: "/apipb.GobgpApi/SetPolicyAssignment", 1919 } 1920 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1921 return srv.(GobgpApiServer).SetPolicyAssignment(ctx, req.(*SetPolicyAssignmentRequest)) 1922 } 1923 return interceptor(ctx, in, info, handler) 1924 } 1925 1926 func _GobgpApi_AddRpki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1927 in := new(AddRpkiRequest) 1928 if err := dec(in); err != nil { 1929 return nil, err 1930 } 1931 if interceptor == nil { 1932 return srv.(GobgpApiServer).AddRpki(ctx, in) 1933 } 1934 info := &grpc.UnaryServerInfo{ 1935 Server: srv, 1936 FullMethod: "/apipb.GobgpApi/AddRpki", 1937 } 1938 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1939 return srv.(GobgpApiServer).AddRpki(ctx, req.(*AddRpkiRequest)) 1940 } 1941 return interceptor(ctx, in, info, handler) 1942 } 1943 1944 func _GobgpApi_DeleteRpki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1945 in := new(DeleteRpkiRequest) 1946 if err := dec(in); err != nil { 1947 return nil, err 1948 } 1949 if interceptor == nil { 1950 return srv.(GobgpApiServer).DeleteRpki(ctx, in) 1951 } 1952 info := &grpc.UnaryServerInfo{ 1953 Server: srv, 1954 FullMethod: "/apipb.GobgpApi/DeleteRpki", 1955 } 1956 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1957 return srv.(GobgpApiServer).DeleteRpki(ctx, req.(*DeleteRpkiRequest)) 1958 } 1959 return interceptor(ctx, in, info, handler) 1960 } 1961 1962 func _GobgpApi_ListRpki_Handler(srv interface{}, stream grpc.ServerStream) error { 1963 m := new(ListRpkiRequest) 1964 if err := stream.RecvMsg(m); err != nil { 1965 return err 1966 } 1967 return srv.(GobgpApiServer).ListRpki(m, &gobgpApiListRpkiServer{stream}) 1968 } 1969 1970 type GobgpApi_ListRpkiServer interface { 1971 Send(*ListRpkiResponse) error 1972 grpc.ServerStream 1973 } 1974 1975 type gobgpApiListRpkiServer struct { 1976 grpc.ServerStream 1977 } 1978 1979 func (x *gobgpApiListRpkiServer) Send(m *ListRpkiResponse) error { 1980 return x.ServerStream.SendMsg(m) 1981 } 1982 1983 func _GobgpApi_EnableRpki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1984 in := new(EnableRpkiRequest) 1985 if err := dec(in); err != nil { 1986 return nil, err 1987 } 1988 if interceptor == nil { 1989 return srv.(GobgpApiServer).EnableRpki(ctx, in) 1990 } 1991 info := &grpc.UnaryServerInfo{ 1992 Server: srv, 1993 FullMethod: "/apipb.GobgpApi/EnableRpki", 1994 } 1995 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1996 return srv.(GobgpApiServer).EnableRpki(ctx, req.(*EnableRpkiRequest)) 1997 } 1998 return interceptor(ctx, in, info, handler) 1999 } 2000 2001 func _GobgpApi_DisableRpki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2002 in := new(DisableRpkiRequest) 2003 if err := dec(in); err != nil { 2004 return nil, err 2005 } 2006 if interceptor == nil { 2007 return srv.(GobgpApiServer).DisableRpki(ctx, in) 2008 } 2009 info := &grpc.UnaryServerInfo{ 2010 Server: srv, 2011 FullMethod: "/apipb.GobgpApi/DisableRpki", 2012 } 2013 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2014 return srv.(GobgpApiServer).DisableRpki(ctx, req.(*DisableRpkiRequest)) 2015 } 2016 return interceptor(ctx, in, info, handler) 2017 } 2018 2019 func _GobgpApi_ResetRpki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2020 in := new(ResetRpkiRequest) 2021 if err := dec(in); err != nil { 2022 return nil, err 2023 } 2024 if interceptor == nil { 2025 return srv.(GobgpApiServer).ResetRpki(ctx, in) 2026 } 2027 info := &grpc.UnaryServerInfo{ 2028 Server: srv, 2029 FullMethod: "/apipb.GobgpApi/ResetRpki", 2030 } 2031 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2032 return srv.(GobgpApiServer).ResetRpki(ctx, req.(*ResetRpkiRequest)) 2033 } 2034 return interceptor(ctx, in, info, handler) 2035 } 2036 2037 func _GobgpApi_ListRpkiTable_Handler(srv interface{}, stream grpc.ServerStream) error { 2038 m := new(ListRpkiTableRequest) 2039 if err := stream.RecvMsg(m); err != nil { 2040 return err 2041 } 2042 return srv.(GobgpApiServer).ListRpkiTable(m, &gobgpApiListRpkiTableServer{stream}) 2043 } 2044 2045 type GobgpApi_ListRpkiTableServer interface { 2046 Send(*ListRpkiTableResponse) error 2047 grpc.ServerStream 2048 } 2049 2050 type gobgpApiListRpkiTableServer struct { 2051 grpc.ServerStream 2052 } 2053 2054 func (x *gobgpApiListRpkiTableServer) Send(m *ListRpkiTableResponse) error { 2055 return x.ServerStream.SendMsg(m) 2056 } 2057 2058 func _GobgpApi_EnableZebra_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2059 in := new(EnableZebraRequest) 2060 if err := dec(in); err != nil { 2061 return nil, err 2062 } 2063 if interceptor == nil { 2064 return srv.(GobgpApiServer).EnableZebra(ctx, in) 2065 } 2066 info := &grpc.UnaryServerInfo{ 2067 Server: srv, 2068 FullMethod: "/apipb.GobgpApi/EnableZebra", 2069 } 2070 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2071 return srv.(GobgpApiServer).EnableZebra(ctx, req.(*EnableZebraRequest)) 2072 } 2073 return interceptor(ctx, in, info, handler) 2074 } 2075 2076 func _GobgpApi_EnableMrt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2077 in := new(EnableMrtRequest) 2078 if err := dec(in); err != nil { 2079 return nil, err 2080 } 2081 if interceptor == nil { 2082 return srv.(GobgpApiServer).EnableMrt(ctx, in) 2083 } 2084 info := &grpc.UnaryServerInfo{ 2085 Server: srv, 2086 FullMethod: "/apipb.GobgpApi/EnableMrt", 2087 } 2088 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2089 return srv.(GobgpApiServer).EnableMrt(ctx, req.(*EnableMrtRequest)) 2090 } 2091 return interceptor(ctx, in, info, handler) 2092 } 2093 2094 func _GobgpApi_DisableMrt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2095 in := new(DisableMrtRequest) 2096 if err := dec(in); err != nil { 2097 return nil, err 2098 } 2099 if interceptor == nil { 2100 return srv.(GobgpApiServer).DisableMrt(ctx, in) 2101 } 2102 info := &grpc.UnaryServerInfo{ 2103 Server: srv, 2104 FullMethod: "/apipb.GobgpApi/DisableMrt", 2105 } 2106 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2107 return srv.(GobgpApiServer).DisableMrt(ctx, req.(*DisableMrtRequest)) 2108 } 2109 return interceptor(ctx, in, info, handler) 2110 } 2111 2112 func _GobgpApi_AddBmp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2113 in := new(AddBmpRequest) 2114 if err := dec(in); err != nil { 2115 return nil, err 2116 } 2117 if interceptor == nil { 2118 return srv.(GobgpApiServer).AddBmp(ctx, in) 2119 } 2120 info := &grpc.UnaryServerInfo{ 2121 Server: srv, 2122 FullMethod: "/apipb.GobgpApi/AddBmp", 2123 } 2124 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2125 return srv.(GobgpApiServer).AddBmp(ctx, req.(*AddBmpRequest)) 2126 } 2127 return interceptor(ctx, in, info, handler) 2128 } 2129 2130 func _GobgpApi_DeleteBmp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2131 in := new(DeleteBmpRequest) 2132 if err := dec(in); err != nil { 2133 return nil, err 2134 } 2135 if interceptor == nil { 2136 return srv.(GobgpApiServer).DeleteBmp(ctx, in) 2137 } 2138 info := &grpc.UnaryServerInfo{ 2139 Server: srv, 2140 FullMethod: "/apipb.GobgpApi/DeleteBmp", 2141 } 2142 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2143 return srv.(GobgpApiServer).DeleteBmp(ctx, req.(*DeleteBmpRequest)) 2144 } 2145 return interceptor(ctx, in, info, handler) 2146 } 2147 2148 func _GobgpApi_ListBmp_Handler(srv interface{}, stream grpc.ServerStream) error { 2149 m := new(ListBmpRequest) 2150 if err := stream.RecvMsg(m); err != nil { 2151 return err 2152 } 2153 return srv.(GobgpApiServer).ListBmp(m, &gobgpApiListBmpServer{stream}) 2154 } 2155 2156 type GobgpApi_ListBmpServer interface { 2157 Send(*ListBmpResponse) error 2158 grpc.ServerStream 2159 } 2160 2161 type gobgpApiListBmpServer struct { 2162 grpc.ServerStream 2163 } 2164 2165 func (x *gobgpApiListBmpServer) Send(m *ListBmpResponse) error { 2166 return x.ServerStream.SendMsg(m) 2167 } 2168 2169 func _GobgpApi_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2170 in := new(SetLogLevelRequest) 2171 if err := dec(in); err != nil { 2172 return nil, err 2173 } 2174 if interceptor == nil { 2175 return srv.(GobgpApiServer).SetLogLevel(ctx, in) 2176 } 2177 info := &grpc.UnaryServerInfo{ 2178 Server: srv, 2179 FullMethod: "/apipb.GobgpApi/SetLogLevel", 2180 } 2181 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2182 return srv.(GobgpApiServer).SetLogLevel(ctx, req.(*SetLogLevelRequest)) 2183 } 2184 return interceptor(ctx, in, info, handler) 2185 } 2186 2187 // GobgpApi_ServiceDesc is the grpc.ServiceDesc for GobgpApi service. 2188 // It's only intended for direct use with grpc.RegisterService, 2189 // and not to be introspected or modified (even as a copy) 2190 var GobgpApi_ServiceDesc = grpc.ServiceDesc{ 2191 ServiceName: "apipb.GobgpApi", 2192 HandlerType: (*GobgpApiServer)(nil), 2193 Methods: []grpc.MethodDesc{ 2194 { 2195 MethodName: "StartBgp", 2196 Handler: _GobgpApi_StartBgp_Handler, 2197 }, 2198 { 2199 MethodName: "StopBgp", 2200 Handler: _GobgpApi_StopBgp_Handler, 2201 }, 2202 { 2203 MethodName: "GetBgp", 2204 Handler: _GobgpApi_GetBgp_Handler, 2205 }, 2206 { 2207 MethodName: "AddPeer", 2208 Handler: _GobgpApi_AddPeer_Handler, 2209 }, 2210 { 2211 MethodName: "DeletePeer", 2212 Handler: _GobgpApi_DeletePeer_Handler, 2213 }, 2214 { 2215 MethodName: "UpdatePeer", 2216 Handler: _GobgpApi_UpdatePeer_Handler, 2217 }, 2218 { 2219 MethodName: "ResetPeer", 2220 Handler: _GobgpApi_ResetPeer_Handler, 2221 }, 2222 { 2223 MethodName: "ShutdownPeer", 2224 Handler: _GobgpApi_ShutdownPeer_Handler, 2225 }, 2226 { 2227 MethodName: "EnablePeer", 2228 Handler: _GobgpApi_EnablePeer_Handler, 2229 }, 2230 { 2231 MethodName: "DisablePeer", 2232 Handler: _GobgpApi_DisablePeer_Handler, 2233 }, 2234 { 2235 MethodName: "AddPeerGroup", 2236 Handler: _GobgpApi_AddPeerGroup_Handler, 2237 }, 2238 { 2239 MethodName: "DeletePeerGroup", 2240 Handler: _GobgpApi_DeletePeerGroup_Handler, 2241 }, 2242 { 2243 MethodName: "UpdatePeerGroup", 2244 Handler: _GobgpApi_UpdatePeerGroup_Handler, 2245 }, 2246 { 2247 MethodName: "AddDynamicNeighbor", 2248 Handler: _GobgpApi_AddDynamicNeighbor_Handler, 2249 }, 2250 { 2251 MethodName: "DeleteDynamicNeighbor", 2252 Handler: _GobgpApi_DeleteDynamicNeighbor_Handler, 2253 }, 2254 { 2255 MethodName: "AddPath", 2256 Handler: _GobgpApi_AddPath_Handler, 2257 }, 2258 { 2259 MethodName: "DeletePath", 2260 Handler: _GobgpApi_DeletePath_Handler, 2261 }, 2262 { 2263 MethodName: "GetTable", 2264 Handler: _GobgpApi_GetTable_Handler, 2265 }, 2266 { 2267 MethodName: "AddVrf", 2268 Handler: _GobgpApi_AddVrf_Handler, 2269 }, 2270 { 2271 MethodName: "DeleteVrf", 2272 Handler: _GobgpApi_DeleteVrf_Handler, 2273 }, 2274 { 2275 MethodName: "AddPolicy", 2276 Handler: _GobgpApi_AddPolicy_Handler, 2277 }, 2278 { 2279 MethodName: "DeletePolicy", 2280 Handler: _GobgpApi_DeletePolicy_Handler, 2281 }, 2282 { 2283 MethodName: "SetPolicies", 2284 Handler: _GobgpApi_SetPolicies_Handler, 2285 }, 2286 { 2287 MethodName: "AddDefinedSet", 2288 Handler: _GobgpApi_AddDefinedSet_Handler, 2289 }, 2290 { 2291 MethodName: "DeleteDefinedSet", 2292 Handler: _GobgpApi_DeleteDefinedSet_Handler, 2293 }, 2294 { 2295 MethodName: "AddStatement", 2296 Handler: _GobgpApi_AddStatement_Handler, 2297 }, 2298 { 2299 MethodName: "DeleteStatement", 2300 Handler: _GobgpApi_DeleteStatement_Handler, 2301 }, 2302 { 2303 MethodName: "AddPolicyAssignment", 2304 Handler: _GobgpApi_AddPolicyAssignment_Handler, 2305 }, 2306 { 2307 MethodName: "DeletePolicyAssignment", 2308 Handler: _GobgpApi_DeletePolicyAssignment_Handler, 2309 }, 2310 { 2311 MethodName: "SetPolicyAssignment", 2312 Handler: _GobgpApi_SetPolicyAssignment_Handler, 2313 }, 2314 { 2315 MethodName: "AddRpki", 2316 Handler: _GobgpApi_AddRpki_Handler, 2317 }, 2318 { 2319 MethodName: "DeleteRpki", 2320 Handler: _GobgpApi_DeleteRpki_Handler, 2321 }, 2322 { 2323 MethodName: "EnableRpki", 2324 Handler: _GobgpApi_EnableRpki_Handler, 2325 }, 2326 { 2327 MethodName: "DisableRpki", 2328 Handler: _GobgpApi_DisableRpki_Handler, 2329 }, 2330 { 2331 MethodName: "ResetRpki", 2332 Handler: _GobgpApi_ResetRpki_Handler, 2333 }, 2334 { 2335 MethodName: "EnableZebra", 2336 Handler: _GobgpApi_EnableZebra_Handler, 2337 }, 2338 { 2339 MethodName: "EnableMrt", 2340 Handler: _GobgpApi_EnableMrt_Handler, 2341 }, 2342 { 2343 MethodName: "DisableMrt", 2344 Handler: _GobgpApi_DisableMrt_Handler, 2345 }, 2346 { 2347 MethodName: "AddBmp", 2348 Handler: _GobgpApi_AddBmp_Handler, 2349 }, 2350 { 2351 MethodName: "DeleteBmp", 2352 Handler: _GobgpApi_DeleteBmp_Handler, 2353 }, 2354 { 2355 MethodName: "SetLogLevel", 2356 Handler: _GobgpApi_SetLogLevel_Handler, 2357 }, 2358 }, 2359 Streams: []grpc.StreamDesc{ 2360 { 2361 StreamName: "WatchEvent", 2362 Handler: _GobgpApi_WatchEvent_Handler, 2363 ServerStreams: true, 2364 }, 2365 { 2366 StreamName: "ListPeer", 2367 Handler: _GobgpApi_ListPeer_Handler, 2368 ServerStreams: true, 2369 }, 2370 { 2371 StreamName: "ListPeerGroup", 2372 Handler: _GobgpApi_ListPeerGroup_Handler, 2373 ServerStreams: true, 2374 }, 2375 { 2376 StreamName: "ListDynamicNeighbor", 2377 Handler: _GobgpApi_ListDynamicNeighbor_Handler, 2378 ServerStreams: true, 2379 }, 2380 { 2381 StreamName: "ListPath", 2382 Handler: _GobgpApi_ListPath_Handler, 2383 ServerStreams: true, 2384 }, 2385 { 2386 StreamName: "AddPathStream", 2387 Handler: _GobgpApi_AddPathStream_Handler, 2388 ClientStreams: true, 2389 }, 2390 { 2391 StreamName: "ListVrf", 2392 Handler: _GobgpApi_ListVrf_Handler, 2393 ServerStreams: true, 2394 }, 2395 { 2396 StreamName: "ListPolicy", 2397 Handler: _GobgpApi_ListPolicy_Handler, 2398 ServerStreams: true, 2399 }, 2400 { 2401 StreamName: "ListDefinedSet", 2402 Handler: _GobgpApi_ListDefinedSet_Handler, 2403 ServerStreams: true, 2404 }, 2405 { 2406 StreamName: "ListStatement", 2407 Handler: _GobgpApi_ListStatement_Handler, 2408 ServerStreams: true, 2409 }, 2410 { 2411 StreamName: "ListPolicyAssignment", 2412 Handler: _GobgpApi_ListPolicyAssignment_Handler, 2413 ServerStreams: true, 2414 }, 2415 { 2416 StreamName: "ListRpki", 2417 Handler: _GobgpApi_ListRpki_Handler, 2418 ServerStreams: true, 2419 }, 2420 { 2421 StreamName: "ListRpkiTable", 2422 Handler: _GobgpApi_ListRpkiTable_Handler, 2423 ServerStreams: true, 2424 }, 2425 { 2426 StreamName: "ListBmp", 2427 Handler: _GobgpApi_ListBmp_Handler, 2428 ServerStreams: true, 2429 }, 2430 }, 2431 Metadata: "gobgp.proto", 2432 }