281 lines
8.5 KiB
Go
281 lines
8.5 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: msg.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 MsgPushRequest 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 *MsgPushRequest) Reset() {
|
|
*x = MsgPushRequest{}
|
|
mi := &file_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MsgPushRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgPushRequest) ProtoMessage() {}
|
|
|
|
func (x *MsgPushRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_msg_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 MsgPushRequest.ProtoReflect.Descriptor instead.
|
|
func (*MsgPushRequest) Descriptor() ([]byte, []int) {
|
|
return file_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetTimeSequence() int64 {
|
|
if x != nil {
|
|
return x.TimeSequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetSessionIdent() string {
|
|
if x != nil {
|
|
return x.SessionIdent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetSenderId() int64 {
|
|
if x != nil {
|
|
return x.SenderId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetSenderIdentity() string {
|
|
if x != nil {
|
|
return x.SenderIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetTargetId() int64 {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetTargetIdentity() string {
|
|
if x != nil {
|
|
return x.TargetIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetGroupId() int64 {
|
|
if x != nil {
|
|
return x.GroupId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetGroupIdentity() string {
|
|
if x != nil {
|
|
return x.GroupIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetMsgType() int32 {
|
|
if x != nil {
|
|
return x.MsgType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetBodyType() int32 {
|
|
if x != nil {
|
|
return x.BodyType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetBody() string {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgPushRequest) GetDeletedAt() int64 {
|
|
if x != nil {
|
|
return x.DeletedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AckRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TimeSequence []int64 `protobuf:"varint,1,rep,packed,name=time_sequence,json=timeSequence,proto3" json:"time_sequence,omitempty"` // 消息唯一标识
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AckRequest) Reset() {
|
|
*x = AckRequest{}
|
|
mi := &file_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AckRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AckRequest) ProtoMessage() {}
|
|
|
|
func (x *AckRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_msg_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 AckRequest.ProtoReflect.Descriptor instead.
|
|
func (*AckRequest) Descriptor() ([]byte, []int) {
|
|
return file_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AckRequest) GetTimeSequence() []int64 {
|
|
if x != nil {
|
|
return x.TimeSequence
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_msg_proto protoreflect.FileDescriptor
|
|
|
|
const file_msg_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\tmsg.proto\x12\x03mcs\x1a\fblocks.proto\"\x93\x03\n" +
|
|
"\x0eMsgPushRequest\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\tdeletedAt\"1\n" +
|
|
"\n" +
|
|
"AckRequest\x12#\n" +
|
|
"\rtime_sequence\x18\x01 \x03(\x03R\ftimeSequence2b\n" +
|
|
"\x03Msg\x12/\n" +
|
|
"\x04Push\x12\x13.mcs.MsgPushRequest\x1a\x10.mcs.StatusReply\"\x00\x12*\n" +
|
|
"\x03Ack\x12\x0f.mcs.AckRequest\x1a\x10.mcs.StatusReply\"\x00B\aZ\x05.;mcsb\x06proto3"
|
|
|
|
var (
|
|
file_msg_proto_rawDescOnce sync.Once
|
|
file_msg_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_msg_proto_rawDescGZIP() []byte {
|
|
file_msg_proto_rawDescOnce.Do(func() {
|
|
file_msg_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_msg_proto_rawDesc), len(file_msg_proto_rawDesc)))
|
|
})
|
|
return file_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_msg_proto_goTypes = []any{
|
|
(*MsgPushRequest)(nil), // 0: mcs.MsgPushRequest
|
|
(*AckRequest)(nil), // 1: mcs.AckRequest
|
|
(*StatusReply)(nil), // 2: mcs.StatusReply
|
|
}
|
|
var file_msg_proto_depIdxs = []int32{
|
|
0, // 0: mcs.Msg.Push:input_type -> mcs.MsgPushRequest
|
|
1, // 1: mcs.Msg.Ack:input_type -> mcs.AckRequest
|
|
2, // 2: mcs.Msg.Push:output_type -> mcs.StatusReply
|
|
2, // 3: mcs.Msg.Ack:output_type -> mcs.StatusReply
|
|
2, // [2:4] is the sub-list for method output_type
|
|
0, // [0:2] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_msg_proto_init() }
|
|
func file_msg_proto_init() {
|
|
if File_msg_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_msg_proto_rawDesc), len(file_msg_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_msg_proto_goTypes,
|
|
DependencyIndexes: file_msg_proto_depIdxs,
|
|
MessageInfos: file_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_msg_proto = out.File
|
|
file_msg_proto_goTypes = nil
|
|
file_msg_proto_depIdxs = nil
|
|
}
|