github.com/s7techlab/cckit@v0.10.5/examples/token/service/allowance/allowance.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/allowance/allowance.proto 6 7 package allowance 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 _ "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 AllowanceRequest struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 36 SpenderAddress string `protobuf:"bytes,2,opt,name=spender_address,json=spenderAddress,proto3" json:"spender_address,omitempty"` 37 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 38 } 39 40 func (x *AllowanceRequest) Reset() { 41 *x = AllowanceRequest{} 42 if protoimpl.UnsafeEnabled { 43 mi := &file_token_service_allowance_allowance_proto_msgTypes[0] 44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 45 ms.StoreMessageInfo(mi) 46 } 47 } 48 49 func (x *AllowanceRequest) String() string { 50 return protoimpl.X.MessageStringOf(x) 51 } 52 53 func (*AllowanceRequest) ProtoMessage() {} 54 55 func (x *AllowanceRequest) ProtoReflect() protoreflect.Message { 56 mi := &file_token_service_allowance_allowance_proto_msgTypes[0] 57 if protoimpl.UnsafeEnabled && x != nil { 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 if ms.LoadMessageInfo() == nil { 60 ms.StoreMessageInfo(mi) 61 } 62 return ms 63 } 64 return mi.MessageOf(x) 65 } 66 67 // Deprecated: Use AllowanceRequest.ProtoReflect.Descriptor instead. 68 func (*AllowanceRequest) Descriptor() ([]byte, []int) { 69 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{0} 70 } 71 72 func (x *AllowanceRequest) GetOwnerAddress() string { 73 if x != nil { 74 return x.OwnerAddress 75 } 76 return "" 77 } 78 79 func (x *AllowanceRequest) GetSpenderAddress() string { 80 if x != nil { 81 return x.SpenderAddress 82 } 83 return "" 84 } 85 86 func (x *AllowanceRequest) GetToken() []string { 87 if x != nil { 88 return x.Token 89 } 90 return nil 91 } 92 93 type ApproveRequest struct { 94 state protoimpl.MessageState 95 sizeCache protoimpl.SizeCache 96 unknownFields protoimpl.UnknownFields 97 98 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 99 SpenderAddress string `protobuf:"bytes,2,opt,name=spender_address,json=spenderAddress,proto3" json:"spender_address,omitempty"` 100 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 101 Token []string `protobuf:"bytes,4,rep,name=token,proto3" json:"token,omitempty"` 102 } 103 104 func (x *ApproveRequest) Reset() { 105 *x = ApproveRequest{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_token_service_allowance_allowance_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111 } 112 113 func (x *ApproveRequest) String() string { 114 return protoimpl.X.MessageStringOf(x) 115 } 116 117 func (*ApproveRequest) ProtoMessage() {} 118 119 func (x *ApproveRequest) ProtoReflect() protoreflect.Message { 120 mi := &file_token_service_allowance_allowance_proto_msgTypes[1] 121 if protoimpl.UnsafeEnabled && x != nil { 122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 123 if ms.LoadMessageInfo() == nil { 124 ms.StoreMessageInfo(mi) 125 } 126 return ms 127 } 128 return mi.MessageOf(x) 129 } 130 131 // Deprecated: Use ApproveRequest.ProtoReflect.Descriptor instead. 132 func (*ApproveRequest) Descriptor() ([]byte, []int) { 133 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{1} 134 } 135 136 func (x *ApproveRequest) GetOwnerAddress() string { 137 if x != nil { 138 return x.OwnerAddress 139 } 140 return "" 141 } 142 143 func (x *ApproveRequest) GetSpenderAddress() string { 144 if x != nil { 145 return x.SpenderAddress 146 } 147 return "" 148 } 149 150 func (x *ApproveRequest) GetAmount() uint64 { 151 if x != nil { 152 return x.Amount 153 } 154 return 0 155 } 156 157 func (x *ApproveRequest) GetToken() []string { 158 if x != nil { 159 return x.Token 160 } 161 return nil 162 } 163 164 type TransferFromRequest struct { 165 state protoimpl.MessageState 166 sizeCache protoimpl.SizeCache 167 unknownFields protoimpl.UnknownFields 168 169 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 170 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 171 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 172 Token []string `protobuf:"bytes,4,rep,name=token,proto3" json:"token,omitempty"` 173 } 174 175 func (x *TransferFromRequest) Reset() { 176 *x = TransferFromRequest{} 177 if protoimpl.UnsafeEnabled { 178 mi := &file_token_service_allowance_allowance_proto_msgTypes[2] 179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 180 ms.StoreMessageInfo(mi) 181 } 182 } 183 184 func (x *TransferFromRequest) String() string { 185 return protoimpl.X.MessageStringOf(x) 186 } 187 188 func (*TransferFromRequest) ProtoMessage() {} 189 190 func (x *TransferFromRequest) ProtoReflect() protoreflect.Message { 191 mi := &file_token_service_allowance_allowance_proto_msgTypes[2] 192 if protoimpl.UnsafeEnabled && x != nil { 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 if ms.LoadMessageInfo() == nil { 195 ms.StoreMessageInfo(mi) 196 } 197 return ms 198 } 199 return mi.MessageOf(x) 200 } 201 202 // Deprecated: Use TransferFromRequest.ProtoReflect.Descriptor instead. 203 func (*TransferFromRequest) Descriptor() ([]byte, []int) { 204 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{2} 205 } 206 207 func (x *TransferFromRequest) GetOwnerAddress() string { 208 if x != nil { 209 return x.OwnerAddress 210 } 211 return "" 212 } 213 214 func (x *TransferFromRequest) GetRecipientAddress() string { 215 if x != nil { 216 return x.RecipientAddress 217 } 218 return "" 219 } 220 221 func (x *TransferFromRequest) GetAmount() uint64 { 222 if x != nil { 223 return x.Amount 224 } 225 return 0 226 } 227 228 func (x *TransferFromRequest) GetToken() []string { 229 if x != nil { 230 return x.Token 231 } 232 return nil 233 } 234 235 type TransferFromResponse struct { 236 state protoimpl.MessageState 237 sizeCache protoimpl.SizeCache 238 unknownFields protoimpl.UnknownFields 239 240 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 241 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 242 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 243 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 244 } 245 246 func (x *TransferFromResponse) Reset() { 247 *x = TransferFromResponse{} 248 if protoimpl.UnsafeEnabled { 249 mi := &file_token_service_allowance_allowance_proto_msgTypes[3] 250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 251 ms.StoreMessageInfo(mi) 252 } 253 } 254 255 func (x *TransferFromResponse) String() string { 256 return protoimpl.X.MessageStringOf(x) 257 } 258 259 func (*TransferFromResponse) ProtoMessage() {} 260 261 func (x *TransferFromResponse) ProtoReflect() protoreflect.Message { 262 mi := &file_token_service_allowance_allowance_proto_msgTypes[3] 263 if protoimpl.UnsafeEnabled && x != nil { 264 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 265 if ms.LoadMessageInfo() == nil { 266 ms.StoreMessageInfo(mi) 267 } 268 return ms 269 } 270 return mi.MessageOf(x) 271 } 272 273 // Deprecated: Use TransferFromResponse.ProtoReflect.Descriptor instead. 274 func (*TransferFromResponse) Descriptor() ([]byte, []int) { 275 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{3} 276 } 277 278 func (x *TransferFromResponse) GetOwnerAddress() string { 279 if x != nil { 280 return x.OwnerAddress 281 } 282 return "" 283 } 284 285 func (x *TransferFromResponse) GetRecipientAddress() string { 286 if x != nil { 287 return x.RecipientAddress 288 } 289 return "" 290 } 291 292 func (x *TransferFromResponse) GetToken() []string { 293 if x != nil { 294 return x.Token 295 } 296 return nil 297 } 298 299 func (x *TransferFromResponse) GetAmount() uint64 { 300 if x != nil { 301 return x.Amount 302 } 303 return 0 304 } 305 306 // Allowance identifier 307 type AllowanceId struct { 308 state protoimpl.MessageState 309 sizeCache protoimpl.SizeCache 310 unknownFields protoimpl.UnknownFields 311 312 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 313 SpenderAddress string `protobuf:"bytes,2,opt,name=spender_address,json=spenderAddress,proto3" json:"spender_address,omitempty"` 314 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 315 } 316 317 func (x *AllowanceId) Reset() { 318 *x = AllowanceId{} 319 if protoimpl.UnsafeEnabled { 320 mi := &file_token_service_allowance_allowance_proto_msgTypes[4] 321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 322 ms.StoreMessageInfo(mi) 323 } 324 } 325 326 func (x *AllowanceId) String() string { 327 return protoimpl.X.MessageStringOf(x) 328 } 329 330 func (*AllowanceId) ProtoMessage() {} 331 332 func (x *AllowanceId) ProtoReflect() protoreflect.Message { 333 mi := &file_token_service_allowance_allowance_proto_msgTypes[4] 334 if protoimpl.UnsafeEnabled && x != nil { 335 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 336 if ms.LoadMessageInfo() == nil { 337 ms.StoreMessageInfo(mi) 338 } 339 return ms 340 } 341 return mi.MessageOf(x) 342 } 343 344 // Deprecated: Use AllowanceId.ProtoReflect.Descriptor instead. 345 func (*AllowanceId) Descriptor() ([]byte, []int) { 346 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{4} 347 } 348 349 func (x *AllowanceId) GetOwnerAddress() string { 350 if x != nil { 351 return x.OwnerAddress 352 } 353 return "" 354 } 355 356 func (x *AllowanceId) GetSpenderAddress() string { 357 if x != nil { 358 return x.SpenderAddress 359 } 360 return "" 361 } 362 363 func (x *AllowanceId) GetToken() []string { 364 if x != nil { 365 return x.Token 366 } 367 return nil 368 } 369 370 // Allowance 371 type Allowance struct { 372 state protoimpl.MessageState 373 sizeCache protoimpl.SizeCache 374 unknownFields protoimpl.UnknownFields 375 376 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 377 SpenderAddress string `protobuf:"bytes,2,opt,name=spender_address,json=spenderAddress,proto3" json:"spender_address,omitempty"` 378 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 379 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 380 } 381 382 func (x *Allowance) Reset() { 383 *x = Allowance{} 384 if protoimpl.UnsafeEnabled { 385 mi := &file_token_service_allowance_allowance_proto_msgTypes[5] 386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 387 ms.StoreMessageInfo(mi) 388 } 389 } 390 391 func (x *Allowance) String() string { 392 return protoimpl.X.MessageStringOf(x) 393 } 394 395 func (*Allowance) ProtoMessage() {} 396 397 func (x *Allowance) ProtoReflect() protoreflect.Message { 398 mi := &file_token_service_allowance_allowance_proto_msgTypes[5] 399 if protoimpl.UnsafeEnabled && x != nil { 400 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 401 if ms.LoadMessageInfo() == nil { 402 ms.StoreMessageInfo(mi) 403 } 404 return ms 405 } 406 return mi.MessageOf(x) 407 } 408 409 // Deprecated: Use Allowance.ProtoReflect.Descriptor instead. 410 func (*Allowance) Descriptor() ([]byte, []int) { 411 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{5} 412 } 413 414 func (x *Allowance) GetOwnerAddress() string { 415 if x != nil { 416 return x.OwnerAddress 417 } 418 return "" 419 } 420 421 func (x *Allowance) GetSpenderAddress() string { 422 if x != nil { 423 return x.SpenderAddress 424 } 425 return "" 426 } 427 428 func (x *Allowance) GetToken() []string { 429 if x != nil { 430 return x.Token 431 } 432 return nil 433 } 434 435 func (x *Allowance) GetAmount() uint64 { 436 if x != nil { 437 return x.Amount 438 } 439 return 0 440 } 441 442 type Allowances struct { 443 state protoimpl.MessageState 444 sizeCache protoimpl.SizeCache 445 unknownFields protoimpl.UnknownFields 446 447 Items []*Allowance `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` 448 } 449 450 func (x *Allowances) Reset() { 451 *x = Allowances{} 452 if protoimpl.UnsafeEnabled { 453 mi := &file_token_service_allowance_allowance_proto_msgTypes[6] 454 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 455 ms.StoreMessageInfo(mi) 456 } 457 } 458 459 func (x *Allowances) String() string { 460 return protoimpl.X.MessageStringOf(x) 461 } 462 463 func (*Allowances) ProtoMessage() {} 464 465 func (x *Allowances) ProtoReflect() protoreflect.Message { 466 mi := &file_token_service_allowance_allowance_proto_msgTypes[6] 467 if protoimpl.UnsafeEnabled && x != nil { 468 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 469 if ms.LoadMessageInfo() == nil { 470 ms.StoreMessageInfo(mi) 471 } 472 return ms 473 } 474 return mi.MessageOf(x) 475 } 476 477 // Deprecated: Use Allowances.ProtoReflect.Descriptor instead. 478 func (*Allowances) Descriptor() ([]byte, []int) { 479 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{6} 480 } 481 482 func (x *Allowances) GetItems() []*Allowance { 483 if x != nil { 484 return x.Items 485 } 486 return nil 487 } 488 489 // Approved event is emitted when Approve method has been invoked 490 type Approved struct { 491 state protoimpl.MessageState 492 sizeCache protoimpl.SizeCache 493 unknownFields protoimpl.UnknownFields 494 495 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 496 SpenderAddress string `protobuf:"bytes,2,opt,name=spender_address,json=spenderAddress,proto3" json:"spender_address,omitempty"` 497 Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` 498 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 499 } 500 501 func (x *Approved) Reset() { 502 *x = Approved{} 503 if protoimpl.UnsafeEnabled { 504 mi := &file_token_service_allowance_allowance_proto_msgTypes[7] 505 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 506 ms.StoreMessageInfo(mi) 507 } 508 } 509 510 func (x *Approved) String() string { 511 return protoimpl.X.MessageStringOf(x) 512 } 513 514 func (*Approved) ProtoMessage() {} 515 516 func (x *Approved) ProtoReflect() protoreflect.Message { 517 mi := &file_token_service_allowance_allowance_proto_msgTypes[7] 518 if protoimpl.UnsafeEnabled && x != nil { 519 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 520 if ms.LoadMessageInfo() == nil { 521 ms.StoreMessageInfo(mi) 522 } 523 return ms 524 } 525 return mi.MessageOf(x) 526 } 527 528 // Deprecated: Use Approved.ProtoReflect.Descriptor instead. 529 func (*Approved) Descriptor() ([]byte, []int) { 530 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{7} 531 } 532 533 func (x *Approved) GetOwnerAddress() string { 534 if x != nil { 535 return x.OwnerAddress 536 } 537 return "" 538 } 539 540 func (x *Approved) GetSpenderAddress() string { 541 if x != nil { 542 return x.SpenderAddress 543 } 544 return "" 545 } 546 547 func (x *Approved) GetToken() []string { 548 if x != nil { 549 return x.Token 550 } 551 return nil 552 } 553 554 func (x *Approved) GetAmount() uint64 { 555 if x != nil { 556 return x.Amount 557 } 558 return 0 559 } 560 561 // TransferredFrom event is emitted when TransferFrom method has been invoked 562 type TransferredFrom struct { 563 state protoimpl.MessageState 564 sizeCache protoimpl.SizeCache 565 unknownFields protoimpl.UnknownFields 566 567 OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` 568 SpenderAddress string `protobuf:"bytes,2,opt,name=spender_address,json=spenderAddress,proto3" json:"spender_address,omitempty"` 569 RecipientAddress string `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 570 Token []string `protobuf:"bytes,4,rep,name=token,proto3" json:"token,omitempty"` 571 Amount uint64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` 572 } 573 574 func (x *TransferredFrom) Reset() { 575 *x = TransferredFrom{} 576 if protoimpl.UnsafeEnabled { 577 mi := &file_token_service_allowance_allowance_proto_msgTypes[8] 578 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 579 ms.StoreMessageInfo(mi) 580 } 581 } 582 583 func (x *TransferredFrom) String() string { 584 return protoimpl.X.MessageStringOf(x) 585 } 586 587 func (*TransferredFrom) ProtoMessage() {} 588 589 func (x *TransferredFrom) ProtoReflect() protoreflect.Message { 590 mi := &file_token_service_allowance_allowance_proto_msgTypes[8] 591 if protoimpl.UnsafeEnabled && x != nil { 592 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 593 if ms.LoadMessageInfo() == nil { 594 ms.StoreMessageInfo(mi) 595 } 596 return ms 597 } 598 return mi.MessageOf(x) 599 } 600 601 // Deprecated: Use TransferredFrom.ProtoReflect.Descriptor instead. 602 func (*TransferredFrom) Descriptor() ([]byte, []int) { 603 return file_token_service_allowance_allowance_proto_rawDescGZIP(), []int{8} 604 } 605 606 func (x *TransferredFrom) GetOwnerAddress() string { 607 if x != nil { 608 return x.OwnerAddress 609 } 610 return "" 611 } 612 613 func (x *TransferredFrom) GetSpenderAddress() string { 614 if x != nil { 615 return x.SpenderAddress 616 } 617 return "" 618 } 619 620 func (x *TransferredFrom) GetRecipientAddress() string { 621 if x != nil { 622 return x.RecipientAddress 623 } 624 return "" 625 } 626 627 func (x *TransferredFrom) GetToken() []string { 628 if x != nil { 629 return x.Token 630 } 631 return nil 632 } 633 634 func (x *TransferredFrom) GetAmount() uint64 { 635 if x != nil { 636 return x.Amount 637 } 638 return 0 639 } 640 641 var File_token_service_allowance_allowance_proto protoreflect.FileDescriptor 642 643 var file_token_service_allowance_allowance_proto_rawDesc = []byte{ 644 0x0a, 0x27, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 645 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 646 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x65, 0x78, 0x61, 0x6d, 0x70, 647 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 648 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 649 0x6e, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 650 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 651 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 652 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 653 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 654 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 655 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x10, 656 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 657 0x12, 0x2b, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 658 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 659 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 660 0x0f, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 661 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0e, 662 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 663 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 664 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 665 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 666 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 667 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 668 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x0f, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 669 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 670 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0e, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 671 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 672 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x10, 0x00, 0x52, 0x06, 0x61, 673 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 674 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xad, 0x01, 0x0a, 0x13, 675 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 676 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 677 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 678 0x58, 0x01, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 679 0x12, 0x33, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 680 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 681 0x02, 0x58, 0x01, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 682 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 683 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x10, 0x00, 0x52, 0x06, 0x61, 684 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 685 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x14, 686 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 687 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 688 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 689 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 690 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 691 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 692 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 693 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 694 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 695 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 696 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 697 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 698 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x70, 0x65, 0x6e, 699 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 700 0x09, 0x52, 0x0e, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 701 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 702 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x87, 0x01, 0x0a, 0x09, 0x41, 0x6c, 0x6c, 0x6f, 703 0x77, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 704 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x77, 705 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x70, 706 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 707 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 708 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 709 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 710 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 711 0x74, 0x22, 0x57, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 712 0x49, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 713 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 714 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 715 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 716 0x6e, 0x63, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x08, 0x41, 717 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 718 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 719 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 720 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 721 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 722 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 723 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 724 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 725 0x75, 0x6e, 0x74, 0x22, 0xba, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 726 0x72, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 727 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 728 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 729 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 730 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 731 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 732 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 733 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 734 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 735 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 736 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 737 0x32, 0x87, 0x04, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 738 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xbd, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 739 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 740 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 741 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 742 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 743 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 744 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 745 0x69, 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x6c, 746 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 747 0x34, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 748 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x73, 0x70, 0x65, 749 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 750 0x6f, 0x6b, 0x65, 0x6e, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x07, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 751 0x65, 0x12, 0x38, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 752 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 753 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x70, 0x70, 754 0x72, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x78, 755 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 756 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 757 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 758 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x22, 0x08, 0x2f, 0x61, 0x70, 0x70, 0x72, 0x6f, 759 0x76, 0x65, 0x12, 0xa5, 0x01, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 760 0x72, 0x6f, 0x6d, 0x12, 0x3d, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 761 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 762 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x54, 763 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 764 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 765 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 766 0x69, 0x63, 0x65, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x54, 0x72, 767 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 768 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x22, 0x0e, 0x2f, 0x74, 0x72, 0x61, 769 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2d, 0x66, 0x72, 0x6f, 0x6d, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 770 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 771 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 772 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 773 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 774 0x33, 775 } 776 777 var ( 778 file_token_service_allowance_allowance_proto_rawDescOnce sync.Once 779 file_token_service_allowance_allowance_proto_rawDescData = file_token_service_allowance_allowance_proto_rawDesc 780 ) 781 782 func file_token_service_allowance_allowance_proto_rawDescGZIP() []byte { 783 file_token_service_allowance_allowance_proto_rawDescOnce.Do(func() { 784 file_token_service_allowance_allowance_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_service_allowance_allowance_proto_rawDescData) 785 }) 786 return file_token_service_allowance_allowance_proto_rawDescData 787 } 788 789 var file_token_service_allowance_allowance_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 790 var file_token_service_allowance_allowance_proto_goTypes = []interface{}{ 791 (*AllowanceRequest)(nil), // 0: examples.erc20_service.service.allowance.AllowanceRequest 792 (*ApproveRequest)(nil), // 1: examples.erc20_service.service.allowance.ApproveRequest 793 (*TransferFromRequest)(nil), // 2: examples.erc20_service.service.allowance.TransferFromRequest 794 (*TransferFromResponse)(nil), // 3: examples.erc20_service.service.allowance.TransferFromResponse 795 (*AllowanceId)(nil), // 4: examples.erc20_service.service.allowance.AllowanceId 796 (*Allowance)(nil), // 5: examples.erc20_service.service.allowance.Allowance 797 (*Allowances)(nil), // 6: examples.erc20_service.service.allowance.Allowances 798 (*Approved)(nil), // 7: examples.erc20_service.service.allowance.Approved 799 (*TransferredFrom)(nil), // 8: examples.erc20_service.service.allowance.TransferredFrom 800 } 801 var file_token_service_allowance_allowance_proto_depIdxs = []int32{ 802 5, // 0: examples.erc20_service.service.allowance.Allowances.items:type_name -> examples.erc20_service.service.allowance.Allowance 803 0, // 1: examples.erc20_service.service.allowance.AllowanceService.GetAllowance:input_type -> examples.erc20_service.service.allowance.AllowanceRequest 804 1, // 2: examples.erc20_service.service.allowance.AllowanceService.Approve:input_type -> examples.erc20_service.service.allowance.ApproveRequest 805 2, // 3: examples.erc20_service.service.allowance.AllowanceService.TransferFrom:input_type -> examples.erc20_service.service.allowance.TransferFromRequest 806 5, // 4: examples.erc20_service.service.allowance.AllowanceService.GetAllowance:output_type -> examples.erc20_service.service.allowance.Allowance 807 5, // 5: examples.erc20_service.service.allowance.AllowanceService.Approve:output_type -> examples.erc20_service.service.allowance.Allowance 808 3, // 6: examples.erc20_service.service.allowance.AllowanceService.TransferFrom:output_type -> examples.erc20_service.service.allowance.TransferFromResponse 809 4, // [4:7] is the sub-list for method output_type 810 1, // [1:4] is the sub-list for method input_type 811 1, // [1:1] is the sub-list for extension type_name 812 1, // [1:1] is the sub-list for extension extendee 813 0, // [0:1] is the sub-list for field type_name 814 } 815 816 func init() { file_token_service_allowance_allowance_proto_init() } 817 func file_token_service_allowance_allowance_proto_init() { 818 if File_token_service_allowance_allowance_proto != nil { 819 return 820 } 821 if !protoimpl.UnsafeEnabled { 822 file_token_service_allowance_allowance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 823 switch v := v.(*AllowanceRequest); i { 824 case 0: 825 return &v.state 826 case 1: 827 return &v.sizeCache 828 case 2: 829 return &v.unknownFields 830 default: 831 return nil 832 } 833 } 834 file_token_service_allowance_allowance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 835 switch v := v.(*ApproveRequest); i { 836 case 0: 837 return &v.state 838 case 1: 839 return &v.sizeCache 840 case 2: 841 return &v.unknownFields 842 default: 843 return nil 844 } 845 } 846 file_token_service_allowance_allowance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 847 switch v := v.(*TransferFromRequest); i { 848 case 0: 849 return &v.state 850 case 1: 851 return &v.sizeCache 852 case 2: 853 return &v.unknownFields 854 default: 855 return nil 856 } 857 } 858 file_token_service_allowance_allowance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 859 switch v := v.(*TransferFromResponse); i { 860 case 0: 861 return &v.state 862 case 1: 863 return &v.sizeCache 864 case 2: 865 return &v.unknownFields 866 default: 867 return nil 868 } 869 } 870 file_token_service_allowance_allowance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 871 switch v := v.(*AllowanceId); i { 872 case 0: 873 return &v.state 874 case 1: 875 return &v.sizeCache 876 case 2: 877 return &v.unknownFields 878 default: 879 return nil 880 } 881 } 882 file_token_service_allowance_allowance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 883 switch v := v.(*Allowance); i { 884 case 0: 885 return &v.state 886 case 1: 887 return &v.sizeCache 888 case 2: 889 return &v.unknownFields 890 default: 891 return nil 892 } 893 } 894 file_token_service_allowance_allowance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 895 switch v := v.(*Allowances); i { 896 case 0: 897 return &v.state 898 case 1: 899 return &v.sizeCache 900 case 2: 901 return &v.unknownFields 902 default: 903 return nil 904 } 905 } 906 file_token_service_allowance_allowance_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 907 switch v := v.(*Approved); i { 908 case 0: 909 return &v.state 910 case 1: 911 return &v.sizeCache 912 case 2: 913 return &v.unknownFields 914 default: 915 return nil 916 } 917 } 918 file_token_service_allowance_allowance_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 919 switch v := v.(*TransferredFrom); i { 920 case 0: 921 return &v.state 922 case 1: 923 return &v.sizeCache 924 case 2: 925 return &v.unknownFields 926 default: 927 return nil 928 } 929 } 930 } 931 type x struct{} 932 out := protoimpl.TypeBuilder{ 933 File: protoimpl.DescBuilder{ 934 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 935 RawDescriptor: file_token_service_allowance_allowance_proto_rawDesc, 936 NumEnums: 0, 937 NumMessages: 9, 938 NumExtensions: 0, 939 NumServices: 1, 940 }, 941 GoTypes: file_token_service_allowance_allowance_proto_goTypes, 942 DependencyIndexes: file_token_service_allowance_allowance_proto_depIdxs, 943 MessageInfos: file_token_service_allowance_allowance_proto_msgTypes, 944 }.Build() 945 File_token_service_allowance_allowance_proto = out.File 946 file_token_service_allowance_allowance_proto_rawDesc = nil 947 file_token_service_allowance_allowance_proto_goTypes = nil 948 file_token_service_allowance_allowance_proto_depIdxs = nil 949 } 950 951 // Reference imports to suppress errors if they are not otherwise used. 952 var _ context.Context 953 var _ grpc.ClientConnInterface 954 955 // This is a compile-time assertion to ensure that this generated file 956 // is compatible with the grpc package it is being compiled against. 957 const _ = grpc.SupportPackageIsVersion6 958 959 // AllowanceServiceClient is the client API for AllowanceService service. 960 // 961 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 962 type AllowanceServiceClient interface { 963 // Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transfersender. 964 // This is zero by default. 965 GetAllowance(ctx context.Context, in *AllowanceRequest, opts ...grpc.CallOption) (*Allowance, error) 966 // Sets amount as the allowance of spender over the caller’s tokens. 967 // Emits an ApprovalEvent 968 Approve(ctx context.Context, in *ApproveRequest, opts ...grpc.CallOption) (*Allowance, error) 969 // Moves amount tokens from sender to recipient using the allowance mechanism. 970 // Amount is then deducted from the caller’s allowance. 971 // Emits TransferEvent 972 TransferFrom(ctx context.Context, in *TransferFromRequest, opts ...grpc.CallOption) (*TransferFromResponse, error) 973 } 974 975 type allowanceServiceClient struct { 976 cc grpc.ClientConnInterface 977 } 978 979 func NewAllowanceServiceClient(cc grpc.ClientConnInterface) AllowanceServiceClient { 980 return &allowanceServiceClient{cc} 981 } 982 983 func (c *allowanceServiceClient) GetAllowance(ctx context.Context, in *AllowanceRequest, opts ...grpc.CallOption) (*Allowance, error) { 984 out := new(Allowance) 985 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.allowance.AllowanceService/GetAllowance", in, out, opts...) 986 if err != nil { 987 return nil, err 988 } 989 return out, nil 990 } 991 992 func (c *allowanceServiceClient) Approve(ctx context.Context, in *ApproveRequest, opts ...grpc.CallOption) (*Allowance, error) { 993 out := new(Allowance) 994 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.allowance.AllowanceService/Approve", in, out, opts...) 995 if err != nil { 996 return nil, err 997 } 998 return out, nil 999 } 1000 1001 func (c *allowanceServiceClient) TransferFrom(ctx context.Context, in *TransferFromRequest, opts ...grpc.CallOption) (*TransferFromResponse, error) { 1002 out := new(TransferFromResponse) 1003 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.allowance.AllowanceService/TransferFrom", in, out, opts...) 1004 if err != nil { 1005 return nil, err 1006 } 1007 return out, nil 1008 } 1009 1010 // AllowanceServiceServer is the server API for AllowanceService service. 1011 type AllowanceServiceServer interface { 1012 // Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transfersender. 1013 // This is zero by default. 1014 GetAllowance(context.Context, *AllowanceRequest) (*Allowance, error) 1015 // Sets amount as the allowance of spender over the caller’s tokens. 1016 // Emits an ApprovalEvent 1017 Approve(context.Context, *ApproveRequest) (*Allowance, error) 1018 // Moves amount tokens from sender to recipient using the allowance mechanism. 1019 // Amount is then deducted from the caller’s allowance. 1020 // Emits TransferEvent 1021 TransferFrom(context.Context, *TransferFromRequest) (*TransferFromResponse, error) 1022 } 1023 1024 // UnimplementedAllowanceServiceServer can be embedded to have forward compatible implementations. 1025 type UnimplementedAllowanceServiceServer struct { 1026 } 1027 1028 func (*UnimplementedAllowanceServiceServer) GetAllowance(context.Context, *AllowanceRequest) (*Allowance, error) { 1029 return nil, status.Errorf(codes.Unimplemented, "method GetAllowance not implemented") 1030 } 1031 func (*UnimplementedAllowanceServiceServer) Approve(context.Context, *ApproveRequest) (*Allowance, error) { 1032 return nil, status.Errorf(codes.Unimplemented, "method Approve not implemented") 1033 } 1034 func (*UnimplementedAllowanceServiceServer) TransferFrom(context.Context, *TransferFromRequest) (*TransferFromResponse, error) { 1035 return nil, status.Errorf(codes.Unimplemented, "method TransferFrom not implemented") 1036 } 1037 1038 func RegisterAllowanceServiceServer(s *grpc.Server, srv AllowanceServiceServer) { 1039 s.RegisterService(&_AllowanceService_serviceDesc, srv) 1040 } 1041 1042 func _AllowanceService_GetAllowance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1043 in := new(AllowanceRequest) 1044 if err := dec(in); err != nil { 1045 return nil, err 1046 } 1047 if interceptor == nil { 1048 return srv.(AllowanceServiceServer).GetAllowance(ctx, in) 1049 } 1050 info := &grpc.UnaryServerInfo{ 1051 Server: srv, 1052 FullMethod: "/examples.erc20_service.service.allowance.AllowanceService/GetAllowance", 1053 } 1054 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1055 return srv.(AllowanceServiceServer).GetAllowance(ctx, req.(*AllowanceRequest)) 1056 } 1057 return interceptor(ctx, in, info, handler) 1058 } 1059 1060 func _AllowanceService_Approve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1061 in := new(ApproveRequest) 1062 if err := dec(in); err != nil { 1063 return nil, err 1064 } 1065 if interceptor == nil { 1066 return srv.(AllowanceServiceServer).Approve(ctx, in) 1067 } 1068 info := &grpc.UnaryServerInfo{ 1069 Server: srv, 1070 FullMethod: "/examples.erc20_service.service.allowance.AllowanceService/Approve", 1071 } 1072 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1073 return srv.(AllowanceServiceServer).Approve(ctx, req.(*ApproveRequest)) 1074 } 1075 return interceptor(ctx, in, info, handler) 1076 } 1077 1078 func _AllowanceService_TransferFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1079 in := new(TransferFromRequest) 1080 if err := dec(in); err != nil { 1081 return nil, err 1082 } 1083 if interceptor == nil { 1084 return srv.(AllowanceServiceServer).TransferFrom(ctx, in) 1085 } 1086 info := &grpc.UnaryServerInfo{ 1087 Server: srv, 1088 FullMethod: "/examples.erc20_service.service.allowance.AllowanceService/TransferFrom", 1089 } 1090 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1091 return srv.(AllowanceServiceServer).TransferFrom(ctx, req.(*TransferFromRequest)) 1092 } 1093 return interceptor(ctx, in, info, handler) 1094 } 1095 1096 var _AllowanceService_serviceDesc = grpc.ServiceDesc{ 1097 ServiceName: "examples.erc20_service.service.allowance.AllowanceService", 1098 HandlerType: (*AllowanceServiceServer)(nil), 1099 Methods: []grpc.MethodDesc{ 1100 { 1101 MethodName: "GetAllowance", 1102 Handler: _AllowanceService_GetAllowance_Handler, 1103 }, 1104 { 1105 MethodName: "Approve", 1106 Handler: _AllowanceService_Approve_Handler, 1107 }, 1108 { 1109 MethodName: "TransferFrom", 1110 Handler: _AllowanceService_TransferFrom_Handler, 1111 }, 1112 }, 1113 Streams: []grpc.StreamDesc{}, 1114 Metadata: "token/service/allowance/allowance.proto", 1115 }