2017-12-01 06:14:09 +05:30
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2021-03-24 08:15:00 +05:30
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.26.0
|
|
|
|
// protoc v3.15.6
|
2016-10-04 10:45:41 +05:30
|
|
|
// source: api/api.proto
|
|
|
|
|
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
2021-03-24 08:15:00 +05:30
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2016-10-04 10:45:41 +05:30
|
|
|
)
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2016-10-04 10:45:41 +05:30
|
|
|
|
|
|
|
// Client represents an OAuth2 client.
|
|
|
|
type Client struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
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"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *Client) Reset() {
|
|
|
|
*x = Client{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *Client) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*Client) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Client) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use Client.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Client) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetSecret() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Secret
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetRedirectUris() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.RedirectUris
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetTrustedPeers() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.TrustedPeers
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetPublic() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Public
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Client) GetLogoUrl() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.LogoUrl
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2016-10-04 10:45:41 +05:30
|
|
|
// CreateClientReq is a request to make a client.
|
|
|
|
type CreateClientReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreateClientReq) Reset() {
|
|
|
|
*x = CreateClientReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *CreateClientReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*CreateClientReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateClientReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use CreateClientReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateClientReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreateClientReq) GetClient() *Client {
|
|
|
|
if x != nil {
|
|
|
|
return x.Client
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateClientResp returns the response from creating a client.
|
|
|
|
type CreateClientResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
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"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreateClientResp) Reset() {
|
|
|
|
*x = CreateClientResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *CreateClientResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*CreateClientResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateClientResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use CreateClientResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateClientResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreateClientResp) GetAlreadyExists() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.AlreadyExists
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreateClientResp) GetClient() *Client {
|
|
|
|
if x != nil {
|
|
|
|
return x.Client
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteClientReq is a request to delete a client.
|
|
|
|
type DeleteClientReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2016-10-04 10:45:41 +05:30
|
|
|
// The ID of the client.
|
2021-03-24 08:15:00 +05:30
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeleteClientReq) Reset() {
|
|
|
|
*x = DeleteClientReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeleteClientReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*DeleteClientReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteClientReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use DeleteClientReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteClientReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeleteClientReq) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-03-18 03:31:21 +05:30
|
|
|
// DeleteClientResp determines if the client is deleted successfully.
|
2016-10-04 10:45:41 +05:30
|
|
|
type DeleteClientResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeleteClientResp) Reset() {
|
|
|
|
*x = DeleteClientResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *DeleteClientResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*DeleteClientResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteClientResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use DeleteClientResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteClientResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeleteClientResp) GetNotFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NotFound
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-12-20 08:31:43 +05:30
|
|
|
// UpdateClientReq is a request to update an existing client.
|
2018-08-08 20:51:02 +05:30
|
|
|
type UpdateClientReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
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"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *UpdateClientReq) Reset() {
|
|
|
|
*x = UpdateClientReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *UpdateClientReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*UpdateClientReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateClientReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use UpdateClientReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateClientReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
2018-08-08 20:51:02 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientReq) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientReq) GetRedirectUris() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.RedirectUris
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientReq) GetTrustedPeers() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.TrustedPeers
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientReq) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientReq) GetLogoUrl() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.LogoUrl
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-12-20 08:31:51 +05:30
|
|
|
// UpdateClientResp returns the response from updating a client.
|
2018-08-08 20:51:02 +05:30
|
|
|
type UpdateClientResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-08-08 20:51:02 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientResp) Reset() {
|
|
|
|
*x = UpdateClientResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *UpdateClientResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*UpdateClientResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateClientResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use UpdateClientResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateClientResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
2018-08-08 20:51:02 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdateClientResp) GetNotFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NotFound
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// Password is an email for password mapping managed by the storage.
|
|
|
|
type Password struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2019-07-31 11:46:18 +05:30
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
2016-10-28 04:58:11 +05:30
|
|
|
// Currently we do not accept plain text passwords. Could be an option in the future.
|
2021-03-24 08:15:00 +05:30
|
|
|
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"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Password) Reset() {
|
|
|
|
*x = Password{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[7]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Password) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*Password) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Password) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[7]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use Password.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Password) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{7}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Password) GetEmail() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Email
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Password) GetHash() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Hash
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Password) GetUsername() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Username
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *Password) GetUserId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.UserId
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// CreatePasswordReq is a request to make a password.
|
|
|
|
type CreatePasswordReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
Password *Password `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreatePasswordReq) Reset() {
|
|
|
|
*x = CreatePasswordReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[8]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *CreatePasswordReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*CreatePasswordReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreatePasswordReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[8]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use CreatePasswordReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreatePasswordReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{8}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreatePasswordReq) GetPassword() *Password {
|
|
|
|
if x != nil {
|
|
|
|
return x.Password
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreatePasswordResp returns the response from creating a password.
|
|
|
|
type CreatePasswordResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreatePasswordResp) Reset() {
|
|
|
|
*x = CreatePasswordResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[9]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *CreatePasswordResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*CreatePasswordResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreatePasswordResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[9]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use CreatePasswordResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreatePasswordResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{9}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *CreatePasswordResp) GetAlreadyExists() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.AlreadyExists
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// UpdatePasswordReq is a request to modify an existing password.
|
|
|
|
type UpdatePasswordReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// The email used to lookup the password. This field cannot be modified
|
2021-03-24 08:15:00 +05:30
|
|
|
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"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordReq) Reset() {
|
|
|
|
*x = UpdatePasswordReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[10]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*UpdatePasswordReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[10]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdatePasswordReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{10}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordReq) GetEmail() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Email
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordReq) GetNewHash() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.NewHash
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordReq) GetNewUsername() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.NewUsername
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// UpdatePasswordResp returns the response from modifying an existing password.
|
|
|
|
type UpdatePasswordResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordResp) Reset() {
|
|
|
|
*x = UpdatePasswordResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[11]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *UpdatePasswordResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*UpdatePasswordResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdatePasswordResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[11]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use UpdatePasswordResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdatePasswordResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{11}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *UpdatePasswordResp) GetNotFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NotFound
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// DeletePasswordReq is a request to delete a password.
|
|
|
|
type DeletePasswordReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeletePasswordReq) Reset() {
|
|
|
|
*x = DeletePasswordReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[12]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *DeletePasswordReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*DeletePasswordReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeletePasswordReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[12]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use DeletePasswordReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeletePasswordReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{12}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeletePasswordReq) GetEmail() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Email
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2016-10-28 04:58:11 +05:30
|
|
|
// DeletePasswordResp returns the response from deleting a password.
|
|
|
|
type DeletePasswordResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeletePasswordResp) Reset() {
|
|
|
|
*x = DeletePasswordResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[13]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *DeletePasswordResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*DeletePasswordResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeletePasswordResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[13]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use DeletePasswordResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeletePasswordResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{13}
|
|
|
|
}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *DeletePasswordResp) GetNotFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NotFound
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-11-18 04:20:58 +05:30
|
|
|
// ListPasswordReq is a request to enumerate passwords.
|
|
|
|
type ListPasswordReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-11-18 04:20:58 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListPasswordReq) Reset() {
|
|
|
|
*x = ListPasswordReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[14]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListPasswordReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*ListPasswordReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListPasswordReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[14]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use ListPasswordReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListPasswordReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{14}
|
|
|
|
}
|
2016-11-18 04:20:58 +05:30
|
|
|
|
2017-02-11 01:03:54 +05:30
|
|
|
// ListPasswordResp returns a list of passwords.
|
2016-11-18 04:20:58 +05:30
|
|
|
type ListPasswordResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
Passwords []*Password `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"`
|
2016-11-18 04:20:58 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListPasswordResp) Reset() {
|
|
|
|
*x = ListPasswordResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[15]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *ListPasswordResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*ListPasswordResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListPasswordResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[15]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use ListPasswordResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListPasswordResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{15}
|
|
|
|
}
|
2016-11-18 04:20:58 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListPasswordResp) GetPasswords() []*Password {
|
|
|
|
if x != nil {
|
|
|
|
return x.Passwords
|
2016-11-18 04:20:58 +05:30
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-11-10 02:03:33 +05:30
|
|
|
// VersionReq is a request to fetch version info.
|
|
|
|
type VersionReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-11-10 02:03:33 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VersionReq) Reset() {
|
|
|
|
*x = VersionReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[16]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VersionReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*VersionReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *VersionReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[16]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use VersionReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*VersionReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{16}
|
|
|
|
}
|
2016-11-10 02:03:33 +05:30
|
|
|
|
|
|
|
// VersionResp holds the version info of components.
|
|
|
|
type VersionResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2016-11-10 02:03:33 +05:30
|
|
|
// Semantic version of the server.
|
2019-07-31 11:46:18 +05:30
|
|
|
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
|
2016-11-10 02:03:33 +05:30
|
|
|
// 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.
|
2021-03-24 08:15:00 +05:30
|
|
|
Api int32 `protobuf:"varint,2,opt,name=api,proto3" json:"api,omitempty"`
|
2016-11-10 02:03:33 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VersionResp) Reset() {
|
|
|
|
*x = VersionResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[17]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VersionResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*VersionResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *VersionResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[17]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use VersionResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*VersionResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{17}
|
|
|
|
}
|
2016-11-10 02:03:33 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VersionResp) GetServer() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Server
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VersionResp) GetApi() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Api
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2017-02-11 01:03:54 +05:30
|
|
|
// RefreshTokenRef contains the metadata for a refresh token that is managed by the storage.
|
|
|
|
type RefreshTokenRef struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2017-02-11 01:03:54 +05:30
|
|
|
// ID of the refresh token.
|
2021-03-24 08:15:00 +05:30
|
|
|
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"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RefreshTokenRef) Reset() {
|
|
|
|
*x = RefreshTokenRef{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[18]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (x *RefreshTokenRef) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*RefreshTokenRef) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *RefreshTokenRef) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[18]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2017-02-11 01:03:54 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use RefreshTokenRef.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RefreshTokenRef) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{18}
|
|
|
|
}
|
2017-02-11 01:03:54 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RefreshTokenRef) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RefreshTokenRef) GetClientId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientId
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RefreshTokenRef) GetCreatedAt() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CreatedAt
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RefreshTokenRef) GetLastUsed() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.LastUsed
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2017-02-11 01:03:54 +05:30
|
|
|
// ListRefreshReq is a request to enumerate the refresh tokens of a user.
|
|
|
|
type ListRefreshReq struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2017-02-11 01:03:54 +05:30
|
|
|
// The "sub" claim returned in the ID Token.
|
2021-03-24 08:15:00 +05:30
|
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshReq) Reset() {
|
|
|
|
*x = ListRefreshReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[19]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2017-02-11 01:03:54 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
|
|
|
|
func (*ListRefreshReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListRefreshReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[19]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use ListRefreshReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListRefreshReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{19}
|
|
|
|
}
|
2017-02-11 01:03:54 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshReq) GetUserId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.UserId
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-02-11 01:03:54 +05:30
|
|
|
// ListRefreshResp returns a list of refresh tokens for a user.
|
|
|
|
type ListRefreshResp struct {
|
2021-03-24 08:15:00 +05:30
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
RefreshTokens []*RefreshTokenRef `protobuf:"bytes,1,rep,name=refresh_tokens,json=refreshTokens,proto3" json:"refresh_tokens,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshResp) Reset() {
|
|
|
|
*x = ListRefreshResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[20]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2017-02-11 01:03:54 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (*ListRefreshResp) ProtoMessage() {}
|
2017-02-15 04:10:20 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[20]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return mi.MessageOf(x)
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use ListRefreshResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListRefreshResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{20}
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef {
|
|
|
|
if x != nil {
|
|
|
|
return x.RefreshTokens
|
|
|
|
}
|
|
|
|
return nil
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// RevokeRefreshReq is a request to revoke the refresh token of the user-client pair.
|
|
|
|
type RevokeRefreshReq struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// The "sub" claim returned in the ID Token.
|
|
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
|
|
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
2017-02-15 04:10:20 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshReq) Reset() {
|
|
|
|
*x = RevokeRefreshReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[21]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2017-12-01 06:14:09 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (*RevokeRefreshReq) ProtoMessage() {}
|
2018-08-07 00:34:56 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[21]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use RevokeRefreshReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RevokeRefreshReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{21}
|
|
|
|
}
|
2018-08-07 00:34:56 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshReq) GetUserId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.UserId
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshReq) GetClientId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientId
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// RevokeRefreshResp determines if the refresh token is revoked successfully.
|
|
|
|
type RevokeRefreshResp struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Set to true is refresh token was not found and token could not be revoked.
|
|
|
|
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshResp) Reset() {
|
|
|
|
*x = RevokeRefreshResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[22]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (*RevokeRefreshResp) ProtoMessage() {}
|
2016-10-28 04:58:11 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[22]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return mi.MessageOf(x)
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use RevokeRefreshResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RevokeRefreshResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{22}
|
2016-11-18 04:20:58 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *RevokeRefreshResp) GetNotFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NotFound
|
2016-11-10 02:03:33 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return false
|
2016-11-10 02:03:33 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
type VerifyPasswordReq struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2017-02-11 01:03:54 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
2017-02-15 04:10:20 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordReq) Reset() {
|
|
|
|
*x = VerifyPasswordReq{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[23]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordReq) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (*VerifyPasswordReq) ProtoMessage() {}
|
2019-07-31 11:46:18 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[23]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-31 11:46:18 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use VerifyPasswordReq.ProtoReflect.Descriptor instead.
|
|
|
|
func (*VerifyPasswordReq) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{23}
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordReq) GetEmail() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Email
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return ""
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordReq) GetPassword() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Password
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return ""
|
2018-08-08 20:51:02 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
type VerifyPasswordResp struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2016-10-04 10:45:41 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
|
|
|
|
NotFound bool `protobuf:"varint,2,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordResp) Reset() {
|
|
|
|
*x = VerifyPasswordResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_api_api_proto_msgTypes[24]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2016-10-28 04:58:11 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (*VerifyPasswordResp) ProtoMessage() {}
|
2016-11-18 04:20:58 +05:30
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_api_api_proto_msgTypes[24]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
2016-11-10 02:03:33 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return mi.MessageOf(x)
|
2016-11-10 02:03:33 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
// Deprecated: Use VerifyPasswordResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*VerifyPasswordResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_api_api_proto_rawDescGZIP(), []int{24}
|
2017-02-11 01:03:54 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordResp) GetVerified() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Verified
|
2017-02-15 04:10:20 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return false
|
2017-02-15 04:10:20 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
func (x *VerifyPasswordResp) GetNotFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NotFound
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
2021-03-24 08:15:00 +05:30
|
|
|
return false
|
2018-08-07 00:34:56 +05:30
|
|
|
}
|
|
|
|
|
2021-03-24 08:15:00 +05:30
|
|
|
var File_api_api_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_api_api_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
|
|
0x03, 0x61, 0x70, 0x69, 0x22, 0xc1, 0x01, 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12,
|
|
|
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
|
|
|
|
0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, 0x72,
|
|
|
|
0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,
|
|
|
|
0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x12, 0x23, 0x0a, 0x0d,
|
|
|
|
0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20,
|
|
|
|
0x03, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72,
|
|
|
|
0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
|
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a,
|
|
|
|
0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x22, 0x36, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61,
|
|
|
|
0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x23, 0x0a, 0x06, 0x63,
|
|
|
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x22, 0x5e, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f,
|
|
|
|
0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c,
|
|
|
|
0x72, 0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x06, 0x63,
|
|
|
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x22, 0x21, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x02, 0x69, 0x64, 0x22, 0x2f, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x69,
|
|
|
|
0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66,
|
|
|
|
0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46,
|
|
|
|
0x6f, 0x75, 0x6e, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43,
|
|
|
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69,
|
|
|
|
0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
|
|
|
|
0x0c, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x73, 0x12, 0x23, 0x0a,
|
|
|
|
0x0d, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x03,
|
|
|
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x50, 0x65, 0x65,
|
|
|
|
0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x6f, 0x5f, 0x75,
|
|
|
|
0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x6f, 0x55, 0x72,
|
|
|
|
0x6c, 0x22, 0x2f, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e,
|
|
|
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75,
|
|
|
|
0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75,
|
|
|
|
0x6e, 0x64, 0x22, 0x69, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x14,
|
|
|
|
0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
|
|
|
|
0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
|
|
|
|
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3e, 0x0a,
|
|
|
|
0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
|
|
|
|
0x65, 0x71, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77,
|
|
|
|
0x6f, 0x72, 0x64, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x3b, 0x0a,
|
|
|
|
0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x65,
|
|
|
|
0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x72,
|
|
|
|
0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x67, 0x0a, 0x11, 0x55, 0x70,
|
|
|
|
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x68, 0x61, 0x73,
|
|
|
|
0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x48, 0x61, 0x73, 0x68,
|
|
|
|
0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x6e,
|
|
|
|
0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73,
|
|
|
|
0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74,
|
|
|
|
0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f,
|
|
|
|
0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x29, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
|
|
0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x65,
|
|
|
|
0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69,
|
|
|
|
0x6c, 0x22, 0x31, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77,
|
|
|
|
0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66,
|
|
|
|
0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46,
|
|
|
|
0x6f, 0x75, 0x6e, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x73, 0x73,
|
|
|
|
0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x22, 0x3f, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50,
|
|
|
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x70,
|
|
|
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d,
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x70,
|
|
|
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x0c, 0x0a, 0x0a, 0x56, 0x65, 0x72, 0x73,
|
|
|
|
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
|
|
|
0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x10, 0x0a,
|
|
|
|
0x03, 0x61, 0x70, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x61, 0x70, 0x69, 0x22,
|
|
|
|
0x7a, 0x0a, 0x0f, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
|
|
|
|
0x65, 0x66, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
|
|
|
0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
|
|
|
|
0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20,
|
|
|
|
0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1b,
|
|
|
|
0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
|
0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x73, 0x65, 0x64, 0x22, 0x29, 0x0a, 0x0e, 0x4c,
|
|
|
|
0x69, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a,
|
|
|
|
0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
|
|
|
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
|
|
0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x0e, 0x72, 0x65, 0x66,
|
|
|
|
0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
|
|
|
0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x66, 0x52, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
|
|
|
|
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x48, 0x0a, 0x10, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65,
|
|
|
|
0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
|
|
|
|
0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65,
|
|
|
|
0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,
|
|
|
|
0x22, 0x30, 0x0a, 0x11, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73,
|
|
|
|
0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75,
|
|
|
|
0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75,
|
|
|
|
0x6e, 0x64, 0x22, 0x45, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x61, 0x73, 0x73,
|
|
|
|
0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a,
|
|
|
|
0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x4d, 0x0a, 0x12, 0x56, 0x65, 0x72,
|
|
|
|
0x69, 0x66, 0x79, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
|
0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x08, 0x52, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e,
|
|
|
|
0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08,
|
|
|
|
0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0xc7, 0x05, 0x0a, 0x03, 0x44, 0x65, 0x78,
|
|
|
|
0x12, 0x3d, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x12, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69,
|
|
|
|
0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65,
|
|
|
|
0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12,
|
|
|
|
0x3d, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12,
|
|
|
|
0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65,
|
|
|
|
0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
|
|
|
0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d,
|
|
|
|
0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x14,
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e,
|
|
|
|
0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
|
|
|
0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x43, 0x0a,
|
|
|
|
0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
|
|
|
|
0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73,
|
|
|
|
0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x72,
|
|
|
|
0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73,
|
|
|
|
0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
|
|
|
|
0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x61,
|
|
|
|
0x70, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
|
|
|
|
0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
|
|
|
0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65,
|
|
|
|
0x71, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61,
|
|
|
|
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0d,
|
|
|
|
0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x14, 0x2e,
|
|
|
|
0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
|
|
|
|
0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61,
|
|
|
|
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x0a,
|
|
|
|
0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x61, 0x70,
|
|
|
|
0x69, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12,
|
|
|
|
0x3a, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x13,
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
|
|
|
|
0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
|
|
0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0d, 0x52,
|
|
|
|
0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x15, 0x2e, 0x61,
|
|
|
|
0x70, 0x69, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
|
|
|
|
0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65,
|
|
|
|
0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x43, 0x0a,
|
|
|
|
0x0e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
|
|
|
|
0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x61, 0x73, 0x73,
|
|
|
|
0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x65,
|
|
|
|
0x72, 0x69, 0x66, 0x79, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x22, 0x00, 0x42, 0x2f, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x6f, 0x73,
|
|
|
|
0x2e, 0x64, 0x65, 0x78, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x19, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
|
|
|
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x78, 0x69, 0x64, 0x70, 0x2f, 0x64, 0x65, 0x78, 0x2f,
|
|
|
|
0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_api_api_proto_rawDescOnce sync.Once
|
|
|
|
file_api_api_proto_rawDescData = file_api_api_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_api_api_proto_rawDescGZIP() []byte {
|
|
|
|
file_api_api_proto_rawDescOnce.Do(func() {
|
|
|
|
file_api_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_api_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_api_api_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_api_api_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
|
|
|
var file_api_api_proto_goTypes = []interface{}{
|
|
|
|
(*Client)(nil), // 0: api.Client
|
|
|
|
(*CreateClientReq)(nil), // 1: api.CreateClientReq
|
|
|
|
(*CreateClientResp)(nil), // 2: api.CreateClientResp
|
|
|
|
(*DeleteClientReq)(nil), // 3: api.DeleteClientReq
|
|
|
|
(*DeleteClientResp)(nil), // 4: api.DeleteClientResp
|
|
|
|
(*UpdateClientReq)(nil), // 5: api.UpdateClientReq
|
|
|
|
(*UpdateClientResp)(nil), // 6: api.UpdateClientResp
|
|
|
|
(*Password)(nil), // 7: api.Password
|
|
|
|
(*CreatePasswordReq)(nil), // 8: api.CreatePasswordReq
|
|
|
|
(*CreatePasswordResp)(nil), // 9: api.CreatePasswordResp
|
|
|
|
(*UpdatePasswordReq)(nil), // 10: api.UpdatePasswordReq
|
|
|
|
(*UpdatePasswordResp)(nil), // 11: api.UpdatePasswordResp
|
|
|
|
(*DeletePasswordReq)(nil), // 12: api.DeletePasswordReq
|
|
|
|
(*DeletePasswordResp)(nil), // 13: api.DeletePasswordResp
|
|
|
|
(*ListPasswordReq)(nil), // 14: api.ListPasswordReq
|
|
|
|
(*ListPasswordResp)(nil), // 15: api.ListPasswordResp
|
|
|
|
(*VersionReq)(nil), // 16: api.VersionReq
|
|
|
|
(*VersionResp)(nil), // 17: api.VersionResp
|
|
|
|
(*RefreshTokenRef)(nil), // 18: api.RefreshTokenRef
|
|
|
|
(*ListRefreshReq)(nil), // 19: api.ListRefreshReq
|
|
|
|
(*ListRefreshResp)(nil), // 20: api.ListRefreshResp
|
|
|
|
(*RevokeRefreshReq)(nil), // 21: api.RevokeRefreshReq
|
|
|
|
(*RevokeRefreshResp)(nil), // 22: api.RevokeRefreshResp
|
|
|
|
(*VerifyPasswordReq)(nil), // 23: api.VerifyPasswordReq
|
|
|
|
(*VerifyPasswordResp)(nil), // 24: api.VerifyPasswordResp
|
|
|
|
}
|
|
|
|
var file_api_api_proto_depIdxs = []int32{
|
|
|
|
0, // 0: api.CreateClientReq.client:type_name -> api.Client
|
|
|
|
0, // 1: api.CreateClientResp.client:type_name -> api.Client
|
|
|
|
7, // 2: api.CreatePasswordReq.password:type_name -> api.Password
|
|
|
|
7, // 3: api.ListPasswordResp.passwords:type_name -> api.Password
|
|
|
|
18, // 4: api.ListRefreshResp.refresh_tokens:type_name -> api.RefreshTokenRef
|
|
|
|
1, // 5: api.Dex.CreateClient:input_type -> api.CreateClientReq
|
|
|
|
5, // 6: api.Dex.UpdateClient:input_type -> api.UpdateClientReq
|
|
|
|
3, // 7: api.Dex.DeleteClient:input_type -> api.DeleteClientReq
|
|
|
|
8, // 8: api.Dex.CreatePassword:input_type -> api.CreatePasswordReq
|
|
|
|
10, // 9: api.Dex.UpdatePassword:input_type -> api.UpdatePasswordReq
|
|
|
|
12, // 10: api.Dex.DeletePassword:input_type -> api.DeletePasswordReq
|
|
|
|
14, // 11: api.Dex.ListPasswords:input_type -> api.ListPasswordReq
|
|
|
|
16, // 12: api.Dex.GetVersion:input_type -> api.VersionReq
|
|
|
|
19, // 13: api.Dex.ListRefresh:input_type -> api.ListRefreshReq
|
|
|
|
21, // 14: api.Dex.RevokeRefresh:input_type -> api.RevokeRefreshReq
|
|
|
|
23, // 15: api.Dex.VerifyPassword:input_type -> api.VerifyPasswordReq
|
|
|
|
2, // 16: api.Dex.CreateClient:output_type -> api.CreateClientResp
|
|
|
|
6, // 17: api.Dex.UpdateClient:output_type -> api.UpdateClientResp
|
|
|
|
4, // 18: api.Dex.DeleteClient:output_type -> api.DeleteClientResp
|
|
|
|
9, // 19: api.Dex.CreatePassword:output_type -> api.CreatePasswordResp
|
|
|
|
11, // 20: api.Dex.UpdatePassword:output_type -> api.UpdatePasswordResp
|
|
|
|
13, // 21: api.Dex.DeletePassword:output_type -> api.DeletePasswordResp
|
|
|
|
15, // 22: api.Dex.ListPasswords:output_type -> api.ListPasswordResp
|
|
|
|
17, // 23: api.Dex.GetVersion:output_type -> api.VersionResp
|
|
|
|
20, // 24: api.Dex.ListRefresh:output_type -> api.ListRefreshResp
|
|
|
|
22, // 25: api.Dex.RevokeRefresh:output_type -> api.RevokeRefreshResp
|
|
|
|
24, // 26: api.Dex.VerifyPassword:output_type -> api.VerifyPasswordResp
|
|
|
|
16, // [16:27] is the sub-list for method output_type
|
|
|
|
5, // [5:16] is the sub-list for method input_type
|
|
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
|
|
0, // [0:5] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_api_api_proto_init() }
|
|
|
|
func file_api_api_proto_init() {
|
|
|
|
if File_api_api_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_api_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Client); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CreateClientReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CreateClientResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*DeleteClientReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*DeleteClientResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*UpdateClientReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*UpdateClientResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Password); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CreatePasswordReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CreatePasswordResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*UpdatePasswordReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*UpdatePasswordResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*DeletePasswordReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*DeletePasswordResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ListPasswordReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ListPasswordResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*VersionReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*VersionResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*RefreshTokenRef); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ListRefreshReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ListRefreshResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*RevokeRefreshReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*RevokeRefreshResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*VerifyPasswordReq); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_api_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*VerifyPasswordResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_api_api_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 25,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
2018-08-07 00:34:56 +05:30
|
|
|
},
|
2021-03-24 08:15:00 +05:30
|
|
|
GoTypes: file_api_api_proto_goTypes,
|
|
|
|
DependencyIndexes: file_api_api_proto_depIdxs,
|
|
|
|
MessageInfos: file_api_api_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_api_api_proto = out.File
|
|
|
|
file_api_api_proto_rawDesc = nil
|
|
|
|
file_api_api_proto_goTypes = nil
|
|
|
|
file_api_api_proto_depIdxs = nil
|
2016-10-04 10:45:41 +05:30
|
|
|
}
|