Skip to content
Snippets Groups Projects
api.pb.go 63.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • Mark Sagi-Kazar's avatar
    Mark Sagi-Kazar committed
    // Code generated by protoc-gen-go. DO NOT EDIT.
    // source: api/v2/api.proto
    
    package api
    
    import (
    	context "context"
    	fmt "fmt"
    	proto "github.com/golang/protobuf/proto"
    	grpc "google.golang.org/grpc"
    	codes "google.golang.org/grpc/codes"
    	status "google.golang.org/grpc/status"
    	math "math"
    )
    
    // Reference imports to suppress errors if they are not otherwise used.
    var _ = proto.Marshal
    var _ = fmt.Errorf
    var _ = math.Inf
    
    // This is a compile-time assertion to ensure that this generated file
    // is compatible with the proto package it is being compiled against.
    // A compilation error at this line likely means your copy of the
    // proto package needs to be updated.
    const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    
    // Client represents an OAuth2 client.
    type Client struct {
    	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    	Secret               string   `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
    	RedirectUris         []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
    	TrustedPeers         []string `protobuf:"bytes,4,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
    	Public               bool     `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"`
    	Name                 string   `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
    	LogoUrl              string   `protobuf:"bytes,7,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *Client) Reset()         { *m = Client{} }
    func (m *Client) String() string { return proto.CompactTextString(m) }
    func (*Client) ProtoMessage()    {}
    func (*Client) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{0}
    }
    
    func (m *Client) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_Client.Unmarshal(m, b)
    }
    func (m *Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_Client.Marshal(b, m, deterministic)
    }
    func (m *Client) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_Client.Merge(m, src)
    }
    func (m *Client) XXX_Size() int {
    	return xxx_messageInfo_Client.Size(m)
    }
    func (m *Client) XXX_DiscardUnknown() {
    	xxx_messageInfo_Client.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_Client proto.InternalMessageInfo
    
    func (m *Client) GetId() string {
    	if m != nil {
    		return m.Id
    	}
    	return ""
    }
    
    func (m *Client) GetSecret() string {
    	if m != nil {
    		return m.Secret
    	}
    	return ""
    }
    
    func (m *Client) GetRedirectUris() []string {
    	if m != nil {
    		return m.RedirectUris
    	}
    	return nil
    }
    
    func (m *Client) GetTrustedPeers() []string {
    	if m != nil {
    		return m.TrustedPeers
    	}
    	return nil
    }
    
    func (m *Client) GetPublic() bool {
    	if m != nil {
    		return m.Public
    	}
    	return false
    }
    
    func (m *Client) GetName() string {
    	if m != nil {
    		return m.Name
    	}
    	return ""
    }
    
    func (m *Client) GetLogoUrl() string {
    	if m != nil {
    		return m.LogoUrl
    	}
    	return ""
    }
    
    // CreateClientReq is a request to make a client.
    type CreateClientReq struct {
    	Client               *Client  `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *CreateClientReq) Reset()         { *m = CreateClientReq{} }
    func (m *CreateClientReq) String() string { return proto.CompactTextString(m) }
    func (*CreateClientReq) ProtoMessage()    {}
    func (*CreateClientReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{1}
    }
    
    func (m *CreateClientReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_CreateClientReq.Unmarshal(m, b)
    }
    func (m *CreateClientReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_CreateClientReq.Marshal(b, m, deterministic)
    }
    func (m *CreateClientReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_CreateClientReq.Merge(m, src)
    }
    func (m *CreateClientReq) XXX_Size() int {
    	return xxx_messageInfo_CreateClientReq.Size(m)
    }
    func (m *CreateClientReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_CreateClientReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_CreateClientReq proto.InternalMessageInfo
    
    func (m *CreateClientReq) GetClient() *Client {
    	if m != nil {
    		return m.Client
    	}
    	return nil
    }
    
    // CreateClientResp returns the response from creating a client.
    type CreateClientResp struct {
    	AlreadyExists        bool     `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
    	Client               *Client  `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *CreateClientResp) Reset()         { *m = CreateClientResp{} }
    func (m *CreateClientResp) String() string { return proto.CompactTextString(m) }
    func (*CreateClientResp) ProtoMessage()    {}
    func (*CreateClientResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{2}
    }
    
    func (m *CreateClientResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_CreateClientResp.Unmarshal(m, b)
    }
    func (m *CreateClientResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_CreateClientResp.Marshal(b, m, deterministic)
    }
    func (m *CreateClientResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_CreateClientResp.Merge(m, src)
    }
    func (m *CreateClientResp) XXX_Size() int {
    	return xxx_messageInfo_CreateClientResp.Size(m)
    }
    func (m *CreateClientResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_CreateClientResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_CreateClientResp proto.InternalMessageInfo
    
    func (m *CreateClientResp) GetAlreadyExists() bool {
    	if m != nil {
    		return m.AlreadyExists
    	}
    	return false
    }
    
    func (m *CreateClientResp) GetClient() *Client {
    	if m != nil {
    		return m.Client
    	}
    	return nil
    }
    
    // DeleteClientReq is a request to delete a client.
    type DeleteClientReq struct {
    	// The ID of the client.
    	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *DeleteClientReq) Reset()         { *m = DeleteClientReq{} }
    func (m *DeleteClientReq) String() string { return proto.CompactTextString(m) }
    func (*DeleteClientReq) ProtoMessage()    {}
    func (*DeleteClientReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{3}
    }
    
    func (m *DeleteClientReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_DeleteClientReq.Unmarshal(m, b)
    }
    func (m *DeleteClientReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_DeleteClientReq.Marshal(b, m, deterministic)
    }
    func (m *DeleteClientReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_DeleteClientReq.Merge(m, src)
    }
    func (m *DeleteClientReq) XXX_Size() int {
    	return xxx_messageInfo_DeleteClientReq.Size(m)
    }
    func (m *DeleteClientReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_DeleteClientReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_DeleteClientReq proto.InternalMessageInfo
    
    func (m *DeleteClientReq) GetId() string {
    	if m != nil {
    		return m.Id
    	}
    	return ""
    }
    
    // DeleteClientResp determines if the client is deleted successfully.
    type DeleteClientResp struct {
    	NotFound             bool     `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *DeleteClientResp) Reset()         { *m = DeleteClientResp{} }
    func (m *DeleteClientResp) String() string { return proto.CompactTextString(m) }
    func (*DeleteClientResp) ProtoMessage()    {}
    func (*DeleteClientResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{4}
    }
    
    func (m *DeleteClientResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_DeleteClientResp.Unmarshal(m, b)
    }
    func (m *DeleteClientResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_DeleteClientResp.Marshal(b, m, deterministic)
    }
    func (m *DeleteClientResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_DeleteClientResp.Merge(m, src)
    }
    func (m *DeleteClientResp) XXX_Size() int {
    	return xxx_messageInfo_DeleteClientResp.Size(m)
    }
    func (m *DeleteClientResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_DeleteClientResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_DeleteClientResp proto.InternalMessageInfo
    
    func (m *DeleteClientResp) GetNotFound() bool {
    	if m != nil {
    		return m.NotFound
    	}
    	return false
    }
    
    
    Josh Soref's avatar
    Josh Soref committed
    // UpdateClientReq is a request to update an existing client.
    
    Mark Sagi-Kazar's avatar
    Mark Sagi-Kazar committed
    type UpdateClientReq struct {
    	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    	RedirectUris         []string `protobuf:"bytes,2,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
    	TrustedPeers         []string `protobuf:"bytes,3,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
    	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
    	LogoUrl              string   `protobuf:"bytes,5,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *UpdateClientReq) Reset()         { *m = UpdateClientReq{} }
    func (m *UpdateClientReq) String() string { return proto.CompactTextString(m) }
    func (*UpdateClientReq) ProtoMessage()    {}
    func (*UpdateClientReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{5}
    }
    
    func (m *UpdateClientReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_UpdateClientReq.Unmarshal(m, b)
    }
    func (m *UpdateClientReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_UpdateClientReq.Marshal(b, m, deterministic)
    }
    func (m *UpdateClientReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_UpdateClientReq.Merge(m, src)
    }
    func (m *UpdateClientReq) XXX_Size() int {
    	return xxx_messageInfo_UpdateClientReq.Size(m)
    }
    func (m *UpdateClientReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_UpdateClientReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_UpdateClientReq proto.InternalMessageInfo
    
    func (m *UpdateClientReq) GetId() string {
    	if m != nil {
    		return m.Id
    	}
    	return ""
    }
    
    func (m *UpdateClientReq) GetRedirectUris() []string {
    	if m != nil {
    		return m.RedirectUris
    	}
    	return nil
    }
    
    func (m *UpdateClientReq) GetTrustedPeers() []string {
    	if m != nil {
    		return m.TrustedPeers
    	}
    	return nil
    }
    
    func (m *UpdateClientReq) GetName() string {
    	if m != nil {
    		return m.Name
    	}
    	return ""
    }
    
    func (m *UpdateClientReq) GetLogoUrl() string {
    	if m != nil {
    		return m.LogoUrl
    	}
    	return ""
    }
    
    
    Josh Soref's avatar
    Josh Soref committed
    // UpdateClientResp returns the response from updating a client.
    
    Mark Sagi-Kazar's avatar
    Mark Sagi-Kazar committed
    357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
    type UpdateClientResp struct {
    	NotFound             bool     `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *UpdateClientResp) Reset()         { *m = UpdateClientResp{} }
    func (m *UpdateClientResp) String() string { return proto.CompactTextString(m) }
    func (*UpdateClientResp) ProtoMessage()    {}
    func (*UpdateClientResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{6}
    }
    
    func (m *UpdateClientResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_UpdateClientResp.Unmarshal(m, b)
    }
    func (m *UpdateClientResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_UpdateClientResp.Marshal(b, m, deterministic)
    }
    func (m *UpdateClientResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_UpdateClientResp.Merge(m, src)
    }
    func (m *UpdateClientResp) XXX_Size() int {
    	return xxx_messageInfo_UpdateClientResp.Size(m)
    }
    func (m *UpdateClientResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_UpdateClientResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_UpdateClientResp proto.InternalMessageInfo
    
    func (m *UpdateClientResp) GetNotFound() bool {
    	if m != nil {
    		return m.NotFound
    	}
    	return false
    }
    
    // Password is an email for password mapping managed by the storage.
    type Password struct {
    	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
    	// Currently we do not accept plain text passwords. Could be an option in the future.
    	Hash                 []byte   `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
    	Username             string   `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
    	UserId               string   `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *Password) Reset()         { *m = Password{} }
    func (m *Password) String() string { return proto.CompactTextString(m) }
    func (*Password) ProtoMessage()    {}
    func (*Password) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{7}
    }
    
    func (m *Password) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_Password.Unmarshal(m, b)
    }
    func (m *Password) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_Password.Marshal(b, m, deterministic)
    }
    func (m *Password) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_Password.Merge(m, src)
    }
    func (m *Password) XXX_Size() int {
    	return xxx_messageInfo_Password.Size(m)
    }
    func (m *Password) XXX_DiscardUnknown() {
    	xxx_messageInfo_Password.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_Password proto.InternalMessageInfo
    
    func (m *Password) GetEmail() string {
    	if m != nil {
    		return m.Email
    	}
    	return ""
    }
    
    func (m *Password) GetHash() []byte {
    	if m != nil {
    		return m.Hash
    	}
    	return nil
    }
    
    func (m *Password) GetUsername() string {
    	if m != nil {
    		return m.Username
    	}
    	return ""
    }
    
    func (m *Password) GetUserId() string {
    	if m != nil {
    		return m.UserId
    	}
    	return ""
    }
    
    // CreatePasswordReq is a request to make a password.
    type CreatePasswordReq struct {
    	Password             *Password `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
    	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    	XXX_unrecognized     []byte    `json:"-"`
    	XXX_sizecache        int32     `json:"-"`
    }
    
    func (m *CreatePasswordReq) Reset()         { *m = CreatePasswordReq{} }
    func (m *CreatePasswordReq) String() string { return proto.CompactTextString(m) }
    func (*CreatePasswordReq) ProtoMessage()    {}
    func (*CreatePasswordReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{8}
    }
    
    func (m *CreatePasswordReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_CreatePasswordReq.Unmarshal(m, b)
    }
    func (m *CreatePasswordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_CreatePasswordReq.Marshal(b, m, deterministic)
    }
    func (m *CreatePasswordReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_CreatePasswordReq.Merge(m, src)
    }
    func (m *CreatePasswordReq) XXX_Size() int {
    	return xxx_messageInfo_CreatePasswordReq.Size(m)
    }
    func (m *CreatePasswordReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_CreatePasswordReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_CreatePasswordReq proto.InternalMessageInfo
    
    func (m *CreatePasswordReq) GetPassword() *Password {
    	if m != nil {
    		return m.Password
    	}
    	return nil
    }
    
    // CreatePasswordResp returns the response from creating a password.
    type CreatePasswordResp struct {
    	AlreadyExists        bool     `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *CreatePasswordResp) Reset()         { *m = CreatePasswordResp{} }
    func (m *CreatePasswordResp) String() string { return proto.CompactTextString(m) }
    func (*CreatePasswordResp) ProtoMessage()    {}
    func (*CreatePasswordResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{9}
    }
    
    func (m *CreatePasswordResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_CreatePasswordResp.Unmarshal(m, b)
    }
    func (m *CreatePasswordResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_CreatePasswordResp.Marshal(b, m, deterministic)
    }
    func (m *CreatePasswordResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_CreatePasswordResp.Merge(m, src)
    }
    func (m *CreatePasswordResp) XXX_Size() int {
    	return xxx_messageInfo_CreatePasswordResp.Size(m)
    }
    func (m *CreatePasswordResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_CreatePasswordResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_CreatePasswordResp proto.InternalMessageInfo
    
    func (m *CreatePasswordResp) GetAlreadyExists() bool {
    	if m != nil {
    		return m.AlreadyExists
    	}
    	return false
    }
    
    // UpdatePasswordReq is a request to modify an existing password.
    type UpdatePasswordReq struct {
    	// The email used to lookup the password. This field cannot be modified
    	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
    	NewHash              []byte   `protobuf:"bytes,2,opt,name=new_hash,json=newHash,proto3" json:"new_hash,omitempty"`
    	NewUsername          string   `protobuf:"bytes,3,opt,name=new_username,json=newUsername,proto3" json:"new_username,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *UpdatePasswordReq) Reset()         { *m = UpdatePasswordReq{} }
    func (m *UpdatePasswordReq) String() string { return proto.CompactTextString(m) }
    func (*UpdatePasswordReq) ProtoMessage()    {}
    func (*UpdatePasswordReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{10}
    }
    
    func (m *UpdatePasswordReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_UpdatePasswordReq.Unmarshal(m, b)
    }
    func (m *UpdatePasswordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_UpdatePasswordReq.Marshal(b, m, deterministic)
    }
    func (m *UpdatePasswordReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_UpdatePasswordReq.Merge(m, src)
    }
    func (m *UpdatePasswordReq) XXX_Size() int {
    	return xxx_messageInfo_UpdatePasswordReq.Size(m)
    }
    func (m *UpdatePasswordReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_UpdatePasswordReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_UpdatePasswordReq proto.InternalMessageInfo
    
    func (m *UpdatePasswordReq) GetEmail() string {
    	if m != nil {
    		return m.Email
    	}
    	return ""
    }
    
    func (m *UpdatePasswordReq) GetNewHash() []byte {
    	if m != nil {
    		return m.NewHash
    	}
    	return nil
    }
    
    func (m *UpdatePasswordReq) GetNewUsername() string {
    	if m != nil {
    		return m.NewUsername
    	}
    	return ""
    }
    
    // UpdatePasswordResp returns the response from modifying an existing password.
    type UpdatePasswordResp struct {
    	NotFound             bool     `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *UpdatePasswordResp) Reset()         { *m = UpdatePasswordResp{} }
    func (m *UpdatePasswordResp) String() string { return proto.CompactTextString(m) }
    func (*UpdatePasswordResp) ProtoMessage()    {}
    func (*UpdatePasswordResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{11}
    }
    
    func (m *UpdatePasswordResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_UpdatePasswordResp.Unmarshal(m, b)
    }
    func (m *UpdatePasswordResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_UpdatePasswordResp.Marshal(b, m, deterministic)
    }
    func (m *UpdatePasswordResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_UpdatePasswordResp.Merge(m, src)
    }
    func (m *UpdatePasswordResp) XXX_Size() int {
    	return xxx_messageInfo_UpdatePasswordResp.Size(m)
    }
    func (m *UpdatePasswordResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_UpdatePasswordResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_UpdatePasswordResp proto.InternalMessageInfo
    
    func (m *UpdatePasswordResp) GetNotFound() bool {
    	if m != nil {
    		return m.NotFound
    	}
    	return false
    }
    
    // DeletePasswordReq is a request to delete a password.
    type DeletePasswordReq struct {
    	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *DeletePasswordReq) Reset()         { *m = DeletePasswordReq{} }
    func (m *DeletePasswordReq) String() string { return proto.CompactTextString(m) }
    func (*DeletePasswordReq) ProtoMessage()    {}
    func (*DeletePasswordReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{12}
    }
    
    func (m *DeletePasswordReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_DeletePasswordReq.Unmarshal(m, b)
    }
    func (m *DeletePasswordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_DeletePasswordReq.Marshal(b, m, deterministic)
    }
    func (m *DeletePasswordReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_DeletePasswordReq.Merge(m, src)
    }
    func (m *DeletePasswordReq) XXX_Size() int {
    	return xxx_messageInfo_DeletePasswordReq.Size(m)
    }
    func (m *DeletePasswordReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_DeletePasswordReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_DeletePasswordReq proto.InternalMessageInfo
    
    func (m *DeletePasswordReq) GetEmail() string {
    	if m != nil {
    		return m.Email
    	}
    	return ""
    }
    
    // DeletePasswordResp returns the response from deleting a password.
    type DeletePasswordResp struct {
    	NotFound             bool     `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *DeletePasswordResp) Reset()         { *m = DeletePasswordResp{} }
    func (m *DeletePasswordResp) String() string { return proto.CompactTextString(m) }
    func (*DeletePasswordResp) ProtoMessage()    {}
    func (*DeletePasswordResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{13}
    }
    
    func (m *DeletePasswordResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_DeletePasswordResp.Unmarshal(m, b)
    }
    func (m *DeletePasswordResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_DeletePasswordResp.Marshal(b, m, deterministic)
    }
    func (m *DeletePasswordResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_DeletePasswordResp.Merge(m, src)
    }
    func (m *DeletePasswordResp) XXX_Size() int {
    	return xxx_messageInfo_DeletePasswordResp.Size(m)
    }
    func (m *DeletePasswordResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_DeletePasswordResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_DeletePasswordResp proto.InternalMessageInfo
    
    func (m *DeletePasswordResp) GetNotFound() bool {
    	if m != nil {
    		return m.NotFound
    	}
    	return false
    }
    
    // ListPasswordReq is a request to enumerate passwords.
    type ListPasswordReq struct {
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *ListPasswordReq) Reset()         { *m = ListPasswordReq{} }
    func (m *ListPasswordReq) String() string { return proto.CompactTextString(m) }
    func (*ListPasswordReq) ProtoMessage()    {}
    func (*ListPasswordReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{14}
    }
    
    func (m *ListPasswordReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_ListPasswordReq.Unmarshal(m, b)
    }
    func (m *ListPasswordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_ListPasswordReq.Marshal(b, m, deterministic)
    }
    func (m *ListPasswordReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_ListPasswordReq.Merge(m, src)
    }
    func (m *ListPasswordReq) XXX_Size() int {
    	return xxx_messageInfo_ListPasswordReq.Size(m)
    }
    func (m *ListPasswordReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_ListPasswordReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_ListPasswordReq proto.InternalMessageInfo
    
    // ListPasswordResp returns a list of passwords.
    type ListPasswordResp struct {
    	Passwords            []*Password `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"`
    	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    	XXX_unrecognized     []byte      `json:"-"`
    	XXX_sizecache        int32       `json:"-"`
    }
    
    func (m *ListPasswordResp) Reset()         { *m = ListPasswordResp{} }
    func (m *ListPasswordResp) String() string { return proto.CompactTextString(m) }
    func (*ListPasswordResp) ProtoMessage()    {}
    func (*ListPasswordResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{15}
    }
    
    func (m *ListPasswordResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_ListPasswordResp.Unmarshal(m, b)
    }
    func (m *ListPasswordResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_ListPasswordResp.Marshal(b, m, deterministic)
    }
    func (m *ListPasswordResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_ListPasswordResp.Merge(m, src)
    }
    func (m *ListPasswordResp) XXX_Size() int {
    	return xxx_messageInfo_ListPasswordResp.Size(m)
    }
    func (m *ListPasswordResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_ListPasswordResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_ListPasswordResp proto.InternalMessageInfo
    
    func (m *ListPasswordResp) GetPasswords() []*Password {
    	if m != nil {
    		return m.Passwords
    	}
    	return nil
    }
    
    // VersionReq is a request to fetch version info.
    type VersionReq struct {
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *VersionReq) Reset()         { *m = VersionReq{} }
    func (m *VersionReq) String() string { return proto.CompactTextString(m) }
    func (*VersionReq) ProtoMessage()    {}
    func (*VersionReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{16}
    }
    
    func (m *VersionReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_VersionReq.Unmarshal(m, b)
    }
    func (m *VersionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_VersionReq.Marshal(b, m, deterministic)
    }
    func (m *VersionReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_VersionReq.Merge(m, src)
    }
    func (m *VersionReq) XXX_Size() int {
    	return xxx_messageInfo_VersionReq.Size(m)
    }
    func (m *VersionReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_VersionReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_VersionReq proto.InternalMessageInfo
    
    // VersionResp holds the version info of components.
    type VersionResp struct {
    	// Semantic version of the server.
    	Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
    	// Numeric version of the API. It increases everytime a new call is added to the API.
    	// Clients should use this info to determine if the server supports specific features.
    	Api                  int32    `protobuf:"varint,2,opt,name=api,proto3" json:"api,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *VersionResp) Reset()         { *m = VersionResp{} }
    func (m *VersionResp) String() string { return proto.CompactTextString(m) }
    func (*VersionResp) ProtoMessage()    {}
    func (*VersionResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{17}
    }
    
    func (m *VersionResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_VersionResp.Unmarshal(m, b)
    }
    func (m *VersionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_VersionResp.Marshal(b, m, deterministic)
    }
    func (m *VersionResp) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_VersionResp.Merge(m, src)
    }
    func (m *VersionResp) XXX_Size() int {
    	return xxx_messageInfo_VersionResp.Size(m)
    }
    func (m *VersionResp) XXX_DiscardUnknown() {
    	xxx_messageInfo_VersionResp.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_VersionResp proto.InternalMessageInfo
    
    func (m *VersionResp) GetServer() string {
    	if m != nil {
    		return m.Server
    	}
    	return ""
    }
    
    func (m *VersionResp) GetApi() int32 {
    	if m != nil {
    		return m.Api
    	}
    	return 0
    }
    
    // RefreshTokenRef contains the metadata for a refresh token that is managed by the storage.
    type RefreshTokenRef struct {
    	// ID of the refresh token.
    	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    	ClientId             string   `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
    	CreatedAt            int64    `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
    	LastUsed             int64    `protobuf:"varint,6,opt,name=last_used,json=lastUsed,proto3" json:"last_used,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *RefreshTokenRef) Reset()         { *m = RefreshTokenRef{} }
    func (m *RefreshTokenRef) String() string { return proto.CompactTextString(m) }
    func (*RefreshTokenRef) ProtoMessage()    {}
    func (*RefreshTokenRef) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{18}
    }
    
    func (m *RefreshTokenRef) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_RefreshTokenRef.Unmarshal(m, b)
    }
    func (m *RefreshTokenRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_RefreshTokenRef.Marshal(b, m, deterministic)
    }
    func (m *RefreshTokenRef) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_RefreshTokenRef.Merge(m, src)
    }
    func (m *RefreshTokenRef) XXX_Size() int {
    	return xxx_messageInfo_RefreshTokenRef.Size(m)
    }
    func (m *RefreshTokenRef) XXX_DiscardUnknown() {
    	xxx_messageInfo_RefreshTokenRef.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_RefreshTokenRef proto.InternalMessageInfo
    
    func (m *RefreshTokenRef) GetId() string {
    	if m != nil {
    		return m.Id
    	}
    	return ""
    }
    
    func (m *RefreshTokenRef) GetClientId() string {
    	if m != nil {
    		return m.ClientId
    	}
    	return ""
    }
    
    func (m *RefreshTokenRef) GetCreatedAt() int64 {
    	if m != nil {
    		return m.CreatedAt
    	}
    	return 0
    }
    
    func (m *RefreshTokenRef) GetLastUsed() int64 {
    	if m != nil {
    		return m.LastUsed
    	}
    	return 0
    }
    
    // ListRefreshReq is a request to enumerate the refresh tokens of a user.
    type ListRefreshReq struct {
    	// The "sub" claim returned in the ID Token.
    	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *ListRefreshReq) Reset()         { *m = ListRefreshReq{} }
    func (m *ListRefreshReq) String() string { return proto.CompactTextString(m) }
    func (*ListRefreshReq) ProtoMessage()    {}
    func (*ListRefreshReq) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{19}
    }
    
    func (m *ListRefreshReq) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_ListRefreshReq.Unmarshal(m, b)
    }
    func (m *ListRefreshReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_ListRefreshReq.Marshal(b, m, deterministic)
    }
    func (m *ListRefreshReq) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_ListRefreshReq.Merge(m, src)
    }
    func (m *ListRefreshReq) XXX_Size() int {
    	return xxx_messageInfo_ListRefreshReq.Size(m)
    }
    func (m *ListRefreshReq) XXX_DiscardUnknown() {
    	xxx_messageInfo_ListRefreshReq.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_ListRefreshReq proto.InternalMessageInfo
    
    func (m *ListRefreshReq) GetUserId() string {
    	if m != nil {
    		return m.UserId
    	}
    	return ""
    }
    
    // ListRefreshResp returns a list of refresh tokens for a user.
    type ListRefreshResp struct {
    	RefreshTokens        []*RefreshTokenRef `protobuf:"bytes,1,rep,name=refresh_tokens,json=refreshTokens,proto3" json:"refresh_tokens,omitempty"`
    	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    	XXX_unrecognized     []byte             `json:"-"`
    	XXX_sizecache        int32              `json:"-"`
    }
    
    func (m *ListRefreshResp) Reset()         { *m = ListRefreshResp{} }
    func (m *ListRefreshResp) String() string { return proto.CompactTextString(m) }
    func (*ListRefreshResp) ProtoMessage()    {}
    func (*ListRefreshResp) Descriptor() ([]byte, []int) {
    	return fileDescriptor_14cbb315f08d2e3f, []int{20}
    }
    
    func (m *ListRefreshResp) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_ListRefreshResp.Unmarshal(m, b)
    }
    func (m *ListRefreshResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_ListRefreshResp.Marshal(b, m, deterministic)
    }
    func (m *ListRefreshResp) XXX_Merge(src proto.Message) {