900 lines
27 KiB
Go
900 lines
27 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.7
|
||
// protoc (unknown)
|
||
// source: user/v1/user.proto
|
||
|
||
package userv1
|
||
|
||
import (
|
||
v1 "git.shenxianhe.cn/shenxianhe/sdk/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 SendCredentialRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=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_user_v1_user_proto_msgTypes[0]
|
||
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_user_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 SendCredentialRequest.ProtoReflect.Descriptor instead.
|
||
func (*SendCredentialRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
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_user_v1_user_proto_msgTypes[1]
|
||
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_user_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 SendCredentialResponse.ProtoReflect.Descriptor instead.
|
||
func (*SendCredentialResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
type AuthRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=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_user_v1_user_proto_msgTypes[2]
|
||
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_user_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 AuthRequest.ProtoReflect.Descriptor instead.
|
||
func (*AuthRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
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_user_v1_user_proto_msgTypes[3]
|
||
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_user_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 AuthResponse.ProtoReflect.Descriptor instead.
|
||
func (*AuthResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *AuthResponse) GetToken() string {
|
||
if x != nil {
|
||
return x.Token
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetPasswordRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AuthType v1.AuthenticationType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=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"` // 凭证,可以是验证码或旧密码
|
||
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // 新密码
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetPasswordRequest) Reset() {
|
||
*x = SetPasswordRequest{}
|
||
mi := &file_user_v1_user_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetPasswordRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetPasswordRequest) ProtoMessage() {}
|
||
|
||
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_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 SetPasswordRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetAuthType() v1.AuthenticationType {
|
||
if x != nil {
|
||
return x.AuthType
|
||
}
|
||
return v1.AuthenticationType(0)
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetAuthId() string {
|
||
if x != nil {
|
||
return x.AuthId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetCredential() string {
|
||
if x != nil {
|
||
return x.Credential
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetPasswordResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetPasswordResponse) Reset() {
|
||
*x = SetPasswordResponse{}
|
||
mi := &file_user_v1_user_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetPasswordResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetPasswordResponse) ProtoMessage() {}
|
||
|
||
func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_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 SetPasswordResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetPasswordResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
type SetNameRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetNameRequest) Reset() {
|
||
*x = SetNameRequest{}
|
||
mi := &file_user_v1_user_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetNameRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetNameRequest) ProtoMessage() {}
|
||
|
||
func (x *SetNameRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[6]
|
||
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 SetNameRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetNameRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *SetNameRequest) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetNameResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetNameResponse) Reset() {
|
||
*x = SetNameResponse{}
|
||
mi := &file_user_v1_user_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetNameResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetNameResponse) ProtoMessage() {}
|
||
|
||
func (x *SetNameResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[7]
|
||
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 SetNameResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetNameResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
type GetAvatarUploadURLRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetAvatarUploadURLRequest) Reset() {
|
||
*x = GetAvatarUploadURLRequest{}
|
||
mi := &file_user_v1_user_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetAvatarUploadURLRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetAvatarUploadURLRequest) ProtoMessage() {}
|
||
|
||
func (x *GetAvatarUploadURLRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[8]
|
||
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 GetAvatarUploadURLRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetAvatarUploadURLRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
type GetAvatarUploadURLResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetAvatarUploadURLResponse) Reset() {
|
||
*x = GetAvatarUploadURLResponse{}
|
||
mi := &file_user_v1_user_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetAvatarUploadURLResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetAvatarUploadURLResponse) ProtoMessage() {}
|
||
|
||
func (x *GetAvatarUploadURLResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[9]
|
||
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 GetAvatarUploadURLResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetAvatarUploadURLResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *GetAvatarUploadURLResponse) GetKey() string {
|
||
if x != nil {
|
||
return x.Key
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetAvatarUploadURLResponse) GetUrl() string {
|
||
if x != nil {
|
||
return x.Url
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetAvatarRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetAvatarRequest) Reset() {
|
||
*x = SetAvatarRequest{}
|
||
mi := &file_user_v1_user_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetAvatarRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetAvatarRequest) ProtoMessage() {}
|
||
|
||
func (x *SetAvatarRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[10]
|
||
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 SetAvatarRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetAvatarRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *SetAvatarRequest) GetKey() string {
|
||
if x != nil {
|
||
return x.Key
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetAvatarResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetAvatarResponse) Reset() {
|
||
*x = SetAvatarResponse{}
|
||
mi := &file_user_v1_user_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetAvatarResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetAvatarResponse) ProtoMessage() {}
|
||
|
||
func (x *SetAvatarResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[11]
|
||
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 SetAvatarResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetAvatarResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
type SetDescriptionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetDescriptionRequest) Reset() {
|
||
*x = SetDescriptionRequest{}
|
||
mi := &file_user_v1_user_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetDescriptionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetDescriptionRequest) ProtoMessage() {}
|
||
|
||
func (x *SetDescriptionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[12]
|
||
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 SetDescriptionRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetDescriptionRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *SetDescriptionRequest) GetDescription() string {
|
||
if x != nil {
|
||
return x.Description
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetDescriptionResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetDescriptionResponse) Reset() {
|
||
*x = SetDescriptionResponse{}
|
||
mi := &file_user_v1_user_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetDescriptionResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetDescriptionResponse) ProtoMessage() {}
|
||
|
||
func (x *SetDescriptionResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[13]
|
||
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 SetDescriptionResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetDescriptionResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
type GetUserInfoRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserInfoRequest) Reset() {
|
||
*x = GetUserInfoRequest{}
|
||
mi := &file_user_v1_user_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserInfoRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserInfoRequest) ProtoMessage() {}
|
||
|
||
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[14]
|
||
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 GetUserInfoRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
type GetUserInfoResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||
InvitationCode string `protobuf:"bytes,3,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"`
|
||
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
|
||
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
||
Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"`
|
||
Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) Reset() {
|
||
*x = GetUserInfoResponse{}
|
||
mi := &file_user_v1_user_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserInfoResponse) ProtoMessage() {}
|
||
|
||
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_user_v1_user_proto_msgTypes[15]
|
||
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 GetUserInfoResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetUserInfoResponse) Descriptor() ([]byte, []int) {
|
||
return file_user_v1_user_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetAvatar() string {
|
||
if x != nil {
|
||
return x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetInvitationCode() string {
|
||
if x != nil {
|
||
return x.InvitationCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetDescription() string {
|
||
if x != nil {
|
||
return x.Description
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetPhone() string {
|
||
if x != nil {
|
||
return x.Phone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserInfoResponse) GetEmail() string {
|
||
if x != nil {
|
||
return x.Email
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_user_v1_user_proto protoreflect.FileDescriptor
|
||
|
||
const file_user_v1_user_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x12user/v1/user.proto\x12\auser.v1\x1a\x13enums/v1/user.proto\"k\n" +
|
||
"\x15SendCredentialRequest\x129\n" +
|
||
"\tauth_type\x18\x01 \x01(\x0e2\x1c.enums.v1.AuthenticationTypeR\bauthType\x12\x17\n" +
|
||
"\aauth_id\x18\x02 \x01(\tR\x06authId\"\x18\n" +
|
||
"\x16SendCredentialResponse\"\xaa\x01\n" +
|
||
"\vAuthRequest\x129\n" +
|
||
"\tauth_type\x18\x01 \x01(\x0e2\x1c.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\"\xa4\x01\n" +
|
||
"\x12SetPasswordRequest\x129\n" +
|
||
"\tauth_type\x18\x01 \x01(\x0e2\x1c.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\x1a\n" +
|
||
"\bpassword\x18\x04 \x01(\tR\bpassword\"\x15\n" +
|
||
"\x13SetPasswordResponse\"$\n" +
|
||
"\x0eSetNameRequest\x12\x12\n" +
|
||
"\x04name\x18\x01 \x01(\tR\x04name\"\x11\n" +
|
||
"\x0fSetNameResponse\"\x1b\n" +
|
||
"\x19GetAvatarUploadURLRequest\"@\n" +
|
||
"\x1aGetAvatarUploadURLResponse\x12\x10\n" +
|
||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x10\n" +
|
||
"\x03url\x18\x02 \x01(\tR\x03url\"$\n" +
|
||
"\x10SetAvatarRequest\x12\x10\n" +
|
||
"\x03key\x18\x01 \x01(\tR\x03key\"\x13\n" +
|
||
"\x11SetAvatarResponse\"9\n" +
|
||
"\x15SetDescriptionRequest\x12 \n" +
|
||
"\vdescription\x18\x01 \x01(\tR\vdescription\"\x18\n" +
|
||
"\x16SetDescriptionResponse\"\x14\n" +
|
||
"\x12GetUserInfoRequest\"\xc8\x01\n" +
|
||
"\x13GetUserInfoResponse\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
|
||
"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12'\n" +
|
||
"\x0finvitation_code\x18\x03 \x01(\tR\x0einvitationCode\x12 \n" +
|
||
"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" +
|
||
"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" +
|
||
"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" +
|
||
"\x05email\x18\a \x01(\tR\x05emailB1Z/git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1b\x06proto3"
|
||
|
||
var (
|
||
file_user_v1_user_proto_rawDescOnce sync.Once
|
||
file_user_v1_user_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_user_v1_user_proto_rawDescGZIP() []byte {
|
||
file_user_v1_user_proto_rawDescOnce.Do(func() {
|
||
file_user_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_v1_user_proto_rawDesc), len(file_user_v1_user_proto_rawDesc)))
|
||
})
|
||
return file_user_v1_user_proto_rawDescData
|
||
}
|
||
|
||
var file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||
var file_user_v1_user_proto_goTypes = []any{
|
||
(*SendCredentialRequest)(nil), // 0: user.v1.SendCredentialRequest
|
||
(*SendCredentialResponse)(nil), // 1: user.v1.SendCredentialResponse
|
||
(*AuthRequest)(nil), // 2: user.v1.AuthRequest
|
||
(*AuthResponse)(nil), // 3: user.v1.AuthResponse
|
||
(*SetPasswordRequest)(nil), // 4: user.v1.SetPasswordRequest
|
||
(*SetPasswordResponse)(nil), // 5: user.v1.SetPasswordResponse
|
||
(*SetNameRequest)(nil), // 6: user.v1.SetNameRequest
|
||
(*SetNameResponse)(nil), // 7: user.v1.SetNameResponse
|
||
(*GetAvatarUploadURLRequest)(nil), // 8: user.v1.GetAvatarUploadURLRequest
|
||
(*GetAvatarUploadURLResponse)(nil), // 9: user.v1.GetAvatarUploadURLResponse
|
||
(*SetAvatarRequest)(nil), // 10: user.v1.SetAvatarRequest
|
||
(*SetAvatarResponse)(nil), // 11: user.v1.SetAvatarResponse
|
||
(*SetDescriptionRequest)(nil), // 12: user.v1.SetDescriptionRequest
|
||
(*SetDescriptionResponse)(nil), // 13: user.v1.SetDescriptionResponse
|
||
(*GetUserInfoRequest)(nil), // 14: user.v1.GetUserInfoRequest
|
||
(*GetUserInfoResponse)(nil), // 15: user.v1.GetUserInfoResponse
|
||
(v1.AuthenticationType)(0), // 16: enums.v1.AuthenticationType
|
||
}
|
||
var file_user_v1_user_proto_depIdxs = []int32{
|
||
16, // 0: user.v1.SendCredentialRequest.auth_type:type_name -> enums.v1.AuthenticationType
|
||
16, // 1: user.v1.AuthRequest.auth_type:type_name -> enums.v1.AuthenticationType
|
||
16, // 2: user.v1.SetPasswordRequest.auth_type:type_name -> enums.v1.AuthenticationType
|
||
3, // [3:3] is the sub-list for method output_type
|
||
3, // [3:3] is the sub-list for method input_type
|
||
3, // [3:3] is the sub-list for extension type_name
|
||
3, // [3:3] is the sub-list for extension extendee
|
||
0, // [0:3] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_user_v1_user_proto_init() }
|
||
func file_user_v1_user_proto_init() {
|
||
if File_user_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_user_v1_user_proto_rawDesc), len(file_user_v1_user_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 16,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_user_v1_user_proto_goTypes,
|
||
DependencyIndexes: file_user_v1_user_proto_depIdxs,
|
||
MessageInfos: file_user_v1_user_proto_msgTypes,
|
||
}.Build()
|
||
File_user_v1_user_proto = out.File
|
||
file_user_v1_user_proto_goTypes = nil
|
||
file_user_v1_user_proto_depIdxs = nil
|
||
}
|