420 lines
12 KiB
Go
420 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: history.proto
|
|
|
|
package mcs
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type PullRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Params []*PullItemRequest `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PullRequest) Reset() {
|
|
*x = PullRequest{}
|
|
mi := &file_history_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PullRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PullRequest) ProtoMessage() {}
|
|
|
|
func (x *PullRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_history_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 PullRequest.ProtoReflect.Descriptor instead.
|
|
func (*PullRequest) Descriptor() ([]byte, []int) {
|
|
return file_history_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *PullRequest) GetParams() []*PullItemRequest {
|
|
if x != nil {
|
|
return x.Params
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PullItemRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ident string `protobuf:"bytes,1,opt,name=ident,proto3" json:"ident,omitempty"` //唯一标识,对话唯一标识/群组唯一标识
|
|
Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
|
MsgType MsgType `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=mcs.MsgType" json:"msg_type,omitempty"` //消息类型
|
|
Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` //最大读取条数
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PullItemRequest) Reset() {
|
|
*x = PullItemRequest{}
|
|
mi := &file_history_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PullItemRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PullItemRequest) ProtoMessage() {}
|
|
|
|
func (x *PullItemRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_history_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 PullItemRequest.ProtoReflect.Descriptor instead.
|
|
func (*PullItemRequest) Descriptor() ([]byte, []int) {
|
|
return file_history_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *PullItemRequest) GetIdent() string {
|
|
if x != nil {
|
|
return x.Ident
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PullItemRequest) GetSequence() int64 {
|
|
if x != nil {
|
|
return x.Sequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PullItemRequest) GetMsgType() MsgType {
|
|
if x != nil {
|
|
return x.MsgType
|
|
}
|
|
return MsgType_Exception
|
|
}
|
|
|
|
func (x *PullItemRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PullReply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
ExecTimeNs int64 `protobuf:"varint,2,opt,name=exec_time_ns,json=execTimeNs,proto3" json:"exec_time_ns,omitempty"`
|
|
Messages []*MessageItem `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PullReply) Reset() {
|
|
*x = PullReply{}
|
|
mi := &file_history_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PullReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PullReply) ProtoMessage() {}
|
|
|
|
func (x *PullReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_history_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 PullReply.ProtoReflect.Descriptor instead.
|
|
func (*PullReply) Descriptor() ([]byte, []int) {
|
|
return file_history_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *PullReply) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PullReply) GetExecTimeNs() int64 {
|
|
if x != nil {
|
|
return x.ExecTimeNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PullReply) GetMessages() []*MessageItem {
|
|
if x != nil {
|
|
return x.Messages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TimeSequence int64 `protobuf:"varint,1,opt,name=time_sequence,json=timeSequence,proto3" json:"time_sequence,omitempty"` //时间序列,也是创建时间
|
|
SessionIdent string `protobuf:"bytes,2,opt,name=session_ident,json=sessionIdent,proto3" json:"session_ident,omitempty"` //会话唯一标识
|
|
SenderId int64 `protobuf:"varint,3,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
|
|
SenderIdentity string `protobuf:"bytes,4,opt,name=sender_identity,json=senderIdentity,proto3" json:"sender_identity,omitempty"`
|
|
TargetId int64 `protobuf:"varint,5,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
TargetIdentity string `protobuf:"bytes,6,opt,name=target_identity,json=targetIdentity,proto3" json:"target_identity,omitempty"`
|
|
GroupId int64 `protobuf:"varint,7,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
GroupIdentity string `protobuf:"bytes,8,opt,name=group_identity,json=groupIdentity,proto3" json:"group_identity,omitempty"` //扩展字段,上传时无需上传
|
|
MsgType int32 `protobuf:"varint,9,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` //消息类型
|
|
BodyType int32 `protobuf:"varint,10,opt,name=body_type,json=bodyType,proto3" json:"body_type,omitempty"` //正文类型
|
|
Body string `protobuf:"bytes,11,opt,name=body,proto3" json:"body,omitempty"` //消息体
|
|
DeletedAt int64 `protobuf:"varint,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` //删除时间,时间戳,毫秒
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageItem) Reset() {
|
|
*x = MessageItem{}
|
|
mi := &file_history_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageItem) ProtoMessage() {}
|
|
|
|
func (x *MessageItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_history_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 MessageItem.ProtoReflect.Descriptor instead.
|
|
func (*MessageItem) Descriptor() ([]byte, []int) {
|
|
return file_history_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *MessageItem) GetTimeSequence() int64 {
|
|
if x != nil {
|
|
return x.TimeSequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MessageItem) GetSessionIdent() string {
|
|
if x != nil {
|
|
return x.SessionIdent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MessageItem) GetSenderId() int64 {
|
|
if x != nil {
|
|
return x.SenderId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MessageItem) GetSenderIdentity() string {
|
|
if x != nil {
|
|
return x.SenderIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MessageItem) GetTargetId() int64 {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MessageItem) GetTargetIdentity() string {
|
|
if x != nil {
|
|
return x.TargetIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MessageItem) GetGroupId() int64 {
|
|
if x != nil {
|
|
return x.GroupId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MessageItem) GetGroupIdentity() string {
|
|
if x != nil {
|
|
return x.GroupIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MessageItem) GetMsgType() int32 {
|
|
if x != nil {
|
|
return x.MsgType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MessageItem) GetBodyType() int32 {
|
|
if x != nil {
|
|
return x.BodyType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MessageItem) GetBody() string {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MessageItem) GetDeletedAt() int64 {
|
|
if x != nil {
|
|
return x.DeletedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_history_proto protoreflect.FileDescriptor
|
|
|
|
const file_history_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\rhistory.proto\x12\x03mcs\x1a\fblocks.proto\";\n" +
|
|
"\vPullRequest\x12,\n" +
|
|
"\x06params\x18\x01 \x03(\v2\x14.mcs.PullItemRequestR\x06params\"\x82\x01\n" +
|
|
"\x0fPullItemRequest\x12\x14\n" +
|
|
"\x05ident\x18\x01 \x01(\tR\x05ident\x12\x1a\n" +
|
|
"\bsequence\x18\x02 \x01(\x03R\bsequence\x12'\n" +
|
|
"\bmsg_type\x18\x03 \x01(\x0e2\f.mcs.MsgTypeR\amsgType\x12\x14\n" +
|
|
"\x05limit\x18\x04 \x01(\x05R\x05limit\"q\n" +
|
|
"\tPullReply\x12\x14\n" +
|
|
"\x05total\x18\x01 \x01(\x05R\x05total\x12 \n" +
|
|
"\fexec_time_ns\x18\x02 \x01(\x03R\n" +
|
|
"execTimeNs\x12,\n" +
|
|
"\bmessages\x18\x03 \x03(\v2\x10.mcs.MessageItemR\bmessages\"\x90\x03\n" +
|
|
"\vMessageItem\x12#\n" +
|
|
"\rtime_sequence\x18\x01 \x01(\x03R\ftimeSequence\x12#\n" +
|
|
"\rsession_ident\x18\x02 \x01(\tR\fsessionIdent\x12\x1b\n" +
|
|
"\tsender_id\x18\x03 \x01(\x03R\bsenderId\x12'\n" +
|
|
"\x0fsender_identity\x18\x04 \x01(\tR\x0esenderIdentity\x12\x1b\n" +
|
|
"\ttarget_id\x18\x05 \x01(\x03R\btargetId\x12'\n" +
|
|
"\x0ftarget_identity\x18\x06 \x01(\tR\x0etargetIdentity\x12\x19\n" +
|
|
"\bgroup_id\x18\a \x01(\x03R\agroupId\x12%\n" +
|
|
"\x0egroup_identity\x18\b \x01(\tR\rgroupIdentity\x12\x19\n" +
|
|
"\bmsg_type\x18\t \x01(\x05R\amsgType\x12\x1b\n" +
|
|
"\tbody_type\x18\n" +
|
|
" \x01(\x05R\bbodyType\x12\x12\n" +
|
|
"\x04body\x18\v \x01(\tR\x04body\x12\x1d\n" +
|
|
"\n" +
|
|
"deleted_at\x18\f \x01(\x03R\tdeletedAt25\n" +
|
|
"\aHistory\x12*\n" +
|
|
"\x04Sync\x12\x10.mcs.PullRequest\x1a\x0e.mcs.PullReply\"\x00B\aZ\x05.;mcsb\x06proto3"
|
|
|
|
var (
|
|
file_history_proto_rawDescOnce sync.Once
|
|
file_history_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_history_proto_rawDescGZIP() []byte {
|
|
file_history_proto_rawDescOnce.Do(func() {
|
|
file_history_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_history_proto_rawDesc), len(file_history_proto_rawDesc)))
|
|
})
|
|
return file_history_proto_rawDescData
|
|
}
|
|
|
|
var file_history_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_history_proto_goTypes = []any{
|
|
(*PullRequest)(nil), // 0: mcs.PullRequest
|
|
(*PullItemRequest)(nil), // 1: mcs.PullItemRequest
|
|
(*PullReply)(nil), // 2: mcs.PullReply
|
|
(*MessageItem)(nil), // 3: mcs.MessageItem
|
|
(MsgType)(0), // 4: mcs.MsgType
|
|
}
|
|
var file_history_proto_depIdxs = []int32{
|
|
1, // 0: mcs.PullRequest.params:type_name -> mcs.PullItemRequest
|
|
4, // 1: mcs.PullItemRequest.msg_type:type_name -> mcs.MsgType
|
|
3, // 2: mcs.PullReply.messages:type_name -> mcs.MessageItem
|
|
0, // 3: mcs.History.Sync:input_type -> mcs.PullRequest
|
|
2, // 4: mcs.History.Sync:output_type -> mcs.PullReply
|
|
4, // [4:5] is the sub-list for method output_type
|
|
3, // [3:4] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_history_proto_init() }
|
|
func file_history_proto_init() {
|
|
if File_history_proto != nil {
|
|
return
|
|
}
|
|
file_blocks_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_history_proto_rawDesc), len(file_history_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_history_proto_goTypes,
|
|
DependencyIndexes: file_history_proto_depIdxs,
|
|
MessageInfos: file_history_proto_msgTypes,
|
|
}.Build()
|
|
File_history_proto = out.File
|
|
file_history_proto_goTypes = nil
|
|
file_history_proto_depIdxs = nil
|
|
}
|