chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-04 15:43:54 +00:00
parent bf518104e4
commit a5b2ecc555
3 changed files with 321 additions and 49 deletions

View File

@@ -373,6 +373,174 @@ func (x *ChangePasswordResponse) GetMessage() string {
return ""
}
type ChangeDataRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
Phone *string `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
FullName *string `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3,oneof" json:"full_name,omitempty"`
AvatarUrl *string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
CustomStatusText *string `protobuf:"bytes,7,opt,name=custom_status_text,json=customStatusText,proto3,oneof" json:"custom_status_text,omitempty"`
CustomStatusEmoji *string `protobuf:"bytes,8,opt,name=custom_status_emoji,json=customStatusEmoji,proto3,oneof" json:"custom_status_emoji,omitempty"`
Timezone *string `protobuf:"bytes,9,opt,name=timezone,proto3,oneof" json:"timezone,omitempty"`
Language *string `protobuf:"bytes,10,opt,name=language,proto3,oneof" json:"language,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChangeDataRequest) Reset() {
*x = ChangeDataRequest{}
mi := &file_account_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChangeDataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeDataRequest) ProtoMessage() {}
func (x *ChangeDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeDataRequest.ProtoReflect.Descriptor instead.
func (*ChangeDataRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
}
func (x *ChangeDataRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *ChangeDataRequest) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
func (x *ChangeDataRequest) GetEmail() string {
if x != nil && x.Email != nil {
return *x.Email
}
return ""
}
func (x *ChangeDataRequest) GetPhone() string {
if x != nil && x.Phone != nil {
return *x.Phone
}
return ""
}
func (x *ChangeDataRequest) GetFullName() string {
if x != nil && x.FullName != nil {
return *x.FullName
}
return ""
}
func (x *ChangeDataRequest) GetAvatarUrl() string {
if x != nil && x.AvatarUrl != nil {
return *x.AvatarUrl
}
return ""
}
func (x *ChangeDataRequest) GetCustomStatusText() string {
if x != nil && x.CustomStatusText != nil {
return *x.CustomStatusText
}
return ""
}
func (x *ChangeDataRequest) GetCustomStatusEmoji() string {
if x != nil && x.CustomStatusEmoji != nil {
return *x.CustomStatusEmoji
}
return ""
}
func (x *ChangeDataRequest) GetTimezone() string {
if x != nil && x.Timezone != nil {
return *x.Timezone
}
return ""
}
func (x *ChangeDataRequest) GetLanguage() string {
if x != nil && x.Language != nil {
return *x.Language
}
return ""
}
type ChangeDataResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChangeDataResponse) Reset() {
*x = ChangeDataResponse{}
mi := &file_account_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChangeDataResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeDataResponse) ProtoMessage() {}
func (x *ChangeDataResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeDataResponse.ProtoReflect.Descriptor instead.
func (*ChangeDataResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{5}
}
func (x *ChangeDataResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *ChangeDataResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type SetPinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
@@ -384,7 +552,7 @@ type SetPinRequest struct {
func (x *SetPinRequest) Reset() {
*x = SetPinRequest{}
mi := &file_account_proto_msgTypes[4]
mi := &file_account_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -396,7 +564,7 @@ func (x *SetPinRequest) String() string {
func (*SetPinRequest) ProtoMessage() {}
func (x *SetPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
mi := &file_account_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -409,7 +577,7 @@ func (x *SetPinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPinRequest.ProtoReflect.Descriptor instead.
func (*SetPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
return file_account_proto_rawDescGZIP(), []int{6}
}
func (x *SetPinRequest) GetUserId() string {
@@ -443,7 +611,7 @@ type SetPinResponse struct {
func (x *SetPinResponse) Reset() {
*x = SetPinResponse{}
mi := &file_account_proto_msgTypes[5]
mi := &file_account_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -455,7 +623,7 @@ func (x *SetPinResponse) String() string {
func (*SetPinResponse) ProtoMessage() {}
func (x *SetPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[5]
mi := &file_account_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -468,7 +636,7 @@ func (x *SetPinResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPinResponse.ProtoReflect.Descriptor instead.
func (*SetPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{5}
return file_account_proto_rawDescGZIP(), []int{7}
}
func (x *SetPinResponse) GetSuccess() bool {
@@ -496,7 +664,7 @@ type UnlockPinRequest struct {
func (x *UnlockPinRequest) Reset() {
*x = UnlockPinRequest{}
mi := &file_account_proto_msgTypes[6]
mi := &file_account_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -508,7 +676,7 @@ func (x *UnlockPinRequest) String() string {
func (*UnlockPinRequest) ProtoMessage() {}
func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[6]
mi := &file_account_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -521,7 +689,7 @@ func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnlockPinRequest.ProtoReflect.Descriptor instead.
func (*UnlockPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{6}
return file_account_proto_rawDescGZIP(), []int{8}
}
func (x *UnlockPinRequest) GetUserId() string {
@@ -555,7 +723,7 @@ type UnlockPinResponse struct {
func (x *UnlockPinResponse) Reset() {
*x = UnlockPinResponse{}
mi := &file_account_proto_msgTypes[7]
mi := &file_account_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -567,7 +735,7 @@ func (x *UnlockPinResponse) String() string {
func (*UnlockPinResponse) ProtoMessage() {}
func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[7]
mi := &file_account_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -580,7 +748,7 @@ func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnlockPinResponse.ProtoReflect.Descriptor instead.
func (*UnlockPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{7}
return file_account_proto_rawDescGZIP(), []int{9}
}
func (x *UnlockPinResponse) GetSuccess() bool {
@@ -607,7 +775,7 @@ type GetPinStatusRequest struct {
func (x *GetPinStatusRequest) Reset() {
*x = GetPinStatusRequest{}
mi := &file_account_proto_msgTypes[8]
mi := &file_account_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -619,7 +787,7 @@ func (x *GetPinStatusRequest) String() string {
func (*GetPinStatusRequest) ProtoMessage() {}
func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[8]
mi := &file_account_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -632,7 +800,7 @@ func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPinStatusRequest.ProtoReflect.Descriptor instead.
func (*GetPinStatusRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{8}
return file_account_proto_rawDescGZIP(), []int{10}
}
func (x *GetPinStatusRequest) GetUserId() string {
@@ -660,7 +828,7 @@ type GetPinStatusResponse struct {
func (x *GetPinStatusResponse) Reset() {
*x = GetPinStatusResponse{}
mi := &file_account_proto_msgTypes[9]
mi := &file_account_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -672,7 +840,7 @@ func (x *GetPinStatusResponse) String() string {
func (*GetPinStatusResponse) ProtoMessage() {}
func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[9]
mi := &file_account_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -685,7 +853,7 @@ func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPinStatusResponse.ProtoReflect.Descriptor instead.
func (*GetPinStatusResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{9}
return file_account_proto_rawDescGZIP(), []int{11}
}
func (x *GetPinStatusResponse) GetHasPin() bool {
@@ -720,7 +888,7 @@ type RemovePinRequest struct {
func (x *RemovePinRequest) Reset() {
*x = RemovePinRequest{}
mi := &file_account_proto_msgTypes[10]
mi := &file_account_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -732,7 +900,7 @@ func (x *RemovePinRequest) String() string {
func (*RemovePinRequest) ProtoMessage() {}
func (x *RemovePinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[10]
mi := &file_account_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -745,7 +913,7 @@ func (x *RemovePinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RemovePinRequest.ProtoReflect.Descriptor instead.
func (*RemovePinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{10}
return file_account_proto_rawDescGZIP(), []int{12}
}
func (x *RemovePinRequest) GetPin() string {
@@ -779,7 +947,7 @@ type RemovePinResponse struct {
func (x *RemovePinResponse) Reset() {
*x = RemovePinResponse{}
mi := &file_account_proto_msgTypes[11]
mi := &file_account_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -791,7 +959,7 @@ func (x *RemovePinResponse) String() string {
func (*RemovePinResponse) ProtoMessage() {}
func (x *RemovePinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[11]
mi := &file_account_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -804,7 +972,7 @@ func (x *RemovePinResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RemovePinResponse.ProtoReflect.Descriptor instead.
func (*RemovePinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{11}
return file_account_proto_rawDescGZIP(), []int{13}
}
func (x *RemovePinResponse) GetSuccess() bool {
@@ -863,6 +1031,32 @@ const file_account_proto_rawDesc = "" +
"\x05_code\"L\n" +
"\x16ChangePasswordResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"\xeb\x03\n" +
"\x11ChangeDataRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
"\n" +
"session_id\x18\x02 \x01(\tR\tsessionId\x12\x19\n" +
"\x05email\x18\x03 \x01(\tH\x00R\x05email\x88\x01\x01\x12\x19\n" +
"\x05phone\x18\x04 \x01(\tH\x01R\x05phone\x88\x01\x01\x12 \n" +
"\tfull_name\x18\x05 \x01(\tH\x02R\bfullName\x88\x01\x01\x12\"\n" +
"\n" +
"avatar_url\x18\x06 \x01(\tH\x03R\tavatarUrl\x88\x01\x01\x121\n" +
"\x12custom_status_text\x18\a \x01(\tH\x04R\x10customStatusText\x88\x01\x01\x123\n" +
"\x13custom_status_emoji\x18\b \x01(\tH\x05R\x11customStatusEmoji\x88\x01\x01\x12\x1f\n" +
"\btimezone\x18\t \x01(\tH\x06R\btimezone\x88\x01\x01\x12\x1f\n" +
"\blanguage\x18\n" +
" \x01(\tH\aR\blanguage\x88\x01\x01B\b\n" +
"\x06_emailB\b\n" +
"\x06_phoneB\f\n" +
"\n" +
"_full_nameB\r\n" +
"\v_avatar_urlB\x15\n" +
"\x13_custom_status_textB\x16\n" +
"\x14_custom_status_emojiB\v\n" +
"\t_timezoneB\v\n" +
"\t_language\"H\n" +
"\x12ChangeDataResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"Y\n" +
"\rSetPinRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
@@ -896,11 +1090,13 @@ const file_account_proto_rawDesc = "" +
"session_id\x18\x03 \x01(\tR\tsessionId\"G\n" +
"\x11RemovePinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xde\x03\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xab\x04\n" +
"\x0eAccountService\x12K\n" +
"\n" +
"GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponse\x12W\n" +
"\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12?\n" +
"\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12K\n" +
"\n" +
"ChangeData\x12\x1d.account.v1.ChangeDataRequest\x1a\x1e.account.v1.ChangeDataResponse\x12?\n" +
"\x06SetPin\x12\x19.account.v1.SetPinRequest\x1a\x1a.account.v1.SetPinResponse\x12H\n" +
"\tUnlockPin\x12\x1c.account.v1.UnlockPinRequest\x1a\x1d.account.v1.UnlockPinResponse\x12Q\n" +
"\fGetPinStatus\x12\x1f.account.v1.GetPinStatusRequest\x1a .account.v1.GetPinStatusResponse\x12H\n" +
@@ -918,36 +1114,40 @@ func file_account_proto_rawDescGZIP() []byte {
return file_account_proto_rawDescData
}
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_account_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse
(*ChangePasswordRequest)(nil), // 2: account.v1.ChangePasswordRequest
(*ChangePasswordResponse)(nil), // 3: account.v1.ChangePasswordResponse
(*SetPinRequest)(nil), // 4: account.v1.SetPinRequest
(*SetPinResponse)(nil), // 5: account.v1.SetPinResponse
(*UnlockPinRequest)(nil), // 6: account.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 7: account.v1.UnlockPinResponse
(*GetPinStatusRequest)(nil), // 8: account.v1.GetPinStatusRequest
(*GetPinStatusResponse)(nil), // 9: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 10: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 11: account.v1.RemovePinResponse
(*ChangeDataRequest)(nil), // 4: account.v1.ChangeDataRequest
(*ChangeDataResponse)(nil), // 5: account.v1.ChangeDataResponse
(*SetPinRequest)(nil), // 6: account.v1.SetPinRequest
(*SetPinResponse)(nil), // 7: account.v1.SetPinResponse
(*UnlockPinRequest)(nil), // 8: account.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 9: account.v1.UnlockPinResponse
(*GetPinStatusRequest)(nil), // 10: account.v1.GetPinStatusRequest
(*GetPinStatusResponse)(nil), // 11: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 12: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 13: account.v1.RemovePinResponse
}
var file_account_proto_depIdxs = []int32{
0, // 0: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest
2, // 1: account.v1.AccountService.ChangePassword:input_type -> account.v1.ChangePasswordRequest
4, // 2: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest
6, // 3: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
8, // 4: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
10, // 5: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 6: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 7: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
5, // 8: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
7, // 9: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
9, // 10: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
11, // 11: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] is the sub-list for method input_type
4, // 2: account.v1.AccountService.ChangeData:input_type -> account.v1.ChangeDataRequest
6, // 3: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest
8, // 4: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
10, // 5: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
12, // 6: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 7: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 8: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
5, // 9: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse
7, // 10: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
9, // 11: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
11, // 12: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
13, // 13: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
7, // [7:14] is the sub-list for method output_type
0, // [0:7] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
@@ -960,13 +1160,14 @@ func file_account_proto_init() {
}
file_account_proto_msgTypes[1].OneofWrappers = []any{}
file_account_proto_msgTypes[2].OneofWrappers = []any{}
file_account_proto_msgTypes[4].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)),
NumEnums: 0,
NumMessages: 12,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},

View File

@@ -21,6 +21,7 @@ const _ = grpc.SupportPackageIsVersion9
const (
AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount"
AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword"
AccountService_ChangeData_FullMethodName = "/account.v1.AccountService/ChangeData"
AccountService_SetPin_FullMethodName = "/account.v1.AccountService/SetPin"
AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin"
AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus"
@@ -33,6 +34,7 @@ const (
type AccountServiceClient interface {
GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
ChangeData(ctx context.Context, in *ChangeDataRequest, opts ...grpc.CallOption) (*ChangeDataResponse, error)
SetPin(ctx context.Context, in *SetPinRequest, opts ...grpc.CallOption) (*SetPinResponse, error)
UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error)
GetPinStatus(ctx context.Context, in *GetPinStatusRequest, opts ...grpc.CallOption) (*GetPinStatusResponse, error)
@@ -67,6 +69,16 @@ func (c *accountServiceClient) ChangePassword(ctx context.Context, in *ChangePas
return out, nil
}
func (c *accountServiceClient) ChangeData(ctx context.Context, in *ChangeDataRequest, opts ...grpc.CallOption) (*ChangeDataResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ChangeDataResponse)
err := c.cc.Invoke(ctx, AccountService_ChangeData_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) SetPin(ctx context.Context, in *SetPinRequest, opts ...grpc.CallOption) (*SetPinResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SetPinResponse)
@@ -113,6 +125,7 @@ func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinReque
type AccountServiceServer interface {
GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
ChangeData(context.Context, *ChangeDataRequest) (*ChangeDataResponse, error)
SetPin(context.Context, *SetPinRequest) (*SetPinResponse, error)
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
GetPinStatus(context.Context, *GetPinStatusRequest) (*GetPinStatusResponse, error)
@@ -133,6 +146,9 @@ func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccount
func (UnimplementedAccountServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ChangePassword not implemented")
}
func (UnimplementedAccountServiceServer) ChangeData(context.Context, *ChangeDataRequest) (*ChangeDataResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ChangeData not implemented")
}
func (UnimplementedAccountServiceServer) SetPin(context.Context, *SetPinRequest) (*SetPinResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SetPin not implemented")
}
@@ -202,6 +218,24 @@ func _AccountService_ChangePassword_Handler(srv interface{}, ctx context.Context
return interceptor(ctx, in, info, handler)
}
func _AccountService_ChangeData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ChangeDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).ChangeData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_ChangeData_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).ChangeData(ctx, req.(*ChangeDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_SetPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetPinRequest)
if err := dec(in); err != nil {
@@ -289,6 +323,10 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
MethodName: "ChangePassword",
Handler: _AccountService_ChangePassword_Handler,
},
{
MethodName: "ChangeData",
Handler: _AccountService_ChangeData_Handler,
},
{
MethodName: "SetPin",
Handler: _AccountService_SetPin_Handler,