You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1342 lines
43 KiB
1342 lines
43 KiB
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: chat/chat.proto
|
|
|
|
package pbChat // import "./chat"
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type WSToMsgSvrChatMsg struct {
|
|
SendID string `protobuf:"bytes,1,opt,name=SendID" json:"SendID,omitempty"`
|
|
RecvID string `protobuf:"bytes,2,opt,name=RecvID" json:"RecvID,omitempty"`
|
|
Content string `protobuf:"bytes,3,opt,name=Content" json:"Content,omitempty"`
|
|
SendTime int64 `protobuf:"varint,4,opt,name=SendTime" json:"SendTime,omitempty"`
|
|
MsgFrom int32 `protobuf:"varint,5,opt,name=MsgFrom" json:"MsgFrom,omitempty"`
|
|
SenderNickName string `protobuf:"bytes,6,opt,name=SenderNickName" json:"SenderNickName,omitempty"`
|
|
SenderFaceURL string `protobuf:"bytes,7,opt,name=SenderFaceURL" json:"SenderFaceURL,omitempty"`
|
|
ContentType int32 `protobuf:"varint,8,opt,name=ContentType" json:"ContentType,omitempty"`
|
|
SessionType int32 `protobuf:"varint,9,opt,name=SessionType" json:"SessionType,omitempty"`
|
|
OperationID string `protobuf:"bytes,10,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
MsgID string `protobuf:"bytes,11,opt,name=MsgID" json:"MsgID,omitempty"`
|
|
Token string `protobuf:"bytes,12,opt,name=Token" json:"Token,omitempty"`
|
|
OfflineInfo string `protobuf:"bytes,13,opt,name=OfflineInfo" json:"OfflineInfo,omitempty"`
|
|
Options string `protobuf:"bytes,14,opt,name=Options" json:"Options,omitempty"`
|
|
PlatformID int32 `protobuf:"varint,15,opt,name=PlatformID" json:"PlatformID,omitempty"`
|
|
ForceList []string `protobuf:"bytes,16,rep,name=ForceList" json:"ForceList,omitempty"`
|
|
ClientMsgID string `protobuf:"bytes,17,opt,name=ClientMsgID" json:"ClientMsgID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) Reset() { *m = WSToMsgSvrChatMsg{} }
|
|
func (m *WSToMsgSvrChatMsg) String() string { return proto.CompactTextString(m) }
|
|
func (*WSToMsgSvrChatMsg) ProtoMessage() {}
|
|
func (*WSToMsgSvrChatMsg) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{0}
|
|
}
|
|
func (m *WSToMsgSvrChatMsg) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WSToMsgSvrChatMsg.Unmarshal(m, b)
|
|
}
|
|
func (m *WSToMsgSvrChatMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WSToMsgSvrChatMsg.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *WSToMsgSvrChatMsg) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WSToMsgSvrChatMsg.Merge(dst, src)
|
|
}
|
|
func (m *WSToMsgSvrChatMsg) XXX_Size() int {
|
|
return xxx_messageInfo_WSToMsgSvrChatMsg.Size(m)
|
|
}
|
|
func (m *WSToMsgSvrChatMsg) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WSToMsgSvrChatMsg.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WSToMsgSvrChatMsg proto.InternalMessageInfo
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetSendID() string {
|
|
if m != nil {
|
|
return m.SendID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetRecvID() string {
|
|
if m != nil {
|
|
return m.RecvID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetSendTime() int64 {
|
|
if m != nil {
|
|
return m.SendTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetMsgFrom() int32 {
|
|
if m != nil {
|
|
return m.MsgFrom
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetSenderNickName() string {
|
|
if m != nil {
|
|
return m.SenderNickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetSenderFaceURL() string {
|
|
if m != nil {
|
|
return m.SenderFaceURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetContentType() int32 {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetSessionType() int32 {
|
|
if m != nil {
|
|
return m.SessionType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetMsgID() string {
|
|
if m != nil {
|
|
return m.MsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetToken() string {
|
|
if m != nil {
|
|
return m.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetOfflineInfo() string {
|
|
if m != nil {
|
|
return m.OfflineInfo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetOptions() string {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetPlatformID() int32 {
|
|
if m != nil {
|
|
return m.PlatformID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetForceList() []string {
|
|
if m != nil {
|
|
return m.ForceList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *WSToMsgSvrChatMsg) GetClientMsgID() string {
|
|
if m != nil {
|
|
return m.ClientMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MsgSvrToPushSvrChatMsg struct {
|
|
SendID string `protobuf:"bytes,1,opt,name=SendID" json:"SendID,omitempty"`
|
|
RecvID string `protobuf:"bytes,2,opt,name=RecvID" json:"RecvID,omitempty"`
|
|
Content string `protobuf:"bytes,3,opt,name=Content" json:"Content,omitempty"`
|
|
RecvSeq int64 `protobuf:"varint,4,opt,name=RecvSeq" json:"RecvSeq,omitempty"`
|
|
SendTime int64 `protobuf:"varint,5,opt,name=SendTime" json:"SendTime,omitempty"`
|
|
MsgFrom int32 `protobuf:"varint,6,opt,name=MsgFrom" json:"MsgFrom,omitempty"`
|
|
SenderNickName string `protobuf:"bytes,7,opt,name=SenderNickName" json:"SenderNickName,omitempty"`
|
|
SenderFaceURL string `protobuf:"bytes,8,opt,name=SenderFaceURL" json:"SenderFaceURL,omitempty"`
|
|
ContentType int32 `protobuf:"varint,9,opt,name=ContentType" json:"ContentType,omitempty"`
|
|
SessionType int32 `protobuf:"varint,10,opt,name=SessionType" json:"SessionType,omitempty"`
|
|
OperationID string `protobuf:"bytes,11,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
MsgID string `protobuf:"bytes,12,opt,name=MsgID" json:"MsgID,omitempty"`
|
|
OfflineInfo string `protobuf:"bytes,13,opt,name=OfflineInfo" json:"OfflineInfo,omitempty"`
|
|
Options string `protobuf:"bytes,14,opt,name=Options" json:"Options,omitempty"`
|
|
PlatformID int32 `protobuf:"varint,15,opt,name=PlatformID" json:"PlatformID,omitempty"`
|
|
ClientMsgID string `protobuf:"bytes,16,opt,name=ClientMsgID" json:"ClientMsgID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) Reset() { *m = MsgSvrToPushSvrChatMsg{} }
|
|
func (m *MsgSvrToPushSvrChatMsg) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgSvrToPushSvrChatMsg) ProtoMessage() {}
|
|
func (*MsgSvrToPushSvrChatMsg) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{1}
|
|
}
|
|
func (m *MsgSvrToPushSvrChatMsg) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MsgSvrToPushSvrChatMsg.Unmarshal(m, b)
|
|
}
|
|
func (m *MsgSvrToPushSvrChatMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MsgSvrToPushSvrChatMsg.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *MsgSvrToPushSvrChatMsg) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgSvrToPushSvrChatMsg.Merge(dst, src)
|
|
}
|
|
func (m *MsgSvrToPushSvrChatMsg) XXX_Size() int {
|
|
return xxx_messageInfo_MsgSvrToPushSvrChatMsg.Size(m)
|
|
}
|
|
func (m *MsgSvrToPushSvrChatMsg) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgSvrToPushSvrChatMsg.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgSvrToPushSvrChatMsg proto.InternalMessageInfo
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetSendID() string {
|
|
if m != nil {
|
|
return m.SendID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetRecvID() string {
|
|
if m != nil {
|
|
return m.RecvID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetRecvSeq() int64 {
|
|
if m != nil {
|
|
return m.RecvSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetSendTime() int64 {
|
|
if m != nil {
|
|
return m.SendTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetMsgFrom() int32 {
|
|
if m != nil {
|
|
return m.MsgFrom
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetSenderNickName() string {
|
|
if m != nil {
|
|
return m.SenderNickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetSenderFaceURL() string {
|
|
if m != nil {
|
|
return m.SenderFaceURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetContentType() int32 {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetSessionType() int32 {
|
|
if m != nil {
|
|
return m.SessionType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetMsgID() string {
|
|
if m != nil {
|
|
return m.MsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetOfflineInfo() string {
|
|
if m != nil {
|
|
return m.OfflineInfo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetOptions() string {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetPlatformID() int32 {
|
|
if m != nil {
|
|
return m.PlatformID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgSvrToPushSvrChatMsg) GetClientMsgID() string {
|
|
if m != nil {
|
|
return m.ClientMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PullMessageReq struct {
|
|
UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"`
|
|
SeqBegin int64 `protobuf:"varint,2,opt,name=SeqBegin" json:"SeqBegin,omitempty"`
|
|
SeqEnd int64 `protobuf:"varint,3,opt,name=SeqEnd" json:"SeqEnd,omitempty"`
|
|
OperationID string `protobuf:"bytes,4,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PullMessageReq) Reset() { *m = PullMessageReq{} }
|
|
func (m *PullMessageReq) String() string { return proto.CompactTextString(m) }
|
|
func (*PullMessageReq) ProtoMessage() {}
|
|
func (*PullMessageReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{2}
|
|
}
|
|
func (m *PullMessageReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PullMessageReq.Unmarshal(m, b)
|
|
}
|
|
func (m *PullMessageReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PullMessageReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *PullMessageReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PullMessageReq.Merge(dst, src)
|
|
}
|
|
func (m *PullMessageReq) XXX_Size() int {
|
|
return xxx_messageInfo_PullMessageReq.Size(m)
|
|
}
|
|
func (m *PullMessageReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PullMessageReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PullMessageReq proto.InternalMessageInfo
|
|
|
|
func (m *PullMessageReq) GetUserID() string {
|
|
if m != nil {
|
|
return m.UserID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PullMessageReq) GetSeqBegin() int64 {
|
|
if m != nil {
|
|
return m.SeqBegin
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PullMessageReq) GetSeqEnd() int64 {
|
|
if m != nil {
|
|
return m.SeqEnd
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PullMessageReq) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PullMessageResp struct {
|
|
ErrCode int32 `protobuf:"varint,1,opt,name=ErrCode" json:"ErrCode,omitempty"`
|
|
ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg" json:"ErrMsg,omitempty"`
|
|
MaxSeq int64 `protobuf:"varint,3,opt,name=MaxSeq" json:"MaxSeq,omitempty"`
|
|
MinSeq int64 `protobuf:"varint,4,opt,name=MinSeq" json:"MinSeq,omitempty"`
|
|
SingleUserMsg []*GatherFormat `protobuf:"bytes,5,rep,name=SingleUserMsg" json:"SingleUserMsg,omitempty"`
|
|
GroupUserMsg []*GatherFormat `protobuf:"bytes,6,rep,name=GroupUserMsg" json:"GroupUserMsg,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PullMessageResp) Reset() { *m = PullMessageResp{} }
|
|
func (m *PullMessageResp) String() string { return proto.CompactTextString(m) }
|
|
func (*PullMessageResp) ProtoMessage() {}
|
|
func (*PullMessageResp) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{3}
|
|
}
|
|
func (m *PullMessageResp) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PullMessageResp.Unmarshal(m, b)
|
|
}
|
|
func (m *PullMessageResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PullMessageResp.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *PullMessageResp) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PullMessageResp.Merge(dst, src)
|
|
}
|
|
func (m *PullMessageResp) XXX_Size() int {
|
|
return xxx_messageInfo_PullMessageResp.Size(m)
|
|
}
|
|
func (m *PullMessageResp) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PullMessageResp.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PullMessageResp proto.InternalMessageInfo
|
|
|
|
func (m *PullMessageResp) GetErrCode() int32 {
|
|
if m != nil {
|
|
return m.ErrCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PullMessageResp) GetErrMsg() string {
|
|
if m != nil {
|
|
return m.ErrMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PullMessageResp) GetMaxSeq() int64 {
|
|
if m != nil {
|
|
return m.MaxSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PullMessageResp) GetMinSeq() int64 {
|
|
if m != nil {
|
|
return m.MinSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PullMessageResp) GetSingleUserMsg() []*GatherFormat {
|
|
if m != nil {
|
|
return m.SingleUserMsg
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PullMessageResp) GetGroupUserMsg() []*GatherFormat {
|
|
if m != nil {
|
|
return m.GroupUserMsg
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PullMessageBySeqListReq struct {
|
|
UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"`
|
|
OperationID string `protobuf:"bytes,2,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
SeqList []int64 `protobuf:"varint,3,rep,packed,name=seqList" json:"seqList,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PullMessageBySeqListReq) Reset() { *m = PullMessageBySeqListReq{} }
|
|
func (m *PullMessageBySeqListReq) String() string { return proto.CompactTextString(m) }
|
|
func (*PullMessageBySeqListReq) ProtoMessage() {}
|
|
func (*PullMessageBySeqListReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{4}
|
|
}
|
|
func (m *PullMessageBySeqListReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PullMessageBySeqListReq.Unmarshal(m, b)
|
|
}
|
|
func (m *PullMessageBySeqListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PullMessageBySeqListReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *PullMessageBySeqListReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PullMessageBySeqListReq.Merge(dst, src)
|
|
}
|
|
func (m *PullMessageBySeqListReq) XXX_Size() int {
|
|
return xxx_messageInfo_PullMessageBySeqListReq.Size(m)
|
|
}
|
|
func (m *PullMessageBySeqListReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PullMessageBySeqListReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PullMessageBySeqListReq proto.InternalMessageInfo
|
|
|
|
func (m *PullMessageBySeqListReq) GetUserID() string {
|
|
if m != nil {
|
|
return m.UserID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PullMessageBySeqListReq) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PullMessageBySeqListReq) GetSeqList() []int64 {
|
|
if m != nil {
|
|
return m.SeqList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetMaxAndMinSeqReq struct {
|
|
UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"`
|
|
OperationID string `protobuf:"bytes,2,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetMaxAndMinSeqReq) Reset() { *m = GetMaxAndMinSeqReq{} }
|
|
func (m *GetMaxAndMinSeqReq) String() string { return proto.CompactTextString(m) }
|
|
func (*GetMaxAndMinSeqReq) ProtoMessage() {}
|
|
func (*GetMaxAndMinSeqReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{5}
|
|
}
|
|
func (m *GetMaxAndMinSeqReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetMaxAndMinSeqReq.Unmarshal(m, b)
|
|
}
|
|
func (m *GetMaxAndMinSeqReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetMaxAndMinSeqReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *GetMaxAndMinSeqReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetMaxAndMinSeqReq.Merge(dst, src)
|
|
}
|
|
func (m *GetMaxAndMinSeqReq) XXX_Size() int {
|
|
return xxx_messageInfo_GetMaxAndMinSeqReq.Size(m)
|
|
}
|
|
func (m *GetMaxAndMinSeqReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetMaxAndMinSeqReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetMaxAndMinSeqReq proto.InternalMessageInfo
|
|
|
|
func (m *GetMaxAndMinSeqReq) GetUserID() string {
|
|
if m != nil {
|
|
return m.UserID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetMaxAndMinSeqReq) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetMaxAndMinSeqResp struct {
|
|
ErrCode int32 `protobuf:"varint,1,opt,name=ErrCode" json:"ErrCode,omitempty"`
|
|
ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg" json:"ErrMsg,omitempty"`
|
|
MaxSeq int64 `protobuf:"varint,3,opt,name=MaxSeq" json:"MaxSeq,omitempty"`
|
|
MinSeq int64 `protobuf:"varint,4,opt,name=MinSeq" json:"MinSeq,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetMaxAndMinSeqResp) Reset() { *m = GetMaxAndMinSeqResp{} }
|
|
func (m *GetMaxAndMinSeqResp) String() string { return proto.CompactTextString(m) }
|
|
func (*GetMaxAndMinSeqResp) ProtoMessage() {}
|
|
func (*GetMaxAndMinSeqResp) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{6}
|
|
}
|
|
func (m *GetMaxAndMinSeqResp) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetMaxAndMinSeqResp.Unmarshal(m, b)
|
|
}
|
|
func (m *GetMaxAndMinSeqResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetMaxAndMinSeqResp.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *GetMaxAndMinSeqResp) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetMaxAndMinSeqResp.Merge(dst, src)
|
|
}
|
|
func (m *GetMaxAndMinSeqResp) XXX_Size() int {
|
|
return xxx_messageInfo_GetMaxAndMinSeqResp.Size(m)
|
|
}
|
|
func (m *GetMaxAndMinSeqResp) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetMaxAndMinSeqResp.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetMaxAndMinSeqResp proto.InternalMessageInfo
|
|
|
|
func (m *GetMaxAndMinSeqResp) GetErrCode() int32 {
|
|
if m != nil {
|
|
return m.ErrCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetMaxAndMinSeqResp) GetErrMsg() string {
|
|
if m != nil {
|
|
return m.ErrMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetMaxAndMinSeqResp) GetMaxSeq() int64 {
|
|
if m != nil {
|
|
return m.MaxSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetMaxAndMinSeqResp) GetMinSeq() int64 {
|
|
if m != nil {
|
|
return m.MinSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GatherFormat struct {
|
|
// @inject_tag: json:"id"
|
|
ID string `protobuf:"bytes,1,opt,name=ID" json:"id"`
|
|
// @inject_tag: json:"list"
|
|
List []*MsgFormat `protobuf:"bytes,2,rep,name=List" json:"list"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GatherFormat) Reset() { *m = GatherFormat{} }
|
|
func (m *GatherFormat) String() string { return proto.CompactTextString(m) }
|
|
func (*GatherFormat) ProtoMessage() {}
|
|
func (*GatherFormat) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{7}
|
|
}
|
|
func (m *GatherFormat) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GatherFormat.Unmarshal(m, b)
|
|
}
|
|
func (m *GatherFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GatherFormat.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *GatherFormat) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GatherFormat.Merge(dst, src)
|
|
}
|
|
func (m *GatherFormat) XXX_Size() int {
|
|
return xxx_messageInfo_GatherFormat.Size(m)
|
|
}
|
|
func (m *GatherFormat) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GatherFormat.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GatherFormat proto.InternalMessageInfo
|
|
|
|
func (m *GatherFormat) GetID() string {
|
|
if m != nil {
|
|
return m.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GatherFormat) GetList() []*MsgFormat {
|
|
if m != nil {
|
|
return m.List
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MsgFormat struct {
|
|
// @inject_tag: json:"sendID"
|
|
SendID string `protobuf:"bytes,1,opt,name=SendID" json:"sendID"`
|
|
// @inject_tag: json:"recvID"
|
|
RecvID string `protobuf:"bytes,2,opt,name=RecvID" json:"recvID"`
|
|
// @inject_tag: json:"msgFrom"
|
|
MsgFrom int32 `protobuf:"varint,3,opt,name=MsgFrom" json:"msgFrom"`
|
|
// @inject_tag: json:"contentType"
|
|
ContentType int32 `protobuf:"varint,4,opt,name=ContentType" json:"contentType"`
|
|
// @inject_tag: json:"serverMsgID"
|
|
ServerMsgID string `protobuf:"bytes,5,opt,name=ServerMsgID" json:"serverMsgID"`
|
|
// @inject_tag: json:"content"
|
|
Content string `protobuf:"bytes,6,opt,name=Content" json:"content"`
|
|
// @inject_tag: json:"seq"
|
|
Seq int64 `protobuf:"varint,7,opt,name=Seq" json:"seq"`
|
|
// @inject_tag: json:"sendTime"
|
|
SendTime int64 `protobuf:"varint,8,opt,name=SendTime" json:"sendTime"`
|
|
// @inject_tag: json:"senderPlatformID"
|
|
SenderPlatformID int32 `protobuf:"varint,9,opt,name=SenderPlatformID" json:"senderPlatformID"`
|
|
// @inject_tag: json:"senderNickName"
|
|
SenderNickName string `protobuf:"bytes,10,opt,name=SenderNickName" json:"senderNickName"`
|
|
// @inject_tag: json:"senderFaceUrl"
|
|
SenderFaceURL string `protobuf:"bytes,11,opt,name=SenderFaceURL" json:"senderFaceUrl"`
|
|
// @inject_tag: json:"clientMsgID"
|
|
ClientMsgID string `protobuf:"bytes,12,opt,name=ClientMsgID" json:"clientMsgID"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MsgFormat) Reset() { *m = MsgFormat{} }
|
|
func (m *MsgFormat) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgFormat) ProtoMessage() {}
|
|
func (*MsgFormat) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{8}
|
|
}
|
|
func (m *MsgFormat) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MsgFormat.Unmarshal(m, b)
|
|
}
|
|
func (m *MsgFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MsgFormat.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *MsgFormat) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgFormat.Merge(dst, src)
|
|
}
|
|
func (m *MsgFormat) XXX_Size() int {
|
|
return xxx_messageInfo_MsgFormat.Size(m)
|
|
}
|
|
func (m *MsgFormat) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgFormat.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgFormat proto.InternalMessageInfo
|
|
|
|
func (m *MsgFormat) GetSendID() string {
|
|
if m != nil {
|
|
return m.SendID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgFormat) GetRecvID() string {
|
|
if m != nil {
|
|
return m.RecvID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgFormat) GetMsgFrom() int32 {
|
|
if m != nil {
|
|
return m.MsgFrom
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgFormat) GetContentType() int32 {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgFormat) GetServerMsgID() string {
|
|
if m != nil {
|
|
return m.ServerMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgFormat) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgFormat) GetSeq() int64 {
|
|
if m != nil {
|
|
return m.Seq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgFormat) GetSendTime() int64 {
|
|
if m != nil {
|
|
return m.SendTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgFormat) GetSenderPlatformID() int32 {
|
|
if m != nil {
|
|
return m.SenderPlatformID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgFormat) GetSenderNickName() string {
|
|
if m != nil {
|
|
return m.SenderNickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgFormat) GetSenderFaceURL() string {
|
|
if m != nil {
|
|
return m.SenderFaceURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgFormat) GetClientMsgID() string {
|
|
if m != nil {
|
|
return m.ClientMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UserSendMsgReq struct {
|
|
ReqIdentifier int32 `protobuf:"varint,1,opt,name=ReqIdentifier" json:"ReqIdentifier,omitempty"`
|
|
Token string `protobuf:"bytes,2,opt,name=Token" json:"Token,omitempty"`
|
|
SendID string `protobuf:"bytes,3,opt,name=SendID" json:"SendID,omitempty"`
|
|
OperationID string `protobuf:"bytes,4,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
SenderNickName string `protobuf:"bytes,5,opt,name=SenderNickName" json:"SenderNickName,omitempty"`
|
|
SenderFaceURL string `protobuf:"bytes,6,opt,name=SenderFaceURL" json:"SenderFaceURL,omitempty"`
|
|
PlatformID int32 `protobuf:"varint,7,opt,name=PlatformID" json:"PlatformID,omitempty"`
|
|
SessionType int32 `protobuf:"varint,8,opt,name=SessionType" json:"SessionType,omitempty"`
|
|
MsgFrom int32 `protobuf:"varint,9,opt,name=MsgFrom" json:"MsgFrom,omitempty"`
|
|
ContentType int32 `protobuf:"varint,10,opt,name=ContentType" json:"ContentType,omitempty"`
|
|
RecvID string `protobuf:"bytes,11,opt,name=RecvID" json:"RecvID,omitempty"`
|
|
ForceList []string `protobuf:"bytes,12,rep,name=ForceList" json:"ForceList,omitempty"`
|
|
Content string `protobuf:"bytes,13,opt,name=Content" json:"Content,omitempty"`
|
|
Options string `protobuf:"bytes,14,opt,name=Options" json:"Options,omitempty"`
|
|
ClientMsgID string `protobuf:"bytes,15,opt,name=ClientMsgID" json:"ClientMsgID,omitempty"`
|
|
OffLineInfo string `protobuf:"bytes,16,opt,name=OffLineInfo" json:"OffLineInfo,omitempty"`
|
|
Ex string `protobuf:"bytes,17,opt,name=Ex" json:"Ex,omitempty"`
|
|
SendTime int64 `protobuf:"varint,18,opt,name=sendTime" json:"sendTime,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *UserSendMsgReq) Reset() { *m = UserSendMsgReq{} }
|
|
func (m *UserSendMsgReq) String() string { return proto.CompactTextString(m) }
|
|
func (*UserSendMsgReq) ProtoMessage() {}
|
|
func (*UserSendMsgReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{9}
|
|
}
|
|
func (m *UserSendMsgReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_UserSendMsgReq.Unmarshal(m, b)
|
|
}
|
|
func (m *UserSendMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_UserSendMsgReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *UserSendMsgReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UserSendMsgReq.Merge(dst, src)
|
|
}
|
|
func (m *UserSendMsgReq) XXX_Size() int {
|
|
return xxx_messageInfo_UserSendMsgReq.Size(m)
|
|
}
|
|
func (m *UserSendMsgReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UserSendMsgReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UserSendMsgReq proto.InternalMessageInfo
|
|
|
|
func (m *UserSendMsgReq) GetReqIdentifier() int32 {
|
|
if m != nil {
|
|
return m.ReqIdentifier
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetToken() string {
|
|
if m != nil {
|
|
return m.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetSendID() string {
|
|
if m != nil {
|
|
return m.SendID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetSenderNickName() string {
|
|
if m != nil {
|
|
return m.SenderNickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetSenderFaceURL() string {
|
|
if m != nil {
|
|
return m.SenderFaceURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetPlatformID() int32 {
|
|
if m != nil {
|
|
return m.PlatformID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetSessionType() int32 {
|
|
if m != nil {
|
|
return m.SessionType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetMsgFrom() int32 {
|
|
if m != nil {
|
|
return m.MsgFrom
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetContentType() int32 {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetRecvID() string {
|
|
if m != nil {
|
|
return m.RecvID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetForceList() []string {
|
|
if m != nil {
|
|
return m.ForceList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetOptions() string {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetClientMsgID() string {
|
|
if m != nil {
|
|
return m.ClientMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetOffLineInfo() string {
|
|
if m != nil {
|
|
return m.OffLineInfo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetEx() string {
|
|
if m != nil {
|
|
return m.Ex
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgReq) GetSendTime() int64 {
|
|
if m != nil {
|
|
return m.SendTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UserSendMsgResp struct {
|
|
ErrCode int32 `protobuf:"varint,1,opt,name=ErrCode" json:"ErrCode,omitempty"`
|
|
ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg" json:"ErrMsg,omitempty"`
|
|
ReqIdentifier int32 `protobuf:"varint,3,opt,name=ReqIdentifier" json:"ReqIdentifier,omitempty"`
|
|
ServerMsgID string `protobuf:"bytes,4,opt,name=ServerMsgID" json:"ServerMsgID,omitempty"`
|
|
ClientMsgID string `protobuf:"bytes,5,opt,name=ClientMsgID" json:"ClientMsgID,omitempty"`
|
|
SendTime int64 `protobuf:"varint,6,opt,name=sendTime" json:"sendTime,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *UserSendMsgResp) Reset() { *m = UserSendMsgResp{} }
|
|
func (m *UserSendMsgResp) String() string { return proto.CompactTextString(m) }
|
|
func (*UserSendMsgResp) ProtoMessage() {}
|
|
func (*UserSendMsgResp) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_chat_163a8d226aa6edb5, []int{10}
|
|
}
|
|
func (m *UserSendMsgResp) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_UserSendMsgResp.Unmarshal(m, b)
|
|
}
|
|
func (m *UserSendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_UserSendMsgResp.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *UserSendMsgResp) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UserSendMsgResp.Merge(dst, src)
|
|
}
|
|
func (m *UserSendMsgResp) XXX_Size() int {
|
|
return xxx_messageInfo_UserSendMsgResp.Size(m)
|
|
}
|
|
func (m *UserSendMsgResp) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UserSendMsgResp.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UserSendMsgResp proto.InternalMessageInfo
|
|
|
|
func (m *UserSendMsgResp) GetErrCode() int32 {
|
|
if m != nil {
|
|
return m.ErrCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgResp) GetErrMsg() string {
|
|
if m != nil {
|
|
return m.ErrMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgResp) GetReqIdentifier() int32 {
|
|
if m != nil {
|
|
return m.ReqIdentifier
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UserSendMsgResp) GetServerMsgID() string {
|
|
if m != nil {
|
|
return m.ServerMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgResp) GetClientMsgID() string {
|
|
if m != nil {
|
|
return m.ClientMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UserSendMsgResp) GetSendTime() int64 {
|
|
if m != nil {
|
|
return m.SendTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*WSToMsgSvrChatMsg)(nil), "pbChat.WSToMsgSvrChatMsg")
|
|
proto.RegisterType((*MsgSvrToPushSvrChatMsg)(nil), "pbChat.MsgSvrToPushSvrChatMsg")
|
|
proto.RegisterType((*PullMessageReq)(nil), "pbChat.PullMessageReq")
|
|
proto.RegisterType((*PullMessageResp)(nil), "pbChat.PullMessageResp")
|
|
proto.RegisterType((*PullMessageBySeqListReq)(nil), "pbChat.PullMessageBySeqListReq")
|
|
proto.RegisterType((*GetMaxAndMinSeqReq)(nil), "pbChat.GetMaxAndMinSeqReq")
|
|
proto.RegisterType((*GetMaxAndMinSeqResp)(nil), "pbChat.GetMaxAndMinSeqResp")
|
|
proto.RegisterType((*GatherFormat)(nil), "pbChat.GatherFormat")
|
|
proto.RegisterType((*MsgFormat)(nil), "pbChat.MsgFormat")
|
|
proto.RegisterType((*UserSendMsgReq)(nil), "pbChat.UserSendMsgReq")
|
|
proto.RegisterType((*UserSendMsgResp)(nil), "pbChat.UserSendMsgResp")
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// Client API for Chat service
|
|
|
|
type ChatClient interface {
|
|
GetMaxAndMinSeq(ctx context.Context, in *GetMaxAndMinSeqReq, opts ...grpc.CallOption) (*GetMaxAndMinSeqResp, error)
|
|
PullMessage(ctx context.Context, in *PullMessageReq, opts ...grpc.CallOption) (*PullMessageResp, error)
|
|
PullMessageBySeqList(ctx context.Context, in *PullMessageBySeqListReq, opts ...grpc.CallOption) (*PullMessageResp, error)
|
|
UserSendMsg(ctx context.Context, in *UserSendMsgReq, opts ...grpc.CallOption) (*UserSendMsgResp, error)
|
|
}
|
|
|
|
type chatClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewChatClient(cc *grpc.ClientConn) ChatClient {
|
|
return &chatClient{cc}
|
|
}
|
|
|
|
func (c *chatClient) GetMaxAndMinSeq(ctx context.Context, in *GetMaxAndMinSeqReq, opts ...grpc.CallOption) (*GetMaxAndMinSeqResp, error) {
|
|
out := new(GetMaxAndMinSeqResp)
|
|
err := grpc.Invoke(ctx, "/pbChat.Chat/GetMaxAndMinSeq", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *chatClient) PullMessage(ctx context.Context, in *PullMessageReq, opts ...grpc.CallOption) (*PullMessageResp, error) {
|
|
out := new(PullMessageResp)
|
|
err := grpc.Invoke(ctx, "/pbChat.Chat/PullMessage", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *chatClient) PullMessageBySeqList(ctx context.Context, in *PullMessageBySeqListReq, opts ...grpc.CallOption) (*PullMessageResp, error) {
|
|
out := new(PullMessageResp)
|
|
err := grpc.Invoke(ctx, "/pbChat.Chat/PullMessageBySeqList", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *chatClient) UserSendMsg(ctx context.Context, in *UserSendMsgReq, opts ...grpc.CallOption) (*UserSendMsgResp, error) {
|
|
out := new(UserSendMsgResp)
|
|
err := grpc.Invoke(ctx, "/pbChat.Chat/UserSendMsg", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for Chat service
|
|
|
|
type ChatServer interface {
|
|
GetMaxAndMinSeq(context.Context, *GetMaxAndMinSeqReq) (*GetMaxAndMinSeqResp, error)
|
|
PullMessage(context.Context, *PullMessageReq) (*PullMessageResp, error)
|
|
PullMessageBySeqList(context.Context, *PullMessageBySeqListReq) (*PullMessageResp, error)
|
|
UserSendMsg(context.Context, *UserSendMsgReq) (*UserSendMsgResp, error)
|
|
}
|
|
|
|
func RegisterChatServer(s *grpc.Server, srv ChatServer) {
|
|
s.RegisterService(&_Chat_serviceDesc, srv)
|
|
}
|
|
|
|
func _Chat_GetMaxAndMinSeq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetMaxAndMinSeqReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ChatServer).GetMaxAndMinSeq(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pbChat.Chat/GetMaxAndMinSeq",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ChatServer).GetMaxAndMinSeq(ctx, req.(*GetMaxAndMinSeqReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Chat_PullMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PullMessageReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ChatServer).PullMessage(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pbChat.Chat/PullMessage",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ChatServer).PullMessage(ctx, req.(*PullMessageReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Chat_PullMessageBySeqList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PullMessageBySeqListReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ChatServer).PullMessageBySeqList(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pbChat.Chat/PullMessageBySeqList",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ChatServer).PullMessageBySeqList(ctx, req.(*PullMessageBySeqListReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Chat_UserSendMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserSendMsgReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ChatServer).UserSendMsg(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pbChat.Chat/UserSendMsg",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ChatServer).UserSendMsg(ctx, req.(*UserSendMsgReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Chat_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pbChat.Chat",
|
|
HandlerType: (*ChatServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetMaxAndMinSeq",
|
|
Handler: _Chat_GetMaxAndMinSeq_Handler,
|
|
},
|
|
{
|
|
MethodName: "PullMessage",
|
|
Handler: _Chat_PullMessage_Handler,
|
|
},
|
|
{
|
|
MethodName: "PullMessageBySeqList",
|
|
Handler: _Chat_PullMessageBySeqList_Handler,
|
|
},
|
|
{
|
|
MethodName: "UserSendMsg",
|
|
Handler: _Chat_UserSendMsg_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "chat/chat.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("chat/chat.proto", fileDescriptor_chat_163a8d226aa6edb5) }
|
|
|
|
var fileDescriptor_chat_163a8d226aa6edb5 = []byte{
|
|
// 981 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x6a, 0xe3, 0x46,
|
|
0x14, 0xc6, 0x92, 0x2d, 0xdb, 0xc7, 0xbf, 0x99, 0x86, 0xec, 0x90, 0x96, 0xd6, 0x88, 0x6d, 0x31,
|
|
0xbd, 0x48, 0x61, 0x7b, 0x53, 0x5a, 0x58, 0x68, 0x62, 0x27, 0xa8, 0x44, 0xd9, 0x20, 0x7b, 0x29,
|
|
0xf4, 0x4e, 0x6b, 0x8f, 0x15, 0xb1, 0xb6, 0x24, 0xcf, 0x28, 0x69, 0xf6, 0xa6, 0xaf, 0xd0, 0x97,
|
|
0xe8, 0x65, 0x5f, 0xa4, 0x8f, 0xd2, 0x57, 0x28, 0x14, 0xca, 0xcc, 0x48, 0xd6, 0xe8, 0xc7, 0x49,
|
|
0xd8, 0xb2, 0x7b, 0x13, 0x38, 0x9f, 0xce, 0xfc, 0x9c, 0xf3, 0x7d, 0xf3, 0x1d, 0x07, 0x06, 0x8b,
|
|
0x1b, 0x37, 0xfe, 0x86, 0xff, 0x39, 0x89, 0x68, 0x18, 0x87, 0xc8, 0x88, 0xde, 0x9c, 0xdd, 0xb8,
|
|
0xb1, 0xf9, 0x7b, 0x1d, 0x0e, 0x7e, 0x9e, 0xcd, 0x43, 0x9b, 0x79, 0xb3, 0x3b, 0xca, 0x21, 0x9b,
|
|
0x79, 0xe8, 0x08, 0x8c, 0x19, 0x09, 0x96, 0xd6, 0x04, 0xd7, 0x46, 0xb5, 0x71, 0xdb, 0x49, 0x22,
|
|
0x8e, 0x3b, 0x64, 0x71, 0x67, 0x4d, 0xb0, 0x26, 0x71, 0x19, 0x21, 0x0c, 0xcd, 0xb3, 0x30, 0x88,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