Documentation ¶
Index ¶
- Variables
- type ChatBaseInfo
- func (*ChatBaseInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChatBaseInfo) GetBubbleFrame() uint32
- func (x *ChatBaseInfo) GetHead() uint32
- func (x *ChatBaseInfo) GetHeadFrame() uint32
- func (x *ChatBaseInfo) GetId() uint64
- func (x *ChatBaseInfo) GetNickName() string
- func (*ChatBaseInfo) ProtoMessage()
- func (x *ChatBaseInfo) ProtoReflect() protoreflect.Message
- func (x *ChatBaseInfo) Reset()
- func (x *ChatBaseInfo) String() string
- func (m *ChatBaseInfo) Validate() error
- type ChatBaseInfoValidationError
- func (e ChatBaseInfoValidationError) Cause() error
- func (e ChatBaseInfoValidationError) Error() string
- func (e ChatBaseInfoValidationError) ErrorName() string
- func (e ChatBaseInfoValidationError) Field() string
- func (e ChatBaseInfoValidationError) Key() bool
- func (e ChatBaseInfoValidationError) Reason() string
- type ChatChan
- type ChatStatistics
- func (*ChatStatistics) Descriptor() ([]byte, []int)deprecated
- func (x *ChatStatistics) GetId() uint32
- func (x *ChatStatistics) GetLastTime() int64
- func (x *ChatStatistics) GetPriNum() uint32
- func (x *ChatStatistics) GetSpeaker() uint32
- func (x *ChatStatistics) GetTimeNum() uint32
- func (x *ChatStatistics) GetUseNum() uint32
- func (*ChatStatistics) ProtoMessage()
- func (x *ChatStatistics) ProtoReflect() protoreflect.Message
- func (x *ChatStatistics) Reset()
- func (x *ChatStatistics) String() string
- func (m *ChatStatistics) Validate() error
- type ChatStatisticsValidationError
- func (e ChatStatisticsValidationError) Cause() error
- func (e ChatStatisticsValidationError) Error() string
- func (e ChatStatisticsValidationError) ErrorName() string
- func (e ChatStatisticsValidationError) Field() string
- func (e ChatStatisticsValidationError) Key() bool
- func (e ChatStatisticsValidationError) Reason() string
- type PrivateChatMsg
- func (*PrivateChatMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateChatMsg) GetContent() string
- func (x *PrivateChatMsg) GetDegree() int32
- func (x *PrivateChatMsg) GetIsVoice() bool
- func (x *PrivateChatMsg) GetReceiver() *ChatBaseInfo
- func (x *PrivateChatMsg) GetSendTime() int64
- func (x *PrivateChatMsg) GetSender() *ChatBaseInfo
- func (*PrivateChatMsg) ProtoMessage()
- func (x *PrivateChatMsg) ProtoReflect() protoreflect.Message
- func (x *PrivateChatMsg) Reset()
- func (x *PrivateChatMsg) String() string
- func (m *PrivateChatMsg) Validate() error
- type PrivateChatMsgValidationError
- func (e PrivateChatMsgValidationError) Cause() error
- func (e PrivateChatMsgValidationError) Error() string
- func (e PrivateChatMsgValidationError) ErrorName() string
- func (e PrivateChatMsgValidationError) Field() string
- func (e PrivateChatMsgValidationError) Key() bool
- func (e PrivateChatMsgValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( ChatChan_name = map[int32]string{ 0: "None", 1: "comprehensive", 2: "World", 3: "Zone", 4: "Local", 5: "Cross", 8: "Private", 9: "System", 10: "Scene", } ChatChan_value = map[string]int32{ "None": 0, "comprehensive": 1, "World": 2, "Zone": 3, "Local": 4, "Cross": 5, "Private": 8, "System": 9, "Scene": 10, } )
Enum value maps for ChatChan.
var File_chat_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChatBaseInfo ¶
type ChatBaseInfo struct { BubbleFrame uint32 `protobuf:"varint,1,opt,name=bubbleFrame,proto3" json:"bubbleFrame,omitempty"` // 气泡框 s 表示发送者 Head uint32 `protobuf:"varint,2,opt,name=head,proto3" json:"head,omitempty"` // 头像 HeadFrame uint32 `protobuf:"varint,3,opt,name=headFrame,proto3" json:"headFrame,omitempty"` // 头像框 NickName string `protobuf:"bytes,4,opt,name=nickName,proto3" json:"nickName,omitempty"` // 昵称 Id uint64 `protobuf:"varint,5,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*ChatBaseInfo) Descriptor
deprecated
func (*ChatBaseInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChatBaseInfo.ProtoReflect.Descriptor instead.
func (*ChatBaseInfo) GetBubbleFrame ¶
func (x *ChatBaseInfo) GetBubbleFrame() uint32
func (*ChatBaseInfo) GetHead ¶
func (x *ChatBaseInfo) GetHead() uint32
func (*ChatBaseInfo) GetHeadFrame ¶
func (x *ChatBaseInfo) GetHeadFrame() uint32
func (*ChatBaseInfo) GetId ¶
func (x *ChatBaseInfo) GetId() uint64
func (*ChatBaseInfo) GetNickName ¶
func (x *ChatBaseInfo) GetNickName() string
func (*ChatBaseInfo) ProtoMessage ¶
func (*ChatBaseInfo) ProtoMessage()
func (*ChatBaseInfo) ProtoReflect ¶
func (x *ChatBaseInfo) ProtoReflect() protoreflect.Message
func (*ChatBaseInfo) Reset ¶
func (x *ChatBaseInfo) Reset()
func (*ChatBaseInfo) String ¶
func (x *ChatBaseInfo) String() string
func (*ChatBaseInfo) Validate ¶
func (m *ChatBaseInfo) Validate() error
Validate checks the field values on ChatBaseInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChatBaseInfoValidationError ¶
type ChatBaseInfoValidationError struct {
// contains filtered or unexported fields
}
ChatBaseInfoValidationError is the validation error returned by ChatBaseInfo.Validate if the designated constraints aren't met.
func (ChatBaseInfoValidationError) Cause ¶
func (e ChatBaseInfoValidationError) Cause() error
Cause function returns cause value.
func (ChatBaseInfoValidationError) Error ¶
func (e ChatBaseInfoValidationError) Error() string
Error satisfies the builtin error interface
func (ChatBaseInfoValidationError) ErrorName ¶
func (e ChatBaseInfoValidationError) ErrorName() string
ErrorName returns error name.
func (ChatBaseInfoValidationError) Field ¶
func (e ChatBaseInfoValidationError) Field() string
Field function returns field value.
func (ChatBaseInfoValidationError) Key ¶
func (e ChatBaseInfoValidationError) Key() bool
Key function returns key value.
func (ChatBaseInfoValidationError) Reason ¶
func (e ChatBaseInfoValidationError) Reason() string
Reason function returns reason value.
type ChatChan ¶
type ChatChan int32
const ( ChatChan_None ChatChan = 0 // 空 ChatChan_comprehensive ChatChan = 1 // 综合聊天 ChatChan_World ChatChan = 2 // 全服聊天 ChatChan_Zone ChatChan = 3 // 本区聊天 ChatChan_Local ChatChan = 4 // 本服聊天 ChatChan_Cross ChatChan = 5 // 跨服聊天 ChatChan_Private ChatChan = 8 // 私有聊天 ChatChan_System ChatChan = 9 // 系统聊天 ChatChan_Scene ChatChan = 10 // 附近聊天 )
func (ChatChan) Descriptor ¶
func (ChatChan) Descriptor() protoreflect.EnumDescriptor
func (ChatChan) EnumDescriptor
deprecated
func (ChatChan) Number ¶
func (x ChatChan) Number() protoreflect.EnumNumber
func (ChatChan) Type ¶
func (ChatChan) Type() protoreflect.EnumType
type ChatStatistics ¶
type ChatStatistics struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // UseNum uint32 `protobuf:"varint,2,opt,name=UseNum,proto3" json:"UseNum,omitempty"` // 当天使用次数 TimeNum uint32 `protobuf:"varint,3,opt,name=TimeNum,proto3" json:"TimeNum,omitempty"` // 单位时间次数 Speaker uint32 `protobuf:"varint,4,opt,name=Speaker,proto3" json:"Speaker,omitempty"` // 使用喇叭次数 LastTime int64 `protobuf:"varint,5,opt,name=LastTime,proto3" json:"LastTime,omitempty"` // 最后一次发送时间 PriNum uint32 `protobuf:"varint,6,opt,name=PriNum,proto3" json:"PriNum,omitempty"` // 私聊次数 // contains filtered or unexported fields }
func (*ChatStatistics) Descriptor
deprecated
func (*ChatStatistics) Descriptor() ([]byte, []int)
Deprecated: Use ChatStatistics.ProtoReflect.Descriptor instead.
func (*ChatStatistics) GetId ¶
func (x *ChatStatistics) GetId() uint32
func (*ChatStatistics) GetLastTime ¶
func (x *ChatStatistics) GetLastTime() int64
func (*ChatStatistics) GetPriNum ¶
func (x *ChatStatistics) GetPriNum() uint32
func (*ChatStatistics) GetSpeaker ¶
func (x *ChatStatistics) GetSpeaker() uint32
func (*ChatStatistics) GetTimeNum ¶
func (x *ChatStatistics) GetTimeNum() uint32
func (*ChatStatistics) GetUseNum ¶
func (x *ChatStatistics) GetUseNum() uint32
func (*ChatStatistics) ProtoMessage ¶
func (*ChatStatistics) ProtoMessage()
func (*ChatStatistics) ProtoReflect ¶
func (x *ChatStatistics) ProtoReflect() protoreflect.Message
func (*ChatStatistics) Reset ¶
func (x *ChatStatistics) Reset()
func (*ChatStatistics) String ¶
func (x *ChatStatistics) String() string
func (*ChatStatistics) Validate ¶
func (m *ChatStatistics) Validate() error
Validate checks the field values on ChatStatistics with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChatStatisticsValidationError ¶
type ChatStatisticsValidationError struct {
// contains filtered or unexported fields
}
ChatStatisticsValidationError is the validation error returned by ChatStatistics.Validate if the designated constraints aren't met.
func (ChatStatisticsValidationError) Cause ¶
func (e ChatStatisticsValidationError) Cause() error
Cause function returns cause value.
func (ChatStatisticsValidationError) Error ¶
func (e ChatStatisticsValidationError) Error() string
Error satisfies the builtin error interface
func (ChatStatisticsValidationError) ErrorName ¶
func (e ChatStatisticsValidationError) ErrorName() string
ErrorName returns error name.
func (ChatStatisticsValidationError) Field ¶
func (e ChatStatisticsValidationError) Field() string
Field function returns field value.
func (ChatStatisticsValidationError) Key ¶
func (e ChatStatisticsValidationError) Key() bool
Key function returns key value.
func (ChatStatisticsValidationError) Reason ¶
func (e ChatStatisticsValidationError) Reason() string
Reason function returns reason value.
type PrivateChatMsg ¶
type PrivateChatMsg struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` SendTime int64 `protobuf:"varint,2,opt,name=sendTime,proto3" json:"sendTime,omitempty"` Sender *ChatBaseInfo `protobuf:"bytes,3,opt,name=Sender,proto3" json:"Sender,omitempty"` Receiver *ChatBaseInfo `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` IsVoice bool `protobuf:"varint,5,opt,name=isVoice,proto3" json:"isVoice,omitempty"` Degree int32 `protobuf:"varint,6,opt,name=degree,proto3" json:"degree,omitempty"` // 好友度 // contains filtered or unexported fields }
func (*PrivateChatMsg) Descriptor
deprecated
func (*PrivateChatMsg) Descriptor() ([]byte, []int)
Deprecated: Use PrivateChatMsg.ProtoReflect.Descriptor instead.
func (*PrivateChatMsg) GetContent ¶
func (x *PrivateChatMsg) GetContent() string
func (*PrivateChatMsg) GetDegree ¶
func (x *PrivateChatMsg) GetDegree() int32
func (*PrivateChatMsg) GetIsVoice ¶
func (x *PrivateChatMsg) GetIsVoice() bool
func (*PrivateChatMsg) GetReceiver ¶
func (x *PrivateChatMsg) GetReceiver() *ChatBaseInfo
func (*PrivateChatMsg) GetSendTime ¶
func (x *PrivateChatMsg) GetSendTime() int64
func (*PrivateChatMsg) GetSender ¶
func (x *PrivateChatMsg) GetSender() *ChatBaseInfo
func (*PrivateChatMsg) ProtoMessage ¶
func (*PrivateChatMsg) ProtoMessage()
func (*PrivateChatMsg) ProtoReflect ¶
func (x *PrivateChatMsg) ProtoReflect() protoreflect.Message
func (*PrivateChatMsg) Reset ¶
func (x *PrivateChatMsg) Reset()
func (*PrivateChatMsg) String ¶
func (x *PrivateChatMsg) String() string
func (*PrivateChatMsg) Validate ¶
func (m *PrivateChatMsg) Validate() error
Validate checks the field values on PrivateChatMsg with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PrivateChatMsgValidationError ¶
type PrivateChatMsgValidationError struct {
// contains filtered or unexported fields
}
PrivateChatMsgValidationError is the validation error returned by PrivateChatMsg.Validate if the designated constraints aren't met.
func (PrivateChatMsgValidationError) Cause ¶
func (e PrivateChatMsgValidationError) Cause() error
Cause function returns cause value.
func (PrivateChatMsgValidationError) Error ¶
func (e PrivateChatMsgValidationError) Error() string
Error satisfies the builtin error interface
func (PrivateChatMsgValidationError) ErrorName ¶
func (e PrivateChatMsgValidationError) ErrorName() string
ErrorName returns error name.
func (PrivateChatMsgValidationError) Field ¶
func (e PrivateChatMsgValidationError) Field() string
Field function returns field value.
func (PrivateChatMsgValidationError) Key ¶
func (e PrivateChatMsgValidationError) Key() bool
Key function returns key value.
func (PrivateChatMsgValidationError) Reason ¶
func (e PrivateChatMsgValidationError) Reason() string
Reason function returns reason value.