CDNDownloadFileTask.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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: CDNDownloadFileTask.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 CDNFileType int32
  20. const (
  21. CDNFileType_NoteMsg_Picture CDNFileType = 0 //笔记消息内容中的图片
  22. CDNFileType_NoteMsg_Thumb CDNFileType = 1 //笔记消息内容中的图片视频的缩略图
  23. CDNFileType_NoteMsg_Video CDNFileType = 2 //笔记消息内容中的视频
  24. CDNFileType_NoteMsg_File CDNFileType = 3 //笔记消息内容中的文件(html,语音(speex),pdf,ppt,doc等其他文件)
  25. CDNFileType_ChatMsg_Picture CDNFileType = 4 //聊天消息的图片 // 未实现
  26. CDNFileType_ChatMsg_Thumb CDNFileType = 5 //聊天消息的缩略图(图片,视频的缩略图)// 未实现
  27. CDNFileType_ChatMsg_Video CDNFileType = 6 //聊天消息的视频 // 未实现
  28. CDNFileType_ChatMsg_File CDNFileType = 7 //聊天消息的文件 // 未实现
  29. CDNFileType_ChatMsg_Emoji CDNFileType = 8 //聊天消息表情 // 未实现
  30. )
  31. // Enum value maps for CDNFileType.
  32. var (
  33. CDNFileType_name = map[int32]string{
  34. 0: "NoteMsg_Picture",
  35. 1: "NoteMsg_Thumb",
  36. 2: "NoteMsg_Video",
  37. 3: "NoteMsg_File",
  38. 4: "ChatMsg_Picture",
  39. 5: "ChatMsg_Thumb",
  40. 6: "ChatMsg_Video",
  41. 7: "ChatMsg_File",
  42. 8: "ChatMsg_Emoji",
  43. }
  44. CDNFileType_value = map[string]int32{
  45. "NoteMsg_Picture": 0,
  46. "NoteMsg_Thumb": 1,
  47. "NoteMsg_Video": 2,
  48. "NoteMsg_File": 3,
  49. "ChatMsg_Picture": 4,
  50. "ChatMsg_Thumb": 5,
  51. "ChatMsg_Video": 6,
  52. "ChatMsg_File": 7,
  53. "ChatMsg_Emoji": 8,
  54. }
  55. )
  56. func (x CDNFileType) Enum() *CDNFileType {
  57. p := new(CDNFileType)
  58. *p = x
  59. return p
  60. }
  61. func (x CDNFileType) String() string {
  62. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  63. }
  64. func (CDNFileType) Descriptor() protoreflect.EnumDescriptor {
  65. return file_CDNDownloadFileTask_proto_enumTypes[0].Descriptor()
  66. }
  67. func (CDNFileType) Type() protoreflect.EnumType {
  68. return &file_CDNDownloadFileTask_proto_enumTypes[0]
  69. }
  70. func (x CDNFileType) Number() protoreflect.EnumNumber {
  71. return protoreflect.EnumNumber(x)
  72. }
  73. // Deprecated: Use CDNFileType.Descriptor instead.
  74. func (CDNFileType) EnumDescriptor() ([]byte, []int) {
  75. return file_CDNDownloadFileTask_proto_rawDescGZIP(), []int{0}
  76. }
  77. type CDNDownloadFileTaskMessage struct {
  78. state protoimpl.MessageState
  79. sizeCache protoimpl.SizeCache
  80. unknownFields protoimpl.UnknownFields
  81. WeChatId string `protobuf:"bytes,1,opt,name=WeChatId,proto3" json:"WeChatId,omitempty"` // 商家所属微信号
  82. CdnUrl string `protobuf:"bytes,2,opt,name=CdnUrl,proto3" json:"CdnUrl,omitempty"`
  83. CdnKey string `protobuf:"bytes,3,opt,name=CdnKey,proto3" json:"CdnKey,omitempty"`
  84. FileType CDNFileType `protobuf:"varint,4,opt,name=FileType,proto3,enum=Jubo.JuLiao.IM.Wx.Proto.CDNFileType" json:"FileType,omitempty"` // 文件下载的场景
  85. FileId string `protobuf:"bytes,5,opt,name=FileId,proto3" json:"FileId,omitempty"` // 文件id,返回结果标识匹配,如果没有自己生成一个(比如用msgSvrId)
  86. FileFmt string `protobuf:"bytes,6,opt,name=FileFmt,proto3" json:"FileFmt,omitempty"` // 文件格式(后缀)
  87. FileSize int32 `protobuf:"varint,7,opt,name=FileSize,proto3" json:"FileSize,omitempty"` // 文件大小
  88. MsgSvrId int64 `protobuf:"varint,8,opt,name=MsgSvrId,proto3" json:"MsgSvrId,omitempty"` // 聊天消息id(msgSvrId) 可不传,没有cndUrl,可只传图片,视频,文件消息的msgSvrid // 未实现
  89. }
  90. func (x *CDNDownloadFileTaskMessage) Reset() {
  91. *x = CDNDownloadFileTaskMessage{}
  92. mi := &file_CDNDownloadFileTask_proto_msgTypes[0]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. func (x *CDNDownloadFileTaskMessage) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*CDNDownloadFileTaskMessage) ProtoMessage() {}
  100. func (x *CDNDownloadFileTaskMessage) ProtoReflect() protoreflect.Message {
  101. mi := &file_CDNDownloadFileTask_proto_msgTypes[0]
  102. if x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use CDNDownloadFileTaskMessage.ProtoReflect.Descriptor instead.
  112. func (*CDNDownloadFileTaskMessage) Descriptor() ([]byte, []int) {
  113. return file_CDNDownloadFileTask_proto_rawDescGZIP(), []int{0}
  114. }
  115. func (x *CDNDownloadFileTaskMessage) GetWeChatId() string {
  116. if x != nil {
  117. return x.WeChatId
  118. }
  119. return ""
  120. }
  121. func (x *CDNDownloadFileTaskMessage) GetCdnUrl() string {
  122. if x != nil {
  123. return x.CdnUrl
  124. }
  125. return ""
  126. }
  127. func (x *CDNDownloadFileTaskMessage) GetCdnKey() string {
  128. if x != nil {
  129. return x.CdnKey
  130. }
  131. return ""
  132. }
  133. func (x *CDNDownloadFileTaskMessage) GetFileType() CDNFileType {
  134. if x != nil {
  135. return x.FileType
  136. }
  137. return CDNFileType_NoteMsg_Picture
  138. }
  139. func (x *CDNDownloadFileTaskMessage) GetFileId() string {
  140. if x != nil {
  141. return x.FileId
  142. }
  143. return ""
  144. }
  145. func (x *CDNDownloadFileTaskMessage) GetFileFmt() string {
  146. if x != nil {
  147. return x.FileFmt
  148. }
  149. return ""
  150. }
  151. func (x *CDNDownloadFileTaskMessage) GetFileSize() int32 {
  152. if x != nil {
  153. return x.FileSize
  154. }
  155. return 0
  156. }
  157. func (x *CDNDownloadFileTaskMessage) GetMsgSvrId() int64 {
  158. if x != nil {
  159. return x.MsgSvrId
  160. }
  161. return 0
  162. }
  163. var File_CDNDownloadFileTask_proto protoreflect.FileDescriptor
  164. var file_CDNDownloadFileTask_proto_rawDesc = []byte{
  165. 0x0a, 0x19, 0x43, 0x44, 0x4e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
  166. 0x65, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x4a, 0x75, 0x62,
  167. 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50,
  168. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x02, 0x0a, 0x1a, 0x43, 0x44, 0x4e, 0x44, 0x6f, 0x77, 0x6e,
  169. 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x73, 0x73,
  170. 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x57, 0x65, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x18,
  171. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x57, 0x65, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12,
  172. 0x16, 0x0a, 0x06, 0x43, 0x64, 0x6e, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  173. 0x06, 0x43, 0x64, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x64, 0x6e, 0x4b, 0x65,
  174. 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x64, 0x6e, 0x4b, 0x65, 0x79, 0x12,
  175. 0x40, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  176. 0x0e, 0x32, 0x24, 0x2e, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e,
  177. 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x44, 0x4e, 0x46,
  178. 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70,
  179. 0x65, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
  180. 0x09, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x46, 0x69, 0x6c,
  181. 0x65, 0x46, 0x6d, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x46, 0x69, 0x6c, 0x65,
  182. 0x46, 0x6d, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18,
  183. 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
  184. 0x1a, 0x0a, 0x08, 0x4d, 0x73, 0x67, 0x53, 0x76, 0x72, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
  185. 0x03, 0x52, 0x08, 0x4d, 0x73, 0x67, 0x53, 0x76, 0x72, 0x49, 0x64, 0x2a, 0xba, 0x01, 0x0a, 0x0b,
  186. 0x43, 0x44, 0x4e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
  187. 0x6f, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x5f, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x10, 0x00,
  188. 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x5f, 0x54, 0x68, 0x75, 0x6d,
  189. 0x62, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x5f, 0x56,
  190. 0x69, 0x64, 0x65, 0x6f, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x65, 0x4d, 0x73,
  191. 0x67, 0x5f, 0x46, 0x69, 0x6c, 0x65, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x74,
  192. 0x4d, 0x73, 0x67, 0x5f, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x10, 0x04, 0x12, 0x11, 0x0a,
  193. 0x0d, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x73, 0x67, 0x5f, 0x54, 0x68, 0x75, 0x6d, 0x62, 0x10, 0x05,
  194. 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x73, 0x67, 0x5f, 0x56, 0x69, 0x64, 0x65,
  195. 0x6f, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x73, 0x67, 0x5f, 0x46,
  196. 0x69, 0x6c, 0x65, 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x73, 0x67,
  197. 0x5f, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x10, 0x08, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x77, 0x6f,
  198. 0x72, 0x6b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  199. }
  200. var (
  201. file_CDNDownloadFileTask_proto_rawDescOnce sync.Once
  202. file_CDNDownloadFileTask_proto_rawDescData = file_CDNDownloadFileTask_proto_rawDesc
  203. )
  204. func file_CDNDownloadFileTask_proto_rawDescGZIP() []byte {
  205. file_CDNDownloadFileTask_proto_rawDescOnce.Do(func() {
  206. file_CDNDownloadFileTask_proto_rawDescData = protoimpl.X.CompressGZIP(file_CDNDownloadFileTask_proto_rawDescData)
  207. })
  208. return file_CDNDownloadFileTask_proto_rawDescData
  209. }
  210. var file_CDNDownloadFileTask_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  211. var file_CDNDownloadFileTask_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  212. var file_CDNDownloadFileTask_proto_goTypes = []any{
  213. (CDNFileType)(0), // 0: Jubo.JuLiao.IM.Wx.Proto.CDNFileType
  214. (*CDNDownloadFileTaskMessage)(nil), // 1: Jubo.JuLiao.IM.Wx.Proto.CDNDownloadFileTaskMessage
  215. }
  216. var file_CDNDownloadFileTask_proto_depIdxs = []int32{
  217. 0, // 0: Jubo.JuLiao.IM.Wx.Proto.CDNDownloadFileTaskMessage.FileType:type_name -> Jubo.JuLiao.IM.Wx.Proto.CDNFileType
  218. 1, // [1:1] is the sub-list for method output_type
  219. 1, // [1:1] is the sub-list for method input_type
  220. 1, // [1:1] is the sub-list for extension type_name
  221. 1, // [1:1] is the sub-list for extension extendee
  222. 0, // [0:1] is the sub-list for field type_name
  223. }
  224. func init() { file_CDNDownloadFileTask_proto_init() }
  225. func file_CDNDownloadFileTask_proto_init() {
  226. if File_CDNDownloadFileTask_proto != nil {
  227. return
  228. }
  229. type x struct{}
  230. out := protoimpl.TypeBuilder{
  231. File: protoimpl.DescBuilder{
  232. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  233. RawDescriptor: file_CDNDownloadFileTask_proto_rawDesc,
  234. NumEnums: 1,
  235. NumMessages: 1,
  236. NumExtensions: 0,
  237. NumServices: 0,
  238. },
  239. GoTypes: file_CDNDownloadFileTask_proto_goTypes,
  240. DependencyIndexes: file_CDNDownloadFileTask_proto_depIdxs,
  241. EnumInfos: file_CDNDownloadFileTask_proto_enumTypes,
  242. MessageInfos: file_CDNDownloadFileTask_proto_msgTypes,
  243. }.Build()
  244. File_CDNDownloadFileTask_proto = out.File
  245. file_CDNDownloadFileTask_proto_rawDesc = nil
  246. file_CDNDownloadFileTask_proto_goTypes = nil
  247. file_CDNDownloadFileTask_proto_depIdxs = nil
  248. }