Add an API to reset the password
This commit is contained in:
parent
3a4c236984
commit
59c5f7a1ed
@ -11,6 +11,7 @@ package accounts
|
|||||||
import (
|
import (
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
)
|
)
|
||||||
@ -22,6 +23,53 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type EmailVerified struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmailVerified) Reset() {
|
||||||
|
*x = EmailVerified{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_accounts_accounts_v1_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmailVerified) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*EmailVerified) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *EmailVerified) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_accounts_accounts_v1_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)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use EmailVerified.ProtoReflect.Descriptor instead.
|
||||||
|
func (*EmailVerified) Descriptor() ([]byte, []int) {
|
||||||
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmailVerified) GetVerified() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Verified
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// *
|
// *
|
||||||
// Represents a environment UUID only
|
// Represents a environment UUID only
|
||||||
type AccountId struct {
|
type AccountId struct {
|
||||||
@ -35,7 +83,7 @@ type AccountId struct {
|
|||||||
func (x *AccountId) Reset() {
|
func (x *AccountId) Reset() {
|
||||||
*x = AccountId{}
|
*x = AccountId{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[0]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -48,7 +96,7 @@ func (x *AccountId) String() string {
|
|||||||
func (*AccountId) ProtoMessage() {}
|
func (*AccountId) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AccountId) ProtoReflect() protoreflect.Message {
|
func (x *AccountId) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[0]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -61,7 +109,7 @@ func (x *AccountId) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AccountId.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AccountId.ProtoReflect.Descriptor instead.
|
||||||
func (*AccountId) Descriptor() ([]byte, []int) {
|
func (*AccountId) Descriptor() ([]byte, []int) {
|
||||||
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{0}
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccountId) GetId() string {
|
func (x *AccountId) GetId() string {
|
||||||
@ -82,7 +130,7 @@ type AccountPassword struct {
|
|||||||
func (x *AccountPassword) Reset() {
|
func (x *AccountPassword) Reset() {
|
||||||
*x = AccountPassword{}
|
*x = AccountPassword{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[1]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -95,7 +143,7 @@ func (x *AccountPassword) String() string {
|
|||||||
func (*AccountPassword) ProtoMessage() {}
|
func (*AccountPassword) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AccountPassword) ProtoReflect() protoreflect.Message {
|
func (x *AccountPassword) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[1]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[2]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -108,7 +156,7 @@ func (x *AccountPassword) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AccountPassword.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AccountPassword.ProtoReflect.Descriptor instead.
|
||||||
func (*AccountPassword) Descriptor() ([]byte, []int) {
|
func (*AccountPassword) Descriptor() ([]byte, []int) {
|
||||||
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{1}
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccountPassword) GetPassword() string {
|
func (x *AccountPassword) GetPassword() string {
|
||||||
@ -130,7 +178,7 @@ type AccountData struct {
|
|||||||
func (x *AccountData) Reset() {
|
func (x *AccountData) Reset() {
|
||||||
*x = AccountData{}
|
*x = AccountData{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[2]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -143,7 +191,7 @@ func (x *AccountData) String() string {
|
|||||||
func (*AccountData) ProtoMessage() {}
|
func (*AccountData) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AccountData) ProtoReflect() protoreflect.Message {
|
func (x *AccountData) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[2]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[3]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -156,7 +204,7 @@ func (x *AccountData) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AccountData.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AccountData.ProtoReflect.Descriptor instead.
|
||||||
func (*AccountData) Descriptor() ([]byte, []int) {
|
func (*AccountData) Descriptor() ([]byte, []int) {
|
||||||
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{2}
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccountData) GetName() string {
|
func (x *AccountData) GetName() string {
|
||||||
@ -185,7 +233,7 @@ type AccountWithPassword struct {
|
|||||||
func (x *AccountWithPassword) Reset() {
|
func (x *AccountWithPassword) Reset() {
|
||||||
*x = AccountWithPassword{}
|
*x = AccountWithPassword{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[3]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -198,7 +246,7 @@ func (x *AccountWithPassword) String() string {
|
|||||||
func (*AccountWithPassword) ProtoMessage() {}
|
func (*AccountWithPassword) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AccountWithPassword) ProtoReflect() protoreflect.Message {
|
func (x *AccountWithPassword) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[3]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -211,7 +259,7 @@ func (x *AccountWithPassword) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AccountWithPassword.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AccountWithPassword.ProtoReflect.Descriptor instead.
|
||||||
func (*AccountWithPassword) Descriptor() ([]byte, []int) {
|
func (*AccountWithPassword) Descriptor() ([]byte, []int) {
|
||||||
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{3}
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccountWithPassword) GetData() *AccountData {
|
func (x *AccountWithPassword) GetData() *AccountData {
|
||||||
@ -228,6 +276,69 @@ func (x *AccountWithPassword) GetPassword() *AccountPassword {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type AccountWithPasswordAndCode struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||||
|
Password *AccountPassword `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
|
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AccountWithPasswordAndCode) Reset() {
|
||||||
|
*x = AccountWithPasswordAndCode{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_accounts_accounts_v1_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AccountWithPasswordAndCode) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AccountWithPasswordAndCode) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AccountWithPasswordAndCode) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_accounts_accounts_v1_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)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use AccountWithPasswordAndCode.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AccountWithPasswordAndCode) Descriptor() ([]byte, []int) {
|
||||||
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AccountWithPasswordAndCode) GetData() *AccountData {
|
||||||
|
if x != nil {
|
||||||
|
return x.Data
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AccountWithPasswordAndCode) GetPassword() *AccountPassword {
|
||||||
|
if x != nil {
|
||||||
|
return x.Password
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AccountWithPasswordAndCode) GetCode() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Code
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type AccountFull struct {
|
type AccountFull struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -240,7 +351,7 @@ type AccountFull struct {
|
|||||||
func (x *AccountFull) Reset() {
|
func (x *AccountFull) Reset() {
|
||||||
*x = AccountFull{}
|
*x = AccountFull{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[4]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -253,7 +364,7 @@ func (x *AccountFull) String() string {
|
|||||||
func (*AccountFull) ProtoMessage() {}
|
func (*AccountFull) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AccountFull) ProtoReflect() protoreflect.Message {
|
func (x *AccountFull) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[4]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -266,7 +377,7 @@ func (x *AccountFull) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AccountFull.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AccountFull.ProtoReflect.Descriptor instead.
|
||||||
func (*AccountFull) Descriptor() ([]byte, []int) {
|
func (*AccountFull) Descriptor() ([]byte, []int) {
|
||||||
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{4}
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccountFull) GetId() *AccountId {
|
func (x *AccountFull) GetId() *AccountId {
|
||||||
@ -296,7 +407,7 @@ type AccountFullWithToken struct {
|
|||||||
func (x *AccountFullWithToken) Reset() {
|
func (x *AccountFullWithToken) Reset() {
|
||||||
*x = AccountFullWithToken{}
|
*x = AccountFullWithToken{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[5]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -309,7 +420,7 @@ func (x *AccountFullWithToken) String() string {
|
|||||||
func (*AccountFullWithToken) ProtoMessage() {}
|
func (*AccountFullWithToken) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AccountFullWithToken) ProtoReflect() protoreflect.Message {
|
func (x *AccountFullWithToken) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_accounts_accounts_v1_proto_msgTypes[5]
|
mi := &file_accounts_accounts_v1_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -322,7 +433,7 @@ func (x *AccountFullWithToken) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AccountFullWithToken.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AccountFullWithToken.ProtoReflect.Descriptor instead.
|
||||||
func (*AccountFullWithToken) Descriptor() ([]byte, []int) {
|
func (*AccountFullWithToken) Descriptor() ([]byte, []int) {
|
||||||
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{5}
|
return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AccountFullWithToken) GetId() *AccountId {
|
func (x *AccountFullWithToken) GetId() *AccountId {
|
||||||
@ -351,52 +462,79 @@ var File_accounts_accounts_v1_proto protoreflect.FileDescriptor
|
|||||||
var file_accounts_accounts_v1_proto_rawDesc = []byte{
|
var file_accounts_accounts_v1_proto_rawDesc = []byte{
|
||||||
0x0a, 0x1a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
0x0a, 0x1a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||||
0x6e, 0x74, 0x73, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x63,
|
0x6e, 0x74, 0x73, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x63,
|
||||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x1b, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
||||||
0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
|
||||||
0x02, 0x69, 0x64, 0x22, 0x2d, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61,
|
0x6f, 0x74, 0x6f, 0x22, 0x2b, 0x0a, 0x0d, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69,
|
||||||
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64,
|
||||||
0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64,
|
||||||
0x72, 0x64, 0x22, 0x37, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74,
|
0x22, 0x1b, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a,
|
||||||
0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2d, 0x0a,
|
||||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02,
|
0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x77, 0x0a, 0x13, 0x41,
|
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x37, 0x0a, 0x0b,
|
||||||
0x72, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
||||||
0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f,
|
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a,
|
0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||||
0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x77, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
|
0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x29, 0x0a, 0x04,
|
||||||
0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,
|
0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63,
|
||||||
0x77, 0x6f, 0x72, 0x64, 0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46,
|
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74,
|
||||||
0x75, 0x6c, 0x6c, 0x12, 0x23, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
|
||||||
0x13, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
|
0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f,
|
||||||
0x6e, 0x74, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
0x77, 0x6f, 0x72, 0x64, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x92,
|
||||||
0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64,
|
0x01, 0x0a, 0x1a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61,
|
||||||
0x61, 0x74, 0x61, 0x22, 0x7c, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75,
|
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x6e, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x29, 0x0a,
|
||||||
0x6c, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x02, 0x69,
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63,
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61,
|
||||||
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64,
|
0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73,
|
||||||
0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
|
0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x63, 0x63,
|
||||||
|
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73,
|
||||||
|
0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
|
||||||
|
0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
|
||||||
|
0x6f, 0x64, 0x65, 0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75,
|
||||||
|
0x6c, 0x6c, 0x12, 0x23, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
|
||||||
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||||
0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74,
|
0x74, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
||||||
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||||
0x6e, 0x32, 0xa0, 0x01, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x49,
|
0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61,
|
||||||
0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
0x74, 0x61, 0x22, 0x7c, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c,
|
||||||
0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50,
|
0x6c, 0x57, 0x69, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x02, 0x69, 0x64,
|
||||||
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x57, 0x69,
|
0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x06, 0x53, 0x69, 0x67,
|
0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e,
|
||||||
0x6e, 0x49, 0x6e, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41,
|
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
|
||||||
0x72, 0x64, 0x1a, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63,
|
0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x54, 0x6f, 0x6b,
|
0x32, 0xf6, 0x02, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x49, 0x0a,
|
||||||
0x65, 0x6e, 0x22, 0x00, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64, 0x68,
|
0x06, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||||
0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x73,
|
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61,
|
||||||
0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c,
|
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6b,
|
0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x57, 0x69, 0x74,
|
||||||
0x67, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e,
|
||||||
0x6f, 0x33,
|
0x49, 0x6e, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63,
|
||||||
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
|
||||||
|
0x64, 0x1a, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63,
|
||||||
|
0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65,
|
||||||
|
0x6e, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73,
|
||||||
|
0x77, 0x6f, 0x72, 0x64, 0x12, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
|
||||||
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
|
||||||
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
|
||||||
|
0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0b, 0x4e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73,
|
||||||
|
0x77, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
|
||||||
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77,
|
||||||
|
0x6f, 0x72, 0x64, 0x41, 0x6e, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
|
||||||
|
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
|
||||||
|
0x74, 0x79, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0f, 0x49, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56,
|
||||||
|
0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||||
|
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x17,
|
||||||
|
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56,
|
||||||
|
0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x00, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74,
|
||||||
|
0x2e, 0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e,
|
||||||
|
0x6e, 0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73,
|
||||||
|
0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x62,
|
||||||
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -411,31 +549,42 @@ func file_accounts_accounts_v1_proto_rawDescGZIP() []byte {
|
|||||||
return file_accounts_accounts_v1_proto_rawDescData
|
return file_accounts_accounts_v1_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_accounts_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
var file_accounts_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
var file_accounts_accounts_v1_proto_goTypes = []interface{}{
|
var file_accounts_accounts_v1_proto_goTypes = []interface{}{
|
||||||
(*AccountId)(nil), // 0: accounts.AccountId
|
(*EmailVerified)(nil), // 0: accounts.EmailVerified
|
||||||
(*AccountPassword)(nil), // 1: accounts.AccountPassword
|
(*AccountId)(nil), // 1: accounts.AccountId
|
||||||
(*AccountData)(nil), // 2: accounts.AccountData
|
(*AccountPassword)(nil), // 2: accounts.AccountPassword
|
||||||
(*AccountWithPassword)(nil), // 3: accounts.AccountWithPassword
|
(*AccountData)(nil), // 3: accounts.AccountData
|
||||||
(*AccountFull)(nil), // 4: accounts.AccountFull
|
(*AccountWithPassword)(nil), // 4: accounts.AccountWithPassword
|
||||||
(*AccountFullWithToken)(nil), // 5: accounts.AccountFullWithToken
|
(*AccountWithPasswordAndCode)(nil), // 5: accounts.AccountWithPasswordAndCode
|
||||||
|
(*AccountFull)(nil), // 6: accounts.AccountFull
|
||||||
|
(*AccountFullWithToken)(nil), // 7: accounts.AccountFullWithToken
|
||||||
|
(*emptypb.Empty)(nil), // 8: google.protobuf.Empty
|
||||||
}
|
}
|
||||||
var file_accounts_accounts_v1_proto_depIdxs = []int32{
|
var file_accounts_accounts_v1_proto_depIdxs = []int32{
|
||||||
2, // 0: accounts.AccountWithPassword.data:type_name -> accounts.AccountData
|
3, // 0: accounts.AccountWithPassword.data:type_name -> accounts.AccountData
|
||||||
1, // 1: accounts.AccountWithPassword.password:type_name -> accounts.AccountPassword
|
2, // 1: accounts.AccountWithPassword.password:type_name -> accounts.AccountPassword
|
||||||
0, // 2: accounts.AccountFull.id:type_name -> accounts.AccountId
|
3, // 2: accounts.AccountWithPasswordAndCode.data:type_name -> accounts.AccountData
|
||||||
2, // 3: accounts.AccountFull.data:type_name -> accounts.AccountData
|
2, // 3: accounts.AccountWithPasswordAndCode.password:type_name -> accounts.AccountPassword
|
||||||
0, // 4: accounts.AccountFullWithToken.id:type_name -> accounts.AccountId
|
1, // 4: accounts.AccountFull.id:type_name -> accounts.AccountId
|
||||||
2, // 5: accounts.AccountFullWithToken.data:type_name -> accounts.AccountData
|
3, // 5: accounts.AccountFull.data:type_name -> accounts.AccountData
|
||||||
3, // 6: accounts.Accounts.SignUp:input_type -> accounts.AccountWithPassword
|
1, // 6: accounts.AccountFullWithToken.id:type_name -> accounts.AccountId
|
||||||
3, // 7: accounts.Accounts.SignIn:input_type -> accounts.AccountWithPassword
|
3, // 7: accounts.AccountFullWithToken.data:type_name -> accounts.AccountData
|
||||||
5, // 8: accounts.Accounts.SignUp:output_type -> accounts.AccountFullWithToken
|
4, // 8: accounts.Accounts.SignUp:input_type -> accounts.AccountWithPassword
|
||||||
5, // 9: accounts.Accounts.SignIn:output_type -> accounts.AccountFullWithToken
|
4, // 9: accounts.Accounts.SignIn:input_type -> accounts.AccountWithPassword
|
||||||
8, // [8:10] is the sub-list for method output_type
|
3, // 10: accounts.Accounts.ResetPassword:input_type -> accounts.AccountData
|
||||||
6, // [6:8] is the sub-list for method input_type
|
5, // 11: accounts.Accounts.NewPassword:input_type -> accounts.AccountWithPasswordAndCode
|
||||||
6, // [6:6] is the sub-list for extension type_name
|
3, // 12: accounts.Accounts.IsEmailVerified:input_type -> accounts.AccountData
|
||||||
6, // [6:6] is the sub-list for extension extendee
|
7, // 13: accounts.Accounts.SignUp:output_type -> accounts.AccountFullWithToken
|
||||||
0, // [0:6] is the sub-list for field type_name
|
7, // 14: accounts.Accounts.SignIn:output_type -> accounts.AccountFullWithToken
|
||||||
|
8, // 15: accounts.Accounts.ResetPassword:output_type -> google.protobuf.Empty
|
||||||
|
8, // 16: accounts.Accounts.NewPassword:output_type -> google.protobuf.Empty
|
||||||
|
0, // 17: accounts.Accounts.IsEmailVerified:output_type -> accounts.EmailVerified
|
||||||
|
13, // [13:18] is the sub-list for method output_type
|
||||||
|
8, // [8:13] is the sub-list for method input_type
|
||||||
|
8, // [8:8] is the sub-list for extension type_name
|
||||||
|
8, // [8:8] is the sub-list for extension extendee
|
||||||
|
0, // [0:8] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_accounts_accounts_v1_proto_init() }
|
func init() { file_accounts_accounts_v1_proto_init() }
|
||||||
@ -445,7 +594,7 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
}
|
}
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_accounts_accounts_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_accounts_accounts_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AccountId); i {
|
switch v := v.(*EmailVerified); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -457,7 +606,7 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_accounts_accounts_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_accounts_accounts_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AccountPassword); i {
|
switch v := v.(*AccountId); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -469,7 +618,7 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_accounts_accounts_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
file_accounts_accounts_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AccountData); i {
|
switch v := v.(*AccountPassword); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -481,7 +630,7 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_accounts_accounts_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_accounts_accounts_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AccountWithPassword); i {
|
switch v := v.(*AccountData); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -493,7 +642,7 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_accounts_accounts_v1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_accounts_accounts_v1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AccountFull); i {
|
switch v := v.(*AccountWithPassword); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -505,6 +654,30 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_accounts_accounts_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_accounts_accounts_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*AccountWithPasswordAndCode); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_accounts_accounts_v1_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*AccountFull); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_accounts_accounts_v1_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AccountFullWithToken); i {
|
switch v := v.(*AccountFullWithToken); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@ -523,7 +696,7 @@ func file_accounts_accounts_v1_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_accounts_accounts_v1_proto_rawDesc,
|
RawDescriptor: file_accounts_accounts_v1_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 6,
|
NumMessages: 8,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
|
@ -7,6 +7,7 @@ import (
|
|||||||
grpc "google.golang.org/grpc"
|
grpc "google.golang.org/grpc"
|
||||||
codes "google.golang.org/grpc/codes"
|
codes "google.golang.org/grpc/codes"
|
||||||
status "google.golang.org/grpc/status"
|
status "google.golang.org/grpc/status"
|
||||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is a compile-time assertion to ensure that this generated file
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
@ -20,6 +21,9 @@ const _ = grpc.SupportPackageIsVersion7
|
|||||||
type AccountsClient interface {
|
type AccountsClient interface {
|
||||||
SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error)
|
SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error)
|
||||||
SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error)
|
SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error)
|
||||||
|
ResetPassword(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||||
|
NewPassword(ctx context.Context, in *AccountWithPasswordAndCode, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||||
|
IsEmailVerified(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*EmailVerified, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type accountsClient struct {
|
type accountsClient struct {
|
||||||
@ -48,12 +52,42 @@ func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, op
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *accountsClient) ResetPassword(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||||
|
out := new(emptypb.Empty)
|
||||||
|
err := c.cc.Invoke(ctx, "/accounts.Accounts/ResetPassword", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *accountsClient) NewPassword(ctx context.Context, in *AccountWithPasswordAndCode, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||||
|
out := new(emptypb.Empty)
|
||||||
|
err := c.cc.Invoke(ctx, "/accounts.Accounts/NewPassword", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *accountsClient) IsEmailVerified(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*EmailVerified, error) {
|
||||||
|
out := new(EmailVerified)
|
||||||
|
err := c.cc.Invoke(ctx, "/accounts.Accounts/IsEmailVerified", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
// AccountsServer is the server API for Accounts service.
|
// AccountsServer is the server API for Accounts service.
|
||||||
// All implementations must embed UnimplementedAccountsServer
|
// All implementations must embed UnimplementedAccountsServer
|
||||||
// for forward compatibility
|
// for forward compatibility
|
||||||
type AccountsServer interface {
|
type AccountsServer interface {
|
||||||
SignUp(context.Context, *AccountWithPassword) (*AccountFullWithToken, error)
|
SignUp(context.Context, *AccountWithPassword) (*AccountFullWithToken, error)
|
||||||
SignIn(context.Context, *AccountWithPassword) (*AccountFullWithToken, error)
|
SignIn(context.Context, *AccountWithPassword) (*AccountFullWithToken, error)
|
||||||
|
ResetPassword(context.Context, *AccountData) (*emptypb.Empty, error)
|
||||||
|
NewPassword(context.Context, *AccountWithPasswordAndCode) (*emptypb.Empty, error)
|
||||||
|
IsEmailVerified(context.Context, *AccountData) (*EmailVerified, error)
|
||||||
mustEmbedUnimplementedAccountsServer()
|
mustEmbedUnimplementedAccountsServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,6 +101,15 @@ func (UnimplementedAccountsServer) SignUp(context.Context, *AccountWithPassword)
|
|||||||
func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*AccountFullWithToken, error) {
|
func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*AccountFullWithToken, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
|
||||||
}
|
}
|
||||||
|
func (UnimplementedAccountsServer) ResetPassword(context.Context, *AccountData) (*emptypb.Empty, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAccountsServer) NewPassword(context.Context, *AccountWithPasswordAndCode) (*emptypb.Empty, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method NewPassword not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAccountsServer) IsEmailVerified(context.Context, *AccountData) (*EmailVerified, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method IsEmailVerified not implemented")
|
||||||
|
}
|
||||||
func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {}
|
func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {}
|
||||||
|
|
||||||
// UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service.
|
// UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service.
|
||||||
@ -116,6 +159,60 @@ func _Accounts_SignIn_Handler(srv interface{}, ctx context.Context, dec func(int
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _Accounts_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AccountData)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AccountsServer).ResetPassword(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/accounts.Accounts/ResetPassword",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AccountsServer).ResetPassword(ctx, req.(*AccountData))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Accounts_NewPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AccountWithPasswordAndCode)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AccountsServer).NewPassword(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/accounts.Accounts/NewPassword",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AccountsServer).NewPassword(ctx, req.(*AccountWithPasswordAndCode))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Accounts_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AccountData)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AccountsServer).IsEmailVerified(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/accounts.Accounts/IsEmailVerified",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AccountsServer).IsEmailVerified(ctx, req.(*AccountData))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
// Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service.
|
// Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service.
|
||||||
// It's only intended for direct use with grpc.RegisterService,
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
// and not to be introspected or modified (even as a copy)
|
// and not to be introspected or modified (even as a copy)
|
||||||
@ -131,6 +228,18 @@ var Accounts_ServiceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "SignIn",
|
MethodName: "SignIn",
|
||||||
Handler: _Accounts_SignIn_Handler,
|
Handler: _Accounts_SignIn_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "ResetPassword",
|
||||||
|
Handler: _Accounts_ResetPassword_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "NewPassword",
|
||||||
|
Handler: _Accounts_NewPassword_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "IsEmailVerified",
|
||||||
|
Handler: _Accounts_IsEmailVerified_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "accounts/accounts_v1.proto",
|
Metadata: "accounts/accounts_v1.proto",
|
||||||
|
2
proto
2
proto
@ -1 +1 @@
|
|||||||
Subproject commit f2baff2f931c2e839c549f08a7ba8e4d0a3ec578
|
Subproject commit eb82a632ce2eb2cc06d6f23b577df423c2650afa
|
Loading…
Reference in New Issue
Block a user