自动生成 protobuf 代码 (tag: v1.9.0)

This commit is contained in:
sky
2025-09-07 20:38:57 +08:00
parent 07182b7a81
commit 9a503df460
15 changed files with 607 additions and 606 deletions

View File

@@ -0,0 +1,296 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: corestack/anonymous/v1/user.proto
package anonymousv1
import (
v1 "git.shenxianhe.cn/shenxianhe/sdk/corestack/enums/v1"
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 AuthRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
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"` // 邀请码
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AuthRequest) Reset() {
*x = AuthRequest{}
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[0]
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 {
mi := &file_corestack_anonymous_v1_user_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 AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) Descriptor() ([]byte, []int) {
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{0}
}
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{}
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[1]
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 {
mi := &file_corestack_anonymous_v1_user_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 AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) Descriptor() ([]byte, []int) {
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{1}
}
func (x *AuthResponse) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type SendCredentialRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
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存储不同的账号信息
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendCredentialRequest) Reset() {
*x = SendCredentialRequest{}
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[2]
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 {
mi := &file_corestack_anonymous_v1_user_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 SendCredentialRequest.ProtoReflect.Descriptor instead.
func (*SendCredentialRequest) Descriptor() ([]byte, []int) {
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{2}
}
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{}
mi := &file_corestack_anonymous_v1_user_proto_msgTypes[3]
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 {
mi := &file_corestack_anonymous_v1_user_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 SendCredentialResponse.ProtoReflect.Descriptor instead.
func (*SendCredentialResponse) Descriptor() ([]byte, []int) {
return file_corestack_anonymous_v1_user_proto_rawDescGZIP(), []int{3}
}
var File_corestack_anonymous_v1_user_proto protoreflect.FileDescriptor
const file_corestack_anonymous_v1_user_proto_rawDesc = "" +
"\n" +
"!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" +
"\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" +
"\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" +
"\aauth_id\x18\x02 \x01(\tR\x06authId\"\x18\n" +
"\x16SendCredentialResponseBEZCgit.shenxianhe.cn/shenxianhe/sdk/corestack/anonymous/v1;anonymousv1b\x06proto3"
var (
file_corestack_anonymous_v1_user_proto_rawDescOnce sync.Once
file_corestack_anonymous_v1_user_proto_rawDescData []byte
)
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)))
})
return file_corestack_anonymous_v1_user_proto_rawDescData
}
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
}
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
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
}
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 {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_anonymous_v1_user_proto_rawDesc), len(file_corestack_anonymous_v1_user_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_corestack_anonymous_v1_user_proto_goTypes,
DependencyIndexes: file_corestack_anonymous_v1_user_proto_depIdxs,
MessageInfos: file_corestack_anonymous_v1_user_proto_msgTypes,
}.Build()
File_corestack_anonymous_v1_user_proto = out.File
file_corestack_anonymous_v1_user_proto_goTypes = nil
file_corestack_anonymous_v1_user_proto_depIdxs = nil
}