github.com/annwntech/go-micro/v2@v2.9.5/auth/service/proto/auth.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.13.0 5 // source: auth/service/proto/auth.proto 6 7 package go_micro_auth 8 9 import ( 10 context "context" 11 proto "github.com/golang/protobuf/proto" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // This is a compile-time assertion that a sufficiently up-to-date version 29 // of the legacy proto package is being used. 30 const _ = proto.ProtoPackageIsVersion4 31 32 type Access int32 33 34 const ( 35 Access_UNKNOWN Access = 0 36 Access_GRANTED Access = 1 37 Access_DENIED Access = 2 38 ) 39 40 // Enum value maps for Access. 41 var ( 42 Access_name = map[int32]string{ 43 0: "UNKNOWN", 44 1: "GRANTED", 45 2: "DENIED", 46 } 47 Access_value = map[string]int32{ 48 "UNKNOWN": 0, 49 "GRANTED": 1, 50 "DENIED": 2, 51 } 52 ) 53 54 func (x Access) Enum() *Access { 55 p := new(Access) 56 *p = x 57 return p 58 } 59 60 func (x Access) String() string { 61 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 62 } 63 64 func (Access) Descriptor() protoreflect.EnumDescriptor { 65 return file_auth_service_proto_auth_proto_enumTypes[0].Descriptor() 66 } 67 68 func (Access) Type() protoreflect.EnumType { 69 return &file_auth_service_proto_auth_proto_enumTypes[0] 70 } 71 72 func (x Access) Number() protoreflect.EnumNumber { 73 return protoreflect.EnumNumber(x) 74 } 75 76 // Deprecated: Use Access.Descriptor instead. 77 func (Access) EnumDescriptor() ([]byte, []int) { 78 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{0} 79 } 80 81 type ListAccountsRequest struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 } 86 87 func (x *ListAccountsRequest) Reset() { 88 *x = ListAccountsRequest{} 89 if protoimpl.UnsafeEnabled { 90 mi := &file_auth_service_proto_auth_proto_msgTypes[0] 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 ms.StoreMessageInfo(mi) 93 } 94 } 95 96 func (x *ListAccountsRequest) String() string { 97 return protoimpl.X.MessageStringOf(x) 98 } 99 100 func (*ListAccountsRequest) ProtoMessage() {} 101 102 func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message { 103 mi := &file_auth_service_proto_auth_proto_msgTypes[0] 104 if protoimpl.UnsafeEnabled && x != nil { 105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 106 if ms.LoadMessageInfo() == nil { 107 ms.StoreMessageInfo(mi) 108 } 109 return ms 110 } 111 return mi.MessageOf(x) 112 } 113 114 // Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead. 115 func (*ListAccountsRequest) Descriptor() ([]byte, []int) { 116 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{0} 117 } 118 119 type ListAccountsResponse struct { 120 state protoimpl.MessageState 121 sizeCache protoimpl.SizeCache 122 unknownFields protoimpl.UnknownFields 123 124 Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` 125 } 126 127 func (x *ListAccountsResponse) Reset() { 128 *x = ListAccountsResponse{} 129 if protoimpl.UnsafeEnabled { 130 mi := &file_auth_service_proto_auth_proto_msgTypes[1] 131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 132 ms.StoreMessageInfo(mi) 133 } 134 } 135 136 func (x *ListAccountsResponse) String() string { 137 return protoimpl.X.MessageStringOf(x) 138 } 139 140 func (*ListAccountsResponse) ProtoMessage() {} 141 142 func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message { 143 mi := &file_auth_service_proto_auth_proto_msgTypes[1] 144 if protoimpl.UnsafeEnabled && x != nil { 145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 146 if ms.LoadMessageInfo() == nil { 147 ms.StoreMessageInfo(mi) 148 } 149 return ms 150 } 151 return mi.MessageOf(x) 152 } 153 154 // Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead. 155 func (*ListAccountsResponse) Descriptor() ([]byte, []int) { 156 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{1} 157 } 158 159 func (x *ListAccountsResponse) GetAccounts() []*Account { 160 if x != nil { 161 return x.Accounts 162 } 163 return nil 164 } 165 166 type Token struct { 167 state protoimpl.MessageState 168 sizeCache protoimpl.SizeCache 169 unknownFields protoimpl.UnknownFields 170 171 AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 172 RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` 173 Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` 174 Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` 175 } 176 177 func (x *Token) Reset() { 178 *x = Token{} 179 if protoimpl.UnsafeEnabled { 180 mi := &file_auth_service_proto_auth_proto_msgTypes[2] 181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 182 ms.StoreMessageInfo(mi) 183 } 184 } 185 186 func (x *Token) String() string { 187 return protoimpl.X.MessageStringOf(x) 188 } 189 190 func (*Token) ProtoMessage() {} 191 192 func (x *Token) ProtoReflect() protoreflect.Message { 193 mi := &file_auth_service_proto_auth_proto_msgTypes[2] 194 if protoimpl.UnsafeEnabled && x != nil { 195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 196 if ms.LoadMessageInfo() == nil { 197 ms.StoreMessageInfo(mi) 198 } 199 return ms 200 } 201 return mi.MessageOf(x) 202 } 203 204 // Deprecated: Use Token.ProtoReflect.Descriptor instead. 205 func (*Token) Descriptor() ([]byte, []int) { 206 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{2} 207 } 208 209 func (x *Token) GetAccessToken() string { 210 if x != nil { 211 return x.AccessToken 212 } 213 return "" 214 } 215 216 func (x *Token) GetRefreshToken() string { 217 if x != nil { 218 return x.RefreshToken 219 } 220 return "" 221 } 222 223 func (x *Token) GetCreated() int64 { 224 if x != nil { 225 return x.Created 226 } 227 return 0 228 } 229 230 func (x *Token) GetExpiry() int64 { 231 if x != nil { 232 return x.Expiry 233 } 234 return 0 235 } 236 237 type Account struct { 238 state protoimpl.MessageState 239 sizeCache protoimpl.SizeCache 240 unknownFields protoimpl.UnknownFields 241 242 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 243 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 244 Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 245 Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` 246 Issuer string `protobuf:"bytes,6,opt,name=issuer,proto3" json:"issuer,omitempty"` 247 Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"` 248 } 249 250 func (x *Account) Reset() { 251 *x = Account{} 252 if protoimpl.UnsafeEnabled { 253 mi := &file_auth_service_proto_auth_proto_msgTypes[3] 254 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 255 ms.StoreMessageInfo(mi) 256 } 257 } 258 259 func (x *Account) String() string { 260 return protoimpl.X.MessageStringOf(x) 261 } 262 263 func (*Account) ProtoMessage() {} 264 265 func (x *Account) ProtoReflect() protoreflect.Message { 266 mi := &file_auth_service_proto_auth_proto_msgTypes[3] 267 if protoimpl.UnsafeEnabled && x != nil { 268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 269 if ms.LoadMessageInfo() == nil { 270 ms.StoreMessageInfo(mi) 271 } 272 return ms 273 } 274 return mi.MessageOf(x) 275 } 276 277 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 278 func (*Account) Descriptor() ([]byte, []int) { 279 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{3} 280 } 281 282 func (x *Account) GetId() string { 283 if x != nil { 284 return x.Id 285 } 286 return "" 287 } 288 289 func (x *Account) GetType() string { 290 if x != nil { 291 return x.Type 292 } 293 return "" 294 } 295 296 func (x *Account) GetMetadata() map[string]string { 297 if x != nil { 298 return x.Metadata 299 } 300 return nil 301 } 302 303 func (x *Account) GetScopes() []string { 304 if x != nil { 305 return x.Scopes 306 } 307 return nil 308 } 309 310 func (x *Account) GetIssuer() string { 311 if x != nil { 312 return x.Issuer 313 } 314 return "" 315 } 316 317 func (x *Account) GetSecret() string { 318 if x != nil { 319 return x.Secret 320 } 321 return "" 322 } 323 324 type Resource struct { 325 state protoimpl.MessageState 326 sizeCache protoimpl.SizeCache 327 unknownFields protoimpl.UnknownFields 328 329 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 330 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 331 Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 332 } 333 334 func (x *Resource) Reset() { 335 *x = Resource{} 336 if protoimpl.UnsafeEnabled { 337 mi := &file_auth_service_proto_auth_proto_msgTypes[4] 338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 339 ms.StoreMessageInfo(mi) 340 } 341 } 342 343 func (x *Resource) String() string { 344 return protoimpl.X.MessageStringOf(x) 345 } 346 347 func (*Resource) ProtoMessage() {} 348 349 func (x *Resource) ProtoReflect() protoreflect.Message { 350 mi := &file_auth_service_proto_auth_proto_msgTypes[4] 351 if protoimpl.UnsafeEnabled && x != nil { 352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 353 if ms.LoadMessageInfo() == nil { 354 ms.StoreMessageInfo(mi) 355 } 356 return ms 357 } 358 return mi.MessageOf(x) 359 } 360 361 // Deprecated: Use Resource.ProtoReflect.Descriptor instead. 362 func (*Resource) Descriptor() ([]byte, []int) { 363 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{4} 364 } 365 366 func (x *Resource) GetName() string { 367 if x != nil { 368 return x.Name 369 } 370 return "" 371 } 372 373 func (x *Resource) GetType() string { 374 if x != nil { 375 return x.Type 376 } 377 return "" 378 } 379 380 func (x *Resource) GetEndpoint() string { 381 if x != nil { 382 return x.Endpoint 383 } 384 return "" 385 } 386 387 type GenerateRequest struct { 388 state protoimpl.MessageState 389 sizeCache protoimpl.SizeCache 390 unknownFields protoimpl.UnknownFields 391 392 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 393 Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 394 Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` 395 Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` 396 Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` 397 Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"` 398 } 399 400 func (x *GenerateRequest) Reset() { 401 *x = GenerateRequest{} 402 if protoimpl.UnsafeEnabled { 403 mi := &file_auth_service_proto_auth_proto_msgTypes[5] 404 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 405 ms.StoreMessageInfo(mi) 406 } 407 } 408 409 func (x *GenerateRequest) String() string { 410 return protoimpl.X.MessageStringOf(x) 411 } 412 413 func (*GenerateRequest) ProtoMessage() {} 414 415 func (x *GenerateRequest) ProtoReflect() protoreflect.Message { 416 mi := &file_auth_service_proto_auth_proto_msgTypes[5] 417 if protoimpl.UnsafeEnabled && x != nil { 418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 if ms.LoadMessageInfo() == nil { 420 ms.StoreMessageInfo(mi) 421 } 422 return ms 423 } 424 return mi.MessageOf(x) 425 } 426 427 // Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead. 428 func (*GenerateRequest) Descriptor() ([]byte, []int) { 429 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{5} 430 } 431 432 func (x *GenerateRequest) GetId() string { 433 if x != nil { 434 return x.Id 435 } 436 return "" 437 } 438 439 func (x *GenerateRequest) GetMetadata() map[string]string { 440 if x != nil { 441 return x.Metadata 442 } 443 return nil 444 } 445 446 func (x *GenerateRequest) GetScopes() []string { 447 if x != nil { 448 return x.Scopes 449 } 450 return nil 451 } 452 453 func (x *GenerateRequest) GetSecret() string { 454 if x != nil { 455 return x.Secret 456 } 457 return "" 458 } 459 460 func (x *GenerateRequest) GetType() string { 461 if x != nil { 462 return x.Type 463 } 464 return "" 465 } 466 467 func (x *GenerateRequest) GetProvider() string { 468 if x != nil { 469 return x.Provider 470 } 471 return "" 472 } 473 474 type GenerateResponse struct { 475 state protoimpl.MessageState 476 sizeCache protoimpl.SizeCache 477 unknownFields protoimpl.UnknownFields 478 479 Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 480 } 481 482 func (x *GenerateResponse) Reset() { 483 *x = GenerateResponse{} 484 if protoimpl.UnsafeEnabled { 485 mi := &file_auth_service_proto_auth_proto_msgTypes[6] 486 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 487 ms.StoreMessageInfo(mi) 488 } 489 } 490 491 func (x *GenerateResponse) String() string { 492 return protoimpl.X.MessageStringOf(x) 493 } 494 495 func (*GenerateResponse) ProtoMessage() {} 496 497 func (x *GenerateResponse) ProtoReflect() protoreflect.Message { 498 mi := &file_auth_service_proto_auth_proto_msgTypes[6] 499 if protoimpl.UnsafeEnabled && x != nil { 500 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 501 if ms.LoadMessageInfo() == nil { 502 ms.StoreMessageInfo(mi) 503 } 504 return ms 505 } 506 return mi.MessageOf(x) 507 } 508 509 // Deprecated: Use GenerateResponse.ProtoReflect.Descriptor instead. 510 func (*GenerateResponse) Descriptor() ([]byte, []int) { 511 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{6} 512 } 513 514 func (x *GenerateResponse) GetAccount() *Account { 515 if x != nil { 516 return x.Account 517 } 518 return nil 519 } 520 521 type GrantRequest struct { 522 state protoimpl.MessageState 523 sizeCache protoimpl.SizeCache 524 unknownFields protoimpl.UnknownFields 525 526 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` 527 Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` 528 } 529 530 func (x *GrantRequest) Reset() { 531 *x = GrantRequest{} 532 if protoimpl.UnsafeEnabled { 533 mi := &file_auth_service_proto_auth_proto_msgTypes[7] 534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 535 ms.StoreMessageInfo(mi) 536 } 537 } 538 539 func (x *GrantRequest) String() string { 540 return protoimpl.X.MessageStringOf(x) 541 } 542 543 func (*GrantRequest) ProtoMessage() {} 544 545 func (x *GrantRequest) ProtoReflect() protoreflect.Message { 546 mi := &file_auth_service_proto_auth_proto_msgTypes[7] 547 if protoimpl.UnsafeEnabled && x != nil { 548 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 549 if ms.LoadMessageInfo() == nil { 550 ms.StoreMessageInfo(mi) 551 } 552 return ms 553 } 554 return mi.MessageOf(x) 555 } 556 557 // Deprecated: Use GrantRequest.ProtoReflect.Descriptor instead. 558 func (*GrantRequest) Descriptor() ([]byte, []int) { 559 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{7} 560 } 561 562 func (x *GrantRequest) GetScope() string { 563 if x != nil { 564 return x.Scope 565 } 566 return "" 567 } 568 569 func (x *GrantRequest) GetResource() *Resource { 570 if x != nil { 571 return x.Resource 572 } 573 return nil 574 } 575 576 type GrantResponse struct { 577 state protoimpl.MessageState 578 sizeCache protoimpl.SizeCache 579 unknownFields protoimpl.UnknownFields 580 } 581 582 func (x *GrantResponse) Reset() { 583 *x = GrantResponse{} 584 if protoimpl.UnsafeEnabled { 585 mi := &file_auth_service_proto_auth_proto_msgTypes[8] 586 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 587 ms.StoreMessageInfo(mi) 588 } 589 } 590 591 func (x *GrantResponse) String() string { 592 return protoimpl.X.MessageStringOf(x) 593 } 594 595 func (*GrantResponse) ProtoMessage() {} 596 597 func (x *GrantResponse) ProtoReflect() protoreflect.Message { 598 mi := &file_auth_service_proto_auth_proto_msgTypes[8] 599 if protoimpl.UnsafeEnabled && x != nil { 600 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 601 if ms.LoadMessageInfo() == nil { 602 ms.StoreMessageInfo(mi) 603 } 604 return ms 605 } 606 return mi.MessageOf(x) 607 } 608 609 // Deprecated: Use GrantResponse.ProtoReflect.Descriptor instead. 610 func (*GrantResponse) Descriptor() ([]byte, []int) { 611 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{8} 612 } 613 614 type RevokeRequest struct { 615 state protoimpl.MessageState 616 sizeCache protoimpl.SizeCache 617 unknownFields protoimpl.UnknownFields 618 619 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` 620 Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` 621 } 622 623 func (x *RevokeRequest) Reset() { 624 *x = RevokeRequest{} 625 if protoimpl.UnsafeEnabled { 626 mi := &file_auth_service_proto_auth_proto_msgTypes[9] 627 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 628 ms.StoreMessageInfo(mi) 629 } 630 } 631 632 func (x *RevokeRequest) String() string { 633 return protoimpl.X.MessageStringOf(x) 634 } 635 636 func (*RevokeRequest) ProtoMessage() {} 637 638 func (x *RevokeRequest) ProtoReflect() protoreflect.Message { 639 mi := &file_auth_service_proto_auth_proto_msgTypes[9] 640 if protoimpl.UnsafeEnabled && x != nil { 641 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 642 if ms.LoadMessageInfo() == nil { 643 ms.StoreMessageInfo(mi) 644 } 645 return ms 646 } 647 return mi.MessageOf(x) 648 } 649 650 // Deprecated: Use RevokeRequest.ProtoReflect.Descriptor instead. 651 func (*RevokeRequest) Descriptor() ([]byte, []int) { 652 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{9} 653 } 654 655 func (x *RevokeRequest) GetScope() string { 656 if x != nil { 657 return x.Scope 658 } 659 return "" 660 } 661 662 func (x *RevokeRequest) GetResource() *Resource { 663 if x != nil { 664 return x.Resource 665 } 666 return nil 667 } 668 669 type RevokeResponse struct { 670 state protoimpl.MessageState 671 sizeCache protoimpl.SizeCache 672 unknownFields protoimpl.UnknownFields 673 } 674 675 func (x *RevokeResponse) Reset() { 676 *x = RevokeResponse{} 677 if protoimpl.UnsafeEnabled { 678 mi := &file_auth_service_proto_auth_proto_msgTypes[10] 679 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 680 ms.StoreMessageInfo(mi) 681 } 682 } 683 684 func (x *RevokeResponse) String() string { 685 return protoimpl.X.MessageStringOf(x) 686 } 687 688 func (*RevokeResponse) ProtoMessage() {} 689 690 func (x *RevokeResponse) ProtoReflect() protoreflect.Message { 691 mi := &file_auth_service_proto_auth_proto_msgTypes[10] 692 if protoimpl.UnsafeEnabled && x != nil { 693 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 694 if ms.LoadMessageInfo() == nil { 695 ms.StoreMessageInfo(mi) 696 } 697 return ms 698 } 699 return mi.MessageOf(x) 700 } 701 702 // Deprecated: Use RevokeResponse.ProtoReflect.Descriptor instead. 703 func (*RevokeResponse) Descriptor() ([]byte, []int) { 704 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{10} 705 } 706 707 type InspectRequest struct { 708 state protoimpl.MessageState 709 sizeCache protoimpl.SizeCache 710 unknownFields protoimpl.UnknownFields 711 712 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 713 } 714 715 func (x *InspectRequest) Reset() { 716 *x = InspectRequest{} 717 if protoimpl.UnsafeEnabled { 718 mi := &file_auth_service_proto_auth_proto_msgTypes[11] 719 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 720 ms.StoreMessageInfo(mi) 721 } 722 } 723 724 func (x *InspectRequest) String() string { 725 return protoimpl.X.MessageStringOf(x) 726 } 727 728 func (*InspectRequest) ProtoMessage() {} 729 730 func (x *InspectRequest) ProtoReflect() protoreflect.Message { 731 mi := &file_auth_service_proto_auth_proto_msgTypes[11] 732 if protoimpl.UnsafeEnabled && x != nil { 733 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 734 if ms.LoadMessageInfo() == nil { 735 ms.StoreMessageInfo(mi) 736 } 737 return ms 738 } 739 return mi.MessageOf(x) 740 } 741 742 // Deprecated: Use InspectRequest.ProtoReflect.Descriptor instead. 743 func (*InspectRequest) Descriptor() ([]byte, []int) { 744 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{11} 745 } 746 747 func (x *InspectRequest) GetToken() string { 748 if x != nil { 749 return x.Token 750 } 751 return "" 752 } 753 754 type InspectResponse struct { 755 state protoimpl.MessageState 756 sizeCache protoimpl.SizeCache 757 unknownFields protoimpl.UnknownFields 758 759 Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 760 } 761 762 func (x *InspectResponse) Reset() { 763 *x = InspectResponse{} 764 if protoimpl.UnsafeEnabled { 765 mi := &file_auth_service_proto_auth_proto_msgTypes[12] 766 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 767 ms.StoreMessageInfo(mi) 768 } 769 } 770 771 func (x *InspectResponse) String() string { 772 return protoimpl.X.MessageStringOf(x) 773 } 774 775 func (*InspectResponse) ProtoMessage() {} 776 777 func (x *InspectResponse) ProtoReflect() protoreflect.Message { 778 mi := &file_auth_service_proto_auth_proto_msgTypes[12] 779 if protoimpl.UnsafeEnabled && x != nil { 780 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 781 if ms.LoadMessageInfo() == nil { 782 ms.StoreMessageInfo(mi) 783 } 784 return ms 785 } 786 return mi.MessageOf(x) 787 } 788 789 // Deprecated: Use InspectResponse.ProtoReflect.Descriptor instead. 790 func (*InspectResponse) Descriptor() ([]byte, []int) { 791 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{12} 792 } 793 794 func (x *InspectResponse) GetAccount() *Account { 795 if x != nil { 796 return x.Account 797 } 798 return nil 799 } 800 801 type TokenRequest struct { 802 state protoimpl.MessageState 803 sizeCache protoimpl.SizeCache 804 unknownFields protoimpl.UnknownFields 805 806 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 807 Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` 808 RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` 809 TokenExpiry int64 `protobuf:"varint,4,opt,name=token_expiry,json=tokenExpiry,proto3" json:"token_expiry,omitempty"` 810 } 811 812 func (x *TokenRequest) Reset() { 813 *x = TokenRequest{} 814 if protoimpl.UnsafeEnabled { 815 mi := &file_auth_service_proto_auth_proto_msgTypes[13] 816 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 817 ms.StoreMessageInfo(mi) 818 } 819 } 820 821 func (x *TokenRequest) String() string { 822 return protoimpl.X.MessageStringOf(x) 823 } 824 825 func (*TokenRequest) ProtoMessage() {} 826 827 func (x *TokenRequest) ProtoReflect() protoreflect.Message { 828 mi := &file_auth_service_proto_auth_proto_msgTypes[13] 829 if protoimpl.UnsafeEnabled && x != nil { 830 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 831 if ms.LoadMessageInfo() == nil { 832 ms.StoreMessageInfo(mi) 833 } 834 return ms 835 } 836 return mi.MessageOf(x) 837 } 838 839 // Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead. 840 func (*TokenRequest) Descriptor() ([]byte, []int) { 841 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{13} 842 } 843 844 func (x *TokenRequest) GetId() string { 845 if x != nil { 846 return x.Id 847 } 848 return "" 849 } 850 851 func (x *TokenRequest) GetSecret() string { 852 if x != nil { 853 return x.Secret 854 } 855 return "" 856 } 857 858 func (x *TokenRequest) GetRefreshToken() string { 859 if x != nil { 860 return x.RefreshToken 861 } 862 return "" 863 } 864 865 func (x *TokenRequest) GetTokenExpiry() int64 { 866 if x != nil { 867 return x.TokenExpiry 868 } 869 return 0 870 } 871 872 type TokenResponse struct { 873 state protoimpl.MessageState 874 sizeCache protoimpl.SizeCache 875 unknownFields protoimpl.UnknownFields 876 877 Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 878 } 879 880 func (x *TokenResponse) Reset() { 881 *x = TokenResponse{} 882 if protoimpl.UnsafeEnabled { 883 mi := &file_auth_service_proto_auth_proto_msgTypes[14] 884 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 885 ms.StoreMessageInfo(mi) 886 } 887 } 888 889 func (x *TokenResponse) String() string { 890 return protoimpl.X.MessageStringOf(x) 891 } 892 893 func (*TokenResponse) ProtoMessage() {} 894 895 func (x *TokenResponse) ProtoReflect() protoreflect.Message { 896 mi := &file_auth_service_proto_auth_proto_msgTypes[14] 897 if protoimpl.UnsafeEnabled && x != nil { 898 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 899 if ms.LoadMessageInfo() == nil { 900 ms.StoreMessageInfo(mi) 901 } 902 return ms 903 } 904 return mi.MessageOf(x) 905 } 906 907 // Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead. 908 func (*TokenResponse) Descriptor() ([]byte, []int) { 909 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{14} 910 } 911 912 func (x *TokenResponse) GetToken() *Token { 913 if x != nil { 914 return x.Token 915 } 916 return nil 917 } 918 919 type Rule struct { 920 state protoimpl.MessageState 921 sizeCache protoimpl.SizeCache 922 unknownFields protoimpl.UnknownFields 923 924 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 925 Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` 926 Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` 927 Access Access `protobuf:"varint,4,opt,name=access,proto3,enum=go.micro.auth.Access" json:"access,omitempty"` 928 Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` 929 } 930 931 func (x *Rule) Reset() { 932 *x = Rule{} 933 if protoimpl.UnsafeEnabled { 934 mi := &file_auth_service_proto_auth_proto_msgTypes[15] 935 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 936 ms.StoreMessageInfo(mi) 937 } 938 } 939 940 func (x *Rule) String() string { 941 return protoimpl.X.MessageStringOf(x) 942 } 943 944 func (*Rule) ProtoMessage() {} 945 946 func (x *Rule) ProtoReflect() protoreflect.Message { 947 mi := &file_auth_service_proto_auth_proto_msgTypes[15] 948 if protoimpl.UnsafeEnabled && x != nil { 949 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 950 if ms.LoadMessageInfo() == nil { 951 ms.StoreMessageInfo(mi) 952 } 953 return ms 954 } 955 return mi.MessageOf(x) 956 } 957 958 // Deprecated: Use Rule.ProtoReflect.Descriptor instead. 959 func (*Rule) Descriptor() ([]byte, []int) { 960 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{15} 961 } 962 963 func (x *Rule) GetId() string { 964 if x != nil { 965 return x.Id 966 } 967 return "" 968 } 969 970 func (x *Rule) GetScope() string { 971 if x != nil { 972 return x.Scope 973 } 974 return "" 975 } 976 977 func (x *Rule) GetResource() *Resource { 978 if x != nil { 979 return x.Resource 980 } 981 return nil 982 } 983 984 func (x *Rule) GetAccess() Access { 985 if x != nil { 986 return x.Access 987 } 988 return Access_UNKNOWN 989 } 990 991 func (x *Rule) GetPriority() int32 { 992 if x != nil { 993 return x.Priority 994 } 995 return 0 996 } 997 998 type CreateRequest struct { 999 state protoimpl.MessageState 1000 sizeCache protoimpl.SizeCache 1001 unknownFields protoimpl.UnknownFields 1002 1003 Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` 1004 } 1005 1006 func (x *CreateRequest) Reset() { 1007 *x = CreateRequest{} 1008 if protoimpl.UnsafeEnabled { 1009 mi := &file_auth_service_proto_auth_proto_msgTypes[16] 1010 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1011 ms.StoreMessageInfo(mi) 1012 } 1013 } 1014 1015 func (x *CreateRequest) String() string { 1016 return protoimpl.X.MessageStringOf(x) 1017 } 1018 1019 func (*CreateRequest) ProtoMessage() {} 1020 1021 func (x *CreateRequest) ProtoReflect() protoreflect.Message { 1022 mi := &file_auth_service_proto_auth_proto_msgTypes[16] 1023 if protoimpl.UnsafeEnabled && x != nil { 1024 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1025 if ms.LoadMessageInfo() == nil { 1026 ms.StoreMessageInfo(mi) 1027 } 1028 return ms 1029 } 1030 return mi.MessageOf(x) 1031 } 1032 1033 // Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. 1034 func (*CreateRequest) Descriptor() ([]byte, []int) { 1035 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{16} 1036 } 1037 1038 func (x *CreateRequest) GetRule() *Rule { 1039 if x != nil { 1040 return x.Rule 1041 } 1042 return nil 1043 } 1044 1045 type CreateResponse struct { 1046 state protoimpl.MessageState 1047 sizeCache protoimpl.SizeCache 1048 unknownFields protoimpl.UnknownFields 1049 } 1050 1051 func (x *CreateResponse) Reset() { 1052 *x = CreateResponse{} 1053 if protoimpl.UnsafeEnabled { 1054 mi := &file_auth_service_proto_auth_proto_msgTypes[17] 1055 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1056 ms.StoreMessageInfo(mi) 1057 } 1058 } 1059 1060 func (x *CreateResponse) String() string { 1061 return protoimpl.X.MessageStringOf(x) 1062 } 1063 1064 func (*CreateResponse) ProtoMessage() {} 1065 1066 func (x *CreateResponse) ProtoReflect() protoreflect.Message { 1067 mi := &file_auth_service_proto_auth_proto_msgTypes[17] 1068 if protoimpl.UnsafeEnabled && x != nil { 1069 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1070 if ms.LoadMessageInfo() == nil { 1071 ms.StoreMessageInfo(mi) 1072 } 1073 return ms 1074 } 1075 return mi.MessageOf(x) 1076 } 1077 1078 // Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead. 1079 func (*CreateResponse) Descriptor() ([]byte, []int) { 1080 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{17} 1081 } 1082 1083 type DeleteRequest struct { 1084 state protoimpl.MessageState 1085 sizeCache protoimpl.SizeCache 1086 unknownFields protoimpl.UnknownFields 1087 1088 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 1089 } 1090 1091 func (x *DeleteRequest) Reset() { 1092 *x = DeleteRequest{} 1093 if protoimpl.UnsafeEnabled { 1094 mi := &file_auth_service_proto_auth_proto_msgTypes[18] 1095 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1096 ms.StoreMessageInfo(mi) 1097 } 1098 } 1099 1100 func (x *DeleteRequest) String() string { 1101 return protoimpl.X.MessageStringOf(x) 1102 } 1103 1104 func (*DeleteRequest) ProtoMessage() {} 1105 1106 func (x *DeleteRequest) ProtoReflect() protoreflect.Message { 1107 mi := &file_auth_service_proto_auth_proto_msgTypes[18] 1108 if protoimpl.UnsafeEnabled && x != nil { 1109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1110 if ms.LoadMessageInfo() == nil { 1111 ms.StoreMessageInfo(mi) 1112 } 1113 return ms 1114 } 1115 return mi.MessageOf(x) 1116 } 1117 1118 // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. 1119 func (*DeleteRequest) Descriptor() ([]byte, []int) { 1120 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{18} 1121 } 1122 1123 func (x *DeleteRequest) GetId() string { 1124 if x != nil { 1125 return x.Id 1126 } 1127 return "" 1128 } 1129 1130 type DeleteResponse struct { 1131 state protoimpl.MessageState 1132 sizeCache protoimpl.SizeCache 1133 unknownFields protoimpl.UnknownFields 1134 } 1135 1136 func (x *DeleteResponse) Reset() { 1137 *x = DeleteResponse{} 1138 if protoimpl.UnsafeEnabled { 1139 mi := &file_auth_service_proto_auth_proto_msgTypes[19] 1140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1141 ms.StoreMessageInfo(mi) 1142 } 1143 } 1144 1145 func (x *DeleteResponse) String() string { 1146 return protoimpl.X.MessageStringOf(x) 1147 } 1148 1149 func (*DeleteResponse) ProtoMessage() {} 1150 1151 func (x *DeleteResponse) ProtoReflect() protoreflect.Message { 1152 mi := &file_auth_service_proto_auth_proto_msgTypes[19] 1153 if protoimpl.UnsafeEnabled && x != nil { 1154 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1155 if ms.LoadMessageInfo() == nil { 1156 ms.StoreMessageInfo(mi) 1157 } 1158 return ms 1159 } 1160 return mi.MessageOf(x) 1161 } 1162 1163 // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. 1164 func (*DeleteResponse) Descriptor() ([]byte, []int) { 1165 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{19} 1166 } 1167 1168 type ListRequest struct { 1169 state protoimpl.MessageState 1170 sizeCache protoimpl.SizeCache 1171 unknownFields protoimpl.UnknownFields 1172 } 1173 1174 func (x *ListRequest) Reset() { 1175 *x = ListRequest{} 1176 if protoimpl.UnsafeEnabled { 1177 mi := &file_auth_service_proto_auth_proto_msgTypes[20] 1178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1179 ms.StoreMessageInfo(mi) 1180 } 1181 } 1182 1183 func (x *ListRequest) String() string { 1184 return protoimpl.X.MessageStringOf(x) 1185 } 1186 1187 func (*ListRequest) ProtoMessage() {} 1188 1189 func (x *ListRequest) ProtoReflect() protoreflect.Message { 1190 mi := &file_auth_service_proto_auth_proto_msgTypes[20] 1191 if protoimpl.UnsafeEnabled && x != nil { 1192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1193 if ms.LoadMessageInfo() == nil { 1194 ms.StoreMessageInfo(mi) 1195 } 1196 return ms 1197 } 1198 return mi.MessageOf(x) 1199 } 1200 1201 // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. 1202 func (*ListRequest) Descriptor() ([]byte, []int) { 1203 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{20} 1204 } 1205 1206 type ListResponse struct { 1207 state protoimpl.MessageState 1208 sizeCache protoimpl.SizeCache 1209 unknownFields protoimpl.UnknownFields 1210 1211 Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` 1212 } 1213 1214 func (x *ListResponse) Reset() { 1215 *x = ListResponse{} 1216 if protoimpl.UnsafeEnabled { 1217 mi := &file_auth_service_proto_auth_proto_msgTypes[21] 1218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1219 ms.StoreMessageInfo(mi) 1220 } 1221 } 1222 1223 func (x *ListResponse) String() string { 1224 return protoimpl.X.MessageStringOf(x) 1225 } 1226 1227 func (*ListResponse) ProtoMessage() {} 1228 1229 func (x *ListResponse) ProtoReflect() protoreflect.Message { 1230 mi := &file_auth_service_proto_auth_proto_msgTypes[21] 1231 if protoimpl.UnsafeEnabled && x != nil { 1232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1233 if ms.LoadMessageInfo() == nil { 1234 ms.StoreMessageInfo(mi) 1235 } 1236 return ms 1237 } 1238 return mi.MessageOf(x) 1239 } 1240 1241 // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. 1242 func (*ListResponse) Descriptor() ([]byte, []int) { 1243 return file_auth_service_proto_auth_proto_rawDescGZIP(), []int{21} 1244 } 1245 1246 func (x *ListResponse) GetRules() []*Rule { 1247 if x != nil { 1248 return x.Rules 1249 } 1250 return nil 1251 } 1252 1253 var File_auth_service_proto_auth_proto protoreflect.FileDescriptor 1254 1255 var file_auth_service_proto_auth_proto_rawDesc = []byte{ 1256 0x0a, 0x1d, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 1257 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 1258 0x0d, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x22, 0x15, 1259 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 1260 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4a, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 1261 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 1262 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 1263 0x16, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 1264 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 1265 0x73, 0x22, 0x81, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 1266 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 1267 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 1268 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 1269 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 1270 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 1271 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 1272 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 1273 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0xf4, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 1274 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 1275 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 1276 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 1277 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 1278 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 1279 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 1280 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 1281 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 1282 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 1283 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 1284 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 1285 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 1286 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 1287 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 1288 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4e, 0x0a, 0x08, 1289 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 1290 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 1291 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 1292 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 1293 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x88, 0x02, 0x0a, 1294 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1295 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 1296 0x12, 0x48, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 1297 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 1298 0x74, 0x68, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 1299 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 1300 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 1301 0x6f, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 1302 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 1303 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 1304 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 1305 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 1306 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 1307 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 1308 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 1309 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 1310 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x44, 0x0a, 0x10, 0x47, 0x65, 0x6e, 0x65, 0x72, 1311 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x61, 1312 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 1313 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x63, 0x63, 1314 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x59, 0x0a, 1315 0x0c, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 1316 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 1317 0x6f, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 1318 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 1319 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 1320 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 1321 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x0a, 0x0d, 0x52, 0x65, 0x76, 1322 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 1323 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 1324 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 1325 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 1326 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 1327 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 1328 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x70, 0x65, 1329 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 1330 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 1331 0x43, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1332 0x73, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 1333 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 1334 0x75, 0x74, 0x68, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 1335 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7e, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 1336 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 1337 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 1338 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 1339 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 1340 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 1341 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 1342 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x45, 0x78, 1343 0x70, 0x69, 0x72, 0x79, 0x22, 0x3b, 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 1344 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 1345 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 1346 0x61, 0x75, 0x74, 0x68, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 1347 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 1348 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 1349 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 1350 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 1351 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 1352 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 1353 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 1354 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 1355 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 1356 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 1357 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 1358 0x22, 0x38, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 1359 0x74, 0x12, 0x27, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 1360 0x13, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 1361 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x43, 0x72, 1362 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x0a, 0x0d, 1363 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 1364 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x10, 0x0a, 1365 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 1366 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x39, 1367 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 1368 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 1369 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x75, 1370 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2a, 0x2e, 0x0a, 0x06, 0x41, 0x63, 0x63, 1371 0x65, 0x73, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 1372 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 1373 0x06, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x02, 0x32, 0xe7, 0x01, 0x0a, 0x04, 0x41, 0x75, 1374 0x74, 0x68, 0x12, 0x4d, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1e, 1375 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x47, 1376 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 1377 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x47, 1378 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 1379 0x00, 0x12, 0x4a, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x2e, 0x67, 1380 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x73, 1381 0x70, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 1382 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x73, 0x70, 1383 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 1384 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 1385 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 1386 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 1387 0x75, 0x74, 0x68, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 1388 0x65, 0x22, 0x00, 0x32, 0x5d, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 1389 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 1390 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 1391 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 1392 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x4c, 0x69, 0x73, 0x74, 1393 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 1394 0x22, 0x00, 0x32, 0xdc, 0x01, 0x0a, 0x05, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 1395 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 1396 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 1397 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 1398 0x61, 0x75, 0x74, 0x68, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 1399 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 1400 0x1c, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 1401 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 1402 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x44, 0x65, 1403 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 1404 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 1405 0x6f, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 1406 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x61, 0x75, 1407 0x74, 0x68, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 1408 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1409 } 1410 1411 var ( 1412 file_auth_service_proto_auth_proto_rawDescOnce sync.Once 1413 file_auth_service_proto_auth_proto_rawDescData = file_auth_service_proto_auth_proto_rawDesc 1414 ) 1415 1416 func file_auth_service_proto_auth_proto_rawDescGZIP() []byte { 1417 file_auth_service_proto_auth_proto_rawDescOnce.Do(func() { 1418 file_auth_service_proto_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_service_proto_auth_proto_rawDescData) 1419 }) 1420 return file_auth_service_proto_auth_proto_rawDescData 1421 } 1422 1423 var file_auth_service_proto_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 1424 var file_auth_service_proto_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 24) 1425 var file_auth_service_proto_auth_proto_goTypes = []interface{}{ 1426 (Access)(0), // 0: go.micro.auth.Access 1427 (*ListAccountsRequest)(nil), // 1: go.micro.auth.ListAccountsRequest 1428 (*ListAccountsResponse)(nil), // 2: go.micro.auth.ListAccountsResponse 1429 (*Token)(nil), // 3: go.micro.auth.Token 1430 (*Account)(nil), // 4: go.micro.auth.Account 1431 (*Resource)(nil), // 5: go.micro.auth.Resource 1432 (*GenerateRequest)(nil), // 6: go.micro.auth.GenerateRequest 1433 (*GenerateResponse)(nil), // 7: go.micro.auth.GenerateResponse 1434 (*GrantRequest)(nil), // 8: go.micro.auth.GrantRequest 1435 (*GrantResponse)(nil), // 9: go.micro.auth.GrantResponse 1436 (*RevokeRequest)(nil), // 10: go.micro.auth.RevokeRequest 1437 (*RevokeResponse)(nil), // 11: go.micro.auth.RevokeResponse 1438 (*InspectRequest)(nil), // 12: go.micro.auth.InspectRequest 1439 (*InspectResponse)(nil), // 13: go.micro.auth.InspectResponse 1440 (*TokenRequest)(nil), // 14: go.micro.auth.TokenRequest 1441 (*TokenResponse)(nil), // 15: go.micro.auth.TokenResponse 1442 (*Rule)(nil), // 16: go.micro.auth.Rule 1443 (*CreateRequest)(nil), // 17: go.micro.auth.CreateRequest 1444 (*CreateResponse)(nil), // 18: go.micro.auth.CreateResponse 1445 (*DeleteRequest)(nil), // 19: go.micro.auth.DeleteRequest 1446 (*DeleteResponse)(nil), // 20: go.micro.auth.DeleteResponse 1447 (*ListRequest)(nil), // 21: go.micro.auth.ListRequest 1448 (*ListResponse)(nil), // 22: go.micro.auth.ListResponse 1449 nil, // 23: go.micro.auth.Account.MetadataEntry 1450 nil, // 24: go.micro.auth.GenerateRequest.MetadataEntry 1451 } 1452 var file_auth_service_proto_auth_proto_depIdxs = []int32{ 1453 4, // 0: go.micro.auth.ListAccountsResponse.accounts:type_name -> go.micro.auth.Account 1454 23, // 1: go.micro.auth.Account.metadata:type_name -> go.micro.auth.Account.MetadataEntry 1455 24, // 2: go.micro.auth.GenerateRequest.metadata:type_name -> go.micro.auth.GenerateRequest.MetadataEntry 1456 4, // 3: go.micro.auth.GenerateResponse.account:type_name -> go.micro.auth.Account 1457 5, // 4: go.micro.auth.GrantRequest.resource:type_name -> go.micro.auth.Resource 1458 5, // 5: go.micro.auth.RevokeRequest.resource:type_name -> go.micro.auth.Resource 1459 4, // 6: go.micro.auth.InspectResponse.account:type_name -> go.micro.auth.Account 1460 3, // 7: go.micro.auth.TokenResponse.token:type_name -> go.micro.auth.Token 1461 5, // 8: go.micro.auth.Rule.resource:type_name -> go.micro.auth.Resource 1462 0, // 9: go.micro.auth.Rule.access:type_name -> go.micro.auth.Access 1463 16, // 10: go.micro.auth.CreateRequest.rule:type_name -> go.micro.auth.Rule 1464 16, // 11: go.micro.auth.ListResponse.rules:type_name -> go.micro.auth.Rule 1465 6, // 12: go.micro.auth.Auth.Generate:input_type -> go.micro.auth.GenerateRequest 1466 12, // 13: go.micro.auth.Auth.Inspect:input_type -> go.micro.auth.InspectRequest 1467 14, // 14: go.micro.auth.Auth.Token:input_type -> go.micro.auth.TokenRequest 1468 1, // 15: go.micro.auth.Accounts.List:input_type -> go.micro.auth.ListAccountsRequest 1469 17, // 16: go.micro.auth.Rules.Create:input_type -> go.micro.auth.CreateRequest 1470 19, // 17: go.micro.auth.Rules.Delete:input_type -> go.micro.auth.DeleteRequest 1471 21, // 18: go.micro.auth.Rules.List:input_type -> go.micro.auth.ListRequest 1472 7, // 19: go.micro.auth.Auth.Generate:output_type -> go.micro.auth.GenerateResponse 1473 13, // 20: go.micro.auth.Auth.Inspect:output_type -> go.micro.auth.InspectResponse 1474 15, // 21: go.micro.auth.Auth.Token:output_type -> go.micro.auth.TokenResponse 1475 2, // 22: go.micro.auth.Accounts.List:output_type -> go.micro.auth.ListAccountsResponse 1476 18, // 23: go.micro.auth.Rules.Create:output_type -> go.micro.auth.CreateResponse 1477 20, // 24: go.micro.auth.Rules.Delete:output_type -> go.micro.auth.DeleteResponse 1478 22, // 25: go.micro.auth.Rules.List:output_type -> go.micro.auth.ListResponse 1479 19, // [19:26] is the sub-list for method output_type 1480 12, // [12:19] is the sub-list for method input_type 1481 12, // [12:12] is the sub-list for extension type_name 1482 12, // [12:12] is the sub-list for extension extendee 1483 0, // [0:12] is the sub-list for field type_name 1484 } 1485 1486 func init() { file_auth_service_proto_auth_proto_init() } 1487 func file_auth_service_proto_auth_proto_init() { 1488 if File_auth_service_proto_auth_proto != nil { 1489 return 1490 } 1491 if !protoimpl.UnsafeEnabled { 1492 file_auth_service_proto_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1493 switch v := v.(*ListAccountsRequest); i { 1494 case 0: 1495 return &v.state 1496 case 1: 1497 return &v.sizeCache 1498 case 2: 1499 return &v.unknownFields 1500 default: 1501 return nil 1502 } 1503 } 1504 file_auth_service_proto_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1505 switch v := v.(*ListAccountsResponse); i { 1506 case 0: 1507 return &v.state 1508 case 1: 1509 return &v.sizeCache 1510 case 2: 1511 return &v.unknownFields 1512 default: 1513 return nil 1514 } 1515 } 1516 file_auth_service_proto_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1517 switch v := v.(*Token); i { 1518 case 0: 1519 return &v.state 1520 case 1: 1521 return &v.sizeCache 1522 case 2: 1523 return &v.unknownFields 1524 default: 1525 return nil 1526 } 1527 } 1528 file_auth_service_proto_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1529 switch v := v.(*Account); i { 1530 case 0: 1531 return &v.state 1532 case 1: 1533 return &v.sizeCache 1534 case 2: 1535 return &v.unknownFields 1536 default: 1537 return nil 1538 } 1539 } 1540 file_auth_service_proto_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1541 switch v := v.(*Resource); i { 1542 case 0: 1543 return &v.state 1544 case 1: 1545 return &v.sizeCache 1546 case 2: 1547 return &v.unknownFields 1548 default: 1549 return nil 1550 } 1551 } 1552 file_auth_service_proto_auth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1553 switch v := v.(*GenerateRequest); i { 1554 case 0: 1555 return &v.state 1556 case 1: 1557 return &v.sizeCache 1558 case 2: 1559 return &v.unknownFields 1560 default: 1561 return nil 1562 } 1563 } 1564 file_auth_service_proto_auth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1565 switch v := v.(*GenerateResponse); i { 1566 case 0: 1567 return &v.state 1568 case 1: 1569 return &v.sizeCache 1570 case 2: 1571 return &v.unknownFields 1572 default: 1573 return nil 1574 } 1575 } 1576 file_auth_service_proto_auth_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1577 switch v := v.(*GrantRequest); i { 1578 case 0: 1579 return &v.state 1580 case 1: 1581 return &v.sizeCache 1582 case 2: 1583 return &v.unknownFields 1584 default: 1585 return nil 1586 } 1587 } 1588 file_auth_service_proto_auth_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1589 switch v := v.(*GrantResponse); i { 1590 case 0: 1591 return &v.state 1592 case 1: 1593 return &v.sizeCache 1594 case 2: 1595 return &v.unknownFields 1596 default: 1597 return nil 1598 } 1599 } 1600 file_auth_service_proto_auth_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1601 switch v := v.(*RevokeRequest); i { 1602 case 0: 1603 return &v.state 1604 case 1: 1605 return &v.sizeCache 1606 case 2: 1607 return &v.unknownFields 1608 default: 1609 return nil 1610 } 1611 } 1612 file_auth_service_proto_auth_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1613 switch v := v.(*RevokeResponse); i { 1614 case 0: 1615 return &v.state 1616 case 1: 1617 return &v.sizeCache 1618 case 2: 1619 return &v.unknownFields 1620 default: 1621 return nil 1622 } 1623 } 1624 file_auth_service_proto_auth_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1625 switch v := v.(*InspectRequest); i { 1626 case 0: 1627 return &v.state 1628 case 1: 1629 return &v.sizeCache 1630 case 2: 1631 return &v.unknownFields 1632 default: 1633 return nil 1634 } 1635 } 1636 file_auth_service_proto_auth_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1637 switch v := v.(*InspectResponse); i { 1638 case 0: 1639 return &v.state 1640 case 1: 1641 return &v.sizeCache 1642 case 2: 1643 return &v.unknownFields 1644 default: 1645 return nil 1646 } 1647 } 1648 file_auth_service_proto_auth_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1649 switch v := v.(*TokenRequest); i { 1650 case 0: 1651 return &v.state 1652 case 1: 1653 return &v.sizeCache 1654 case 2: 1655 return &v.unknownFields 1656 default: 1657 return nil 1658 } 1659 } 1660 file_auth_service_proto_auth_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1661 switch v := v.(*TokenResponse); i { 1662 case 0: 1663 return &v.state 1664 case 1: 1665 return &v.sizeCache 1666 case 2: 1667 return &v.unknownFields 1668 default: 1669 return nil 1670 } 1671 } 1672 file_auth_service_proto_auth_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { 1673 switch v := v.(*Rule); i { 1674 case 0: 1675 return &v.state 1676 case 1: 1677 return &v.sizeCache 1678 case 2: 1679 return &v.unknownFields 1680 default: 1681 return nil 1682 } 1683 } 1684 file_auth_service_proto_auth_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { 1685 switch v := v.(*CreateRequest); i { 1686 case 0: 1687 return &v.state 1688 case 1: 1689 return &v.sizeCache 1690 case 2: 1691 return &v.unknownFields 1692 default: 1693 return nil 1694 } 1695 } 1696 file_auth_service_proto_auth_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { 1697 switch v := v.(*CreateResponse); i { 1698 case 0: 1699 return &v.state 1700 case 1: 1701 return &v.sizeCache 1702 case 2: 1703 return &v.unknownFields 1704 default: 1705 return nil 1706 } 1707 } 1708 file_auth_service_proto_auth_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { 1709 switch v := v.(*DeleteRequest); i { 1710 case 0: 1711 return &v.state 1712 case 1: 1713 return &v.sizeCache 1714 case 2: 1715 return &v.unknownFields 1716 default: 1717 return nil 1718 } 1719 } 1720 file_auth_service_proto_auth_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { 1721 switch v := v.(*DeleteResponse); i { 1722 case 0: 1723 return &v.state 1724 case 1: 1725 return &v.sizeCache 1726 case 2: 1727 return &v.unknownFields 1728 default: 1729 return nil 1730 } 1731 } 1732 file_auth_service_proto_auth_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { 1733 switch v := v.(*ListRequest); i { 1734 case 0: 1735 return &v.state 1736 case 1: 1737 return &v.sizeCache 1738 case 2: 1739 return &v.unknownFields 1740 default: 1741 return nil 1742 } 1743 } 1744 file_auth_service_proto_auth_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { 1745 switch v := v.(*ListResponse); i { 1746 case 0: 1747 return &v.state 1748 case 1: 1749 return &v.sizeCache 1750 case 2: 1751 return &v.unknownFields 1752 default: 1753 return nil 1754 } 1755 } 1756 } 1757 type x struct{} 1758 out := protoimpl.TypeBuilder{ 1759 File: protoimpl.DescBuilder{ 1760 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1761 RawDescriptor: file_auth_service_proto_auth_proto_rawDesc, 1762 NumEnums: 1, 1763 NumMessages: 24, 1764 NumExtensions: 0, 1765 NumServices: 3, 1766 }, 1767 GoTypes: file_auth_service_proto_auth_proto_goTypes, 1768 DependencyIndexes: file_auth_service_proto_auth_proto_depIdxs, 1769 EnumInfos: file_auth_service_proto_auth_proto_enumTypes, 1770 MessageInfos: file_auth_service_proto_auth_proto_msgTypes, 1771 }.Build() 1772 File_auth_service_proto_auth_proto = out.File 1773 file_auth_service_proto_auth_proto_rawDesc = nil 1774 file_auth_service_proto_auth_proto_goTypes = nil 1775 file_auth_service_proto_auth_proto_depIdxs = nil 1776 } 1777 1778 // Reference imports to suppress errors if they are not otherwise used. 1779 var _ context.Context 1780 var _ grpc.ClientConnInterface 1781 1782 // This is a compile-time assertion to ensure that this generated file 1783 // is compatible with the grpc package it is being compiled against. 1784 const _ = grpc.SupportPackageIsVersion6 1785 1786 // AuthClient is the client API for Auth service. 1787 // 1788 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1789 type AuthClient interface { 1790 Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) 1791 Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) 1792 Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) 1793 } 1794 1795 type authClient struct { 1796 cc grpc.ClientConnInterface 1797 } 1798 1799 func NewAuthClient(cc grpc.ClientConnInterface) AuthClient { 1800 return &authClient{cc} 1801 } 1802 1803 func (c *authClient) Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) { 1804 out := new(GenerateResponse) 1805 err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Generate", in, out, opts...) 1806 if err != nil { 1807 return nil, err 1808 } 1809 return out, nil 1810 } 1811 1812 func (c *authClient) Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) { 1813 out := new(InspectResponse) 1814 err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Inspect", in, out, opts...) 1815 if err != nil { 1816 return nil, err 1817 } 1818 return out, nil 1819 } 1820 1821 func (c *authClient) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) { 1822 out := new(TokenResponse) 1823 err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Token", in, out, opts...) 1824 if err != nil { 1825 return nil, err 1826 } 1827 return out, nil 1828 } 1829 1830 // AuthServer is the server API for Auth service. 1831 type AuthServer interface { 1832 Generate(context.Context, *GenerateRequest) (*GenerateResponse, error) 1833 Inspect(context.Context, *InspectRequest) (*InspectResponse, error) 1834 Token(context.Context, *TokenRequest) (*TokenResponse, error) 1835 } 1836 1837 // UnimplementedAuthServer can be embedded to have forward compatible implementations. 1838 type UnimplementedAuthServer struct { 1839 } 1840 1841 func (*UnimplementedAuthServer) Generate(context.Context, *GenerateRequest) (*GenerateResponse, error) { 1842 return nil, status.Errorf(codes.Unimplemented, "method Generate not implemented") 1843 } 1844 func (*UnimplementedAuthServer) Inspect(context.Context, *InspectRequest) (*InspectResponse, error) { 1845 return nil, status.Errorf(codes.Unimplemented, "method Inspect not implemented") 1846 } 1847 func (*UnimplementedAuthServer) Token(context.Context, *TokenRequest) (*TokenResponse, error) { 1848 return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") 1849 } 1850 1851 func RegisterAuthServer(s *grpc.Server, srv AuthServer) { 1852 s.RegisterService(&_Auth_serviceDesc, srv) 1853 } 1854 1855 func _Auth_Generate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1856 in := new(GenerateRequest) 1857 if err := dec(in); err != nil { 1858 return nil, err 1859 } 1860 if interceptor == nil { 1861 return srv.(AuthServer).Generate(ctx, in) 1862 } 1863 info := &grpc.UnaryServerInfo{ 1864 Server: srv, 1865 FullMethod: "/go.micro.auth.Auth/Generate", 1866 } 1867 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1868 return srv.(AuthServer).Generate(ctx, req.(*GenerateRequest)) 1869 } 1870 return interceptor(ctx, in, info, handler) 1871 } 1872 1873 func _Auth_Inspect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1874 in := new(InspectRequest) 1875 if err := dec(in); err != nil { 1876 return nil, err 1877 } 1878 if interceptor == nil { 1879 return srv.(AuthServer).Inspect(ctx, in) 1880 } 1881 info := &grpc.UnaryServerInfo{ 1882 Server: srv, 1883 FullMethod: "/go.micro.auth.Auth/Inspect", 1884 } 1885 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1886 return srv.(AuthServer).Inspect(ctx, req.(*InspectRequest)) 1887 } 1888 return interceptor(ctx, in, info, handler) 1889 } 1890 1891 func _Auth_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1892 in := new(TokenRequest) 1893 if err := dec(in); err != nil { 1894 return nil, err 1895 } 1896 if interceptor == nil { 1897 return srv.(AuthServer).Token(ctx, in) 1898 } 1899 info := &grpc.UnaryServerInfo{ 1900 Server: srv, 1901 FullMethod: "/go.micro.auth.Auth/Token", 1902 } 1903 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1904 return srv.(AuthServer).Token(ctx, req.(*TokenRequest)) 1905 } 1906 return interceptor(ctx, in, info, handler) 1907 } 1908 1909 var _Auth_serviceDesc = grpc.ServiceDesc{ 1910 ServiceName: "go.micro.auth.Auth", 1911 HandlerType: (*AuthServer)(nil), 1912 Methods: []grpc.MethodDesc{ 1913 { 1914 MethodName: "Generate", 1915 Handler: _Auth_Generate_Handler, 1916 }, 1917 { 1918 MethodName: "Inspect", 1919 Handler: _Auth_Inspect_Handler, 1920 }, 1921 { 1922 MethodName: "Token", 1923 Handler: _Auth_Token_Handler, 1924 }, 1925 }, 1926 Streams: []grpc.StreamDesc{}, 1927 Metadata: "auth/service/proto/auth.proto", 1928 } 1929 1930 // AccountsClient is the client API for Accounts service. 1931 // 1932 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1933 type AccountsClient interface { 1934 List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) 1935 } 1936 1937 type accountsClient struct { 1938 cc grpc.ClientConnInterface 1939 } 1940 1941 func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient { 1942 return &accountsClient{cc} 1943 } 1944 1945 func (c *accountsClient) List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) { 1946 out := new(ListAccountsResponse) 1947 err := c.cc.Invoke(ctx, "/go.micro.auth.Accounts/List", in, out, opts...) 1948 if err != nil { 1949 return nil, err 1950 } 1951 return out, nil 1952 } 1953 1954 // AccountsServer is the server API for Accounts service. 1955 type AccountsServer interface { 1956 List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) 1957 } 1958 1959 // UnimplementedAccountsServer can be embedded to have forward compatible implementations. 1960 type UnimplementedAccountsServer struct { 1961 } 1962 1963 func (*UnimplementedAccountsServer) List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) { 1964 return nil, status.Errorf(codes.Unimplemented, "method List not implemented") 1965 } 1966 1967 func RegisterAccountsServer(s *grpc.Server, srv AccountsServer) { 1968 s.RegisterService(&_Accounts_serviceDesc, srv) 1969 } 1970 1971 func _Accounts_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1972 in := new(ListAccountsRequest) 1973 if err := dec(in); err != nil { 1974 return nil, err 1975 } 1976 if interceptor == nil { 1977 return srv.(AccountsServer).List(ctx, in) 1978 } 1979 info := &grpc.UnaryServerInfo{ 1980 Server: srv, 1981 FullMethod: "/go.micro.auth.Accounts/List", 1982 } 1983 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1984 return srv.(AccountsServer).List(ctx, req.(*ListAccountsRequest)) 1985 } 1986 return interceptor(ctx, in, info, handler) 1987 } 1988 1989 var _Accounts_serviceDesc = grpc.ServiceDesc{ 1990 ServiceName: "go.micro.auth.Accounts", 1991 HandlerType: (*AccountsServer)(nil), 1992 Methods: []grpc.MethodDesc{ 1993 { 1994 MethodName: "List", 1995 Handler: _Accounts_List_Handler, 1996 }, 1997 }, 1998 Streams: []grpc.StreamDesc{}, 1999 Metadata: "auth/service/proto/auth.proto", 2000 } 2001 2002 // RulesClient is the client API for Rules service. 2003 // 2004 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2005 type RulesClient interface { 2006 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) 2007 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 2008 List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) 2009 } 2010 2011 type rulesClient struct { 2012 cc grpc.ClientConnInterface 2013 } 2014 2015 func NewRulesClient(cc grpc.ClientConnInterface) RulesClient { 2016 return &rulesClient{cc} 2017 } 2018 2019 func (c *rulesClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { 2020 out := new(CreateResponse) 2021 err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/Create", in, out, opts...) 2022 if err != nil { 2023 return nil, err 2024 } 2025 return out, nil 2026 } 2027 2028 func (c *rulesClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 2029 out := new(DeleteResponse) 2030 err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/Delete", in, out, opts...) 2031 if err != nil { 2032 return nil, err 2033 } 2034 return out, nil 2035 } 2036 2037 func (c *rulesClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { 2038 out := new(ListResponse) 2039 err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/List", in, out, opts...) 2040 if err != nil { 2041 return nil, err 2042 } 2043 return out, nil 2044 } 2045 2046 // RulesServer is the server API for Rules service. 2047 type RulesServer interface { 2048 Create(context.Context, *CreateRequest) (*CreateResponse, error) 2049 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 2050 List(context.Context, *ListRequest) (*ListResponse, error) 2051 } 2052 2053 // UnimplementedRulesServer can be embedded to have forward compatible implementations. 2054 type UnimplementedRulesServer struct { 2055 } 2056 2057 func (*UnimplementedRulesServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { 2058 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 2059 } 2060 func (*UnimplementedRulesServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { 2061 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 2062 } 2063 func (*UnimplementedRulesServer) List(context.Context, *ListRequest) (*ListResponse, error) { 2064 return nil, status.Errorf(codes.Unimplemented, "method List not implemented") 2065 } 2066 2067 func RegisterRulesServer(s *grpc.Server, srv RulesServer) { 2068 s.RegisterService(&_Rules_serviceDesc, srv) 2069 } 2070 2071 func _Rules_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2072 in := new(CreateRequest) 2073 if err := dec(in); err != nil { 2074 return nil, err 2075 } 2076 if interceptor == nil { 2077 return srv.(RulesServer).Create(ctx, in) 2078 } 2079 info := &grpc.UnaryServerInfo{ 2080 Server: srv, 2081 FullMethod: "/go.micro.auth.Rules/Create", 2082 } 2083 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2084 return srv.(RulesServer).Create(ctx, req.(*CreateRequest)) 2085 } 2086 return interceptor(ctx, in, info, handler) 2087 } 2088 2089 func _Rules_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2090 in := new(DeleteRequest) 2091 if err := dec(in); err != nil { 2092 return nil, err 2093 } 2094 if interceptor == nil { 2095 return srv.(RulesServer).Delete(ctx, in) 2096 } 2097 info := &grpc.UnaryServerInfo{ 2098 Server: srv, 2099 FullMethod: "/go.micro.auth.Rules/Delete", 2100 } 2101 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2102 return srv.(RulesServer).Delete(ctx, req.(*DeleteRequest)) 2103 } 2104 return interceptor(ctx, in, info, handler) 2105 } 2106 2107 func _Rules_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2108 in := new(ListRequest) 2109 if err := dec(in); err != nil { 2110 return nil, err 2111 } 2112 if interceptor == nil { 2113 return srv.(RulesServer).List(ctx, in) 2114 } 2115 info := &grpc.UnaryServerInfo{ 2116 Server: srv, 2117 FullMethod: "/go.micro.auth.Rules/List", 2118 } 2119 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2120 return srv.(RulesServer).List(ctx, req.(*ListRequest)) 2121 } 2122 return interceptor(ctx, in, info, handler) 2123 } 2124 2125 var _Rules_serviceDesc = grpc.ServiceDesc{ 2126 ServiceName: "go.micro.auth.Rules", 2127 HandlerType: (*RulesServer)(nil), 2128 Methods: []grpc.MethodDesc{ 2129 { 2130 MethodName: "Create", 2131 Handler: _Rules_Create_Handler, 2132 }, 2133 { 2134 MethodName: "Delete", 2135 Handler: _Rules_Delete_Handler, 2136 }, 2137 { 2138 MethodName: "List", 2139 Handler: _Rules_List_Handler, 2140 }, 2141 }, 2142 Streams: []grpc.StreamDesc{}, 2143 Metadata: "auth/service/proto/auth.proto", 2144 }