Add profiles.proto with UserProfileService and UserMoodHistoryService for managing Telegram user profiles, avatars, mood history, and memorable moments. Add messages.proto with UserMessageService for storing and querying chat messages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1889 lines
60 KiB
Go
1889 lines
60 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.0
|
|
// source: profiles.proto
|
|
|
|
package proto
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 UserStats struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TotalMessages int64 `protobuf:"varint,1,opt,name=total_messages,json=totalMessages,proto3" json:"total_messages,omitempty"`
|
|
FavoriteTopic string `protobuf:"bytes,2,opt,name=favorite_topic,json=favoriteTopic,proto3" json:"favorite_topic,omitempty"`
|
|
MostActiveDay string `protobuf:"bytes,3,opt,name=most_active_day,json=mostActiveDay,proto3" json:"most_active_day,omitempty"`
|
|
MostActiveHour string `protobuf:"bytes,4,opt,name=most_active_hour,json=mostActiveHour,proto3" json:"most_active_hour,omitempty"`
|
|
FavoriteEmoji string `protobuf:"bytes,5,opt,name=favorite_emoji,json=favoriteEmoji,proto3" json:"favorite_emoji,omitempty"`
|
|
AngerLevel float64 `protobuf:"fixed64,6,opt,name=anger_level,json=angerLevel,proto3" json:"anger_level,omitempty"`
|
|
HumorLevel float64 `protobuf:"fixed64,7,opt,name=humor_level,json=humorLevel,proto3" json:"humor_level,omitempty"`
|
|
SarcasmLevel float64 `protobuf:"fixed64,8,opt,name=sarcasm_level,json=sarcasmLevel,proto3" json:"sarcasm_level,omitempty"`
|
|
TopicFrequency map[string]int64 `protobuf:"bytes,9,rep,name=topic_frequency,json=topicFrequency,proto3" json:"topic_frequency,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
MessagesByHour map[string]int64 `protobuf:"bytes,10,rep,name=messages_by_hour,json=messagesByHour,proto3" json:"messages_by_hour,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
MessagesByDay map[string]int64 `protobuf:"bytes,11,rep,name=messages_by_day,json=messagesByDay,proto3" json:"messages_by_day,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
ReactionCount int64 `protobuf:"varint,12,opt,name=reaction_count,json=reactionCount,proto3" json:"reaction_count,omitempty"`
|
|
BotAttitude int32 `protobuf:"varint,13,opt,name=bot_attitude,json=botAttitude,proto3" json:"bot_attitude,omitempty"`
|
|
BotAttitudeReason string `protobuf:"bytes,14,opt,name=bot_attitude_reason,json=botAttitudeReason,proto3" json:"bot_attitude_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserStats) Reset() {
|
|
*x = UserStats{}
|
|
mi := &file_profiles_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserStats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserStats) ProtoMessage() {}
|
|
|
|
func (x *UserStats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 UserStats.ProtoReflect.Descriptor instead.
|
|
func (*UserStats) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UserStats) GetTotalMessages() int64 {
|
|
if x != nil {
|
|
return x.TotalMessages
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStats) GetFavoriteTopic() string {
|
|
if x != nil {
|
|
return x.FavoriteTopic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserStats) GetMostActiveDay() string {
|
|
if x != nil {
|
|
return x.MostActiveDay
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserStats) GetMostActiveHour() string {
|
|
if x != nil {
|
|
return x.MostActiveHour
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserStats) GetFavoriteEmoji() string {
|
|
if x != nil {
|
|
return x.FavoriteEmoji
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserStats) GetAngerLevel() float64 {
|
|
if x != nil {
|
|
return x.AngerLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStats) GetHumorLevel() float64 {
|
|
if x != nil {
|
|
return x.HumorLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStats) GetSarcasmLevel() float64 {
|
|
if x != nil {
|
|
return x.SarcasmLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStats) GetTopicFrequency() map[string]int64 {
|
|
if x != nil {
|
|
return x.TopicFrequency
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserStats) GetMessagesByHour() map[string]int64 {
|
|
if x != nil {
|
|
return x.MessagesByHour
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserStats) GetMessagesByDay() map[string]int64 {
|
|
if x != nil {
|
|
return x.MessagesByDay
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserStats) GetReactionCount() int64 {
|
|
if x != nil {
|
|
return x.ReactionCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStats) GetBotAttitude() int32 {
|
|
if x != nil {
|
|
return x.BotAttitude
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStats) GetBotAttitudeReason() string {
|
|
if x != nil {
|
|
return x.BotAttitudeReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UserFavorites struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WhenMad string `protobuf:"bytes,1,opt,name=when_mad,json=whenMad,proto3" json:"when_mad,omitempty"`
|
|
WhenHappy string `protobuf:"bytes,2,opt,name=when_happy,json=whenHappy,proto3" json:"when_happy,omitempty"`
|
|
WhenAskHelp string `protobuf:"bytes,3,opt,name=when_ask_help,json=whenAskHelp,proto3" json:"when_ask_help,omitempty"`
|
|
PreferredNick string `protobuf:"bytes,4,opt,name=preferred_nick,json=preferredNick,proto3" json:"preferred_nick,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserFavorites) Reset() {
|
|
*x = UserFavorites{}
|
|
mi := &file_profiles_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserFavorites) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserFavorites) ProtoMessage() {}
|
|
|
|
func (x *UserFavorites) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 UserFavorites.ProtoReflect.Descriptor instead.
|
|
func (*UserFavorites) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UserFavorites) GetWhenMad() string {
|
|
if x != nil {
|
|
return x.WhenMad
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserFavorites) GetWhenHappy() string {
|
|
if x != nil {
|
|
return x.WhenHappy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserFavorites) GetWhenAskHelp() string {
|
|
if x != nil {
|
|
return x.WhenAskHelp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserFavorites) GetPreferredNick() string {
|
|
if x != nil {
|
|
return x.PreferredNick
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AvatarStats struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Strength float64 `protobuf:"fixed64,1,opt,name=strength,proto3" json:"strength,omitempty"`
|
|
Agility float64 `protobuf:"fixed64,2,opt,name=agility,proto3" json:"agility,omitempty"`
|
|
Wisdom float64 `protobuf:"fixed64,3,opt,name=wisdom,proto3" json:"wisdom,omitempty"`
|
|
Charisma float64 `protobuf:"fixed64,4,opt,name=charisma,proto3" json:"charisma,omitempty"`
|
|
Tilt float64 `protobuf:"fixed64,5,opt,name=tilt,proto3" json:"tilt,omitempty"`
|
|
HumorLevel float64 `protobuf:"fixed64,6,opt,name=humor_level,json=humorLevel,proto3" json:"humor_level,omitempty"`
|
|
SarcasmLvl float64 `protobuf:"fixed64,7,opt,name=sarcasm_lvl,json=sarcasmLvl,proto3" json:"sarcasm_lvl,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AvatarStats) Reset() {
|
|
*x = AvatarStats{}
|
|
mi := &file_profiles_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AvatarStats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AvatarStats) ProtoMessage() {}
|
|
|
|
func (x *AvatarStats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 AvatarStats.ProtoReflect.Descriptor instead.
|
|
func (*AvatarStats) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *AvatarStats) GetStrength() float64 {
|
|
if x != nil {
|
|
return x.Strength
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AvatarStats) GetAgility() float64 {
|
|
if x != nil {
|
|
return x.Agility
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AvatarStats) GetWisdom() float64 {
|
|
if x != nil {
|
|
return x.Wisdom
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AvatarStats) GetCharisma() float64 {
|
|
if x != nil {
|
|
return x.Charisma
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AvatarStats) GetTilt() float64 {
|
|
if x != nil {
|
|
return x.Tilt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AvatarStats) GetHumorLevel() float64 {
|
|
if x != nil {
|
|
return x.HumorLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AvatarStats) GetSarcasmLvl() float64 {
|
|
if x != nil {
|
|
return x.SarcasmLvl
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Skill struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
|
|
Power float64 `protobuf:"fixed64,3,opt,name=power,proto3" json:"power,omitempty"`
|
|
Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"`
|
|
UnlockedAt int64 `protobuf:"varint,5,opt,name=unlocked_at,json=unlockedAt,proto3" json:"unlocked_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Skill) Reset() {
|
|
*x = Skill{}
|
|
mi := &file_profiles_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Skill) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Skill) ProtoMessage() {}
|
|
|
|
func (x *Skill) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 Skill.ProtoReflect.Descriptor instead.
|
|
func (*Skill) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Skill) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Skill) GetLevel() int32 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Skill) GetPower() float64 {
|
|
if x != nil {
|
|
return x.Power
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Skill) GetActive() bool {
|
|
if x != nil {
|
|
return x.Active
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Skill) GetUnlockedAt() int64 {
|
|
if x != nil {
|
|
return x.UnlockedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Avatar struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Class string `protobuf:"bytes,3,opt,name=class,proto3" json:"class,omitempty"`
|
|
Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
|
|
Experience int64 `protobuf:"varint,5,opt,name=experience,proto3" json:"experience,omitempty"`
|
|
Stats *AvatarStats `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"`
|
|
Skills []*Skill `protobuf:"bytes,7,rep,name=skills,proto3" json:"skills,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Avatar) Reset() {
|
|
*x = Avatar{}
|
|
mi := &file_profiles_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Avatar) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Avatar) ProtoMessage() {}
|
|
|
|
func (x *Avatar) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 Avatar.ProtoReflect.Descriptor instead.
|
|
func (*Avatar) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *Avatar) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Avatar) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Avatar) GetClass() string {
|
|
if x != nil {
|
|
return x.Class
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Avatar) GetLevel() int32 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Avatar) GetExperience() int64 {
|
|
if x != nil {
|
|
return x.Experience
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Avatar) GetStats() *AvatarStats {
|
|
if x != nil {
|
|
return x.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Avatar) GetSkills() []*Skill {
|
|
if x != nil {
|
|
return x.Skills
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Avatar) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Avatar) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserProfile struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
GlobalUserId int64 `protobuf:"varint,2,opt,name=global_user_id,json=globalUserId,proto3" json:"global_user_id,omitempty"`
|
|
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
|
|
JoinDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=join_date,json=joinDate,proto3" json:"join_date,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
Avatar *Avatar `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
Stats *UserStats `protobuf:"bytes,8,opt,name=stats,proto3" json:"stats,omitempty"`
|
|
Favorites *UserFavorites `protobuf:"bytes,9,opt,name=favorites,proto3" json:"favorites,omitempty"`
|
|
Catchphrases []byte `protobuf:"bytes,10,opt,name=catchphrases,proto3" json:"catchphrases,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserProfile) Reset() {
|
|
*x = UserProfile{}
|
|
mi := &file_profiles_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserProfile) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserProfile) ProtoMessage() {}
|
|
|
|
func (x *UserProfile) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 UserProfile.ProtoReflect.Descriptor instead.
|
|
func (*UserProfile) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UserProfile) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserProfile) GetGlobalUserId() int64 {
|
|
if x != nil {
|
|
return x.GlobalUserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserProfile) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserProfile) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserProfile) GetJoinDate() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.JoinDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserProfile) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserProfile) GetAvatar() *Avatar {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserProfile) GetStats() *UserStats {
|
|
if x != nil {
|
|
return x.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserProfile) GetFavorites() *UserFavorites {
|
|
if x != nil {
|
|
return x.Favorites
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserProfile) GetCatchphrases() []byte {
|
|
if x != nil {
|
|
return x.Catchphrases
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserMoodHistory struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
|
|
Mood int32 `protobuf:"varint,4,opt,name=mood,proto3" json:"mood,omitempty"`
|
|
Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserMoodHistory) Reset() {
|
|
*x = UserMoodHistory{}
|
|
mi := &file_profiles_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserMoodHistory) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserMoodHistory) ProtoMessage() {}
|
|
|
|
func (x *UserMoodHistory) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 UserMoodHistory.ProtoReflect.Descriptor instead.
|
|
func (*UserMoodHistory) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UserMoodHistory) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserMoodHistory) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserMoodHistory) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserMoodHistory) GetMood() int32 {
|
|
if x != nil {
|
|
return x.Mood
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserMoodHistory) GetTimestamp() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMoodHistory) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MemorableMoment struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
|
|
Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
|
|
BotResponse string `protobuf:"bytes,5,opt,name=bot_response,json=botResponse,proto3" json:"bot_response,omitempty"`
|
|
ReactionCount int64 `protobuf:"varint,6,opt,name=reaction_count,json=reactionCount,proto3" json:"reaction_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MemorableMoment) Reset() {
|
|
*x = MemorableMoment{}
|
|
mi := &file_profiles_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MemorableMoment) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MemorableMoment) ProtoMessage() {}
|
|
|
|
func (x *MemorableMoment) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 MemorableMoment.ProtoReflect.Descriptor instead.
|
|
func (*MemorableMoment) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *MemorableMoment) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MemorableMoment) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MemorableMoment) GetDate() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Date
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MemorableMoment) GetText() string {
|
|
if x != nil {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MemorableMoment) GetBotResponse() string {
|
|
if x != nil {
|
|
return x.BotResponse
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MemorableMoment) GetReactionCount() int64 {
|
|
if x != nil {
|
|
return x.ReactionCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOrCreateProfileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOrCreateProfileRequest) Reset() {
|
|
*x = GetOrCreateProfileRequest{}
|
|
mi := &file_profiles_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOrCreateProfileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOrCreateProfileRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOrCreateProfileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 GetOrCreateProfileRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOrCreateProfileRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetOrCreateProfileRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetOrCreateProfileRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetProfileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetProfileRequest) Reset() {
|
|
*x = GetProfileRequest{}
|
|
mi := &file_profiles_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetProfileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetProfileRequest) ProtoMessage() {}
|
|
|
|
func (x *GetProfileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 GetProfileRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetProfileRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetProfileRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllProfilesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Profiles []*UserProfile `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAllProfilesResponse) Reset() {
|
|
*x = GetAllProfilesResponse{}
|
|
mi := &file_profiles_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAllProfilesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAllProfilesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAllProfilesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 GetAllProfilesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAllProfilesResponse) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetAllProfilesResponse) GetProfiles() []*UserProfile {
|
|
if x != nil {
|
|
return x.Profiles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AddMessageToStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
|
|
Hour string `protobuf:"bytes,3,opt,name=hour,proto3" json:"hour,omitempty"`
|
|
Day string `protobuf:"bytes,4,opt,name=day,proto3" json:"day,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddMessageToStatsRequest) Reset() {
|
|
*x = AddMessageToStatsRequest{}
|
|
mi := &file_profiles_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddMessageToStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddMessageToStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *AddMessageToStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 AddMessageToStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddMessageToStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *AddMessageToStatsRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddMessageToStatsRequest) GetTopic() string {
|
|
if x != nil {
|
|
return x.Topic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddMessageToStatsRequest) GetHour() string {
|
|
if x != nil {
|
|
return x.Hour
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddMessageToStatsRequest) GetDay() string {
|
|
if x != nil {
|
|
return x.Day
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateReactionCountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Increment int64 `protobuf:"varint,2,opt,name=increment,proto3" json:"increment,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateReactionCountRequest) Reset() {
|
|
*x = UpdateReactionCountRequest{}
|
|
mi := &file_profiles_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateReactionCountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateReactionCountRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateReactionCountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 UpdateReactionCountRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateReactionCountRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *UpdateReactionCountRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateReactionCountRequest) GetIncrement() int64 {
|
|
if x != nil {
|
|
return x.Increment
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetBotAttitudeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
IsDelta bool `protobuf:"varint,4,opt,name=is_delta,json=isDelta,proto3" json:"is_delta,omitempty"` // if true, value is a delta; if false, value is absolute
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetBotAttitudeRequest) Reset() {
|
|
*x = SetBotAttitudeRequest{}
|
|
mi := &file_profiles_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetBotAttitudeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetBotAttitudeRequest) ProtoMessage() {}
|
|
|
|
func (x *SetBotAttitudeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 SetBotAttitudeRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetBotAttitudeRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *SetBotAttitudeRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetBotAttitudeRequest) GetValue() int32 {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetBotAttitudeRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetBotAttitudeRequest) GetIsDelta() bool {
|
|
if x != nil {
|
|
return x.IsDelta
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SaveMemorableMomentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
|
BotResponse string `protobuf:"bytes,3,opt,name=bot_response,json=botResponse,proto3" json:"bot_response,omitempty"`
|
|
ReactionCount int64 `protobuf:"varint,4,opt,name=reaction_count,json=reactionCount,proto3" json:"reaction_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SaveMemorableMomentRequest) Reset() {
|
|
*x = SaveMemorableMomentRequest{}
|
|
mi := &file_profiles_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SaveMemorableMomentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SaveMemorableMomentRequest) ProtoMessage() {}
|
|
|
|
func (x *SaveMemorableMomentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 SaveMemorableMomentRequest.ProtoReflect.Descriptor instead.
|
|
func (*SaveMemorableMomentRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *SaveMemorableMomentRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SaveMemorableMomentRequest) GetText() string {
|
|
if x != nil {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SaveMemorableMomentRequest) GetBotResponse() string {
|
|
if x != nil {
|
|
return x.BotResponse
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SaveMemorableMomentRequest) GetReactionCount() int64 {
|
|
if x != nil {
|
|
return x.ReactionCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMemorableMomentsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMemorableMomentsRequest) Reset() {
|
|
*x = GetMemorableMomentsRequest{}
|
|
mi := &file_profiles_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMemorableMomentsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMemorableMomentsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetMemorableMomentsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_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 GetMemorableMomentsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetMemorableMomentsRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *GetMemorableMomentsRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetMemorableMomentsRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMemorableMomentsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Moments []*MemorableMoment `protobuf:"bytes,1,rep,name=moments,proto3" json:"moments,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMemorableMomentsResponse) Reset() {
|
|
*x = GetMemorableMomentsResponse{}
|
|
mi := &file_profiles_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMemorableMomentsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMemorableMomentsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetMemorableMomentsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[16]
|
|
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 GetMemorableMomentsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetMemorableMomentsResponse) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *GetMemorableMomentsResponse) GetMoments() []*MemorableMoment {
|
|
if x != nil {
|
|
return x.Moments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RecordMoodHistoryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
Mood int32 `protobuf:"varint,3,opt,name=mood,proto3" json:"mood,omitempty"`
|
|
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RecordMoodHistoryRequest) Reset() {
|
|
*x = RecordMoodHistoryRequest{}
|
|
mi := &file_profiles_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RecordMoodHistoryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RecordMoodHistoryRequest) ProtoMessage() {}
|
|
|
|
func (x *RecordMoodHistoryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[17]
|
|
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 RecordMoodHistoryRequest.ProtoReflect.Descriptor instead.
|
|
func (*RecordMoodHistoryRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *RecordMoodHistoryRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RecordMoodHistoryRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RecordMoodHistoryRequest) GetMood() int32 {
|
|
if x != nil {
|
|
return x.Mood
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RecordMoodHistoryRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetMoodHistoryByUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
From *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
|
|
To *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMoodHistoryByUserRequest) Reset() {
|
|
*x = GetMoodHistoryByUserRequest{}
|
|
mi := &file_profiles_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMoodHistoryByUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMoodHistoryByUserRequest) ProtoMessage() {}
|
|
|
|
func (x *GetMoodHistoryByUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[18]
|
|
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 GetMoodHistoryByUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetMoodHistoryByUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *GetMoodHistoryByUserRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetMoodHistoryByUserRequest) GetFrom() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetMoodHistoryByUserRequest) GetTo() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.To
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetMoodHistoryByTimeRangeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
|
|
To *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMoodHistoryByTimeRangeRequest) Reset() {
|
|
*x = GetMoodHistoryByTimeRangeRequest{}
|
|
mi := &file_profiles_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMoodHistoryByTimeRangeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMoodHistoryByTimeRangeRequest) ProtoMessage() {}
|
|
|
|
func (x *GetMoodHistoryByTimeRangeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[19]
|
|
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 GetMoodHistoryByTimeRangeRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetMoodHistoryByTimeRangeRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *GetMoodHistoryByTimeRangeRequest) GetFrom() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetMoodHistoryByTimeRangeRequest) GetTo() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.To
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetRecentMoodHistoryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRecentMoodHistoryRequest) Reset() {
|
|
*x = GetRecentMoodHistoryRequest{}
|
|
mi := &file_profiles_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRecentMoodHistoryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRecentMoodHistoryRequest) ProtoMessage() {}
|
|
|
|
func (x *GetRecentMoodHistoryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[20]
|
|
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 GetRecentMoodHistoryRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetRecentMoodHistoryRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *GetRecentMoodHistoryRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLastMoodBeforeTimeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Before *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetLastMoodBeforeTimeRequest) Reset() {
|
|
*x = GetLastMoodBeforeTimeRequest{}
|
|
mi := &file_profiles_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetLastMoodBeforeTimeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetLastMoodBeforeTimeRequest) ProtoMessage() {}
|
|
|
|
func (x *GetLastMoodBeforeTimeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[21]
|
|
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 GetLastMoodBeforeTimeRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetLastMoodBeforeTimeRequest) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *GetLastMoodBeforeTimeRequest) GetBefore() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Before
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetMoodHistoryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
History []*UserMoodHistory `protobuf:"bytes,1,rep,name=history,proto3" json:"history,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMoodHistoryResponse) Reset() {
|
|
*x = GetMoodHistoryResponse{}
|
|
mi := &file_profiles_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMoodHistoryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMoodHistoryResponse) ProtoMessage() {}
|
|
|
|
func (x *GetMoodHistoryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_profiles_proto_msgTypes[22]
|
|
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 GetMoodHistoryResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetMoodHistoryResponse) Descriptor() ([]byte, []int) {
|
|
return file_profiles_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *GetMoodHistoryResponse) GetHistory() []*UserMoodHistory {
|
|
if x != nil {
|
|
return x.History
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_profiles_proto protoreflect.FileDescriptor
|
|
|
|
const file_profiles_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eprofiles.proto\x12\x05users\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe7\x06\n" +
|
|
"\tUserStats\x12%\n" +
|
|
"\x0etotal_messages\x18\x01 \x01(\x03R\rtotalMessages\x12%\n" +
|
|
"\x0efavorite_topic\x18\x02 \x01(\tR\rfavoriteTopic\x12&\n" +
|
|
"\x0fmost_active_day\x18\x03 \x01(\tR\rmostActiveDay\x12(\n" +
|
|
"\x10most_active_hour\x18\x04 \x01(\tR\x0emostActiveHour\x12%\n" +
|
|
"\x0efavorite_emoji\x18\x05 \x01(\tR\rfavoriteEmoji\x12\x1f\n" +
|
|
"\vanger_level\x18\x06 \x01(\x01R\n" +
|
|
"angerLevel\x12\x1f\n" +
|
|
"\vhumor_level\x18\a \x01(\x01R\n" +
|
|
"humorLevel\x12#\n" +
|
|
"\rsarcasm_level\x18\b \x01(\x01R\fsarcasmLevel\x12M\n" +
|
|
"\x0ftopic_frequency\x18\t \x03(\v2$.users.UserStats.TopicFrequencyEntryR\x0etopicFrequency\x12N\n" +
|
|
"\x10messages_by_hour\x18\n" +
|
|
" \x03(\v2$.users.UserStats.MessagesByHourEntryR\x0emessagesByHour\x12K\n" +
|
|
"\x0fmessages_by_day\x18\v \x03(\v2#.users.UserStats.MessagesByDayEntryR\rmessagesByDay\x12%\n" +
|
|
"\x0ereaction_count\x18\f \x01(\x03R\rreactionCount\x12!\n" +
|
|
"\fbot_attitude\x18\r \x01(\x05R\vbotAttitude\x12.\n" +
|
|
"\x13bot_attitude_reason\x18\x0e \x01(\tR\x11botAttitudeReason\x1aA\n" +
|
|
"\x13TopicFrequencyEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1aA\n" +
|
|
"\x13MessagesByHourEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1a@\n" +
|
|
"\x12MessagesByDayEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\"\x94\x01\n" +
|
|
"\rUserFavorites\x12\x19\n" +
|
|
"\bwhen_mad\x18\x01 \x01(\tR\awhenMad\x12\x1d\n" +
|
|
"\n" +
|
|
"when_happy\x18\x02 \x01(\tR\twhenHappy\x12\"\n" +
|
|
"\rwhen_ask_help\x18\x03 \x01(\tR\vwhenAskHelp\x12%\n" +
|
|
"\x0epreferred_nick\x18\x04 \x01(\tR\rpreferredNick\"\xcd\x01\n" +
|
|
"\vAvatarStats\x12\x1a\n" +
|
|
"\bstrength\x18\x01 \x01(\x01R\bstrength\x12\x18\n" +
|
|
"\aagility\x18\x02 \x01(\x01R\aagility\x12\x16\n" +
|
|
"\x06wisdom\x18\x03 \x01(\x01R\x06wisdom\x12\x1a\n" +
|
|
"\bcharisma\x18\x04 \x01(\x01R\bcharisma\x12\x12\n" +
|
|
"\x04tilt\x18\x05 \x01(\x01R\x04tilt\x12\x1f\n" +
|
|
"\vhumor_level\x18\x06 \x01(\x01R\n" +
|
|
"humorLevel\x12\x1f\n" +
|
|
"\vsarcasm_lvl\x18\a \x01(\x01R\n" +
|
|
"sarcasmLvl\"\x80\x01\n" +
|
|
"\x05Skill\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05level\x18\x02 \x01(\x05R\x05level\x12\x14\n" +
|
|
"\x05power\x18\x03 \x01(\x01R\x05power\x12\x16\n" +
|
|
"\x06active\x18\x04 \x01(\bR\x06active\x12\x1f\n" +
|
|
"\vunlocked_at\x18\x05 \x01(\x03R\n" +
|
|
"unlockedAt\"\xbe\x02\n" +
|
|
"\x06Avatar\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05class\x18\x03 \x01(\tR\x05class\x12\x14\n" +
|
|
"\x05level\x18\x04 \x01(\x05R\x05level\x12\x1e\n" +
|
|
"\n" +
|
|
"experience\x18\x05 \x01(\x03R\n" +
|
|
"experience\x12(\n" +
|
|
"\x05stats\x18\x06 \x01(\v2\x12.users.AvatarStatsR\x05stats\x12$\n" +
|
|
"\x06skills\x18\a \x03(\v2\f.users.SkillR\x06skills\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x93\x03\n" +
|
|
"\vUserProfile\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12$\n" +
|
|
"\x0eglobal_user_id\x18\x02 \x01(\x03R\fglobalUserId\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\x03R\x06userId\x12\x1a\n" +
|
|
"\busername\x18\x04 \x01(\tR\busername\x127\n" +
|
|
"\tjoin_date\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\bjoinDate\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12%\n" +
|
|
"\x06avatar\x18\a \x01(\v2\r.users.AvatarR\x06avatar\x12&\n" +
|
|
"\x05stats\x18\b \x01(\v2\x10.users.UserStatsR\x05stats\x122\n" +
|
|
"\tfavorites\x18\t \x01(\v2\x14.users.UserFavoritesR\tfavorites\x12\"\n" +
|
|
"\fcatchphrases\x18\n" +
|
|
" \x01(\fR\fcatchphrases\"\xbc\x01\n" +
|
|
"\x0fUserMoodHistory\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1a\n" +
|
|
"\busername\x18\x03 \x01(\tR\busername\x12\x12\n" +
|
|
"\x04mood\x18\x04 \x01(\x05R\x04mood\x128\n" +
|
|
"\ttimestamp\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x16\n" +
|
|
"\x06reason\x18\x06 \x01(\tR\x06reason\"\xc8\x01\n" +
|
|
"\x0fMemorableMoment\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12.\n" +
|
|
"\x04date\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x04date\x12\x12\n" +
|
|
"\x04text\x18\x04 \x01(\tR\x04text\x12!\n" +
|
|
"\fbot_response\x18\x05 \x01(\tR\vbotResponse\x12%\n" +
|
|
"\x0ereaction_count\x18\x06 \x01(\x03R\rreactionCount\"P\n" +
|
|
"\x19GetOrCreateProfileRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
|
"\busername\x18\x02 \x01(\tR\busername\",\n" +
|
|
"\x11GetProfileRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\"H\n" +
|
|
"\x16GetAllProfilesResponse\x12.\n" +
|
|
"\bprofiles\x18\x01 \x03(\v2\x12.users.UserProfileR\bprofiles\"o\n" +
|
|
"\x18AddMessageToStatsRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x14\n" +
|
|
"\x05topic\x18\x02 \x01(\tR\x05topic\x12\x12\n" +
|
|
"\x04hour\x18\x03 \x01(\tR\x04hour\x12\x10\n" +
|
|
"\x03day\x18\x04 \x01(\tR\x03day\"S\n" +
|
|
"\x1aUpdateReactionCountRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1c\n" +
|
|
"\tincrement\x18\x02 \x01(\x03R\tincrement\"y\n" +
|
|
"\x15SetBotAttitudeRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\x05R\x05value\x12\x16\n" +
|
|
"\x06reason\x18\x03 \x01(\tR\x06reason\x12\x19\n" +
|
|
"\bis_delta\x18\x04 \x01(\bR\aisDelta\"\x93\x01\n" +
|
|
"\x1aSaveMemorableMomentRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x12\n" +
|
|
"\x04text\x18\x02 \x01(\tR\x04text\x12!\n" +
|
|
"\fbot_response\x18\x03 \x01(\tR\vbotResponse\x12%\n" +
|
|
"\x0ereaction_count\x18\x04 \x01(\x03R\rreactionCount\"K\n" +
|
|
"\x1aGetMemorableMomentsRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x14\n" +
|
|
"\x05limit\x18\x02 \x01(\x05R\x05limit\"O\n" +
|
|
"\x1bGetMemorableMomentsResponse\x120\n" +
|
|
"\amoments\x18\x01 \x03(\v2\x16.users.MemorableMomentR\amoments\"{\n" +
|
|
"\x18RecordMoodHistoryRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
|
"\busername\x18\x02 \x01(\tR\busername\x12\x12\n" +
|
|
"\x04mood\x18\x03 \x01(\x05R\x04mood\x12\x16\n" +
|
|
"\x06reason\x18\x04 \x01(\tR\x06reason\"\x92\x01\n" +
|
|
"\x1bGetMoodHistoryByUserRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12.\n" +
|
|
"\x04from\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x04from\x12*\n" +
|
|
"\x02to\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x02to\"~\n" +
|
|
" GetMoodHistoryByTimeRangeRequest\x12.\n" +
|
|
"\x04from\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04from\x12*\n" +
|
|
"\x02to\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x02to\"3\n" +
|
|
"\x1bGetRecentMoodHistoryRequest\x12\x14\n" +
|
|
"\x05limit\x18\x01 \x01(\x05R\x05limit\"R\n" +
|
|
"\x1cGetLastMoodBeforeTimeRequest\x122\n" +
|
|
"\x06before\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x06before\"J\n" +
|
|
"\x16GetMoodHistoryResponse\x120\n" +
|
|
"\ahistory\x18\x01 \x03(\v2\x16.users.UserMoodHistoryR\ahistory2\xd7\x05\n" +
|
|
"\x12UserProfileService\x12J\n" +
|
|
"\x12GetOrCreateProfile\x12 .users.GetOrCreateProfileRequest\x1a\x12.users.UserProfile\x12:\n" +
|
|
"\n" +
|
|
"GetProfile\x12\x18.users.GetProfileRequest\x1a\x12.users.UserProfile\x12S\n" +
|
|
"\x1aGetAllProfilesWithMessages\x12\x16.google.protobuf.Empty\x1a\x1d.users.GetAllProfilesResponse\x12L\n" +
|
|
"\x11AddMessageToStats\x12\x1f.users.AddMessageToStatsRequest\x1a\x16.google.protobuf.Empty\x12P\n" +
|
|
"\x13UpdateReactionCount\x12!.users.UpdateReactionCountRequest\x1a\x16.google.protobuf.Empty\x12F\n" +
|
|
"\x0eSetBotAttitude\x12\x1c.users.SetBotAttitudeRequest\x1a\x16.google.protobuf.Empty\x12P\n" +
|
|
"\x13SaveMemorableMoment\x12!.users.SaveMemorableMomentRequest\x1a\x16.google.protobuf.Empty\x12\\\n" +
|
|
"\x13GetMemorableMoments\x12!.users.GetMemorableMomentsRequest\x1a\".users.GetMemorableMomentsResponse\x12L\n" +
|
|
"\x11RecordMoodHistory\x12\x1f.users.RecordMoodHistoryRequest\x1a\x16.google.protobuf.Empty2\x90\x03\n" +
|
|
"\x16UserMoodHistoryService\x12Y\n" +
|
|
"\x14GetMoodHistoryByUser\x12\".users.GetMoodHistoryByUserRequest\x1a\x1d.users.GetMoodHistoryResponse\x12c\n" +
|
|
"\x19GetMoodHistoryByTimeRange\x12'.users.GetMoodHistoryByTimeRangeRequest\x1a\x1d.users.GetMoodHistoryResponse\x12Y\n" +
|
|
"\x14GetRecentMoodHistory\x12\".users.GetRecentMoodHistoryRequest\x1a\x1d.users.GetMoodHistoryResponse\x12[\n" +
|
|
"\x15GetLastMoodBeforeTime\x12#.users.GetLastMoodBeforeTimeRequest\x1a\x1d.users.GetMoodHistoryResponseB,Z*git.be.kaien.ru/l-ai/l-ai-core-proto/protob\x06proto3"
|
|
|
|
var (
|
|
file_profiles_proto_rawDescOnce sync.Once
|
|
file_profiles_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_profiles_proto_rawDescGZIP() []byte {
|
|
file_profiles_proto_rawDescOnce.Do(func() {
|
|
file_profiles_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_profiles_proto_rawDesc), len(file_profiles_proto_rawDesc)))
|
|
})
|
|
return file_profiles_proto_rawDescData
|
|
}
|
|
|
|
var file_profiles_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
|
var file_profiles_proto_goTypes = []any{
|
|
(*UserStats)(nil), // 0: users.UserStats
|
|
(*UserFavorites)(nil), // 1: users.UserFavorites
|
|
(*AvatarStats)(nil), // 2: users.AvatarStats
|
|
(*Skill)(nil), // 3: users.Skill
|
|
(*Avatar)(nil), // 4: users.Avatar
|
|
(*UserProfile)(nil), // 5: users.UserProfile
|
|
(*UserMoodHistory)(nil), // 6: users.UserMoodHistory
|
|
(*MemorableMoment)(nil), // 7: users.MemorableMoment
|
|
(*GetOrCreateProfileRequest)(nil), // 8: users.GetOrCreateProfileRequest
|
|
(*GetProfileRequest)(nil), // 9: users.GetProfileRequest
|
|
(*GetAllProfilesResponse)(nil), // 10: users.GetAllProfilesResponse
|
|
(*AddMessageToStatsRequest)(nil), // 11: users.AddMessageToStatsRequest
|
|
(*UpdateReactionCountRequest)(nil), // 12: users.UpdateReactionCountRequest
|
|
(*SetBotAttitudeRequest)(nil), // 13: users.SetBotAttitudeRequest
|
|
(*SaveMemorableMomentRequest)(nil), // 14: users.SaveMemorableMomentRequest
|
|
(*GetMemorableMomentsRequest)(nil), // 15: users.GetMemorableMomentsRequest
|
|
(*GetMemorableMomentsResponse)(nil), // 16: users.GetMemorableMomentsResponse
|
|
(*RecordMoodHistoryRequest)(nil), // 17: users.RecordMoodHistoryRequest
|
|
(*GetMoodHistoryByUserRequest)(nil), // 18: users.GetMoodHistoryByUserRequest
|
|
(*GetMoodHistoryByTimeRangeRequest)(nil), // 19: users.GetMoodHistoryByTimeRangeRequest
|
|
(*GetRecentMoodHistoryRequest)(nil), // 20: users.GetRecentMoodHistoryRequest
|
|
(*GetLastMoodBeforeTimeRequest)(nil), // 21: users.GetLastMoodBeforeTimeRequest
|
|
(*GetMoodHistoryResponse)(nil), // 22: users.GetMoodHistoryResponse
|
|
nil, // 23: users.UserStats.TopicFrequencyEntry
|
|
nil, // 24: users.UserStats.MessagesByHourEntry
|
|
nil, // 25: users.UserStats.MessagesByDayEntry
|
|
(*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp
|
|
(*emptypb.Empty)(nil), // 27: google.protobuf.Empty
|
|
}
|
|
var file_profiles_proto_depIdxs = []int32{
|
|
23, // 0: users.UserStats.topic_frequency:type_name -> users.UserStats.TopicFrequencyEntry
|
|
24, // 1: users.UserStats.messages_by_hour:type_name -> users.UserStats.MessagesByHourEntry
|
|
25, // 2: users.UserStats.messages_by_day:type_name -> users.UserStats.MessagesByDayEntry
|
|
2, // 3: users.Avatar.stats:type_name -> users.AvatarStats
|
|
3, // 4: users.Avatar.skills:type_name -> users.Skill
|
|
26, // 5: users.Avatar.created_at:type_name -> google.protobuf.Timestamp
|
|
26, // 6: users.Avatar.updated_at:type_name -> google.protobuf.Timestamp
|
|
26, // 7: users.UserProfile.join_date:type_name -> google.protobuf.Timestamp
|
|
26, // 8: users.UserProfile.updated_at:type_name -> google.protobuf.Timestamp
|
|
4, // 9: users.UserProfile.avatar:type_name -> users.Avatar
|
|
0, // 10: users.UserProfile.stats:type_name -> users.UserStats
|
|
1, // 11: users.UserProfile.favorites:type_name -> users.UserFavorites
|
|
26, // 12: users.UserMoodHistory.timestamp:type_name -> google.protobuf.Timestamp
|
|
26, // 13: users.MemorableMoment.date:type_name -> google.protobuf.Timestamp
|
|
5, // 14: users.GetAllProfilesResponse.profiles:type_name -> users.UserProfile
|
|
7, // 15: users.GetMemorableMomentsResponse.moments:type_name -> users.MemorableMoment
|
|
26, // 16: users.GetMoodHistoryByUserRequest.from:type_name -> google.protobuf.Timestamp
|
|
26, // 17: users.GetMoodHistoryByUserRequest.to:type_name -> google.protobuf.Timestamp
|
|
26, // 18: users.GetMoodHistoryByTimeRangeRequest.from:type_name -> google.protobuf.Timestamp
|
|
26, // 19: users.GetMoodHistoryByTimeRangeRequest.to:type_name -> google.protobuf.Timestamp
|
|
26, // 20: users.GetLastMoodBeforeTimeRequest.before:type_name -> google.protobuf.Timestamp
|
|
6, // 21: users.GetMoodHistoryResponse.history:type_name -> users.UserMoodHistory
|
|
8, // 22: users.UserProfileService.GetOrCreateProfile:input_type -> users.GetOrCreateProfileRequest
|
|
9, // 23: users.UserProfileService.GetProfile:input_type -> users.GetProfileRequest
|
|
27, // 24: users.UserProfileService.GetAllProfilesWithMessages:input_type -> google.protobuf.Empty
|
|
11, // 25: users.UserProfileService.AddMessageToStats:input_type -> users.AddMessageToStatsRequest
|
|
12, // 26: users.UserProfileService.UpdateReactionCount:input_type -> users.UpdateReactionCountRequest
|
|
13, // 27: users.UserProfileService.SetBotAttitude:input_type -> users.SetBotAttitudeRequest
|
|
14, // 28: users.UserProfileService.SaveMemorableMoment:input_type -> users.SaveMemorableMomentRequest
|
|
15, // 29: users.UserProfileService.GetMemorableMoments:input_type -> users.GetMemorableMomentsRequest
|
|
17, // 30: users.UserProfileService.RecordMoodHistory:input_type -> users.RecordMoodHistoryRequest
|
|
18, // 31: users.UserMoodHistoryService.GetMoodHistoryByUser:input_type -> users.GetMoodHistoryByUserRequest
|
|
19, // 32: users.UserMoodHistoryService.GetMoodHistoryByTimeRange:input_type -> users.GetMoodHistoryByTimeRangeRequest
|
|
20, // 33: users.UserMoodHistoryService.GetRecentMoodHistory:input_type -> users.GetRecentMoodHistoryRequest
|
|
21, // 34: users.UserMoodHistoryService.GetLastMoodBeforeTime:input_type -> users.GetLastMoodBeforeTimeRequest
|
|
5, // 35: users.UserProfileService.GetOrCreateProfile:output_type -> users.UserProfile
|
|
5, // 36: users.UserProfileService.GetProfile:output_type -> users.UserProfile
|
|
10, // 37: users.UserProfileService.GetAllProfilesWithMessages:output_type -> users.GetAllProfilesResponse
|
|
27, // 38: users.UserProfileService.AddMessageToStats:output_type -> google.protobuf.Empty
|
|
27, // 39: users.UserProfileService.UpdateReactionCount:output_type -> google.protobuf.Empty
|
|
27, // 40: users.UserProfileService.SetBotAttitude:output_type -> google.protobuf.Empty
|
|
27, // 41: users.UserProfileService.SaveMemorableMoment:output_type -> google.protobuf.Empty
|
|
16, // 42: users.UserProfileService.GetMemorableMoments:output_type -> users.GetMemorableMomentsResponse
|
|
27, // 43: users.UserProfileService.RecordMoodHistory:output_type -> google.protobuf.Empty
|
|
22, // 44: users.UserMoodHistoryService.GetMoodHistoryByUser:output_type -> users.GetMoodHistoryResponse
|
|
22, // 45: users.UserMoodHistoryService.GetMoodHistoryByTimeRange:output_type -> users.GetMoodHistoryResponse
|
|
22, // 46: users.UserMoodHistoryService.GetRecentMoodHistory:output_type -> users.GetMoodHistoryResponse
|
|
22, // 47: users.UserMoodHistoryService.GetLastMoodBeforeTime:output_type -> users.GetMoodHistoryResponse
|
|
35, // [35:48] is the sub-list for method output_type
|
|
22, // [22:35] is the sub-list for method input_type
|
|
22, // [22:22] is the sub-list for extension type_name
|
|
22, // [22:22] is the sub-list for extension extendee
|
|
0, // [0:22] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_profiles_proto_init() }
|
|
func file_profiles_proto_init() {
|
|
if File_profiles_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_profiles_proto_rawDesc), len(file_profiles_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 26,
|
|
NumExtensions: 0,
|
|
NumServices: 2,
|
|
},
|
|
GoTypes: file_profiles_proto_goTypes,
|
|
DependencyIndexes: file_profiles_proto_depIdxs,
|
|
MessageInfos: file_profiles_proto_msgTypes,
|
|
}.Build()
|
|
File_profiles_proto = out.File
|
|
file_profiles_proto_goTypes = nil
|
|
file_profiles_proto_depIdxs = nil
|
|
}
|