HistoryMsgPushNotice.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.2
  4. // protoc v5.28.3
  5. // source: HistoryMsgPushNotice.proto
  6. package workphone
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type ChatMessage struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. FriendId string `protobuf:"bytes,1,opt,name=FriendId,proto3" json:"FriendId,omitempty"` // 好友微信内部全局唯一识别码
  24. ContentType EnumContentType `protobuf:"varint,2,opt,name=ContentType,proto3,enum=Jubo.JuLiao.IM.Wx.Proto.EnumContentType" json:"ContentType,omitempty"` // 发送的消息内容类型
  25. Content []byte `protobuf:"bytes,3,opt,name=Content,proto3" json:"Content,omitempty"` // 内容 二进制流
  26. MsgId int64 `protobuf:"varint,4,opt,name=MsgId,proto3" json:"MsgId,omitempty"` //服务端的主键id
  27. MsgSvrId int64 `protobuf:"varint,5,opt,name=MsgSvrId,proto3" json:"MsgSvrId,omitempty"` // 消息唯一id
  28. IsSend bool `protobuf:"varint,6,opt,name=IsSend,proto3" json:"IsSend,omitempty"` // 发送或接收
  29. CreateTime int64 `protobuf:"varint,7,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` // 发送时间
  30. Status int32 `protobuf:"varint,8,opt,name=Status,proto3" json:"Status,omitempty"` //
  31. }
  32. func (x *ChatMessage) Reset() {
  33. *x = ChatMessage{}
  34. mi := &file_HistoryMsgPushNotice_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. func (x *ChatMessage) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*ChatMessage) ProtoMessage() {}
  42. func (x *ChatMessage) ProtoReflect() protoreflect.Message {
  43. mi := &file_HistoryMsgPushNotice_proto_msgTypes[0]
  44. if x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.
  54. func (*ChatMessage) Descriptor() ([]byte, []int) {
  55. return file_HistoryMsgPushNotice_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *ChatMessage) GetFriendId() string {
  58. if x != nil {
  59. return x.FriendId
  60. }
  61. return ""
  62. }
  63. func (x *ChatMessage) GetContentType() EnumContentType {
  64. if x != nil {
  65. return x.ContentType
  66. }
  67. return EnumContentType_UnknownContent
  68. }
  69. func (x *ChatMessage) GetContent() []byte {
  70. if x != nil {
  71. return x.Content
  72. }
  73. return nil
  74. }
  75. func (x *ChatMessage) GetMsgId() int64 {
  76. if x != nil {
  77. return x.MsgId
  78. }
  79. return 0
  80. }
  81. func (x *ChatMessage) GetMsgSvrId() int64 {
  82. if x != nil {
  83. return x.MsgSvrId
  84. }
  85. return 0
  86. }
  87. func (x *ChatMessage) GetIsSend() bool {
  88. if x != nil {
  89. return x.IsSend
  90. }
  91. return false
  92. }
  93. func (x *ChatMessage) GetCreateTime() int64 {
  94. if x != nil {
  95. return x.CreateTime
  96. }
  97. return 0
  98. }
  99. func (x *ChatMessage) GetStatus() int32 {
  100. if x != nil {
  101. return x.Status
  102. }
  103. return 0
  104. }
  105. type HistoryMsgPushNoticeMessage struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. WeChatId string `protobuf:"bytes,1,opt,name=WeChatId,proto3" json:"WeChatId,omitempty"` // 商家个人微信内部全局唯一识别码
  110. Messages []*ChatMessage `protobuf:"bytes,2,rep,name=Messages,proto3" json:"Messages,omitempty"`
  111. Size int32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"` // 页大小,固定50
  112. Count int32 `protobuf:"varint,4,opt,name=Count,proto3" json:"Count,omitempty"` // 总数,只在获取单个会话时有用,获取全部会话的时候不准确
  113. Page int32 `protobuf:"varint,5,opt,name=Page,proto3" json:"Page,omitempty"` // 页码,从0开始
  114. TaskId int64 `protobuf:"varint,6,opt,name=TaskId,proto3" json:"TaskId,omitempty"`
  115. }
  116. func (x *HistoryMsgPushNoticeMessage) Reset() {
  117. *x = HistoryMsgPushNoticeMessage{}
  118. mi := &file_HistoryMsgPushNotice_proto_msgTypes[1]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. func (x *HistoryMsgPushNoticeMessage) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*HistoryMsgPushNoticeMessage) ProtoMessage() {}
  126. func (x *HistoryMsgPushNoticeMessage) ProtoReflect() protoreflect.Message {
  127. mi := &file_HistoryMsgPushNotice_proto_msgTypes[1]
  128. if x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use HistoryMsgPushNoticeMessage.ProtoReflect.Descriptor instead.
  138. func (*HistoryMsgPushNoticeMessage) Descriptor() ([]byte, []int) {
  139. return file_HistoryMsgPushNotice_proto_rawDescGZIP(), []int{1}
  140. }
  141. func (x *HistoryMsgPushNoticeMessage) GetWeChatId() string {
  142. if x != nil {
  143. return x.WeChatId
  144. }
  145. return ""
  146. }
  147. func (x *HistoryMsgPushNoticeMessage) GetMessages() []*ChatMessage {
  148. if x != nil {
  149. return x.Messages
  150. }
  151. return nil
  152. }
  153. func (x *HistoryMsgPushNoticeMessage) GetSize() int32 {
  154. if x != nil {
  155. return x.Size
  156. }
  157. return 0
  158. }
  159. func (x *HistoryMsgPushNoticeMessage) GetCount() int32 {
  160. if x != nil {
  161. return x.Count
  162. }
  163. return 0
  164. }
  165. func (x *HistoryMsgPushNoticeMessage) GetPage() int32 {
  166. if x != nil {
  167. return x.Page
  168. }
  169. return 0
  170. }
  171. func (x *HistoryMsgPushNoticeMessage) GetTaskId() int64 {
  172. if x != nil {
  173. return x.TaskId
  174. }
  175. return 0
  176. }
  177. var File_HistoryMsgPushNotice_proto protoreflect.FileDescriptor
  178. var file_HistoryMsgPushNotice_proto_rawDesc = []byte{
  179. 0x0a, 0x1a, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x73, 0x68,
  180. 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x4a, 0x75,
  181. 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e,
  182. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  183. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x02,
  184. 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a,
  185. 0x08, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  186. 0x08, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x0b, 0x43, 0x6f, 0x6e,
  187. 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28,
  188. 0x2e, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e,
  189. 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e,
  190. 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  191. 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  192. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  193. 0x14, 0x0a, 0x05, 0x4d, 0x73, 0x67, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  194. 0x4d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x73, 0x67, 0x53, 0x76, 0x72, 0x49,
  195. 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x4d, 0x73, 0x67, 0x53, 0x76, 0x72, 0x49,
  196. 0x64, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
  197. 0x08, 0x52, 0x06, 0x49, 0x73, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65,
  198. 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x43,
  199. 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61,
  200. 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
  201. 0x73, 0x22, 0xd1, 0x01, 0x0a, 0x1b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4d, 0x73, 0x67,
  202. 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  203. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x57, 0x65, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20,
  204. 0x01, 0x28, 0x09, 0x52, 0x08, 0x57, 0x65, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x40, 0x0a,
  205. 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  206. 0x24, 0x2e, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49, 0x4d,
  207. 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65,
  208. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12,
  209. 0x12, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53,
  210. 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
  211. 0x28, 0x05, 0x52, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67,
  212. 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a,
  213. 0x06, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x54,
  214. 0x61, 0x73, 0x6b, 0x49, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x70,
  215. 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  216. }
  217. var (
  218. file_HistoryMsgPushNotice_proto_rawDescOnce sync.Once
  219. file_HistoryMsgPushNotice_proto_rawDescData = file_HistoryMsgPushNotice_proto_rawDesc
  220. )
  221. func file_HistoryMsgPushNotice_proto_rawDescGZIP() []byte {
  222. file_HistoryMsgPushNotice_proto_rawDescOnce.Do(func() {
  223. file_HistoryMsgPushNotice_proto_rawDescData = protoimpl.X.CompressGZIP(file_HistoryMsgPushNotice_proto_rawDescData)
  224. })
  225. return file_HistoryMsgPushNotice_proto_rawDescData
  226. }
  227. var file_HistoryMsgPushNotice_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  228. var file_HistoryMsgPushNotice_proto_goTypes = []any{
  229. (*ChatMessage)(nil), // 0: Jubo.JuLiao.IM.Wx.Proto.ChatMessage
  230. (*HistoryMsgPushNoticeMessage)(nil), // 1: Jubo.JuLiao.IM.Wx.Proto.HistoryMsgPushNoticeMessage
  231. (EnumContentType)(0), // 2: Jubo.JuLiao.IM.Wx.Proto.EnumContentType
  232. }
  233. var file_HistoryMsgPushNotice_proto_depIdxs = []int32{
  234. 2, // 0: Jubo.JuLiao.IM.Wx.Proto.ChatMessage.ContentType:type_name -> Jubo.JuLiao.IM.Wx.Proto.EnumContentType
  235. 0, // 1: Jubo.JuLiao.IM.Wx.Proto.HistoryMsgPushNoticeMessage.Messages:type_name -> Jubo.JuLiao.IM.Wx.Proto.ChatMessage
  236. 2, // [2:2] is the sub-list for method output_type
  237. 2, // [2:2] is the sub-list for method input_type
  238. 2, // [2:2] is the sub-list for extension type_name
  239. 2, // [2:2] is the sub-list for extension extendee
  240. 0, // [0:2] is the sub-list for field type_name
  241. }
  242. func init() { file_HistoryMsgPushNotice_proto_init() }
  243. func file_HistoryMsgPushNotice_proto_init() {
  244. if File_HistoryMsgPushNotice_proto != nil {
  245. return
  246. }
  247. file_TransportMessage_proto_init()
  248. type x struct{}
  249. out := protoimpl.TypeBuilder{
  250. File: protoimpl.DescBuilder{
  251. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  252. RawDescriptor: file_HistoryMsgPushNotice_proto_rawDesc,
  253. NumEnums: 0,
  254. NumMessages: 2,
  255. NumExtensions: 0,
  256. NumServices: 0,
  257. },
  258. GoTypes: file_HistoryMsgPushNotice_proto_goTypes,
  259. DependencyIndexes: file_HistoryMsgPushNotice_proto_depIdxs,
  260. MessageInfos: file_HistoryMsgPushNotice_proto_msgTypes,
  261. }.Build()
  262. File_HistoryMsgPushNotice_proto = out.File
  263. file_HistoryMsgPushNotice_proto_rawDesc = nil
  264. file_HistoryMsgPushNotice_proto_goTypes = nil
  265. file_HistoryMsgPushNotice_proto_depIdxs = nil
  266. }