trpc.group/trpc-go/trpc-go@v1.0.3/testdata/restful/bookstore/bookstore.pb.go (about) 1 // 2 // 3 // Tencent is pleased to support the open source community by making tRPC available. 4 // 5 // Copyright (C) 2023 THL A29 Limited, a Tencent company. 6 // All rights reserved. 7 // 8 // If you have downloaded a copy of the tRPC source code from Tencent, 9 // please note that tRPC source code is licensed under the Apache 2.0 License, 10 // A copy of the Apache 2.0 License is included in this file. 11 // 12 // 13 14 // Code generated by protoc-gen-go. DO NOT EDIT. 15 // versions: 16 // protoc-gen-go v1.28.1 17 // protoc v3.19.1 18 // source: bookstore.proto 19 20 package bookstore 21 22 import ( 23 reflect "reflect" 24 sync "sync" 25 26 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 emptypb "google.golang.org/protobuf/types/known/emptypb" 29 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 // 书柜 40 type Shelf struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 46 Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"` 47 } 48 49 func (x *Shelf) Reset() { 50 *x = Shelf{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_bookstore_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *Shelf) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*Shelf) ProtoMessage() {} 63 64 func (x *Shelf) ProtoReflect() protoreflect.Message { 65 mi := &file_bookstore_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use Shelf.ProtoReflect.Descriptor instead. 77 func (*Shelf) Descriptor() ([]byte, []int) { 78 return file_bookstore_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *Shelf) GetId() int64 { 82 if x != nil { 83 return x.Id 84 } 85 return 0 86 } 87 88 func (x *Shelf) GetTheme() string { 89 if x != nil { 90 return x.Theme 91 } 92 return "" 93 } 94 95 // 书 96 type Book struct { 97 state protoimpl.MessageState 98 sizeCache protoimpl.SizeCache 99 unknownFields protoimpl.UnknownFields 100 101 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 102 Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` 103 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` 104 Content *Content `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` 105 } 106 107 func (x *Book) Reset() { 108 *x = Book{} 109 if protoimpl.UnsafeEnabled { 110 mi := &file_bookstore_proto_msgTypes[1] 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 ms.StoreMessageInfo(mi) 113 } 114 } 115 116 func (x *Book) String() string { 117 return protoimpl.X.MessageStringOf(x) 118 } 119 120 func (*Book) ProtoMessage() {} 121 122 func (x *Book) ProtoReflect() protoreflect.Message { 123 mi := &file_bookstore_proto_msgTypes[1] 124 if protoimpl.UnsafeEnabled && x != nil { 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 if ms.LoadMessageInfo() == nil { 127 ms.StoreMessageInfo(mi) 128 } 129 return ms 130 } 131 return mi.MessageOf(x) 132 } 133 134 // Deprecated: Use Book.ProtoReflect.Descriptor instead. 135 func (*Book) Descriptor() ([]byte, []int) { 136 return file_bookstore_proto_rawDescGZIP(), []int{1} 137 } 138 139 func (x *Book) GetId() int64 { 140 if x != nil { 141 return x.Id 142 } 143 return 0 144 } 145 146 func (x *Book) GetAuthor() string { 147 if x != nil { 148 return x.Author 149 } 150 return "" 151 } 152 153 func (x *Book) GetTitle() string { 154 if x != nil { 155 return x.Title 156 } 157 return "" 158 } 159 160 func (x *Book) GetContent() *Content { 161 if x != nil { 162 return x.Content 163 } 164 return nil 165 } 166 167 // 书内容 168 type Content struct { 169 state protoimpl.MessageState 170 sizeCache protoimpl.SizeCache 171 unknownFields protoimpl.UnknownFields 172 173 Summary string `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` 174 } 175 176 func (x *Content) Reset() { 177 *x = Content{} 178 if protoimpl.UnsafeEnabled { 179 mi := &file_bookstore_proto_msgTypes[2] 180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 181 ms.StoreMessageInfo(mi) 182 } 183 } 184 185 func (x *Content) String() string { 186 return protoimpl.X.MessageStringOf(x) 187 } 188 189 func (*Content) ProtoMessage() {} 190 191 func (x *Content) ProtoReflect() protoreflect.Message { 192 mi := &file_bookstore_proto_msgTypes[2] 193 if protoimpl.UnsafeEnabled && x != nil { 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 if ms.LoadMessageInfo() == nil { 196 ms.StoreMessageInfo(mi) 197 } 198 return ms 199 } 200 return mi.MessageOf(x) 201 } 202 203 // Deprecated: Use Content.ProtoReflect.Descriptor instead. 204 func (*Content) Descriptor() ([]byte, []int) { 205 return file_bookstore_proto_rawDescGZIP(), []int{2} 206 } 207 208 func (x *Content) GetSummary() string { 209 if x != nil { 210 return x.Summary 211 } 212 return "" 213 } 214 215 // 获取所有的书柜响应 216 type ListShelvesResponse struct { 217 state protoimpl.MessageState 218 sizeCache protoimpl.SizeCache 219 unknownFields protoimpl.UnknownFields 220 221 Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"` 222 } 223 224 func (x *ListShelvesResponse) Reset() { 225 *x = ListShelvesResponse{} 226 if protoimpl.UnsafeEnabled { 227 mi := &file_bookstore_proto_msgTypes[3] 228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 229 ms.StoreMessageInfo(mi) 230 } 231 } 232 233 func (x *ListShelvesResponse) String() string { 234 return protoimpl.X.MessageStringOf(x) 235 } 236 237 func (*ListShelvesResponse) ProtoMessage() {} 238 239 func (x *ListShelvesResponse) ProtoReflect() protoreflect.Message { 240 mi := &file_bookstore_proto_msgTypes[3] 241 if protoimpl.UnsafeEnabled && x != nil { 242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 243 if ms.LoadMessageInfo() == nil { 244 ms.StoreMessageInfo(mi) 245 } 246 return ms 247 } 248 return mi.MessageOf(x) 249 } 250 251 // Deprecated: Use ListShelvesResponse.ProtoReflect.Descriptor instead. 252 func (*ListShelvesResponse) Descriptor() ([]byte, []int) { 253 return file_bookstore_proto_rawDescGZIP(), []int{3} 254 } 255 256 func (x *ListShelvesResponse) GetShelves() []*Shelf { 257 if x != nil { 258 return x.Shelves 259 } 260 return nil 261 } 262 263 // 创建一个书柜请求 264 type CreateShelfRequest struct { 265 state protoimpl.MessageState 266 sizeCache protoimpl.SizeCache 267 unknownFields protoimpl.UnknownFields 268 269 Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 270 } 271 272 func (x *CreateShelfRequest) Reset() { 273 *x = CreateShelfRequest{} 274 if protoimpl.UnsafeEnabled { 275 mi := &file_bookstore_proto_msgTypes[4] 276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 277 ms.StoreMessageInfo(mi) 278 } 279 } 280 281 func (x *CreateShelfRequest) String() string { 282 return protoimpl.X.MessageStringOf(x) 283 } 284 285 func (*CreateShelfRequest) ProtoMessage() {} 286 287 func (x *CreateShelfRequest) ProtoReflect() protoreflect.Message { 288 mi := &file_bookstore_proto_msgTypes[4] 289 if protoimpl.UnsafeEnabled && x != nil { 290 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 291 if ms.LoadMessageInfo() == nil { 292 ms.StoreMessageInfo(mi) 293 } 294 return ms 295 } 296 return mi.MessageOf(x) 297 } 298 299 // Deprecated: Use CreateShelfRequest.ProtoReflect.Descriptor instead. 300 func (*CreateShelfRequest) Descriptor() ([]byte, []int) { 301 return file_bookstore_proto_rawDescGZIP(), []int{4} 302 } 303 304 func (x *CreateShelfRequest) GetShelf() *Shelf { 305 if x != nil { 306 return x.Shelf 307 } 308 return nil 309 } 310 311 // 获取一个书柜请求 312 type GetShelfRequest struct { 313 state protoimpl.MessageState 314 sizeCache protoimpl.SizeCache 315 unknownFields protoimpl.UnknownFields 316 317 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 318 } 319 320 func (x *GetShelfRequest) Reset() { 321 *x = GetShelfRequest{} 322 if protoimpl.UnsafeEnabled { 323 mi := &file_bookstore_proto_msgTypes[5] 324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 325 ms.StoreMessageInfo(mi) 326 } 327 } 328 329 func (x *GetShelfRequest) String() string { 330 return protoimpl.X.MessageStringOf(x) 331 } 332 333 func (*GetShelfRequest) ProtoMessage() {} 334 335 func (x *GetShelfRequest) ProtoReflect() protoreflect.Message { 336 mi := &file_bookstore_proto_msgTypes[5] 337 if protoimpl.UnsafeEnabled && x != nil { 338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 339 if ms.LoadMessageInfo() == nil { 340 ms.StoreMessageInfo(mi) 341 } 342 return ms 343 } 344 return mi.MessageOf(x) 345 } 346 347 // Deprecated: Use GetShelfRequest.ProtoReflect.Descriptor instead. 348 func (*GetShelfRequest) Descriptor() ([]byte, []int) { 349 return file_bookstore_proto_rawDescGZIP(), []int{5} 350 } 351 352 func (x *GetShelfRequest) GetShelf() int64 { 353 if x != nil { 354 return x.Shelf 355 } 356 return 0 357 } 358 359 // 删除一个书柜请求 360 type DeleteShelfRequest struct { 361 state protoimpl.MessageState 362 sizeCache protoimpl.SizeCache 363 unknownFields protoimpl.UnknownFields 364 365 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 366 } 367 368 func (x *DeleteShelfRequest) Reset() { 369 *x = DeleteShelfRequest{} 370 if protoimpl.UnsafeEnabled { 371 mi := &file_bookstore_proto_msgTypes[6] 372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 373 ms.StoreMessageInfo(mi) 374 } 375 } 376 377 func (x *DeleteShelfRequest) String() string { 378 return protoimpl.X.MessageStringOf(x) 379 } 380 381 func (*DeleteShelfRequest) ProtoMessage() {} 382 383 func (x *DeleteShelfRequest) ProtoReflect() protoreflect.Message { 384 mi := &file_bookstore_proto_msgTypes[6] 385 if protoimpl.UnsafeEnabled && x != nil { 386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 387 if ms.LoadMessageInfo() == nil { 388 ms.StoreMessageInfo(mi) 389 } 390 return ms 391 } 392 return mi.MessageOf(x) 393 } 394 395 // Deprecated: Use DeleteShelfRequest.ProtoReflect.Descriptor instead. 396 func (*DeleteShelfRequest) Descriptor() ([]byte, []int) { 397 return file_bookstore_proto_rawDescGZIP(), []int{6} 398 } 399 400 func (x *DeleteShelfRequest) GetShelf() int64 { 401 if x != nil { 402 return x.Shelf 403 } 404 return 0 405 } 406 407 // 获取所有的书请求 408 type ListBooksRequest struct { 409 state protoimpl.MessageState 410 sizeCache protoimpl.SizeCache 411 unknownFields protoimpl.UnknownFields 412 413 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 414 } 415 416 func (x *ListBooksRequest) Reset() { 417 *x = ListBooksRequest{} 418 if protoimpl.UnsafeEnabled { 419 mi := &file_bookstore_proto_msgTypes[7] 420 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 421 ms.StoreMessageInfo(mi) 422 } 423 } 424 425 func (x *ListBooksRequest) String() string { 426 return protoimpl.X.MessageStringOf(x) 427 } 428 429 func (*ListBooksRequest) ProtoMessage() {} 430 431 func (x *ListBooksRequest) ProtoReflect() protoreflect.Message { 432 mi := &file_bookstore_proto_msgTypes[7] 433 if protoimpl.UnsafeEnabled && x != nil { 434 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 435 if ms.LoadMessageInfo() == nil { 436 ms.StoreMessageInfo(mi) 437 } 438 return ms 439 } 440 return mi.MessageOf(x) 441 } 442 443 // Deprecated: Use ListBooksRequest.ProtoReflect.Descriptor instead. 444 func (*ListBooksRequest) Descriptor() ([]byte, []int) { 445 return file_bookstore_proto_rawDescGZIP(), []int{7} 446 } 447 448 func (x *ListBooksRequest) GetShelf() int64 { 449 if x != nil { 450 return x.Shelf 451 } 452 return 0 453 } 454 455 // 获取所有的书 456 type ListBooksResponse struct { 457 state protoimpl.MessageState 458 sizeCache protoimpl.SizeCache 459 unknownFields protoimpl.UnknownFields 460 461 Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"` 462 } 463 464 func (x *ListBooksResponse) Reset() { 465 *x = ListBooksResponse{} 466 if protoimpl.UnsafeEnabled { 467 mi := &file_bookstore_proto_msgTypes[8] 468 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 469 ms.StoreMessageInfo(mi) 470 } 471 } 472 473 func (x *ListBooksResponse) String() string { 474 return protoimpl.X.MessageStringOf(x) 475 } 476 477 func (*ListBooksResponse) ProtoMessage() {} 478 479 func (x *ListBooksResponse) ProtoReflect() protoreflect.Message { 480 mi := &file_bookstore_proto_msgTypes[8] 481 if protoimpl.UnsafeEnabled && x != nil { 482 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 483 if ms.LoadMessageInfo() == nil { 484 ms.StoreMessageInfo(mi) 485 } 486 return ms 487 } 488 return mi.MessageOf(x) 489 } 490 491 // Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead. 492 func (*ListBooksResponse) Descriptor() ([]byte, []int) { 493 return file_bookstore_proto_rawDescGZIP(), []int{8} 494 } 495 496 func (x *ListBooksResponse) GetBooks() []*Book { 497 if x != nil { 498 return x.Books 499 } 500 return nil 501 } 502 503 // 创建一本书请求 504 type CreateBookRequest struct { 505 state protoimpl.MessageState 506 sizeCache protoimpl.SizeCache 507 unknownFields protoimpl.UnknownFields 508 509 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 510 Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"` 511 } 512 513 func (x *CreateBookRequest) Reset() { 514 *x = CreateBookRequest{} 515 if protoimpl.UnsafeEnabled { 516 mi := &file_bookstore_proto_msgTypes[9] 517 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 518 ms.StoreMessageInfo(mi) 519 } 520 } 521 522 func (x *CreateBookRequest) String() string { 523 return protoimpl.X.MessageStringOf(x) 524 } 525 526 func (*CreateBookRequest) ProtoMessage() {} 527 528 func (x *CreateBookRequest) ProtoReflect() protoreflect.Message { 529 mi := &file_bookstore_proto_msgTypes[9] 530 if protoimpl.UnsafeEnabled && x != nil { 531 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 532 if ms.LoadMessageInfo() == nil { 533 ms.StoreMessageInfo(mi) 534 } 535 return ms 536 } 537 return mi.MessageOf(x) 538 } 539 540 // Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead. 541 func (*CreateBookRequest) Descriptor() ([]byte, []int) { 542 return file_bookstore_proto_rawDescGZIP(), []int{9} 543 } 544 545 func (x *CreateBookRequest) GetShelf() int64 { 546 if x != nil { 547 return x.Shelf 548 } 549 return 0 550 } 551 552 func (x *CreateBookRequest) GetBook() *Book { 553 if x != nil { 554 return x.Book 555 } 556 return nil 557 } 558 559 // 获取一本书请求 560 type GetBookRequest struct { 561 state protoimpl.MessageState 562 sizeCache protoimpl.SizeCache 563 unknownFields protoimpl.UnknownFields 564 565 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 566 Book int64 `protobuf:"varint,2,opt,name=book,proto3" json:"book,omitempty"` 567 } 568 569 func (x *GetBookRequest) Reset() { 570 *x = GetBookRequest{} 571 if protoimpl.UnsafeEnabled { 572 mi := &file_bookstore_proto_msgTypes[10] 573 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 574 ms.StoreMessageInfo(mi) 575 } 576 } 577 578 func (x *GetBookRequest) String() string { 579 return protoimpl.X.MessageStringOf(x) 580 } 581 582 func (*GetBookRequest) ProtoMessage() {} 583 584 func (x *GetBookRequest) ProtoReflect() protoreflect.Message { 585 mi := &file_bookstore_proto_msgTypes[10] 586 if protoimpl.UnsafeEnabled && x != nil { 587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 588 if ms.LoadMessageInfo() == nil { 589 ms.StoreMessageInfo(mi) 590 } 591 return ms 592 } 593 return mi.MessageOf(x) 594 } 595 596 // Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead. 597 func (*GetBookRequest) Descriptor() ([]byte, []int) { 598 return file_bookstore_proto_rawDescGZIP(), []int{10} 599 } 600 601 func (x *GetBookRequest) GetShelf() int64 { 602 if x != nil { 603 return x.Shelf 604 } 605 return 0 606 } 607 608 func (x *GetBookRequest) GetBook() int64 { 609 if x != nil { 610 return x.Book 611 } 612 return 0 613 } 614 615 // 删除一本书请求 616 type DeleteBookRequest struct { 617 state protoimpl.MessageState 618 sizeCache protoimpl.SizeCache 619 unknownFields protoimpl.UnknownFields 620 621 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 622 Book int64 `protobuf:"varint,2,opt,name=book,proto3" json:"book,omitempty"` 623 } 624 625 func (x *DeleteBookRequest) Reset() { 626 *x = DeleteBookRequest{} 627 if protoimpl.UnsafeEnabled { 628 mi := &file_bookstore_proto_msgTypes[11] 629 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 630 ms.StoreMessageInfo(mi) 631 } 632 } 633 634 func (x *DeleteBookRequest) String() string { 635 return protoimpl.X.MessageStringOf(x) 636 } 637 638 func (*DeleteBookRequest) ProtoMessage() {} 639 640 func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message { 641 mi := &file_bookstore_proto_msgTypes[11] 642 if protoimpl.UnsafeEnabled && x != nil { 643 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 644 if ms.LoadMessageInfo() == nil { 645 ms.StoreMessageInfo(mi) 646 } 647 return ms 648 } 649 return mi.MessageOf(x) 650 } 651 652 // Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead. 653 func (*DeleteBookRequest) Descriptor() ([]byte, []int) { 654 return file_bookstore_proto_rawDescGZIP(), []int{11} 655 } 656 657 func (x *DeleteBookRequest) GetShelf() int64 { 658 if x != nil { 659 return x.Shelf 660 } 661 return 0 662 } 663 664 func (x *DeleteBookRequest) GetBook() int64 { 665 if x != nil { 666 return x.Book 667 } 668 return 0 669 } 670 671 // 更新一本书请求 672 type UpdateBookRequest struct { 673 state protoimpl.MessageState 674 sizeCache protoimpl.SizeCache 675 unknownFields protoimpl.UnknownFields 676 677 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 678 Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"` 679 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 680 } 681 682 func (x *UpdateBookRequest) Reset() { 683 *x = UpdateBookRequest{} 684 if protoimpl.UnsafeEnabled { 685 mi := &file_bookstore_proto_msgTypes[12] 686 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 687 ms.StoreMessageInfo(mi) 688 } 689 } 690 691 func (x *UpdateBookRequest) String() string { 692 return protoimpl.X.MessageStringOf(x) 693 } 694 695 func (*UpdateBookRequest) ProtoMessage() {} 696 697 func (x *UpdateBookRequest) ProtoReflect() protoreflect.Message { 698 mi := &file_bookstore_proto_msgTypes[12] 699 if protoimpl.UnsafeEnabled && x != nil { 700 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 701 if ms.LoadMessageInfo() == nil { 702 ms.StoreMessageInfo(mi) 703 } 704 return ms 705 } 706 return mi.MessageOf(x) 707 } 708 709 // Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead. 710 func (*UpdateBookRequest) Descriptor() ([]byte, []int) { 711 return file_bookstore_proto_rawDescGZIP(), []int{12} 712 } 713 714 func (x *UpdateBookRequest) GetShelf() int64 { 715 if x != nil { 716 return x.Shelf 717 } 718 return 0 719 } 720 721 func (x *UpdateBookRequest) GetBook() *Book { 722 if x != nil { 723 return x.Book 724 } 725 return nil 726 } 727 728 func (x *UpdateBookRequest) GetUpdateMask() *fieldmaskpb.FieldMask { 729 if x != nil { 730 return x.UpdateMask 731 } 732 return nil 733 } 734 735 type UpdateBooksRequest struct { 736 state protoimpl.MessageState 737 sizeCache protoimpl.SizeCache 738 unknownFields protoimpl.UnknownFields 739 740 Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` 741 Books []*Book `protobuf:"bytes,2,rep,name=books,proto3" json:"books,omitempty"` 742 } 743 744 func (x *UpdateBooksRequest) Reset() { 745 *x = UpdateBooksRequest{} 746 if protoimpl.UnsafeEnabled { 747 mi := &file_bookstore_proto_msgTypes[13] 748 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 749 ms.StoreMessageInfo(mi) 750 } 751 } 752 753 func (x *UpdateBooksRequest) String() string { 754 return protoimpl.X.MessageStringOf(x) 755 } 756 757 func (*UpdateBooksRequest) ProtoMessage() {} 758 759 func (x *UpdateBooksRequest) ProtoReflect() protoreflect.Message { 760 mi := &file_bookstore_proto_msgTypes[13] 761 if protoimpl.UnsafeEnabled && x != nil { 762 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 763 if ms.LoadMessageInfo() == nil { 764 ms.StoreMessageInfo(mi) 765 } 766 return ms 767 } 768 return mi.MessageOf(x) 769 } 770 771 // Deprecated: Use UpdateBooksRequest.ProtoReflect.Descriptor instead. 772 func (*UpdateBooksRequest) Descriptor() ([]byte, []int) { 773 return file_bookstore_proto_rawDescGZIP(), []int{13} 774 } 775 776 func (x *UpdateBooksRequest) GetShelf() int64 { 777 if x != nil { 778 return x.Shelf 779 } 780 return 0 781 } 782 783 func (x *UpdateBooksRequest) GetBooks() []*Book { 784 if x != nil { 785 return x.Books 786 } 787 return nil 788 } 789 790 var File_bookstore_proto protoreflect.FileDescriptor 791 792 var file_bookstore_proto_rawDesc = []byte{ 793 0x0a, 0x0f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 794 0x6f, 0x12, 0x1f, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 795 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 796 0x72, 0x65, 0x1a, 0x1a, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 797 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 798 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 799 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 800 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 801 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 802 0x05, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 803 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x18, 804 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 805 0x04, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 806 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 807 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x14, 0x0a, 808 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 809 0x74, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 810 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 811 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 812 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 813 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x23, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 814 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 815 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x57, 0x0a, 0x13, 816 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x65, 0x6c, 0x76, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 817 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x68, 0x65, 0x6c, 0x76, 0x65, 0x73, 0x18, 0x01, 818 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 819 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 820 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x07, 0x73, 0x68, 821 0x65, 0x6c, 0x76, 0x65, 0x73, 0x22, 0x52, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 822 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x05, 0x73, 823 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x72, 0x70, 824 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 825 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 826 0x6c, 0x66, 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x22, 0x27, 0x0a, 0x0f, 0x47, 0x65, 0x74, 827 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 828 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, 0x65, 829 0x6c, 0x66, 0x22, 0x2a, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x65, 0x6c, 830 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 831 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x22, 0x28, 832 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 833 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 834 0x03, 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x22, 0x50, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 835 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 836 0x05, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 837 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 838 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 839 0x6f, 0x6f, 0x6b, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x22, 0x64, 0x0a, 0x11, 0x43, 0x72, 840 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 841 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 842 0x73, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x39, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 843 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 844 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 845 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 846 0x22, 0x3a, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 847 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 848 0x03, 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 849 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x3d, 0x0a, 0x11, 850 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 851 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 852 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x18, 853 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0xa1, 0x01, 0x0a, 0x11, 854 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 855 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 856 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x39, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x18, 857 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 858 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 859 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x62, 0x6f, 860 0x6f, 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 861 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 862 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 863 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 864 0x67, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 865 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x18, 0x01, 866 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x3b, 0x0a, 0x05, 0x62, 867 0x6f, 0x6f, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x72, 0x70, 868 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 869 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 870 0x6b, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x32, 0xf7, 0x0a, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 871 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x74, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 872 0x65, 0x6c, 0x76, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 873 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x34, 0x2e, 874 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 875 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 876 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x65, 0x6c, 0x76, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 877 0x6e, 0x73, 0x65, 0x22, 0x17, 0xca, 0xc1, 0x18, 0x13, 0x12, 0x08, 0x2f, 0x73, 0x68, 0x65, 0x6c, 878 0x76, 0x65, 0x73, 0x62, 0x07, 0x73, 0x68, 0x65, 0x6c, 0x76, 0x65, 0x73, 0x12, 0x99, 0x01, 0x0a, 879 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x33, 0x2e, 0x74, 880 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 881 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 882 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 883 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 884 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 885 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x22, 0x2d, 0xca, 0xc1, 0x18, 0x29, 0x22, 886 0x06, 0x2f, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x3a, 0x01, 0x2a, 0x5a, 0x1c, 0x22, 0x1a, 0x2f, 0x73, 887 0x68, 0x65, 0x6c, 0x66, 0x2f, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x6c, 888 0x66, 0x2e, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x7d, 0x12, 0x7a, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 889 0x68, 0x65, 0x6c, 0x66, 0x12, 0x30, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 890 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 891 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 892 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 893 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 894 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x22, 0x14, 895 0xca, 0xc1, 0x18, 0x10, 0x12, 0x0e, 0x2f, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x2f, 0x7b, 0x73, 0x68, 896 0x65, 0x6c, 0x66, 0x7d, 0x12, 0x70, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 897 0x65, 0x6c, 0x66, 0x12, 0x33, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 898 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 899 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x65, 0x6c, 900 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 901 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 902 0x22, 0x14, 0xca, 0xc1, 0x18, 0x10, 0x2a, 0x0e, 0x2f, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x2f, 0x7b, 903 0x73, 0x68, 0x65, 0x6c, 0x66, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x42, 904 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x31, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 905 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 906 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 907 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 908 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 909 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 910 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0xca, 0xc1, 0x18, 911 0x16, 0x12, 0x14, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x2f, 912 0x7b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 913 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x32, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 914 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 915 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 916 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x72, 0x70, 917 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 918 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 919 0x6b, 0x22, 0x1f, 0xca, 0xc1, 0x18, 0x1b, 0x22, 0x13, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x2f, 0x73, 920 0x68, 0x65, 0x6c, 0x66, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x7d, 0x3a, 0x04, 0x62, 0x6f, 921 0x6f, 0x6b, 0x12, 0x8c, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x2f, 922 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 923 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 924 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 925 0x25, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 926 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 927 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x22, 0x29, 0xca, 0xc1, 0x18, 0x25, 0x12, 0x23, 0x2f, 0x62, 928 0x6f, 0x6f, 0x6b, 0x2f, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x69, 0x64, 0x2f, 0x7b, 0x73, 0x68, 0x65, 929 0x6c, 0x66, 0x7d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x64, 0x2f, 0x7b, 0x62, 0x6f, 0x6f, 0x6b, 930 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 931 0x12, 0x32, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 932 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 933 0x72, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 934 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 935 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x29, 0xca, 0xc1, 936 0x18, 0x25, 0x2a, 0x23, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x2f, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x69, 937 0x64, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x7d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x64, 938 0x2f, 0x7b, 0x62, 0x6f, 0x6f, 0x6b, 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 939 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x32, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 940 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 941 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 942 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x72, 0x70, 943 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 944 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 945 0x6b, 0x22, 0x32, 0xca, 0xc1, 0x18, 0x2e, 0x32, 0x26, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x2f, 0x73, 946 0x68, 0x65, 0x6c, 0x66, 0x69, 0x64, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x7d, 0x2f, 0x62, 947 0x6f, 0x6f, 0x6b, 0x69, 0x64, 0x2f, 0x7b, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x69, 0x64, 0x7d, 0x3a, 948 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x9a, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 949 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x33, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 950 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2e, 0x62, 0x6f, 951 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x6f, 952 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x72, 0x70, 953 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 954 0x75, 0x6c, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 955 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 956 0xca, 0xc1, 0x18, 0x1e, 0x32, 0x15, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x2f, 0x73, 0x68, 0x65, 0x6c, 957 0x66, 0x69, 0x64, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x6c, 0x66, 0x7d, 0x3a, 0x05, 0x62, 0x6f, 0x6f, 958 0x6b, 0x73, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x6f, 959 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x70, 0x63, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x72, 960 0x70, 0x63, 0x2d, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x72, 961 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 962 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 963 } 964 965 var ( 966 file_bookstore_proto_rawDescOnce sync.Once 967 file_bookstore_proto_rawDescData = file_bookstore_proto_rawDesc 968 ) 969 970 func file_bookstore_proto_rawDescGZIP() []byte { 971 file_bookstore_proto_rawDescOnce.Do(func() { 972 file_bookstore_proto_rawDescData = protoimpl.X.CompressGZIP(file_bookstore_proto_rawDescData) 973 }) 974 return file_bookstore_proto_rawDescData 975 } 976 977 var file_bookstore_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 978 var file_bookstore_proto_goTypes = []interface{}{ 979 (*Shelf)(nil), // 0: trpc.examples.restful.bookstore.Shelf 980 (*Book)(nil), // 1: trpc.examples.restful.bookstore.Book 981 (*Content)(nil), // 2: trpc.examples.restful.bookstore.Content 982 (*ListShelvesResponse)(nil), // 3: trpc.examples.restful.bookstore.ListShelvesResponse 983 (*CreateShelfRequest)(nil), // 4: trpc.examples.restful.bookstore.CreateShelfRequest 984 (*GetShelfRequest)(nil), // 5: trpc.examples.restful.bookstore.GetShelfRequest 985 (*DeleteShelfRequest)(nil), // 6: trpc.examples.restful.bookstore.DeleteShelfRequest 986 (*ListBooksRequest)(nil), // 7: trpc.examples.restful.bookstore.ListBooksRequest 987 (*ListBooksResponse)(nil), // 8: trpc.examples.restful.bookstore.ListBooksResponse 988 (*CreateBookRequest)(nil), // 9: trpc.examples.restful.bookstore.CreateBookRequest 989 (*GetBookRequest)(nil), // 10: trpc.examples.restful.bookstore.GetBookRequest 990 (*DeleteBookRequest)(nil), // 11: trpc.examples.restful.bookstore.DeleteBookRequest 991 (*UpdateBookRequest)(nil), // 12: trpc.examples.restful.bookstore.UpdateBookRequest 992 (*UpdateBooksRequest)(nil), // 13: trpc.examples.restful.bookstore.UpdateBooksRequest 993 (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask 994 (*emptypb.Empty)(nil), // 15: google.protobuf.Empty 995 } 996 var file_bookstore_proto_depIdxs = []int32{ 997 2, // 0: trpc.examples.restful.bookstore.Book.content:type_name -> trpc.examples.restful.bookstore.Content 998 0, // 1: trpc.examples.restful.bookstore.ListShelvesResponse.shelves:type_name -> trpc.examples.restful.bookstore.Shelf 999 0, // 2: trpc.examples.restful.bookstore.CreateShelfRequest.shelf:type_name -> trpc.examples.restful.bookstore.Shelf 1000 1, // 3: trpc.examples.restful.bookstore.ListBooksResponse.books:type_name -> trpc.examples.restful.bookstore.Book 1001 1, // 4: trpc.examples.restful.bookstore.CreateBookRequest.book:type_name -> trpc.examples.restful.bookstore.Book 1002 1, // 5: trpc.examples.restful.bookstore.UpdateBookRequest.book:type_name -> trpc.examples.restful.bookstore.Book 1003 14, // 6: trpc.examples.restful.bookstore.UpdateBookRequest.update_mask:type_name -> google.protobuf.FieldMask 1004 1, // 7: trpc.examples.restful.bookstore.UpdateBooksRequest.books:type_name -> trpc.examples.restful.bookstore.Book 1005 15, // 8: trpc.examples.restful.bookstore.Bookstore.ListShelves:input_type -> google.protobuf.Empty 1006 4, // 9: trpc.examples.restful.bookstore.Bookstore.CreateShelf:input_type -> trpc.examples.restful.bookstore.CreateShelfRequest 1007 5, // 10: trpc.examples.restful.bookstore.Bookstore.GetShelf:input_type -> trpc.examples.restful.bookstore.GetShelfRequest 1008 6, // 11: trpc.examples.restful.bookstore.Bookstore.DeleteShelf:input_type -> trpc.examples.restful.bookstore.DeleteShelfRequest 1009 7, // 12: trpc.examples.restful.bookstore.Bookstore.ListBooks:input_type -> trpc.examples.restful.bookstore.ListBooksRequest 1010 9, // 13: trpc.examples.restful.bookstore.Bookstore.CreateBook:input_type -> trpc.examples.restful.bookstore.CreateBookRequest 1011 10, // 14: trpc.examples.restful.bookstore.Bookstore.GetBook:input_type -> trpc.examples.restful.bookstore.GetBookRequest 1012 11, // 15: trpc.examples.restful.bookstore.Bookstore.DeleteBook:input_type -> trpc.examples.restful.bookstore.DeleteBookRequest 1013 12, // 16: trpc.examples.restful.bookstore.Bookstore.UpdateBook:input_type -> trpc.examples.restful.bookstore.UpdateBookRequest 1014 13, // 17: trpc.examples.restful.bookstore.Bookstore.UpdateBooks:input_type -> trpc.examples.restful.bookstore.UpdateBooksRequest 1015 3, // 18: trpc.examples.restful.bookstore.Bookstore.ListShelves:output_type -> trpc.examples.restful.bookstore.ListShelvesResponse 1016 0, // 19: trpc.examples.restful.bookstore.Bookstore.CreateShelf:output_type -> trpc.examples.restful.bookstore.Shelf 1017 0, // 20: trpc.examples.restful.bookstore.Bookstore.GetShelf:output_type -> trpc.examples.restful.bookstore.Shelf 1018 15, // 21: trpc.examples.restful.bookstore.Bookstore.DeleteShelf:output_type -> google.protobuf.Empty 1019 8, // 22: trpc.examples.restful.bookstore.Bookstore.ListBooks:output_type -> trpc.examples.restful.bookstore.ListBooksResponse 1020 1, // 23: trpc.examples.restful.bookstore.Bookstore.CreateBook:output_type -> trpc.examples.restful.bookstore.Book 1021 1, // 24: trpc.examples.restful.bookstore.Bookstore.GetBook:output_type -> trpc.examples.restful.bookstore.Book 1022 15, // 25: trpc.examples.restful.bookstore.Bookstore.DeleteBook:output_type -> google.protobuf.Empty 1023 1, // 26: trpc.examples.restful.bookstore.Bookstore.UpdateBook:output_type -> trpc.examples.restful.bookstore.Book 1024 8, // 27: trpc.examples.restful.bookstore.Bookstore.UpdateBooks:output_type -> trpc.examples.restful.bookstore.ListBooksResponse 1025 18, // [18:28] is the sub-list for method output_type 1026 8, // [8:18] is the sub-list for method input_type 1027 8, // [8:8] is the sub-list for extension type_name 1028 8, // [8:8] is the sub-list for extension extendee 1029 0, // [0:8] is the sub-list for field type_name 1030 } 1031 1032 func init() { file_bookstore_proto_init() } 1033 func file_bookstore_proto_init() { 1034 if File_bookstore_proto != nil { 1035 return 1036 } 1037 if !protoimpl.UnsafeEnabled { 1038 file_bookstore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1039 switch v := v.(*Shelf); i { 1040 case 0: 1041 return &v.state 1042 case 1: 1043 return &v.sizeCache 1044 case 2: 1045 return &v.unknownFields 1046 default: 1047 return nil 1048 } 1049 } 1050 file_bookstore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1051 switch v := v.(*Book); i { 1052 case 0: 1053 return &v.state 1054 case 1: 1055 return &v.sizeCache 1056 case 2: 1057 return &v.unknownFields 1058 default: 1059 return nil 1060 } 1061 } 1062 file_bookstore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1063 switch v := v.(*Content); i { 1064 case 0: 1065 return &v.state 1066 case 1: 1067 return &v.sizeCache 1068 case 2: 1069 return &v.unknownFields 1070 default: 1071 return nil 1072 } 1073 } 1074 file_bookstore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1075 switch v := v.(*ListShelvesResponse); i { 1076 case 0: 1077 return &v.state 1078 case 1: 1079 return &v.sizeCache 1080 case 2: 1081 return &v.unknownFields 1082 default: 1083 return nil 1084 } 1085 } 1086 file_bookstore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1087 switch v := v.(*CreateShelfRequest); i { 1088 case 0: 1089 return &v.state 1090 case 1: 1091 return &v.sizeCache 1092 case 2: 1093 return &v.unknownFields 1094 default: 1095 return nil 1096 } 1097 } 1098 file_bookstore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1099 switch v := v.(*GetShelfRequest); i { 1100 case 0: 1101 return &v.state 1102 case 1: 1103 return &v.sizeCache 1104 case 2: 1105 return &v.unknownFields 1106 default: 1107 return nil 1108 } 1109 } 1110 file_bookstore_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1111 switch v := v.(*DeleteShelfRequest); i { 1112 case 0: 1113 return &v.state 1114 case 1: 1115 return &v.sizeCache 1116 case 2: 1117 return &v.unknownFields 1118 default: 1119 return nil 1120 } 1121 } 1122 file_bookstore_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1123 switch v := v.(*ListBooksRequest); i { 1124 case 0: 1125 return &v.state 1126 case 1: 1127 return &v.sizeCache 1128 case 2: 1129 return &v.unknownFields 1130 default: 1131 return nil 1132 } 1133 } 1134 file_bookstore_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1135 switch v := v.(*ListBooksResponse); i { 1136 case 0: 1137 return &v.state 1138 case 1: 1139 return &v.sizeCache 1140 case 2: 1141 return &v.unknownFields 1142 default: 1143 return nil 1144 } 1145 } 1146 file_bookstore_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1147 switch v := v.(*CreateBookRequest); i { 1148 case 0: 1149 return &v.state 1150 case 1: 1151 return &v.sizeCache 1152 case 2: 1153 return &v.unknownFields 1154 default: 1155 return nil 1156 } 1157 } 1158 file_bookstore_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1159 switch v := v.(*GetBookRequest); i { 1160 case 0: 1161 return &v.state 1162 case 1: 1163 return &v.sizeCache 1164 case 2: 1165 return &v.unknownFields 1166 default: 1167 return nil 1168 } 1169 } 1170 file_bookstore_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1171 switch v := v.(*DeleteBookRequest); i { 1172 case 0: 1173 return &v.state 1174 case 1: 1175 return &v.sizeCache 1176 case 2: 1177 return &v.unknownFields 1178 default: 1179 return nil 1180 } 1181 } 1182 file_bookstore_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1183 switch v := v.(*UpdateBookRequest); i { 1184 case 0: 1185 return &v.state 1186 case 1: 1187 return &v.sizeCache 1188 case 2: 1189 return &v.unknownFields 1190 default: 1191 return nil 1192 } 1193 } 1194 file_bookstore_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1195 switch v := v.(*UpdateBooksRequest); i { 1196 case 0: 1197 return &v.state 1198 case 1: 1199 return &v.sizeCache 1200 case 2: 1201 return &v.unknownFields 1202 default: 1203 return nil 1204 } 1205 } 1206 } 1207 type x struct{} 1208 out := protoimpl.TypeBuilder{ 1209 File: protoimpl.DescBuilder{ 1210 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1211 RawDescriptor: file_bookstore_proto_rawDesc, 1212 NumEnums: 0, 1213 NumMessages: 14, 1214 NumExtensions: 0, 1215 NumServices: 1, 1216 }, 1217 GoTypes: file_bookstore_proto_goTypes, 1218 DependencyIndexes: file_bookstore_proto_depIdxs, 1219 MessageInfos: file_bookstore_proto_msgTypes, 1220 }.Build() 1221 File_bookstore_proto = out.File 1222 file_bookstore_proto_rawDesc = nil 1223 file_bookstore_proto_goTypes = nil 1224 file_bookstore_proto_depIdxs = nil 1225 }