Skip to content
Snippets Groups Projects
api.pb.go 63.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • Eric Chiang's avatar
    Eric Chiang committed
    // Code generated by protoc-gen-go. DO NOT EDIT.
    
    Eric Chiang's avatar
    Eric Chiang committed
    // source: api/api.proto
    
    package api
    
    import (
    
    	context "context"
    	fmt "fmt"
    	proto "github.com/golang/protobuf/proto"
    
    Eric Chiang's avatar
    Eric Chiang committed
    	grpc "google.golang.org/grpc"
    
    	codes "google.golang.org/grpc/codes"
    	status "google.golang.org/grpc/status"
    	math "math"
    
    Eric Chiang's avatar
    Eric Chiang committed
    )
    
    // 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
    
    Eric Chiang's avatar
    Eric Chiang committed
    
    // 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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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 ""
    }
    
    
    Eric Chiang's avatar
    Eric Chiang committed
    // 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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    func (m *CreateClientResp) GetAlreadyExists() bool {
    	if m != nil {
    		return m.AlreadyExists
    	}
    	return false
    }
    
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    func (m *DeleteClientReq) GetId() string {
    	if m != nil {
    		return m.Id
    	}
    	return ""
    }
    
    
    // DeleteClientResp determines if the client is deleted successfully.
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    func (m *DeleteClientResp) GetNotFound() bool {
    	if m != nil {
    		return m.NotFound
    	}
    	return false
    }
    
    
    // UpdateClientReq is a request to update an exisitng client.
    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_1b40cafcd4234784, []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 ""
    }
    
    // UpdateClientResp returns the reponse form updating a client.
    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_1b40cafcd4234784, []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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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_1b40cafcd4234784, []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_1b40cafcd4234784, []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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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
    
    Eric Chiang's avatar
    Eric Chiang committed
    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_1b40cafcd4234784, []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) {