2025-09-07 17:02:58 +08:00
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
|
// versions:
|
|
|
|
|
|
// protoc-gen-go v1.36.7
|
|
|
|
|
|
// protoc (unknown)
|
2025-09-07 20:38:57 +08:00
|
|
|
|
// source: corestack/anonymous/v1/user.proto
|
2025-09-07 17:02:58 +08:00
|
|
|
|
|
|
|
|
|
|
package anonymousv1
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2025-09-07 20:38:57 +08:00
|
|
|
|
v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1"
|
2025-09-07 17:02:58 +08:00
|
|
|
|
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)
|
|
|
|
|
|
)
|
|
|
|
|
|
|
2025-09-07 17:10:18 +08:00
|
|
|
|
type AuthRequest struct {
|
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
2025-09-07 20:38:57 +08:00
|
|
|
|
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=corestack.enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型
|
|
|
|
|
|
AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID,根据auth_type存储不同的账号信息
|
|
|
|
|
|
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // 凭证,可以是验证码或密码
|
|
|
|
|
|
InvitationCode string `protobuf:"bytes,4,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` // 邀请码
|
2025-09-07 17:10:18 +08:00
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) Reset() {
|
|
|
|
|
|
*x = AuthRequest{}
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[0]
|
2025-09-07 17:10:18 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) String() string {
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (*AuthRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) ProtoReflect() protoreflect.Message {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[0]
|
2025-09-07 17:10:18 +08:00
|
|
|
|
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 AuthRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
func (*AuthRequest) Descriptor() ([]byte, []int) {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{0}
|
2025-09-07 17:10:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) GetAuthType() v1.AuthenticationType {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.AuthType
|
|
|
|
|
|
}
|
|
|
|
|
|
return v1.AuthenticationType(0)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) GetAuthId() string {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.AuthId
|
|
|
|
|
|
}
|
|
|
|
|
|
return ""
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) GetCredential() string {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.Credential
|
|
|
|
|
|
}
|
|
|
|
|
|
return ""
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthRequest) GetInvitationCode() string {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.InvitationCode
|
|
|
|
|
|
}
|
|
|
|
|
|
return ""
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type AuthResponse struct {
|
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthResponse) Reset() {
|
|
|
|
|
|
*x = AuthResponse{}
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[1]
|
2025-09-07 17:10:18 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthResponse) String() string {
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (*AuthResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthResponse) ProtoReflect() protoreflect.Message {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[1]
|
2025-09-07 17:10:18 +08:00
|
|
|
|
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 AuthResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
func (*AuthResponse) Descriptor() ([]byte, []int) {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{1}
|
2025-09-07 17:10:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *AuthResponse) GetToken() string {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.Token
|
|
|
|
|
|
}
|
|
|
|
|
|
return ""
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-07 17:02:58 +08:00
|
|
|
|
type SendCredentialRequest struct {
|
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
2025-09-07 20:38:57 +08:00
|
|
|
|
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=corestack.enums.v1.AuthenticationType" json:"auth_type,omitempty"` // 认证类型
|
|
|
|
|
|
AuthId string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3" json:"auth_id,omitempty"` // 认证ID,根据auth_type存储不同的账号信息
|
2025-09-07 17:02:58 +08:00
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialRequest) Reset() {
|
|
|
|
|
|
*x = SendCredentialRequest{}
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[2]
|
2025-09-07 17:02:58 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialRequest) String() string {
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (*SendCredentialRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialRequest) ProtoReflect() protoreflect.Message {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[2]
|
2025-09-07 17:02:58 +08:00
|
|
|
|
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 SendCredentialRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
func (*SendCredentialRequest) Descriptor() ([]byte, []int) {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{2}
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialRequest) GetAuthType() v1.AuthenticationType {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.AuthType
|
|
|
|
|
|
}
|
|
|
|
|
|
return v1.AuthenticationType(0)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialRequest) GetAuthId() string {
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
return x.AuthId
|
|
|
|
|
|
}
|
|
|
|
|
|
return ""
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SendCredentialResponse struct {
|
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialResponse) Reset() {
|
|
|
|
|
|
*x = SendCredentialResponse{}
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[3]
|
2025-09-07 17:02:58 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialResponse) String() string {
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (*SendCredentialResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *SendCredentialResponse) ProtoReflect() protoreflect.Message {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[3]
|
2025-09-07 17:02:58 +08:00
|
|
|
|
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 SendCredentialResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
func (*SendCredentialResponse) Descriptor() ([]byte, []int) {
|
2025-09-07 20:38:57 +08:00
|
|
|
|
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{3}
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-07 20:38:57 +08:00
|
|
|
|
var File_corestack_anonymous_v1_user_proto protoreflect.FileDescriptor
|
2025-09-07 17:02:58 +08:00
|
|
|
|
|
2025-09-07 20:38:57 +08:00
|
|
|
|
const file_corestack_anonymous_v1_user_proto_rawDesc = "" +
|
2025-09-07 17:02:58 +08:00
|
|
|
|
"\n" +
|
2025-09-07 20:38:57 +08:00
|
|
|
|
"!corestack/anonymous/v1/user.proto\x12\x16corestack.anonymous.v1\x1a\x1dcorestack/enums/v1/user.proto\"\xb4\x01\n" +
|
|
|
|
|
|
"\vAuthRequest\x12C\n" +
|
|
|
|
|
|
"\tauth_type\x18\x01 \x01(\x0e2&.corestack.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" +
|
2025-09-07 17:10:18 +08:00
|
|
|
|
"\aauth_id\x18\x02 \x01(\tR\x06authId\x12\x1e\n" +
|
|
|
|
|
|
"\n" +
|
|
|
|
|
|
"credential\x18\x03 \x01(\tR\n" +
|
|
|
|
|
|
"credential\x12'\n" +
|
|
|
|
|
|
"\x0finvitation_code\x18\x04 \x01(\tR\x0einvitationCode\"$\n" +
|
|
|
|
|
|
"\fAuthResponse\x12\x14\n" +
|
2025-09-07 20:38:57 +08:00
|
|
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"u\n" +
|
|
|
|
|
|
"\x15SendCredentialRequest\x12C\n" +
|
|
|
|
|
|
"\tauth_type\x18\x01 \x01(\x0e2&.corestack.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" +
|
2025-09-07 17:02:58 +08:00
|
|
|
|
"\aauth_id\x18\x02 \x01(\tR\x06authId\"\x18\n" +
|
2025-09-07 20:38:57 +08:00
|
|
|
|
"\x16SendCredentialResponseBEZCgit.shenxianhe.cn/shenxianhe/sdk/corestack/anonymous/v1;anonymousv1b\x06proto3"
|
2025-09-07 17:02:58 +08:00
|
|
|
|
|
|
|
|
|
|
var (
|
2025-09-07 20:38:57 +08:00
|
|
|
|
file_corestack_anonymous_v1_user_proto_rawDescOnce sync.Once
|
|
|
|
|
|
file_corestack_anonymous_v1_user_proto_rawDescData []byte
|
2025-09-07 17:02:58 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
2025-09-07 20:38:57 +08:00
|
|
|
|
func file_corestack_anonymous_v1_user_proto_rawDescGZIP() []byte {
|
|
|
|
|
|
file_corestack_anonymous_v1_user_proto_rawDescOnce.Do(func() {
|
|
|
|
|
|
file_corestack_anonymous_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_anonymous_v1_user_proto_rawDesc), len(file_corestack_anonymous_v1_user_proto_rawDesc)))
|
2025-09-07 17:02:58 +08:00
|
|
|
|
})
|
2025-09-07 20:38:57 +08:00
|
|
|
|
return file_corestack_anonymous_v1_user_proto_rawDescData
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-07 20:38:57 +08:00
|
|
|
|
var file_corestack_anonymous_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
|
|
|
var file_corestack_anonymous_v1_user_proto_goTypes = []any{
|
|
|
|
|
|
(*AuthRequest)(nil), // 0: corestack.anonymous.v1.AuthRequest
|
|
|
|
|
|
(*AuthResponse)(nil), // 1: corestack.anonymous.v1.AuthResponse
|
|
|
|
|
|
(*SendCredentialRequest)(nil), // 2: corestack.anonymous.v1.SendCredentialRequest
|
|
|
|
|
|
(*SendCredentialResponse)(nil), // 3: corestack.anonymous.v1.SendCredentialResponse
|
|
|
|
|
|
(v1.AuthenticationType)(0), // 4: corestack.enums.v1.AuthenticationType
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}
|
2025-09-07 20:38:57 +08:00
|
|
|
|
var file_corestack_anonymous_v1_user_proto_depIdxs = []int32{
|
|
|
|
|
|
4, // 0: corestack.anonymous.v1.AuthRequest.auth_type:type_name -> corestack.enums.v1.AuthenticationType
|
|
|
|
|
|
4, // 1: corestack.anonymous.v1.SendCredentialRequest.auth_type:type_name -> corestack.enums.v1.AuthenticationType
|
2025-09-07 17:10:18 +08:00
|
|
|
|
2, // [2:2] is the sub-list for method output_type
|
|
|
|
|
|
2, // [2:2] is the sub-list for method input_type
|
|
|
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
|
|
|
0, // [0:2] is the sub-list for field type_name
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-07 20:38:57 +08:00
|
|
|
|
func init() { file_corestack_anonymous_v1_user_proto_init() }
|
|
|
|
|
|
func file_corestack_anonymous_v1_user_proto_init() {
|
|
|
|
|
|
if File_corestack_anonymous_v1_user_proto != nil {
|
2025-09-07 17:02:58 +08:00
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
type x struct{}
|
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2025-09-07 20:38:57 +08:00
|
|
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_anonymous_v1_user_proto_rawDesc), len(file_corestack_anonymous_v1_user_proto_rawDesc)),
|
2025-09-07 17:02:58 +08:00
|
|
|
|
NumEnums: 0,
|
2025-09-07 17:10:18 +08:00
|
|
|
|
NumMessages: 4,
|
2025-09-07 17:02:58 +08:00
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
|
},
|
2025-09-07 20:38:57 +08:00
|
|
|
|
GoTypes: file_corestack_anonymous_v1_user_proto_goTypes,
|
|
|
|
|
|
DependencyIndexes: file_corestack_anonymous_v1_user_proto_depIdxs,
|
|
|
|
|
|
MessageInfos: file_corestack_anonymous_v1_user_proto_msgTypes,
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}.Build()
|
2025-09-07 20:38:57 +08:00
|
|
|
|
File_corestack_anonymous_v1_user_proto = out.File
|
|
|
|
|
|
file_corestack_anonymous_v1_user_proto_goTypes = nil
|
|
|
|
|
|
file_corestack_anonymous_v1_user_proto_depIdxs = nil
|
2025-09-07 17:02:58 +08:00
|
|
|
|
}
|