123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v3.19.4
- // source: wecom/WHistoryMsgPushNotice.proto
- package wecom
- 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 ChatMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ConvId int64 `protobuf:"varint,1,opt,name=ConvId,proto3" json:"ConvId,omitempty"` // 会话RemoteId
- SenderId int64 `protobuf:"varint,2,opt,name=SenderId,proto3" json:"SenderId,omitempty"` // 消息发送者Id
- ContentType EnumContentType `protobuf:"varint,3,opt,name=ContentType,proto3,enum=Im.Scrm.Ww.Proto.EnumContentType" json:"ContentType,omitempty"` // 发送的消息内容类型
- Content []byte `protobuf:"bytes,4,opt,name=Content,proto3" json:"Content,omitempty"` // 内容 二进制流
- MsgId int64 `protobuf:"varint,5,opt,name=MsgId,proto3" json:"MsgId,omitempty"` //服务端的主键id
- MsgRemoteId int64 `protobuf:"varint,6,opt,name=MsgRemoteId,proto3" json:"MsgRemoteId,omitempty"` // 消息唯一id
- CreateTime int64 `protobuf:"varint,7,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` // 消息时间
- SenderName string `protobuf:"bytes,8,opt,name=SenderName,proto3" json:"SenderName,omitempty"` // 消息发送者名称
- RefId int64 `protobuf:"varint,9,opt,name=RefId,proto3" json:"RefId,omitempty"` // 引用消息的id
- Flag int32 `protobuf:"varint,10,opt,name=Flag,proto3" json:"Flag,omitempty"`
- IsRevoke bool `protobuf:"varint,11,opt,name=IsRevoke,proto3" json:"IsRevoke,omitempty"`
- ConvLocalId int64 `protobuf:"varint,12,opt,name=ConvLocalId,proto3" json:"ConvLocalId,omitempty"` // 会话的LocalId
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChatMessage) Reset() {
- *x = ChatMessage{}
- mi := &file_wecom_WHistoryMsgPushNotice_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ChatMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChatMessage) ProtoMessage() {}
- func (x *ChatMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WHistoryMsgPushNotice_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 ChatMessage.ProtoReflect.Descriptor instead.
- func (*ChatMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WHistoryMsgPushNotice_proto_rawDescGZIP(), []int{0}
- }
- func (x *ChatMessage) GetConvId() int64 {
- if x != nil {
- return x.ConvId
- }
- return 0
- }
- func (x *ChatMessage) GetSenderId() int64 {
- if x != nil {
- return x.SenderId
- }
- return 0
- }
- func (x *ChatMessage) GetContentType() EnumContentType {
- if x != nil {
- return x.ContentType
- }
- return EnumContentType_UnknownContent
- }
- func (x *ChatMessage) GetContent() []byte {
- if x != nil {
- return x.Content
- }
- return nil
- }
- func (x *ChatMessage) GetMsgId() int64 {
- if x != nil {
- return x.MsgId
- }
- return 0
- }
- func (x *ChatMessage) GetMsgRemoteId() int64 {
- if x != nil {
- return x.MsgRemoteId
- }
- return 0
- }
- func (x *ChatMessage) GetCreateTime() int64 {
- if x != nil {
- return x.CreateTime
- }
- return 0
- }
- func (x *ChatMessage) GetSenderName() string {
- if x != nil {
- return x.SenderName
- }
- return ""
- }
- func (x *ChatMessage) GetRefId() int64 {
- if x != nil {
- return x.RefId
- }
- return 0
- }
- func (x *ChatMessage) GetFlag() int32 {
- if x != nil {
- return x.Flag
- }
- return 0
- }
- func (x *ChatMessage) GetIsRevoke() bool {
- if x != nil {
- return x.IsRevoke
- }
- return false
- }
- func (x *ChatMessage) GetConvLocalId() int64 {
- if x != nil {
- return x.ConvLocalId
- }
- return 0
- }
- type HistoryMsgPushNoticeMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- WxId int64 `protobuf:"varint,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
- Messages []*ChatMessage `protobuf:"bytes,2,rep,name=Messages,proto3" json:"Messages,omitempty"`
- // int32 Size = 3; // 页大小,固定20
- Count int32 `protobuf:"varint,4,opt,name=Count,proto3" json:"Count,omitempty"` // 总数,只在获取单个会话时有用,获取全部会话的时候不准确
- // int32 Page = 5; // 页码,从0开始
- ConvId int64 `protobuf:"varint,6,opt,name=ConvId,proto3" json:"ConvId,omitempty"` // 会话RemoteId
- HasMore bool `protobuf:"varint,7,opt,name=HasMore,proto3" json:"HasMore,omitempty"` //
- ConvLocalId int64 `protobuf:"varint,8,opt,name=ConvLocalId,proto3" json:"ConvLocalId,omitempty"` // 会话的LocalId
- TaskId int64 `protobuf:"varint,9,opt,name=TaskId,proto3" json:"TaskId,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *HistoryMsgPushNoticeMessage) Reset() {
- *x = HistoryMsgPushNoticeMessage{}
- mi := &file_wecom_WHistoryMsgPushNotice_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *HistoryMsgPushNoticeMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HistoryMsgPushNoticeMessage) ProtoMessage() {}
- func (x *HistoryMsgPushNoticeMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WHistoryMsgPushNotice_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 HistoryMsgPushNoticeMessage.ProtoReflect.Descriptor instead.
- func (*HistoryMsgPushNoticeMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WHistoryMsgPushNotice_proto_rawDescGZIP(), []int{1}
- }
- func (x *HistoryMsgPushNoticeMessage) GetWxId() int64 {
- if x != nil {
- return x.WxId
- }
- return 0
- }
- func (x *HistoryMsgPushNoticeMessage) GetMessages() []*ChatMessage {
- if x != nil {
- return x.Messages
- }
- return nil
- }
- func (x *HistoryMsgPushNoticeMessage) GetCount() int32 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- func (x *HistoryMsgPushNoticeMessage) GetConvId() int64 {
- if x != nil {
- return x.ConvId
- }
- return 0
- }
- func (x *HistoryMsgPushNoticeMessage) GetHasMore() bool {
- if x != nil {
- return x.HasMore
- }
- return false
- }
- func (x *HistoryMsgPushNoticeMessage) GetConvLocalId() int64 {
- if x != nil {
- return x.ConvLocalId
- }
- return 0
- }
- func (x *HistoryMsgPushNoticeMessage) GetTaskId() int64 {
- if x != nil {
- return x.TaskId
- }
- return 0
- }
- var File_wecom_WHistoryMsgPushNotice_proto protoreflect.FileDescriptor
- const file_wecom_WHistoryMsgPushNotice_proto_rawDesc = "" +
- "\n" +
- "!wecom/WHistoryMsgPushNotice.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"\x80\x03\n" +
- "\vChatMessage\x12\x16\n" +
- "\x06ConvId\x18\x01 \x01(\x03R\x06ConvId\x12\x1a\n" +
- "\bSenderId\x18\x02 \x01(\x03R\bSenderId\x12C\n" +
- "\vContentType\x18\x03 \x01(\x0e2!.Im.Scrm.Ww.Proto.EnumContentTypeR\vContentType\x12\x18\n" +
- "\aContent\x18\x04 \x01(\fR\aContent\x12\x14\n" +
- "\x05MsgId\x18\x05 \x01(\x03R\x05MsgId\x12 \n" +
- "\vMsgRemoteId\x18\x06 \x01(\x03R\vMsgRemoteId\x12\x1e\n" +
- "\n" +
- "CreateTime\x18\a \x01(\x03R\n" +
- "CreateTime\x12\x1e\n" +
- "\n" +
- "SenderName\x18\b \x01(\tR\n" +
- "SenderName\x12\x14\n" +
- "\x05RefId\x18\t \x01(\x03R\x05RefId\x12\x12\n" +
- "\x04Flag\x18\n" +
- " \x01(\x05R\x04Flag\x12\x1a\n" +
- "\bIsRevoke\x18\v \x01(\bR\bIsRevoke\x12 \n" +
- "\vConvLocalId\x18\f \x01(\x03R\vConvLocalId\"\xee\x01\n" +
- "\x1bHistoryMsgPushNoticeMessage\x12\x12\n" +
- "\x04WxId\x18\x01 \x01(\x03R\x04WxId\x129\n" +
- "\bMessages\x18\x02 \x03(\v2\x1d.Im.Scrm.Ww.Proto.ChatMessageR\bMessages\x12\x14\n" +
- "\x05Count\x18\x04 \x01(\x05R\x05Count\x12\x16\n" +
- "\x06ConvId\x18\x06 \x01(\x03R\x06ConvId\x12\x18\n" +
- "\aHasMore\x18\a \x01(\bR\aHasMore\x12 \n" +
- "\vConvLocalId\x18\b \x01(\x03R\vConvLocalId\x12\x16\n" +
- "\x06TaskId\x18\t \x01(\x03R\x06TaskIdB\x13Z\x11./workphone/wecomb\x06proto3"
- var (
- file_wecom_WHistoryMsgPushNotice_proto_rawDescOnce sync.Once
- file_wecom_WHistoryMsgPushNotice_proto_rawDescData []byte
- )
- func file_wecom_WHistoryMsgPushNotice_proto_rawDescGZIP() []byte {
- file_wecom_WHistoryMsgPushNotice_proto_rawDescOnce.Do(func() {
- file_wecom_WHistoryMsgPushNotice_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WHistoryMsgPushNotice_proto_rawDesc), len(file_wecom_WHistoryMsgPushNotice_proto_rawDesc)))
- })
- return file_wecom_WHistoryMsgPushNotice_proto_rawDescData
- }
- var file_wecom_WHistoryMsgPushNotice_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_wecom_WHistoryMsgPushNotice_proto_goTypes = []any{
- (*ChatMessage)(nil), // 0: Im.Scrm.Ww.Proto.ChatMessage
- (*HistoryMsgPushNoticeMessage)(nil), // 1: Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage
- (EnumContentType)(0), // 2: Im.Scrm.Ww.Proto.EnumContentType
- }
- var file_wecom_WHistoryMsgPushNotice_proto_depIdxs = []int32{
- 2, // 0: Im.Scrm.Ww.Proto.ChatMessage.ContentType:type_name -> Im.Scrm.Ww.Proto.EnumContentType
- 0, // 1: Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage.Messages:type_name -> Im.Scrm.Ww.Proto.ChatMessage
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_wecom_WHistoryMsgPushNotice_proto_init() }
- func file_wecom_WHistoryMsgPushNotice_proto_init() {
- if File_wecom_WHistoryMsgPushNotice_proto != nil {
- return
- }
- file_wecom_WTransport_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WHistoryMsgPushNotice_proto_rawDesc), len(file_wecom_WHistoryMsgPushNotice_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_wecom_WHistoryMsgPushNotice_proto_goTypes,
- DependencyIndexes: file_wecom_WHistoryMsgPushNotice_proto_depIdxs,
- MessageInfos: file_wecom_WHistoryMsgPushNotice_proto_msgTypes,
- }.Build()
- File_wecom_WHistoryMsgPushNotice_proto = out.File
- file_wecom_WHistoryMsgPushNotice_proto_goTypes = nil
- file_wecom_WHistoryMsgPushNotice_proto_depIdxs = nil
- }
|