github.com/s7techlab/cckit@v0.10.5/examples/token/service/balance/balance.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: token/service/balance/balance.proto 6 7 package balance 8 9 import ( 10 context "context" 11 _ "github.com/mwitkow/go-proto-validators" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 emptypb "google.golang.org/protobuf/types/known/emptypb" 19 reflect "reflect" 20 sync "sync" 21 ) 22 23 const ( 24 // Verify that this generated code is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 26 // Verify that runtime/protoimpl is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 28 ) 29 30 type BalanceOperationType int32 31 32 const ( 33 BalanceOperationType_BALANCE_OPERATION_UNKNOWN BalanceOperationType = 0 34 BalanceOperationType_BALANCE_OPERATION_SET BalanceOperationType = 1 35 BalanceOperationType_BALANCE_OPERATION_ADD BalanceOperationType = 2 36 BalanceOperationType_BALANCE_OPERATION_SUB BalanceOperationType = 3 37 BalanceOperationType_BALANCE_OPERATION_TRANSFER BalanceOperationType = 4 38 ) 39 40 // Enum value maps for BalanceOperationType. 41 var ( 42 BalanceOperationType_name = map[int32]string{ 43 0: "BALANCE_OPERATION_UNKNOWN", 44 1: "BALANCE_OPERATION_SET", 45 2: "BALANCE_OPERATION_ADD", 46 3: "BALANCE_OPERATION_SUB", 47 4: "BALANCE_OPERATION_TRANSFER", 48 } 49 BalanceOperationType_value = map[string]int32{ 50 "BALANCE_OPERATION_UNKNOWN": 0, 51 "BALANCE_OPERATION_SET": 1, 52 "BALANCE_OPERATION_ADD": 2, 53 "BALANCE_OPERATION_SUB": 3, 54 "BALANCE_OPERATION_TRANSFER": 4, 55 } 56 ) 57 58 func (x BalanceOperationType) Enum() *BalanceOperationType { 59 p := new(BalanceOperationType) 60 *p = x 61 return p 62 } 63 64 func (x BalanceOperationType) String() string { 65 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 66 } 67 68 func (BalanceOperationType) Descriptor() protoreflect.EnumDescriptor { 69 return file_token_service_balance_balance_proto_enumTypes[0].Descriptor() 70 } 71 72 func (BalanceOperationType) Type() protoreflect.EnumType { 73 return &file_token_service_balance_balance_proto_enumTypes[0] 74 } 75 76 func (x BalanceOperationType) Number() protoreflect.EnumNumber { 77 return protoreflect.EnumNumber(x) 78 } 79 80 // Deprecated: Use BalanceOperationType.Descriptor instead. 81 func (BalanceOperationType) EnumDescriptor() ([]byte, []int) { 82 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{0} 83 } 84 85 type GetBalanceRequest struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 91 Token []string `protobuf:"bytes,2,rep,name=token,proto3" json:"token,omitempty"` 92 } 93 94 func (x *GetBalanceRequest) Reset() { 95 *x = GetBalanceRequest{} 96 if protoimpl.UnsafeEnabled { 97 mi := &file_token_service_balance_balance_proto_msgTypes[0] 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 ms.StoreMessageInfo(mi) 100 } 101 } 102 103 func (x *GetBalanceRequest) String() string { 104 return protoimpl.X.MessageStringOf(x) 105 } 106 107 func (*GetBalanceRequest) ProtoMessage() {} 108 109 func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message { 110 mi := &file_token_service_balance_balance_proto_msgTypes[0] 111 if protoimpl.UnsafeEnabled && x != nil { 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 if ms.LoadMessageInfo() == nil { 114 ms.StoreMessageInfo(mi) 115 } 116 return ms 117 } 118 return mi.MessageOf(x) 119 } 120 121 // Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead. 122 func (*GetBalanceRequest) Descriptor() ([]byte, []int) { 123 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{0} 124 } 125 126 func (x *GetBalanceRequest) GetAddress() string { 127 if x != nil { 128 return x.Address 129 } 130 return "" 131 } 132 133 func (x *GetBalanceRequest) GetToken() []string { 134 if x != nil { 135 return x.Token 136 } 137 return nil 138 } 139 140 type ListAddressBalancesRequest struct { 141 state protoimpl.MessageState 142 sizeCache protoimpl.SizeCache 143 unknownFields protoimpl.UnknownFields 144 145 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 146 } 147 148 func (x *ListAddressBalancesRequest) Reset() { 149 *x = ListAddressBalancesRequest{} 150 if protoimpl.UnsafeEnabled { 151 mi := &file_token_service_balance_balance_proto_msgTypes[1] 152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 153 ms.StoreMessageInfo(mi) 154 } 155 } 156 157 func (x *ListAddressBalancesRequest) String() string { 158 return protoimpl.X.MessageStringOf(x) 159 } 160 161 func (*ListAddressBalancesRequest) ProtoMessage() {} 162 163 func (x *ListAddressBalancesRequest) ProtoReflect() protoreflect.Message { 164 mi := &file_token_service_balance_balance_proto_msgTypes[1] 165 if protoimpl.UnsafeEnabled && x != nil { 166 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 167 if ms.LoadMessageInfo() == nil { 168 ms.StoreMessageInfo(mi) 169 } 170 return ms 171 } 172 return mi.MessageOf(x) 173 } 174 175 // Deprecated: Use ListAddressBalancesRequest.ProtoReflect.Descriptor instead. 176 func (*ListAddressBalancesRequest) Descriptor() ([]byte, []int) { 177 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{1} 178 } 179 180 func (x *ListAddressBalancesRequest) GetAddress() string { 181 if x != nil { 182 return x.Address 183 } 184 return "" 185 } 186 187 type TransferRequest struct { 188 state protoimpl.MessageState 189 sizeCache protoimpl.SizeCache 190 unknownFields protoimpl.UnknownFields 191 192 RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 193 Token []string `protobuf:"bytes,2,rep,name=token,proto3" json:"token,omitempty"` 194 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 195 Meta []*AddMetaRequest `protobuf:"bytes,4,rep,name=meta,proto3" json:"meta,omitempty"` 196 } 197 198 func (x *TransferRequest) Reset() { 199 *x = TransferRequest{} 200 if protoimpl.UnsafeEnabled { 201 mi := &file_token_service_balance_balance_proto_msgTypes[2] 202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 203 ms.StoreMessageInfo(mi) 204 } 205 } 206 207 func (x *TransferRequest) String() string { 208 return protoimpl.X.MessageStringOf(x) 209 } 210 211 func (*TransferRequest) ProtoMessage() {} 212 213 func (x *TransferRequest) ProtoReflect() protoreflect.Message { 214 mi := &file_token_service_balance_balance_proto_msgTypes[2] 215 if protoimpl.UnsafeEnabled && x != nil { 216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 217 if ms.LoadMessageInfo() == nil { 218 ms.StoreMessageInfo(mi) 219 } 220 return ms 221 } 222 return mi.MessageOf(x) 223 } 224 225 // Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. 226 func (*TransferRequest) Descriptor() ([]byte, []int) { 227 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{2} 228 } 229 230 func (x *TransferRequest) GetRecipientAddress() string { 231 if x != nil { 232 return x.RecipientAddress 233 } 234 return "" 235 } 236 237 func (x *TransferRequest) GetToken() []string { 238 if x != nil { 239 return x.Token 240 } 241 return nil 242 } 243 244 func (x *TransferRequest) GetAmount() uint64 { 245 if x != nil { 246 return x.Amount 247 } 248 return 0 249 } 250 251 func (x *TransferRequest) GetMeta() []*AddMetaRequest { 252 if x != nil { 253 return x.Meta 254 } 255 return nil 256 } 257 258 type TransferResponse struct { 259 state protoimpl.MessageState 260 sizeCache protoimpl.SizeCache 261 unknownFields protoimpl.UnknownFields 262 263 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 264 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 265 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 266 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 267 Meta []*Meta `protobuf:"bytes,5,rep,name=meta,proto3" json:"meta,omitempty"` 268 } 269 270 func (x *TransferResponse) Reset() { 271 *x = TransferResponse{} 272 if protoimpl.UnsafeEnabled { 273 mi := &file_token_service_balance_balance_proto_msgTypes[3] 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 ms.StoreMessageInfo(mi) 276 } 277 } 278 279 func (x *TransferResponse) String() string { 280 return protoimpl.X.MessageStringOf(x) 281 } 282 283 func (*TransferResponse) ProtoMessage() {} 284 285 func (x *TransferResponse) ProtoReflect() protoreflect.Message { 286 mi := &file_token_service_balance_balance_proto_msgTypes[3] 287 if protoimpl.UnsafeEnabled && x != nil { 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 if ms.LoadMessageInfo() == nil { 290 ms.StoreMessageInfo(mi) 291 } 292 return ms 293 } 294 return mi.MessageOf(x) 295 } 296 297 // Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead. 298 func (*TransferResponse) Descriptor() ([]byte, []int) { 299 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{3} 300 } 301 302 func (x *TransferResponse) GetSenderAddress() string { 303 if x != nil { 304 return x.SenderAddress 305 } 306 return "" 307 } 308 309 func (x *TransferResponse) GetRecipientAddress() string { 310 if x != nil { 311 return x.RecipientAddress 312 } 313 return "" 314 } 315 316 func (x *TransferResponse) GetToken() []string { 317 if x != nil { 318 return x.Token 319 } 320 return nil 321 } 322 323 func (x *TransferResponse) GetAmount() uint64 { 324 if x != nil { 325 return x.Amount 326 } 327 return 0 328 } 329 330 func (x *TransferResponse) GetMeta() []*Meta { 331 if x != nil { 332 return x.Meta 333 } 334 return nil 335 } 336 337 // Balance identifier 338 type BalanceId struct { 339 state protoimpl.MessageState 340 sizeCache protoimpl.SizeCache 341 unknownFields protoimpl.UnknownFields 342 343 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 344 Token []string `protobuf:"bytes,2,rep,name=token,proto3" json:"token,omitempty"` 345 } 346 347 func (x *BalanceId) Reset() { 348 *x = BalanceId{} 349 if protoimpl.UnsafeEnabled { 350 mi := &file_token_service_balance_balance_proto_msgTypes[4] 351 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 352 ms.StoreMessageInfo(mi) 353 } 354 } 355 356 func (x *BalanceId) String() string { 357 return protoimpl.X.MessageStringOf(x) 358 } 359 360 func (*BalanceId) ProtoMessage() {} 361 362 func (x *BalanceId) ProtoReflect() protoreflect.Message { 363 mi := &file_token_service_balance_balance_proto_msgTypes[4] 364 if protoimpl.UnsafeEnabled && x != nil { 365 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 366 if ms.LoadMessageInfo() == nil { 367 ms.StoreMessageInfo(mi) 368 } 369 return ms 370 } 371 return mi.MessageOf(x) 372 } 373 374 // Deprecated: Use BalanceId.ProtoReflect.Descriptor instead. 375 func (*BalanceId) Descriptor() ([]byte, []int) { 376 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{4} 377 } 378 379 func (x *BalanceId) GetAddress() string { 380 if x != nil { 381 return x.Address 382 } 383 return "" 384 } 385 386 func (x *BalanceId) GetToken() []string { 387 if x != nil { 388 return x.Token 389 } 390 return nil 391 } 392 393 // Balance 394 type Balance struct { 395 state protoimpl.MessageState 396 sizeCache protoimpl.SizeCache 397 unknownFields protoimpl.UnknownFields 398 399 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 400 Token []string `protobuf:"bytes,2,rep,name=token,proto3" json:"token,omitempty"` 401 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 402 } 403 404 func (x *Balance) Reset() { 405 *x = Balance{} 406 if protoimpl.UnsafeEnabled { 407 mi := &file_token_service_balance_balance_proto_msgTypes[5] 408 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 409 ms.StoreMessageInfo(mi) 410 } 411 } 412 413 func (x *Balance) String() string { 414 return protoimpl.X.MessageStringOf(x) 415 } 416 417 func (*Balance) ProtoMessage() {} 418 419 func (x *Balance) ProtoReflect() protoreflect.Message { 420 mi := &file_token_service_balance_balance_proto_msgTypes[5] 421 if protoimpl.UnsafeEnabled && x != nil { 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 if ms.LoadMessageInfo() == nil { 424 ms.StoreMessageInfo(mi) 425 } 426 return ms 427 } 428 return mi.MessageOf(x) 429 } 430 431 // Deprecated: Use Balance.ProtoReflect.Descriptor instead. 432 func (*Balance) Descriptor() ([]byte, []int) { 433 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{5} 434 } 435 436 func (x *Balance) GetAddress() string { 437 if x != nil { 438 return x.Address 439 } 440 return "" 441 } 442 443 func (x *Balance) GetToken() []string { 444 if x != nil { 445 return x.Token 446 } 447 return nil 448 } 449 450 func (x *Balance) GetAmount() uint64 { 451 if x != nil { 452 return x.Amount 453 } 454 return 0 455 } 456 457 // List 458 type Balances struct { 459 state protoimpl.MessageState 460 sizeCache protoimpl.SizeCache 461 unknownFields protoimpl.UnknownFields 462 463 Items []*Balance `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` 464 } 465 466 func (x *Balances) Reset() { 467 *x = Balances{} 468 if protoimpl.UnsafeEnabled { 469 mi := &file_token_service_balance_balance_proto_msgTypes[6] 470 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 471 ms.StoreMessageInfo(mi) 472 } 473 } 474 475 func (x *Balances) String() string { 476 return protoimpl.X.MessageStringOf(x) 477 } 478 479 func (*Balances) ProtoMessage() {} 480 481 func (x *Balances) ProtoReflect() protoreflect.Message { 482 mi := &file_token_service_balance_balance_proto_msgTypes[6] 483 if protoimpl.UnsafeEnabled && x != nil { 484 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 485 if ms.LoadMessageInfo() == nil { 486 ms.StoreMessageInfo(mi) 487 } 488 return ms 489 } 490 return mi.MessageOf(x) 491 } 492 493 // Deprecated: Use Balances.ProtoReflect.Descriptor instead. 494 func (*Balances) Descriptor() ([]byte, []int) { 495 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{6} 496 } 497 498 func (x *Balances) GetItems() []*Balance { 499 if x != nil { 500 return x.Items 501 } 502 return nil 503 } 504 505 type BalanceOperation struct { 506 state protoimpl.MessageState 507 sizeCache protoimpl.SizeCache 508 unknownFields protoimpl.UnknownFields 509 510 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 511 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 512 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 513 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 514 } 515 516 func (x *BalanceOperation) Reset() { 517 *x = BalanceOperation{} 518 if protoimpl.UnsafeEnabled { 519 mi := &file_token_service_balance_balance_proto_msgTypes[7] 520 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 521 ms.StoreMessageInfo(mi) 522 } 523 } 524 525 func (x *BalanceOperation) String() string { 526 return protoimpl.X.MessageStringOf(x) 527 } 528 529 func (*BalanceOperation) ProtoMessage() {} 530 531 func (x *BalanceOperation) ProtoReflect() protoreflect.Message { 532 mi := &file_token_service_balance_balance_proto_msgTypes[7] 533 if protoimpl.UnsafeEnabled && x != nil { 534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 535 if ms.LoadMessageInfo() == nil { 536 ms.StoreMessageInfo(mi) 537 } 538 return ms 539 } 540 return mi.MessageOf(x) 541 } 542 543 // Deprecated: Use BalanceOperation.ProtoReflect.Descriptor instead. 544 func (*BalanceOperation) Descriptor() ([]byte, []int) { 545 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{7} 546 } 547 548 func (x *BalanceOperation) GetSenderAddress() string { 549 if x != nil { 550 return x.SenderAddress 551 } 552 return "" 553 } 554 555 func (x *BalanceOperation) GetRecipientAddress() string { 556 if x != nil { 557 return x.RecipientAddress 558 } 559 return "" 560 } 561 562 func (x *BalanceOperation) GetToken() []string { 563 if x != nil { 564 return x.Token 565 } 566 return nil 567 } 568 569 func (x *BalanceOperation) GetAmount() uint64 { 570 if x != nil { 571 return x.Amount 572 } 573 return 0 574 } 575 576 // Transferred event is emitted when Transfer method has been invoked 577 type Transferred struct { 578 state protoimpl.MessageState 579 sizeCache protoimpl.SizeCache 580 unknownFields protoimpl.UnknownFields 581 582 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 583 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 584 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 585 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 586 Meta []*Meta `protobuf:"bytes,5,rep,name=meta,proto3" json:"meta,omitempty"` 587 } 588 589 func (x *Transferred) Reset() { 590 *x = Transferred{} 591 if protoimpl.UnsafeEnabled { 592 mi := &file_token_service_balance_balance_proto_msgTypes[8] 593 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 594 ms.StoreMessageInfo(mi) 595 } 596 } 597 598 func (x *Transferred) String() string { 599 return protoimpl.X.MessageStringOf(x) 600 } 601 602 func (*Transferred) ProtoMessage() {} 603 604 func (x *Transferred) ProtoReflect() protoreflect.Message { 605 mi := &file_token_service_balance_balance_proto_msgTypes[8] 606 if protoimpl.UnsafeEnabled && x != nil { 607 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 608 if ms.LoadMessageInfo() == nil { 609 ms.StoreMessageInfo(mi) 610 } 611 return ms 612 } 613 return mi.MessageOf(x) 614 } 615 616 // Deprecated: Use Transferred.ProtoReflect.Descriptor instead. 617 func (*Transferred) Descriptor() ([]byte, []int) { 618 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{8} 619 } 620 621 func (x *Transferred) GetSenderAddress() string { 622 if x != nil { 623 return x.SenderAddress 624 } 625 return "" 626 } 627 628 func (x *Transferred) GetRecipientAddress() string { 629 if x != nil { 630 return x.RecipientAddress 631 } 632 return "" 633 } 634 635 func (x *Transferred) GetToken() []string { 636 if x != nil { 637 return x.Token 638 } 639 return nil 640 } 641 642 func (x *Transferred) GetAmount() uint64 { 643 if x != nil { 644 return x.Amount 645 } 646 return 0 647 } 648 649 func (x *Transferred) GetMeta() []*Meta { 650 if x != nil { 651 return x.Meta 652 } 653 return nil 654 } 655 656 type AddMetaRequest struct { 657 state protoimpl.MessageState 658 sizeCache protoimpl.SizeCache 659 unknownFields protoimpl.UnknownFields 660 661 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 662 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 663 } 664 665 func (x *AddMetaRequest) Reset() { 666 *x = AddMetaRequest{} 667 if protoimpl.UnsafeEnabled { 668 mi := &file_token_service_balance_balance_proto_msgTypes[9] 669 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 670 ms.StoreMessageInfo(mi) 671 } 672 } 673 674 func (x *AddMetaRequest) String() string { 675 return protoimpl.X.MessageStringOf(x) 676 } 677 678 func (*AddMetaRequest) ProtoMessage() {} 679 680 func (x *AddMetaRequest) ProtoReflect() protoreflect.Message { 681 mi := &file_token_service_balance_balance_proto_msgTypes[9] 682 if protoimpl.UnsafeEnabled && x != nil { 683 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 684 if ms.LoadMessageInfo() == nil { 685 ms.StoreMessageInfo(mi) 686 } 687 return ms 688 } 689 return mi.MessageOf(x) 690 } 691 692 // Deprecated: Use AddMetaRequest.ProtoReflect.Descriptor instead. 693 func (*AddMetaRequest) Descriptor() ([]byte, []int) { 694 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{9} 695 } 696 697 func (x *AddMetaRequest) GetKey() string { 698 if x != nil { 699 return x.Key 700 } 701 return "" 702 } 703 704 func (x *AddMetaRequest) GetValue() string { 705 if x != nil { 706 return x.Value 707 } 708 return "" 709 } 710 711 type Meta struct { 712 state protoimpl.MessageState 713 sizeCache protoimpl.SizeCache 714 unknownFields protoimpl.UnknownFields 715 716 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 717 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 718 } 719 720 func (x *Meta) Reset() { 721 *x = Meta{} 722 if protoimpl.UnsafeEnabled { 723 mi := &file_token_service_balance_balance_proto_msgTypes[10] 724 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 725 ms.StoreMessageInfo(mi) 726 } 727 } 728 729 func (x *Meta) String() string { 730 return protoimpl.X.MessageStringOf(x) 731 } 732 733 func (*Meta) ProtoMessage() {} 734 735 func (x *Meta) ProtoReflect() protoreflect.Message { 736 mi := &file_token_service_balance_balance_proto_msgTypes[10] 737 if protoimpl.UnsafeEnabled && x != nil { 738 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 739 if ms.LoadMessageInfo() == nil { 740 ms.StoreMessageInfo(mi) 741 } 742 return ms 743 } 744 return mi.MessageOf(x) 745 } 746 747 // Deprecated: Use Meta.ProtoReflect.Descriptor instead. 748 func (*Meta) Descriptor() ([]byte, []int) { 749 return file_token_service_balance_balance_proto_rawDescGZIP(), []int{10} 750 } 751 752 func (x *Meta) GetKey() string { 753 if x != nil { 754 return x.Key 755 } 756 return "" 757 } 758 759 func (x *Meta) GetValue() string { 760 if x != nil { 761 return x.Value 762 } 763 return "" 764 } 765 766 var File_token_service_balance_balance_proto protoreflect.FileDescriptor 767 768 var file_token_service_balance_balance_proto_rawDesc = []byte{ 769 0x0a, 0x23, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 770 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 771 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 772 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 773 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x1c, 0x67, 774 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 775 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 776 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 777 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 778 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, 779 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 780 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 781 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x07, 0x61, 0x64, 782 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 783 0x02, 0x58, 0x01, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 784 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 785 0x65, 0x6e, 0x22, 0x3e, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 786 0x73, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 787 0x12, 0x20, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 788 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 789 0x73, 0x73, 0x22, 0xc8, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 790 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 791 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 792 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 793 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 794 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 795 0x6e, 0x12, 0x1e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 796 0x04, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x10, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 797 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 798 0x36, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 799 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 800 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x74, 0x61, 801 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0xd6, 0x01, 802 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 803 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 804 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 805 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 806 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 807 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 808 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 809 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 810 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 811 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 812 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 813 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 814 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 815 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x09, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 816 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 817 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 818 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 819 0x6b, 0x65, 0x6e, 0x22, 0x51, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 820 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 821 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 822 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 823 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 824 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 825 0x65, 0x73, 0x12, 0x45, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 826 0x0b, 0x32, 0x2f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 827 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 828 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 829 0x63, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x10, 0x42, 0x61, 830 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 831 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 832 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 833 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 834 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 835 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 836 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 837 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 838 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 839 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 840 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 841 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 842 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 843 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 844 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 845 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 846 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 847 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 848 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 849 0x32, 0x2c, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 850 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 851 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, 852 0x6d, 0x65, 0x74, 0x61, 0x22, 0x48, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x52, 853 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 854 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 855 0x12, 0x1c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 856 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2e, 857 0x0a, 0x04, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 858 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 859 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xa6, 860 0x01, 0x0a, 0x14, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 861 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x41, 0x4c, 0x41, 0x4e, 862 0x43, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 863 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 864 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x54, 0x10, 865 0x01, 0x12, 0x19, 0x0a, 0x15, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4f, 0x50, 0x45, 866 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x44, 0x44, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 867 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 868 0x4e, 0x5f, 0x53, 0x55, 0x42, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x41, 0x4c, 0x41, 0x4e, 869 0x43, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x41, 870 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x04, 0x32, 0xf6, 0x04, 0x0a, 0x0e, 0x42, 0x61, 0x6c, 0x61, 871 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa3, 0x01, 0x0a, 0x0a, 0x47, 872 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x2e, 0x65, 0x78, 0x61, 0x6d, 873 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 874 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 875 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 876 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 877 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 878 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x42, 0x61, 879 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 880 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 881 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x7d, 882 0x12, 0x71, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 883 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 884 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 885 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 886 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 887 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 888 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 889 0x63, 0x65, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 890 0x65, 0x73, 0x73, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x42, 0x2e, 0x65, 0x78, 891 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 892 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 893 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 894 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 895 0x30, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 896 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 897 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 898 0x73, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 899 0x6e, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 900 0x65, 0x73, 0x73, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 901 0x72, 0x12, 0x37, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 902 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 903 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 904 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x65, 0x78, 0x61, 905 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 906 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 907 0x6e, 0x63, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 908 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x74, 909 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x3a, 0x01, 0x2a, 910 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 911 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 0x65, 912 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 913 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 914 0x72, 0x6f, 0x74, 0x6f, 0x33, 915 } 916 917 var ( 918 file_token_service_balance_balance_proto_rawDescOnce sync.Once 919 file_token_service_balance_balance_proto_rawDescData = file_token_service_balance_balance_proto_rawDesc 920 ) 921 922 func file_token_service_balance_balance_proto_rawDescGZIP() []byte { 923 file_token_service_balance_balance_proto_rawDescOnce.Do(func() { 924 file_token_service_balance_balance_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_service_balance_balance_proto_rawDescData) 925 }) 926 return file_token_service_balance_balance_proto_rawDescData 927 } 928 929 var file_token_service_balance_balance_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 930 var file_token_service_balance_balance_proto_msgTypes = make([]protoimpl.MessageInfo, 11) 931 var file_token_service_balance_balance_proto_goTypes = []interface{}{ 932 (BalanceOperationType)(0), // 0: examples.erc20_service.service.balance.BalanceOperationType 933 (*GetBalanceRequest)(nil), // 1: examples.erc20_service.service.balance.GetBalanceRequest 934 (*ListAddressBalancesRequest)(nil), // 2: examples.erc20_service.service.balance.ListAddressBalancesRequest 935 (*TransferRequest)(nil), // 3: examples.erc20_service.service.balance.TransferRequest 936 (*TransferResponse)(nil), // 4: examples.erc20_service.service.balance.TransferResponse 937 (*BalanceId)(nil), // 5: examples.erc20_service.service.balance.BalanceId 938 (*Balance)(nil), // 6: examples.erc20_service.service.balance.Balance 939 (*Balances)(nil), // 7: examples.erc20_service.service.balance.Balances 940 (*BalanceOperation)(nil), // 8: examples.erc20_service.service.balance.BalanceOperation 941 (*Transferred)(nil), // 9: examples.erc20_service.service.balance.Transferred 942 (*AddMetaRequest)(nil), // 10: examples.erc20_service.service.balance.AddMetaRequest 943 (*Meta)(nil), // 11: examples.erc20_service.service.balance.Meta 944 (*emptypb.Empty)(nil), // 12: google.protobuf.Empty 945 } 946 var file_token_service_balance_balance_proto_depIdxs = []int32{ 947 10, // 0: examples.erc20_service.service.balance.TransferRequest.meta:type_name -> examples.erc20_service.service.balance.AddMetaRequest 948 11, // 1: examples.erc20_service.service.balance.TransferResponse.meta:type_name -> examples.erc20_service.service.balance.Meta 949 6, // 2: examples.erc20_service.service.balance.Balances.items:type_name -> examples.erc20_service.service.balance.Balance 950 11, // 3: examples.erc20_service.service.balance.Transferred.meta:type_name -> examples.erc20_service.service.balance.Meta 951 1, // 4: examples.erc20_service.service.balance.BalanceService.GetBalance:input_type -> examples.erc20_service.service.balance.GetBalanceRequest 952 12, // 5: examples.erc20_service.service.balance.BalanceService.ListBalances:input_type -> google.protobuf.Empty 953 2, // 6: examples.erc20_service.service.balance.BalanceService.ListAddressBalances:input_type -> examples.erc20_service.service.balance.ListAddressBalancesRequest 954 3, // 7: examples.erc20_service.service.balance.BalanceService.Transfer:input_type -> examples.erc20_service.service.balance.TransferRequest 955 6, // 8: examples.erc20_service.service.balance.BalanceService.GetBalance:output_type -> examples.erc20_service.service.balance.Balance 956 7, // 9: examples.erc20_service.service.balance.BalanceService.ListBalances:output_type -> examples.erc20_service.service.balance.Balances 957 7, // 10: examples.erc20_service.service.balance.BalanceService.ListAddressBalances:output_type -> examples.erc20_service.service.balance.Balances 958 4, // 11: examples.erc20_service.service.balance.BalanceService.Transfer:output_type -> examples.erc20_service.service.balance.TransferResponse 959 8, // [8:12] is the sub-list for method output_type 960 4, // [4:8] is the sub-list for method input_type 961 4, // [4:4] is the sub-list for extension type_name 962 4, // [4:4] is the sub-list for extension extendee 963 0, // [0:4] is the sub-list for field type_name 964 } 965 966 func init() { file_token_service_balance_balance_proto_init() } 967 func file_token_service_balance_balance_proto_init() { 968 if File_token_service_balance_balance_proto != nil { 969 return 970 } 971 if !protoimpl.UnsafeEnabled { 972 file_token_service_balance_balance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 973 switch v := v.(*GetBalanceRequest); i { 974 case 0: 975 return &v.state 976 case 1: 977 return &v.sizeCache 978 case 2: 979 return &v.unknownFields 980 default: 981 return nil 982 } 983 } 984 file_token_service_balance_balance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 985 switch v := v.(*ListAddressBalancesRequest); i { 986 case 0: 987 return &v.state 988 case 1: 989 return &v.sizeCache 990 case 2: 991 return &v.unknownFields 992 default: 993 return nil 994 } 995 } 996 file_token_service_balance_balance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 997 switch v := v.(*TransferRequest); i { 998 case 0: 999 return &v.state 1000 case 1: 1001 return &v.sizeCache 1002 case 2: 1003 return &v.unknownFields 1004 default: 1005 return nil 1006 } 1007 } 1008 file_token_service_balance_balance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1009 switch v := v.(*TransferResponse); i { 1010 case 0: 1011 return &v.state 1012 case 1: 1013 return &v.sizeCache 1014 case 2: 1015 return &v.unknownFields 1016 default: 1017 return nil 1018 } 1019 } 1020 file_token_service_balance_balance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1021 switch v := v.(*BalanceId); i { 1022 case 0: 1023 return &v.state 1024 case 1: 1025 return &v.sizeCache 1026 case 2: 1027 return &v.unknownFields 1028 default: 1029 return nil 1030 } 1031 } 1032 file_token_service_balance_balance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1033 switch v := v.(*Balance); i { 1034 case 0: 1035 return &v.state 1036 case 1: 1037 return &v.sizeCache 1038 case 2: 1039 return &v.unknownFields 1040 default: 1041 return nil 1042 } 1043 } 1044 file_token_service_balance_balance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1045 switch v := v.(*Balances); i { 1046 case 0: 1047 return &v.state 1048 case 1: 1049 return &v.sizeCache 1050 case 2: 1051 return &v.unknownFields 1052 default: 1053 return nil 1054 } 1055 } 1056 file_token_service_balance_balance_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1057 switch v := v.(*BalanceOperation); i { 1058 case 0: 1059 return &v.state 1060 case 1: 1061 return &v.sizeCache 1062 case 2: 1063 return &v.unknownFields 1064 default: 1065 return nil 1066 } 1067 } 1068 file_token_service_balance_balance_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1069 switch v := v.(*Transferred); i { 1070 case 0: 1071 return &v.state 1072 case 1: 1073 return &v.sizeCache 1074 case 2: 1075 return &v.unknownFields 1076 default: 1077 return nil 1078 } 1079 } 1080 file_token_service_balance_balance_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1081 switch v := v.(*AddMetaRequest); i { 1082 case 0: 1083 return &v.state 1084 case 1: 1085 return &v.sizeCache 1086 case 2: 1087 return &v.unknownFields 1088 default: 1089 return nil 1090 } 1091 } 1092 file_token_service_balance_balance_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1093 switch v := v.(*Meta); i { 1094 case 0: 1095 return &v.state 1096 case 1: 1097 return &v.sizeCache 1098 case 2: 1099 return &v.unknownFields 1100 default: 1101 return nil 1102 } 1103 } 1104 } 1105 type x struct{} 1106 out := protoimpl.TypeBuilder{ 1107 File: protoimpl.DescBuilder{ 1108 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1109 RawDescriptor: file_token_service_balance_balance_proto_rawDesc, 1110 NumEnums: 1, 1111 NumMessages: 11, 1112 NumExtensions: 0, 1113 NumServices: 1, 1114 }, 1115 GoTypes: file_token_service_balance_balance_proto_goTypes, 1116 DependencyIndexes: file_token_service_balance_balance_proto_depIdxs, 1117 EnumInfos: file_token_service_balance_balance_proto_enumTypes, 1118 MessageInfos: file_token_service_balance_balance_proto_msgTypes, 1119 }.Build() 1120 File_token_service_balance_balance_proto = out.File 1121 file_token_service_balance_balance_proto_rawDesc = nil 1122 file_token_service_balance_balance_proto_goTypes = nil 1123 file_token_service_balance_balance_proto_depIdxs = nil 1124 } 1125 1126 // Reference imports to suppress errors if they are not otherwise used. 1127 var _ context.Context 1128 var _ grpc.ClientConnInterface 1129 1130 // This is a compile-time assertion to ensure that this generated file 1131 // is compatible with the grpc package it is being compiled against. 1132 const _ = grpc.SupportPackageIsVersion6 1133 1134 // BalanceServiceClient is the client API for BalanceService service. 1135 // 1136 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1137 type BalanceServiceClient interface { 1138 // Returns the amount of tokens owned by account. 1139 GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*Balance, error) 1140 ListBalances(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Balances, error) 1141 ListAddressBalances(ctx context.Context, in *ListAddressBalancesRequest, opts ...grpc.CallOption) (*Balances, error) 1142 // Moves amount tokens from the caller’s account to recipient. 1143 // Returns transfer details 1144 Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) 1145 } 1146 1147 type balanceServiceClient struct { 1148 cc grpc.ClientConnInterface 1149 } 1150 1151 func NewBalanceServiceClient(cc grpc.ClientConnInterface) BalanceServiceClient { 1152 return &balanceServiceClient{cc} 1153 } 1154 1155 func (c *balanceServiceClient) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*Balance, error) { 1156 out := new(Balance) 1157 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.balance.BalanceService/GetBalance", in, out, opts...) 1158 if err != nil { 1159 return nil, err 1160 } 1161 return out, nil 1162 } 1163 1164 func (c *balanceServiceClient) ListBalances(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Balances, error) { 1165 out := new(Balances) 1166 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.balance.BalanceService/ListBalances", in, out, opts...) 1167 if err != nil { 1168 return nil, err 1169 } 1170 return out, nil 1171 } 1172 1173 func (c *balanceServiceClient) ListAddressBalances(ctx context.Context, in *ListAddressBalancesRequest, opts ...grpc.CallOption) (*Balances, error) { 1174 out := new(Balances) 1175 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.balance.BalanceService/ListAddressBalances", in, out, opts...) 1176 if err != nil { 1177 return nil, err 1178 } 1179 return out, nil 1180 } 1181 1182 func (c *balanceServiceClient) Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) { 1183 out := new(TransferResponse) 1184 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.balance.BalanceService/Transfer", in, out, opts...) 1185 if err != nil { 1186 return nil, err 1187 } 1188 return out, nil 1189 } 1190 1191 // BalanceServiceServer is the server API for BalanceService service. 1192 type BalanceServiceServer interface { 1193 // Returns the amount of tokens owned by account. 1194 GetBalance(context.Context, *GetBalanceRequest) (*Balance, error) 1195 ListBalances(context.Context, *emptypb.Empty) (*Balances, error) 1196 ListAddressBalances(context.Context, *ListAddressBalancesRequest) (*Balances, error) 1197 // Moves amount tokens from the caller’s account to recipient. 1198 // Returns transfer details 1199 Transfer(context.Context, *TransferRequest) (*TransferResponse, error) 1200 } 1201 1202 // UnimplementedBalanceServiceServer can be embedded to have forward compatible implementations. 1203 type UnimplementedBalanceServiceServer struct { 1204 } 1205 1206 func (*UnimplementedBalanceServiceServer) GetBalance(context.Context, *GetBalanceRequest) (*Balance, error) { 1207 return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented") 1208 } 1209 func (*UnimplementedBalanceServiceServer) ListBalances(context.Context, *emptypb.Empty) (*Balances, error) { 1210 return nil, status.Errorf(codes.Unimplemented, "method ListBalances not implemented") 1211 } 1212 func (*UnimplementedBalanceServiceServer) ListAddressBalances(context.Context, *ListAddressBalancesRequest) (*Balances, error) { 1213 return nil, status.Errorf(codes.Unimplemented, "method ListAddressBalances not implemented") 1214 } 1215 func (*UnimplementedBalanceServiceServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error) { 1216 return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") 1217 } 1218 1219 func RegisterBalanceServiceServer(s *grpc.Server, srv BalanceServiceServer) { 1220 s.RegisterService(&_BalanceService_serviceDesc, srv) 1221 } 1222 1223 func _BalanceService_GetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1224 in := new(GetBalanceRequest) 1225 if err := dec(in); err != nil { 1226 return nil, err 1227 } 1228 if interceptor == nil { 1229 return srv.(BalanceServiceServer).GetBalance(ctx, in) 1230 } 1231 info := &grpc.UnaryServerInfo{ 1232 Server: srv, 1233 FullMethod: "/examples.erc20_service.service.balance.BalanceService/GetBalance", 1234 } 1235 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1236 return srv.(BalanceServiceServer).GetBalance(ctx, req.(*GetBalanceRequest)) 1237 } 1238 return interceptor(ctx, in, info, handler) 1239 } 1240 1241 func _BalanceService_ListBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1242 in := new(emptypb.Empty) 1243 if err := dec(in); err != nil { 1244 return nil, err 1245 } 1246 if interceptor == nil { 1247 return srv.(BalanceServiceServer).ListBalances(ctx, in) 1248 } 1249 info := &grpc.UnaryServerInfo{ 1250 Server: srv, 1251 FullMethod: "/examples.erc20_service.service.balance.BalanceService/ListBalances", 1252 } 1253 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1254 return srv.(BalanceServiceServer).ListBalances(ctx, req.(*emptypb.Empty)) 1255 } 1256 return interceptor(ctx, in, info, handler) 1257 } 1258 1259 func _BalanceService_ListAddressBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1260 in := new(ListAddressBalancesRequest) 1261 if err := dec(in); err != nil { 1262 return nil, err 1263 } 1264 if interceptor == nil { 1265 return srv.(BalanceServiceServer).ListAddressBalances(ctx, in) 1266 } 1267 info := &grpc.UnaryServerInfo{ 1268 Server: srv, 1269 FullMethod: "/examples.erc20_service.service.balance.BalanceService/ListAddressBalances", 1270 } 1271 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1272 return srv.(BalanceServiceServer).ListAddressBalances(ctx, req.(*ListAddressBalancesRequest)) 1273 } 1274 return interceptor(ctx, in, info, handler) 1275 } 1276 1277 func _BalanceService_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1278 in := new(TransferRequest) 1279 if err := dec(in); err != nil { 1280 return nil, err 1281 } 1282 if interceptor == nil { 1283 return srv.(BalanceServiceServer).Transfer(ctx, in) 1284 } 1285 info := &grpc.UnaryServerInfo{ 1286 Server: srv, 1287 FullMethod: "/examples.erc20_service.service.balance.BalanceService/Transfer", 1288 } 1289 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1290 return srv.(BalanceServiceServer).Transfer(ctx, req.(*TransferRequest)) 1291 } 1292 return interceptor(ctx, in, info, handler) 1293 } 1294 1295 var _BalanceService_serviceDesc = grpc.ServiceDesc{ 1296 ServiceName: "examples.erc20_service.service.balance.BalanceService", 1297 HandlerType: (*BalanceServiceServer)(nil), 1298 Methods: []grpc.MethodDesc{ 1299 { 1300 MethodName: "GetBalance", 1301 Handler: _BalanceService_GetBalance_Handler, 1302 }, 1303 { 1304 MethodName: "ListBalances", 1305 Handler: _BalanceService_ListBalances_Handler, 1306 }, 1307 { 1308 MethodName: "ListAddressBalances", 1309 Handler: _BalanceService_ListAddressBalances_Handler, 1310 }, 1311 { 1312 MethodName: "Transfer", 1313 Handler: _BalanceService_Transfer_Handler, 1314 }, 1315 }, 1316 Streams: []grpc.StreamDesc{}, 1317 Metadata: "token/service/balance/balance.proto", 1318 }