github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/api/api.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.15.5 5 // source: proto/api/api.proto 6 7 package api 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Endpoint struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 29 Host []string `protobuf:"bytes,2,rep,name=host,proto3" json:"host,omitempty"` 30 Path []string `protobuf:"bytes,3,rep,name=path,proto3" json:"path,omitempty"` 31 Method []string `protobuf:"bytes,4,rep,name=method,proto3" json:"method,omitempty"` 32 Stream bool `protobuf:"varint,5,opt,name=stream,proto3" json:"stream,omitempty"` 33 } 34 35 func (x *Endpoint) Reset() { 36 *x = Endpoint{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_proto_api_api_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Endpoint) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Endpoint) ProtoMessage() {} 49 50 func (x *Endpoint) ProtoReflect() protoreflect.Message { 51 mi := &file_proto_api_api_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. 63 func (*Endpoint) Descriptor() ([]byte, []int) { 64 return file_proto_api_api_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Endpoint) GetName() string { 68 if x != nil { 69 return x.Name 70 } 71 return "" 72 } 73 74 func (x *Endpoint) GetHost() []string { 75 if x != nil { 76 return x.Host 77 } 78 return nil 79 } 80 81 func (x *Endpoint) GetPath() []string { 82 if x != nil { 83 return x.Path 84 } 85 return nil 86 } 87 88 func (x *Endpoint) GetMethod() []string { 89 if x != nil { 90 return x.Method 91 } 92 return nil 93 } 94 95 func (x *Endpoint) GetStream() bool { 96 if x != nil { 97 return x.Stream 98 } 99 return false 100 } 101 102 type EmptyResponse struct { 103 state protoimpl.MessageState 104 sizeCache protoimpl.SizeCache 105 unknownFields protoimpl.UnknownFields 106 } 107 108 func (x *EmptyResponse) Reset() { 109 *x = EmptyResponse{} 110 if protoimpl.UnsafeEnabled { 111 mi := &file_proto_api_api_proto_msgTypes[1] 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 ms.StoreMessageInfo(mi) 114 } 115 } 116 117 func (x *EmptyResponse) String() string { 118 return protoimpl.X.MessageStringOf(x) 119 } 120 121 func (*EmptyResponse) ProtoMessage() {} 122 123 func (x *EmptyResponse) ProtoReflect() protoreflect.Message { 124 mi := &file_proto_api_api_proto_msgTypes[1] 125 if protoimpl.UnsafeEnabled && x != nil { 126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 127 if ms.LoadMessageInfo() == nil { 128 ms.StoreMessageInfo(mi) 129 } 130 return ms 131 } 132 return mi.MessageOf(x) 133 } 134 135 // Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead. 136 func (*EmptyResponse) Descriptor() ([]byte, []int) { 137 return file_proto_api_api_proto_rawDescGZIP(), []int{1} 138 } 139 140 type Pair struct { 141 state protoimpl.MessageState 142 sizeCache protoimpl.SizeCache 143 unknownFields protoimpl.UnknownFields 144 145 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 146 Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` 147 } 148 149 func (x *Pair) Reset() { 150 *x = Pair{} 151 if protoimpl.UnsafeEnabled { 152 mi := &file_proto_api_api_proto_msgTypes[2] 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 ms.StoreMessageInfo(mi) 155 } 156 } 157 158 func (x *Pair) String() string { 159 return protoimpl.X.MessageStringOf(x) 160 } 161 162 func (*Pair) ProtoMessage() {} 163 164 func (x *Pair) ProtoReflect() protoreflect.Message { 165 mi := &file_proto_api_api_proto_msgTypes[2] 166 if protoimpl.UnsafeEnabled && x != nil { 167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 168 if ms.LoadMessageInfo() == nil { 169 ms.StoreMessageInfo(mi) 170 } 171 return ms 172 } 173 return mi.MessageOf(x) 174 } 175 176 // Deprecated: Use Pair.ProtoReflect.Descriptor instead. 177 func (*Pair) Descriptor() ([]byte, []int) { 178 return file_proto_api_api_proto_rawDescGZIP(), []int{2} 179 } 180 181 func (x *Pair) GetKey() string { 182 if x != nil { 183 return x.Key 184 } 185 return "" 186 } 187 188 func (x *Pair) GetValues() []string { 189 if x != nil { 190 return x.Values 191 } 192 return nil 193 } 194 195 type Request struct { 196 state protoimpl.MessageState 197 sizeCache protoimpl.SizeCache 198 unknownFields protoimpl.UnknownFields 199 200 Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` 201 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 202 Header map[string]*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 203 Get map[string]*Pair `protobuf:"bytes,4,rep,name=get,proto3" json:"get,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 204 Post map[string]*Pair `protobuf:"bytes,5,rep,name=post,proto3" json:"post,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 205 Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` // raw request body; if not application/x-www-form-urlencoded 206 Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` // the full url 207 } 208 209 func (x *Request) Reset() { 210 *x = Request{} 211 if protoimpl.UnsafeEnabled { 212 mi := &file_proto_api_api_proto_msgTypes[3] 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 ms.StoreMessageInfo(mi) 215 } 216 } 217 218 func (x *Request) String() string { 219 return protoimpl.X.MessageStringOf(x) 220 } 221 222 func (*Request) ProtoMessage() {} 223 224 func (x *Request) ProtoReflect() protoreflect.Message { 225 mi := &file_proto_api_api_proto_msgTypes[3] 226 if protoimpl.UnsafeEnabled && x != nil { 227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 228 if ms.LoadMessageInfo() == nil { 229 ms.StoreMessageInfo(mi) 230 } 231 return ms 232 } 233 return mi.MessageOf(x) 234 } 235 236 // Deprecated: Use Request.ProtoReflect.Descriptor instead. 237 func (*Request) Descriptor() ([]byte, []int) { 238 return file_proto_api_api_proto_rawDescGZIP(), []int{3} 239 } 240 241 func (x *Request) GetMethod() string { 242 if x != nil { 243 return x.Method 244 } 245 return "" 246 } 247 248 func (x *Request) GetPath() string { 249 if x != nil { 250 return x.Path 251 } 252 return "" 253 } 254 255 func (x *Request) GetHeader() map[string]*Pair { 256 if x != nil { 257 return x.Header 258 } 259 return nil 260 } 261 262 func (x *Request) GetGet() map[string]*Pair { 263 if x != nil { 264 return x.Get 265 } 266 return nil 267 } 268 269 func (x *Request) GetPost() map[string]*Pair { 270 if x != nil { 271 return x.Post 272 } 273 return nil 274 } 275 276 func (x *Request) GetBody() string { 277 if x != nil { 278 return x.Body 279 } 280 return "" 281 } 282 283 func (x *Request) GetUrl() string { 284 if x != nil { 285 return x.Url 286 } 287 return "" 288 } 289 290 type Response struct { 291 state protoimpl.MessageState 292 sizeCache protoimpl.SizeCache 293 unknownFields protoimpl.UnknownFields 294 295 StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` 296 Header map[string]*Pair `protobuf:"bytes,2,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 297 Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` 298 } 299 300 func (x *Response) Reset() { 301 *x = Response{} 302 if protoimpl.UnsafeEnabled { 303 mi := &file_proto_api_api_proto_msgTypes[4] 304 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 305 ms.StoreMessageInfo(mi) 306 } 307 } 308 309 func (x *Response) String() string { 310 return protoimpl.X.MessageStringOf(x) 311 } 312 313 func (*Response) ProtoMessage() {} 314 315 func (x *Response) ProtoReflect() protoreflect.Message { 316 mi := &file_proto_api_api_proto_msgTypes[4] 317 if protoimpl.UnsafeEnabled && x != nil { 318 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 319 if ms.LoadMessageInfo() == nil { 320 ms.StoreMessageInfo(mi) 321 } 322 return ms 323 } 324 return mi.MessageOf(x) 325 } 326 327 // Deprecated: Use Response.ProtoReflect.Descriptor instead. 328 func (*Response) Descriptor() ([]byte, []int) { 329 return file_proto_api_api_proto_rawDescGZIP(), []int{4} 330 } 331 332 func (x *Response) GetStatusCode() int32 { 333 if x != nil { 334 return x.StatusCode 335 } 336 return 0 337 } 338 339 func (x *Response) GetHeader() map[string]*Pair { 340 if x != nil { 341 return x.Header 342 } 343 return nil 344 } 345 346 func (x *Response) GetBody() string { 347 if x != nil { 348 return x.Body 349 } 350 return "" 351 } 352 353 // A HTTP event as RPC 354 // Forwarded by the event handler 355 type Event struct { 356 state protoimpl.MessageState 357 sizeCache protoimpl.SizeCache 358 unknownFields protoimpl.UnknownFields 359 360 // e.g login 361 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 362 // uuid 363 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 364 // unix timestamp of event 365 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 366 // event headers 367 Header map[string]*Pair `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 368 // the event data 369 Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` 370 } 371 372 func (x *Event) Reset() { 373 *x = Event{} 374 if protoimpl.UnsafeEnabled { 375 mi := &file_proto_api_api_proto_msgTypes[5] 376 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 377 ms.StoreMessageInfo(mi) 378 } 379 } 380 381 func (x *Event) String() string { 382 return protoimpl.X.MessageStringOf(x) 383 } 384 385 func (*Event) ProtoMessage() {} 386 387 func (x *Event) ProtoReflect() protoreflect.Message { 388 mi := &file_proto_api_api_proto_msgTypes[5] 389 if protoimpl.UnsafeEnabled && x != nil { 390 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 391 if ms.LoadMessageInfo() == nil { 392 ms.StoreMessageInfo(mi) 393 } 394 return ms 395 } 396 return mi.MessageOf(x) 397 } 398 399 // Deprecated: Use Event.ProtoReflect.Descriptor instead. 400 func (*Event) Descriptor() ([]byte, []int) { 401 return file_proto_api_api_proto_rawDescGZIP(), []int{5} 402 } 403 404 func (x *Event) GetName() string { 405 if x != nil { 406 return x.Name 407 } 408 return "" 409 } 410 411 func (x *Event) GetId() string { 412 if x != nil { 413 return x.Id 414 } 415 return "" 416 } 417 418 func (x *Event) GetTimestamp() int64 { 419 if x != nil { 420 return x.Timestamp 421 } 422 return 0 423 } 424 425 func (x *Event) GetHeader() map[string]*Pair { 426 if x != nil { 427 return x.Header 428 } 429 return nil 430 } 431 432 func (x *Event) GetData() string { 433 if x != nil { 434 return x.Data 435 } 436 return "" 437 } 438 439 type AddToBlockListRequest struct { 440 state protoimpl.MessageState 441 sizeCache protoimpl.SizeCache 442 unknownFields protoimpl.UnknownFields 443 444 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 445 Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` 446 } 447 448 func (x *AddToBlockListRequest) Reset() { 449 *x = AddToBlockListRequest{} 450 if protoimpl.UnsafeEnabled { 451 mi := &file_proto_api_api_proto_msgTypes[6] 452 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 453 ms.StoreMessageInfo(mi) 454 } 455 } 456 457 func (x *AddToBlockListRequest) String() string { 458 return protoimpl.X.MessageStringOf(x) 459 } 460 461 func (*AddToBlockListRequest) ProtoMessage() {} 462 463 func (x *AddToBlockListRequest) ProtoReflect() protoreflect.Message { 464 mi := &file_proto_api_api_proto_msgTypes[6] 465 if protoimpl.UnsafeEnabled && x != nil { 466 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 467 if ms.LoadMessageInfo() == nil { 468 ms.StoreMessageInfo(mi) 469 } 470 return ms 471 } 472 return mi.MessageOf(x) 473 } 474 475 // Deprecated: Use AddToBlockListRequest.ProtoReflect.Descriptor instead. 476 func (*AddToBlockListRequest) Descriptor() ([]byte, []int) { 477 return file_proto_api_api_proto_rawDescGZIP(), []int{6} 478 } 479 480 func (x *AddToBlockListRequest) GetId() string { 481 if x != nil { 482 return x.Id 483 } 484 return "" 485 } 486 487 func (x *AddToBlockListRequest) GetNamespace() string { 488 if x != nil { 489 return x.Namespace 490 } 491 return "" 492 } 493 494 type AddToBlockListResponse struct { 495 state protoimpl.MessageState 496 sizeCache protoimpl.SizeCache 497 unknownFields protoimpl.UnknownFields 498 } 499 500 func (x *AddToBlockListResponse) Reset() { 501 *x = AddToBlockListResponse{} 502 if protoimpl.UnsafeEnabled { 503 mi := &file_proto_api_api_proto_msgTypes[7] 504 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 505 ms.StoreMessageInfo(mi) 506 } 507 } 508 509 func (x *AddToBlockListResponse) String() string { 510 return protoimpl.X.MessageStringOf(x) 511 } 512 513 func (*AddToBlockListResponse) ProtoMessage() {} 514 515 func (x *AddToBlockListResponse) ProtoReflect() protoreflect.Message { 516 mi := &file_proto_api_api_proto_msgTypes[7] 517 if protoimpl.UnsafeEnabled && x != nil { 518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 519 if ms.LoadMessageInfo() == nil { 520 ms.StoreMessageInfo(mi) 521 } 522 return ms 523 } 524 return mi.MessageOf(x) 525 } 526 527 // Deprecated: Use AddToBlockListResponse.ProtoReflect.Descriptor instead. 528 func (*AddToBlockListResponse) Descriptor() ([]byte, []int) { 529 return file_proto_api_api_proto_rawDescGZIP(), []int{7} 530 } 531 532 type RemoveFromBlockListRequest struct { 533 state protoimpl.MessageState 534 sizeCache protoimpl.SizeCache 535 unknownFields protoimpl.UnknownFields 536 537 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 538 Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` 539 } 540 541 func (x *RemoveFromBlockListRequest) Reset() { 542 *x = RemoveFromBlockListRequest{} 543 if protoimpl.UnsafeEnabled { 544 mi := &file_proto_api_api_proto_msgTypes[8] 545 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 546 ms.StoreMessageInfo(mi) 547 } 548 } 549 550 func (x *RemoveFromBlockListRequest) String() string { 551 return protoimpl.X.MessageStringOf(x) 552 } 553 554 func (*RemoveFromBlockListRequest) ProtoMessage() {} 555 556 func (x *RemoveFromBlockListRequest) ProtoReflect() protoreflect.Message { 557 mi := &file_proto_api_api_proto_msgTypes[8] 558 if protoimpl.UnsafeEnabled && x != nil { 559 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 560 if ms.LoadMessageInfo() == nil { 561 ms.StoreMessageInfo(mi) 562 } 563 return ms 564 } 565 return mi.MessageOf(x) 566 } 567 568 // Deprecated: Use RemoveFromBlockListRequest.ProtoReflect.Descriptor instead. 569 func (*RemoveFromBlockListRequest) Descriptor() ([]byte, []int) { 570 return file_proto_api_api_proto_rawDescGZIP(), []int{8} 571 } 572 573 func (x *RemoveFromBlockListRequest) GetId() string { 574 if x != nil { 575 return x.Id 576 } 577 return "" 578 } 579 580 func (x *RemoveFromBlockListRequest) GetNamespace() string { 581 if x != nil { 582 return x.Namespace 583 } 584 return "" 585 } 586 587 type RemoveFromBlockListResponse struct { 588 state protoimpl.MessageState 589 sizeCache protoimpl.SizeCache 590 unknownFields protoimpl.UnknownFields 591 } 592 593 func (x *RemoveFromBlockListResponse) Reset() { 594 *x = RemoveFromBlockListResponse{} 595 if protoimpl.UnsafeEnabled { 596 mi := &file_proto_api_api_proto_msgTypes[9] 597 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 598 ms.StoreMessageInfo(mi) 599 } 600 } 601 602 func (x *RemoveFromBlockListResponse) String() string { 603 return protoimpl.X.MessageStringOf(x) 604 } 605 606 func (*RemoveFromBlockListResponse) ProtoMessage() {} 607 608 func (x *RemoveFromBlockListResponse) ProtoReflect() protoreflect.Message { 609 mi := &file_proto_api_api_proto_msgTypes[9] 610 if protoimpl.UnsafeEnabled && x != nil { 611 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 612 if ms.LoadMessageInfo() == nil { 613 ms.StoreMessageInfo(mi) 614 } 615 return ms 616 } 617 return mi.MessageOf(x) 618 } 619 620 // Deprecated: Use RemoveFromBlockListResponse.ProtoReflect.Descriptor instead. 621 func (*RemoveFromBlockListResponse) Descriptor() ([]byte, []int) { 622 return file_proto_api_api_proto_rawDescGZIP(), []int{9} 623 } 624 625 type ReadBlockListRequest struct { 626 state protoimpl.MessageState 627 sizeCache protoimpl.SizeCache 628 unknownFields protoimpl.UnknownFields 629 } 630 631 func (x *ReadBlockListRequest) Reset() { 632 *x = ReadBlockListRequest{} 633 if protoimpl.UnsafeEnabled { 634 mi := &file_proto_api_api_proto_msgTypes[10] 635 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 636 ms.StoreMessageInfo(mi) 637 } 638 } 639 640 func (x *ReadBlockListRequest) String() string { 641 return protoimpl.X.MessageStringOf(x) 642 } 643 644 func (*ReadBlockListRequest) ProtoMessage() {} 645 646 func (x *ReadBlockListRequest) ProtoReflect() protoreflect.Message { 647 mi := &file_proto_api_api_proto_msgTypes[10] 648 if protoimpl.UnsafeEnabled && x != nil { 649 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 650 if ms.LoadMessageInfo() == nil { 651 ms.StoreMessageInfo(mi) 652 } 653 return ms 654 } 655 return mi.MessageOf(x) 656 } 657 658 // Deprecated: Use ReadBlockListRequest.ProtoReflect.Descriptor instead. 659 func (*ReadBlockListRequest) Descriptor() ([]byte, []int) { 660 return file_proto_api_api_proto_rawDescGZIP(), []int{10} 661 } 662 663 type ReadBlockListResponse struct { 664 state protoimpl.MessageState 665 sizeCache protoimpl.SizeCache 666 unknownFields protoimpl.UnknownFields 667 668 Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` 669 } 670 671 func (x *ReadBlockListResponse) Reset() { 672 *x = ReadBlockListResponse{} 673 if protoimpl.UnsafeEnabled { 674 mi := &file_proto_api_api_proto_msgTypes[11] 675 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 676 ms.StoreMessageInfo(mi) 677 } 678 } 679 680 func (x *ReadBlockListResponse) String() string { 681 return protoimpl.X.MessageStringOf(x) 682 } 683 684 func (*ReadBlockListResponse) ProtoMessage() {} 685 686 func (x *ReadBlockListResponse) ProtoReflect() protoreflect.Message { 687 mi := &file_proto_api_api_proto_msgTypes[11] 688 if protoimpl.UnsafeEnabled && x != nil { 689 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 690 if ms.LoadMessageInfo() == nil { 691 ms.StoreMessageInfo(mi) 692 } 693 return ms 694 } 695 return mi.MessageOf(x) 696 } 697 698 // Deprecated: Use ReadBlockListResponse.ProtoReflect.Descriptor instead. 699 func (*ReadBlockListResponse) Descriptor() ([]byte, []int) { 700 return file_proto_api_api_proto_rawDescGZIP(), []int{11} 701 } 702 703 func (x *ReadBlockListResponse) GetIds() []string { 704 if x != nil { 705 return x.Ids 706 } 707 return nil 708 } 709 710 var File_proto_api_api_proto protoreflect.FileDescriptor 711 712 var file_proto_api_api_proto_rawDesc = []byte{ 713 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2e, 714 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x22, 0x76, 0x0a, 0x08, 0x45, 0x6e, 715 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 716 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 717 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 718 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 719 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x03, 720 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 721 0x72, 0x65, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 722 0x61, 0x6d, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 723 0x6e, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x04, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 724 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 725 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 726 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xaf, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 727 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 728 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 729 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x30, 0x0a, 730 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 731 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 732 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 733 0x27, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 734 0x70, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 735 0x74, 0x72, 0x79, 0x52, 0x03, 0x67, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 736 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x71, 737 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 738 0x70, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x06, 0x20, 0x01, 739 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 740 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x44, 0x0a, 0x0b, 0x48, 0x65, 741 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 742 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 743 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 744 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 745 0x1a, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 746 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 747 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 748 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 749 0x02, 0x38, 0x01, 0x1a, 0x42, 0x0a, 0x09, 0x50, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 750 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 751 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 752 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 753 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb7, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 754 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 755 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 756 0x43, 0x6f, 0x64, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 757 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 758 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 759 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 760 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x1a, 0x44, 0x0a, 0x0b, 0x48, 761 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 762 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 763 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 764 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 765 0x01, 0x22, 0xd3, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 766 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 767 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 768 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 769 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 770 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 771 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 772 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 773 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 774 0x61, 0x1a, 0x44, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 775 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 776 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 777 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 778 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x45, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x54, 0x6f, 779 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 780 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 781 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 782 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x18, 783 0x0a, 0x16, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 784 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x1a, 0x52, 0x65, 0x6d, 0x6f, 785 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 786 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 787 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 788 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 789 0x70, 0x61, 0x63, 0x65, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 790 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 791 0x6e, 0x73, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 792 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x29, 0x0a, 0x15, 0x52, 793 0x65, 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 794 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 795 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x32, 0xf8, 0x01, 0x0a, 0x03, 0x41, 0x70, 0x69, 0x12, 0x4b, 796 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 797 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 798 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 799 0x70, 0x69, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 800 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x13, 0x52, 801 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 802 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 803 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 804 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 805 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 806 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x64, 0x42, 807 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 808 0x65, 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 809 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x42, 0x6c, 810 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 811 0x00, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 812 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2f, 0x76, 0x33, 0x2f, 0x70, 813 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 814 0x6f, 0x74, 0x6f, 0x33, 815 } 816 817 var ( 818 file_proto_api_api_proto_rawDescOnce sync.Once 819 file_proto_api_api_proto_rawDescData = file_proto_api_api_proto_rawDesc 820 ) 821 822 func file_proto_api_api_proto_rawDescGZIP() []byte { 823 file_proto_api_api_proto_rawDescOnce.Do(func() { 824 file_proto_api_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_api_api_proto_rawDescData) 825 }) 826 return file_proto_api_api_proto_rawDescData 827 } 828 829 var file_proto_api_api_proto_msgTypes = make([]protoimpl.MessageInfo, 17) 830 var file_proto_api_api_proto_goTypes = []interface{}{ 831 (*Endpoint)(nil), // 0: api.Endpoint 832 (*EmptyResponse)(nil), // 1: api.EmptyResponse 833 (*Pair)(nil), // 2: api.Pair 834 (*Request)(nil), // 3: api.Request 835 (*Response)(nil), // 4: api.Response 836 (*Event)(nil), // 5: api.Event 837 (*AddToBlockListRequest)(nil), // 6: api.AddToBlockListRequest 838 (*AddToBlockListResponse)(nil), // 7: api.AddToBlockListResponse 839 (*RemoveFromBlockListRequest)(nil), // 8: api.RemoveFromBlockListRequest 840 (*RemoveFromBlockListResponse)(nil), // 9: api.RemoveFromBlockListResponse 841 (*ReadBlockListRequest)(nil), // 10: api.ReadBlockListRequest 842 (*ReadBlockListResponse)(nil), // 11: api.ReadBlockListResponse 843 nil, // 12: api.Request.HeaderEntry 844 nil, // 13: api.Request.GetEntry 845 nil, // 14: api.Request.PostEntry 846 nil, // 15: api.Response.HeaderEntry 847 nil, // 16: api.Event.HeaderEntry 848 } 849 var file_proto_api_api_proto_depIdxs = []int32{ 850 12, // 0: api.Request.header:type_name -> api.Request.HeaderEntry 851 13, // 1: api.Request.get:type_name -> api.Request.GetEntry 852 14, // 2: api.Request.post:type_name -> api.Request.PostEntry 853 15, // 3: api.Response.header:type_name -> api.Response.HeaderEntry 854 16, // 4: api.Event.header:type_name -> api.Event.HeaderEntry 855 2, // 5: api.Request.HeaderEntry.value:type_name -> api.Pair 856 2, // 6: api.Request.GetEntry.value:type_name -> api.Pair 857 2, // 7: api.Request.PostEntry.value:type_name -> api.Pair 858 2, // 8: api.Response.HeaderEntry.value:type_name -> api.Pair 859 2, // 9: api.Event.HeaderEntry.value:type_name -> api.Pair 860 6, // 10: api.Api.AddToBlockList:input_type -> api.AddToBlockListRequest 861 8, // 11: api.Api.RemoveFromBlockList:input_type -> api.RemoveFromBlockListRequest 862 10, // 12: api.Api.ReadBlockList:input_type -> api.ReadBlockListRequest 863 7, // 13: api.Api.AddToBlockList:output_type -> api.AddToBlockListResponse 864 9, // 14: api.Api.RemoveFromBlockList:output_type -> api.RemoveFromBlockListResponse 865 11, // 15: api.Api.ReadBlockList:output_type -> api.ReadBlockListResponse 866 13, // [13:16] is the sub-list for method output_type 867 10, // [10:13] is the sub-list for method input_type 868 10, // [10:10] is the sub-list for extension type_name 869 10, // [10:10] is the sub-list for extension extendee 870 0, // [0:10] is the sub-list for field type_name 871 } 872 873 func init() { file_proto_api_api_proto_init() } 874 func file_proto_api_api_proto_init() { 875 if File_proto_api_api_proto != nil { 876 return 877 } 878 if !protoimpl.UnsafeEnabled { 879 file_proto_api_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 880 switch v := v.(*Endpoint); i { 881 case 0: 882 return &v.state 883 case 1: 884 return &v.sizeCache 885 case 2: 886 return &v.unknownFields 887 default: 888 return nil 889 } 890 } 891 file_proto_api_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 892 switch v := v.(*EmptyResponse); i { 893 case 0: 894 return &v.state 895 case 1: 896 return &v.sizeCache 897 case 2: 898 return &v.unknownFields 899 default: 900 return nil 901 } 902 } 903 file_proto_api_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 904 switch v := v.(*Pair); i { 905 case 0: 906 return &v.state 907 case 1: 908 return &v.sizeCache 909 case 2: 910 return &v.unknownFields 911 default: 912 return nil 913 } 914 } 915 file_proto_api_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 916 switch v := v.(*Request); i { 917 case 0: 918 return &v.state 919 case 1: 920 return &v.sizeCache 921 case 2: 922 return &v.unknownFields 923 default: 924 return nil 925 } 926 } 927 file_proto_api_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 928 switch v := v.(*Response); i { 929 case 0: 930 return &v.state 931 case 1: 932 return &v.sizeCache 933 case 2: 934 return &v.unknownFields 935 default: 936 return nil 937 } 938 } 939 file_proto_api_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 940 switch v := v.(*Event); i { 941 case 0: 942 return &v.state 943 case 1: 944 return &v.sizeCache 945 case 2: 946 return &v.unknownFields 947 default: 948 return nil 949 } 950 } 951 file_proto_api_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 952 switch v := v.(*AddToBlockListRequest); i { 953 case 0: 954 return &v.state 955 case 1: 956 return &v.sizeCache 957 case 2: 958 return &v.unknownFields 959 default: 960 return nil 961 } 962 } 963 file_proto_api_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 964 switch v := v.(*AddToBlockListResponse); i { 965 case 0: 966 return &v.state 967 case 1: 968 return &v.sizeCache 969 case 2: 970 return &v.unknownFields 971 default: 972 return nil 973 } 974 } 975 file_proto_api_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 976 switch v := v.(*RemoveFromBlockListRequest); i { 977 case 0: 978 return &v.state 979 case 1: 980 return &v.sizeCache 981 case 2: 982 return &v.unknownFields 983 default: 984 return nil 985 } 986 } 987 file_proto_api_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 988 switch v := v.(*RemoveFromBlockListResponse); i { 989 case 0: 990 return &v.state 991 case 1: 992 return &v.sizeCache 993 case 2: 994 return &v.unknownFields 995 default: 996 return nil 997 } 998 } 999 file_proto_api_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1000 switch v := v.(*ReadBlockListRequest); i { 1001 case 0: 1002 return &v.state 1003 case 1: 1004 return &v.sizeCache 1005 case 2: 1006 return &v.unknownFields 1007 default: 1008 return nil 1009 } 1010 } 1011 file_proto_api_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1012 switch v := v.(*ReadBlockListResponse); i { 1013 case 0: 1014 return &v.state 1015 case 1: 1016 return &v.sizeCache 1017 case 2: 1018 return &v.unknownFields 1019 default: 1020 return nil 1021 } 1022 } 1023 } 1024 type x struct{} 1025 out := protoimpl.TypeBuilder{ 1026 File: protoimpl.DescBuilder{ 1027 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1028 RawDescriptor: file_proto_api_api_proto_rawDesc, 1029 NumEnums: 0, 1030 NumMessages: 17, 1031 NumExtensions: 0, 1032 NumServices: 1, 1033 }, 1034 GoTypes: file_proto_api_api_proto_goTypes, 1035 DependencyIndexes: file_proto_api_api_proto_depIdxs, 1036 MessageInfos: file_proto_api_api_proto_msgTypes, 1037 }.Build() 1038 File_proto_api_api_proto = out.File 1039 file_proto_api_api_proto_rawDesc = nil 1040 file_proto_api_api_proto_goTypes = nil 1041 file_proto_api_api_proto_depIdxs = nil 1042 }