forked from ebhomengo/niki
282 lines
9.3 KiB
Go
282 lines
9.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: contract/protobuf/account/account.proto
|
|
|
|
package account
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
type LoginOrRegisterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
|
|
VerifyCode string `protobuf:"bytes,2,opt,name=verifyCode,proto3" json:"verifyCode,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginOrRegisterRequest) Reset() {
|
|
*x = LoginOrRegisterRequest{}
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginOrRegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginOrRegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginOrRegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[0]
|
|
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 LoginOrRegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginOrRegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_contract_protobuf_account_account_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *LoginOrRegisterRequest) GetPhoneNumber() string {
|
|
if x != nil {
|
|
return x.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginOrRegisterRequest) GetVerifyCode() string {
|
|
if x != nil {
|
|
return x.VerifyCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginOrRegisterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginOrRegisterResponse) Reset() {
|
|
*x = LoginOrRegisterResponse{}
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginOrRegisterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginOrRegisterResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginOrRegisterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[1]
|
|
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 LoginOrRegisterResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginOrRegisterResponse) Descriptor() ([]byte, []int) {
|
|
return file_contract_protobuf_account_account_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginOrRegisterResponse) GetId() uint64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LoginOrRegisterResponse) GetPhoneNumber() string {
|
|
if x != nil {
|
|
return x.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SendOtpRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendOtpRequest) Reset() {
|
|
*x = SendOtpRequest{}
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendOtpRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendOtpRequest) ProtoMessage() {}
|
|
|
|
func (x *SendOtpRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[2]
|
|
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 SendOtpRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendOtpRequest) Descriptor() ([]byte, []int) {
|
|
return file_contract_protobuf_account_account_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SendOtpRequest) GetPhoneNumber() string {
|
|
if x != nil {
|
|
return x.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SendOtpResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendOtpResponse) Reset() {
|
|
*x = SendOtpResponse{}
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendOtpResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendOtpResponse) ProtoMessage() {}
|
|
|
|
func (x *SendOtpResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_contract_protobuf_account_account_proto_msgTypes[3]
|
|
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 SendOtpResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendOtpResponse) Descriptor() ([]byte, []int) {
|
|
return file_contract_protobuf_account_account_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
var File_contract_protobuf_account_account_proto protoreflect.FileDescriptor
|
|
|
|
const file_contract_protobuf_account_account_proto_rawDesc = "" +
|
|
"\n" +
|
|
"'contract/protobuf/account/account.proto\x12\asendOtp\"Z\n" +
|
|
"\x16LoginOrRegisterRequest\x12 \n" +
|
|
"\vphoneNumber\x18\x01 \x01(\tR\vphoneNumber\x12\x1e\n" +
|
|
"\n" +
|
|
"verifyCode\x18\x02 \x01(\tR\n" +
|
|
"verifyCode\"K\n" +
|
|
"\x17LoginOrRegisterResponse\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x04R\x02id\x12 \n" +
|
|
"\vphoneNumber\x18\x02 \x01(\tR\vphoneNumber\"2\n" +
|
|
"\x0eSendOtpRequest\x12 \n" +
|
|
"\vphoneNumber\x18\x01 \x01(\tR\vphoneNumber\"\x11\n" +
|
|
"\x0fSendOtpResponse2\xa4\x01\n" +
|
|
"\x0eAccountService\x12<\n" +
|
|
"\aSendOtp\x12\x17.sendOtp.SendOtpRequest\x1a\x18.sendOtp.SendOtpResponse\x12T\n" +
|
|
"\x0fLoginOrRegister\x12\x1f.sendOtp.LoginOrRegisterRequest\x1a .sendOtp.LoginOrRegisterResponseB\x1dZ\x1bcontract/goprotobuf/accountb\x06proto3"
|
|
|
|
var (
|
|
file_contract_protobuf_account_account_proto_rawDescOnce sync.Once
|
|
file_contract_protobuf_account_account_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_contract_protobuf_account_account_proto_rawDescGZIP() []byte {
|
|
file_contract_protobuf_account_account_proto_rawDescOnce.Do(func() {
|
|
file_contract_protobuf_account_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_contract_protobuf_account_account_proto_rawDesc), len(file_contract_protobuf_account_account_proto_rawDesc)))
|
|
})
|
|
return file_contract_protobuf_account_account_proto_rawDescData
|
|
}
|
|
|
|
var file_contract_protobuf_account_account_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_contract_protobuf_account_account_proto_goTypes = []any{
|
|
(*LoginOrRegisterRequest)(nil), // 0: sendOtp.LoginOrRegisterRequest
|
|
(*LoginOrRegisterResponse)(nil), // 1: sendOtp.LoginOrRegisterResponse
|
|
(*SendOtpRequest)(nil), // 2: sendOtp.SendOtpRequest
|
|
(*SendOtpResponse)(nil), // 3: sendOtp.SendOtpResponse
|
|
}
|
|
var file_contract_protobuf_account_account_proto_depIdxs = []int32{
|
|
2, // 0: sendOtp.AccountService.SendOtp:input_type -> sendOtp.SendOtpRequest
|
|
0, // 1: sendOtp.AccountService.LoginOrRegister:input_type -> sendOtp.LoginOrRegisterRequest
|
|
3, // 2: sendOtp.AccountService.SendOtp:output_type -> sendOtp.SendOtpResponse
|
|
1, // 3: sendOtp.AccountService.LoginOrRegister:output_type -> sendOtp.LoginOrRegisterResponse
|
|
2, // [2:4] is the sub-list for method output_type
|
|
0, // [0:2] 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
|
|
}
|
|
|
|
func init() { file_contract_protobuf_account_account_proto_init() }
|
|
func file_contract_protobuf_account_account_proto_init() {
|
|
if File_contract_protobuf_account_account_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_contract_protobuf_account_account_proto_rawDesc), len(file_contract_protobuf_account_account_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_contract_protobuf_account_account_proto_goTypes,
|
|
DependencyIndexes: file_contract_protobuf_account_account_proto_depIdxs,
|
|
MessageInfos: file_contract_protobuf_account_account_proto_msgTypes,
|
|
}.Build()
|
|
File_contract_protobuf_account_account_proto = out.File
|
|
file_contract_protobuf_account_account_proto_goTypes = nil
|
|
file_contract_protobuf_account_account_proto_depIdxs = nil
|
|
}
|