WAMediaEntryData.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v3.21.12
  5. // source: waMediaEntryData/WAMediaEntryData.proto
  6. package waMediaEntryData
  7. import (
  8. reflect "reflect"
  9. sync "sync"
  10. unsafe "unsafe"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type MediaEntry struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. FileSHA256 []byte `protobuf:"bytes,1,opt,name=fileSHA256" json:"fileSHA256,omitempty"`
  23. MediaKey []byte `protobuf:"bytes,2,opt,name=mediaKey" json:"mediaKey,omitempty"`
  24. FileEncSHA256 []byte `protobuf:"bytes,3,opt,name=fileEncSHA256" json:"fileEncSHA256,omitempty"`
  25. DirectPath *string `protobuf:"bytes,4,opt,name=directPath" json:"directPath,omitempty"`
  26. MediaKeyTimestamp *int64 `protobuf:"varint,5,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"`
  27. ServerMediaType *string `protobuf:"bytes,6,opt,name=serverMediaType" json:"serverMediaType,omitempty"`
  28. UploadToken []byte `protobuf:"bytes,7,opt,name=uploadToken" json:"uploadToken,omitempty"`
  29. ValidatedTimestamp []byte `protobuf:"bytes,8,opt,name=validatedTimestamp" json:"validatedTimestamp,omitempty"`
  30. Sidecar []byte `protobuf:"bytes,9,opt,name=sidecar" json:"sidecar,omitempty"`
  31. ObjectID *string `protobuf:"bytes,10,opt,name=objectID" json:"objectID,omitempty"`
  32. FBID *string `protobuf:"bytes,11,opt,name=FBID" json:"FBID,omitempty"`
  33. DownloadableThumbnail *MediaEntry_DownloadableThumbnail `protobuf:"bytes,12,opt,name=downloadableThumbnail" json:"downloadableThumbnail,omitempty"`
  34. Handle *string `protobuf:"bytes,13,opt,name=handle" json:"handle,omitempty"`
  35. Filename *string `protobuf:"bytes,14,opt,name=filename" json:"filename,omitempty"`
  36. ProgressiveJPEGDetails *MediaEntry_ProgressiveJpegDetails `protobuf:"bytes,15,opt,name=progressiveJPEGDetails" json:"progressiveJPEGDetails,omitempty"`
  37. Size *int64 `protobuf:"varint,16,opt,name=size" json:"size,omitempty"`
  38. LastDownloadAttemptTimestamp *int64 `protobuf:"varint,17,opt,name=lastDownloadAttemptTimestamp" json:"lastDownloadAttemptTimestamp,omitempty"`
  39. unknownFields protoimpl.UnknownFields
  40. sizeCache protoimpl.SizeCache
  41. }
  42. func (x *MediaEntry) Reset() {
  43. *x = MediaEntry{}
  44. mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[0]
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. ms.StoreMessageInfo(mi)
  47. }
  48. func (x *MediaEntry) String() string {
  49. return protoimpl.X.MessageStringOf(x)
  50. }
  51. func (*MediaEntry) ProtoMessage() {}
  52. func (x *MediaEntry) ProtoReflect() protoreflect.Message {
  53. mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[0]
  54. if x != nil {
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. if ms.LoadMessageInfo() == nil {
  57. ms.StoreMessageInfo(mi)
  58. }
  59. return ms
  60. }
  61. return mi.MessageOf(x)
  62. }
  63. // Deprecated: Use MediaEntry.ProtoReflect.Descriptor instead.
  64. func (*MediaEntry) Descriptor() ([]byte, []int) {
  65. return file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP(), []int{0}
  66. }
  67. func (x *MediaEntry) GetFileSHA256() []byte {
  68. if x != nil {
  69. return x.FileSHA256
  70. }
  71. return nil
  72. }
  73. func (x *MediaEntry) GetMediaKey() []byte {
  74. if x != nil {
  75. return x.MediaKey
  76. }
  77. return nil
  78. }
  79. func (x *MediaEntry) GetFileEncSHA256() []byte {
  80. if x != nil {
  81. return x.FileEncSHA256
  82. }
  83. return nil
  84. }
  85. func (x *MediaEntry) GetDirectPath() string {
  86. if x != nil && x.DirectPath != nil {
  87. return *x.DirectPath
  88. }
  89. return ""
  90. }
  91. func (x *MediaEntry) GetMediaKeyTimestamp() int64 {
  92. if x != nil && x.MediaKeyTimestamp != nil {
  93. return *x.MediaKeyTimestamp
  94. }
  95. return 0
  96. }
  97. func (x *MediaEntry) GetServerMediaType() string {
  98. if x != nil && x.ServerMediaType != nil {
  99. return *x.ServerMediaType
  100. }
  101. return ""
  102. }
  103. func (x *MediaEntry) GetUploadToken() []byte {
  104. if x != nil {
  105. return x.UploadToken
  106. }
  107. return nil
  108. }
  109. func (x *MediaEntry) GetValidatedTimestamp() []byte {
  110. if x != nil {
  111. return x.ValidatedTimestamp
  112. }
  113. return nil
  114. }
  115. func (x *MediaEntry) GetSidecar() []byte {
  116. if x != nil {
  117. return x.Sidecar
  118. }
  119. return nil
  120. }
  121. func (x *MediaEntry) GetObjectID() string {
  122. if x != nil && x.ObjectID != nil {
  123. return *x.ObjectID
  124. }
  125. return ""
  126. }
  127. func (x *MediaEntry) GetFBID() string {
  128. if x != nil && x.FBID != nil {
  129. return *x.FBID
  130. }
  131. return ""
  132. }
  133. func (x *MediaEntry) GetDownloadableThumbnail() *MediaEntry_DownloadableThumbnail {
  134. if x != nil {
  135. return x.DownloadableThumbnail
  136. }
  137. return nil
  138. }
  139. func (x *MediaEntry) GetHandle() string {
  140. if x != nil && x.Handle != nil {
  141. return *x.Handle
  142. }
  143. return ""
  144. }
  145. func (x *MediaEntry) GetFilename() string {
  146. if x != nil && x.Filename != nil {
  147. return *x.Filename
  148. }
  149. return ""
  150. }
  151. func (x *MediaEntry) GetProgressiveJPEGDetails() *MediaEntry_ProgressiveJpegDetails {
  152. if x != nil {
  153. return x.ProgressiveJPEGDetails
  154. }
  155. return nil
  156. }
  157. func (x *MediaEntry) GetSize() int64 {
  158. if x != nil && x.Size != nil {
  159. return *x.Size
  160. }
  161. return 0
  162. }
  163. func (x *MediaEntry) GetLastDownloadAttemptTimestamp() int64 {
  164. if x != nil && x.LastDownloadAttemptTimestamp != nil {
  165. return *x.LastDownloadAttemptTimestamp
  166. }
  167. return 0
  168. }
  169. type MediaEntry_ProgressiveJpegDetails struct {
  170. state protoimpl.MessageState `protogen:"open.v1"`
  171. ScanLengths []uint32 `protobuf:"varint,1,rep,name=scanLengths" json:"scanLengths,omitempty"`
  172. Sidecar []byte `protobuf:"bytes,2,opt,name=sidecar" json:"sidecar,omitempty"`
  173. unknownFields protoimpl.UnknownFields
  174. sizeCache protoimpl.SizeCache
  175. }
  176. func (x *MediaEntry_ProgressiveJpegDetails) Reset() {
  177. *x = MediaEntry_ProgressiveJpegDetails{}
  178. mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[1]
  179. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  180. ms.StoreMessageInfo(mi)
  181. }
  182. func (x *MediaEntry_ProgressiveJpegDetails) String() string {
  183. return protoimpl.X.MessageStringOf(x)
  184. }
  185. func (*MediaEntry_ProgressiveJpegDetails) ProtoMessage() {}
  186. func (x *MediaEntry_ProgressiveJpegDetails) ProtoReflect() protoreflect.Message {
  187. mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[1]
  188. if x != nil {
  189. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  190. if ms.LoadMessageInfo() == nil {
  191. ms.StoreMessageInfo(mi)
  192. }
  193. return ms
  194. }
  195. return mi.MessageOf(x)
  196. }
  197. // Deprecated: Use MediaEntry_ProgressiveJpegDetails.ProtoReflect.Descriptor instead.
  198. func (*MediaEntry_ProgressiveJpegDetails) Descriptor() ([]byte, []int) {
  199. return file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP(), []int{0, 0}
  200. }
  201. func (x *MediaEntry_ProgressiveJpegDetails) GetScanLengths() []uint32 {
  202. if x != nil {
  203. return x.ScanLengths
  204. }
  205. return nil
  206. }
  207. func (x *MediaEntry_ProgressiveJpegDetails) GetSidecar() []byte {
  208. if x != nil {
  209. return x.Sidecar
  210. }
  211. return nil
  212. }
  213. type MediaEntry_DownloadableThumbnail struct {
  214. state protoimpl.MessageState `protogen:"open.v1"`
  215. FileSHA256 []byte `protobuf:"bytes,1,opt,name=fileSHA256" json:"fileSHA256,omitempty"`
  216. FileEncSHA256 []byte `protobuf:"bytes,2,opt,name=fileEncSHA256" json:"fileEncSHA256,omitempty"`
  217. DirectPath *string `protobuf:"bytes,3,opt,name=directPath" json:"directPath,omitempty"`
  218. MediaKey []byte `protobuf:"bytes,4,opt,name=mediaKey" json:"mediaKey,omitempty"`
  219. MediaKeyTimestamp *int64 `protobuf:"varint,5,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"`
  220. ObjectID *string `protobuf:"bytes,6,opt,name=objectID" json:"objectID,omitempty"`
  221. unknownFields protoimpl.UnknownFields
  222. sizeCache protoimpl.SizeCache
  223. }
  224. func (x *MediaEntry_DownloadableThumbnail) Reset() {
  225. *x = MediaEntry_DownloadableThumbnail{}
  226. mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[2]
  227. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  228. ms.StoreMessageInfo(mi)
  229. }
  230. func (x *MediaEntry_DownloadableThumbnail) String() string {
  231. return protoimpl.X.MessageStringOf(x)
  232. }
  233. func (*MediaEntry_DownloadableThumbnail) ProtoMessage() {}
  234. func (x *MediaEntry_DownloadableThumbnail) ProtoReflect() protoreflect.Message {
  235. mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[2]
  236. if x != nil {
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. if ms.LoadMessageInfo() == nil {
  239. ms.StoreMessageInfo(mi)
  240. }
  241. return ms
  242. }
  243. return mi.MessageOf(x)
  244. }
  245. // Deprecated: Use MediaEntry_DownloadableThumbnail.ProtoReflect.Descriptor instead.
  246. func (*MediaEntry_DownloadableThumbnail) Descriptor() ([]byte, []int) {
  247. return file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP(), []int{0, 1}
  248. }
  249. func (x *MediaEntry_DownloadableThumbnail) GetFileSHA256() []byte {
  250. if x != nil {
  251. return x.FileSHA256
  252. }
  253. return nil
  254. }
  255. func (x *MediaEntry_DownloadableThumbnail) GetFileEncSHA256() []byte {
  256. if x != nil {
  257. return x.FileEncSHA256
  258. }
  259. return nil
  260. }
  261. func (x *MediaEntry_DownloadableThumbnail) GetDirectPath() string {
  262. if x != nil && x.DirectPath != nil {
  263. return *x.DirectPath
  264. }
  265. return ""
  266. }
  267. func (x *MediaEntry_DownloadableThumbnail) GetMediaKey() []byte {
  268. if x != nil {
  269. return x.MediaKey
  270. }
  271. return nil
  272. }
  273. func (x *MediaEntry_DownloadableThumbnail) GetMediaKeyTimestamp() int64 {
  274. if x != nil && x.MediaKeyTimestamp != nil {
  275. return *x.MediaKeyTimestamp
  276. }
  277. return 0
  278. }
  279. func (x *MediaEntry_DownloadableThumbnail) GetObjectID() string {
  280. if x != nil && x.ObjectID != nil {
  281. return *x.ObjectID
  282. }
  283. return ""
  284. }
  285. var File_waMediaEntryData_WAMediaEntryData_proto protoreflect.FileDescriptor
  286. const file_waMediaEntryData_WAMediaEntryData_proto_rawDesc = "" +
  287. "\n" +
  288. "'waMediaEntryData/WAMediaEntryData.proto\x12\x10WAMediaEntryData\"\xa1\b\n" +
  289. "\n" +
  290. "MediaEntry\x12\x1e\n" +
  291. "\n" +
  292. "fileSHA256\x18\x01 \x01(\fR\n" +
  293. "fileSHA256\x12\x1a\n" +
  294. "\bmediaKey\x18\x02 \x01(\fR\bmediaKey\x12$\n" +
  295. "\rfileEncSHA256\x18\x03 \x01(\fR\rfileEncSHA256\x12\x1e\n" +
  296. "\n" +
  297. "directPath\x18\x04 \x01(\tR\n" +
  298. "directPath\x12,\n" +
  299. "\x11mediaKeyTimestamp\x18\x05 \x01(\x03R\x11mediaKeyTimestamp\x12(\n" +
  300. "\x0fserverMediaType\x18\x06 \x01(\tR\x0fserverMediaType\x12 \n" +
  301. "\vuploadToken\x18\a \x01(\fR\vuploadToken\x12.\n" +
  302. "\x12validatedTimestamp\x18\b \x01(\fR\x12validatedTimestamp\x12\x18\n" +
  303. "\asidecar\x18\t \x01(\fR\asidecar\x12\x1a\n" +
  304. "\bobjectID\x18\n" +
  305. " \x01(\tR\bobjectID\x12\x12\n" +
  306. "\x04FBID\x18\v \x01(\tR\x04FBID\x12h\n" +
  307. "\x15downloadableThumbnail\x18\f \x01(\v22.WAMediaEntryData.MediaEntry.DownloadableThumbnailR\x15downloadableThumbnail\x12\x16\n" +
  308. "\x06handle\x18\r \x01(\tR\x06handle\x12\x1a\n" +
  309. "\bfilename\x18\x0e \x01(\tR\bfilename\x12k\n" +
  310. "\x16progressiveJPEGDetails\x18\x0f \x01(\v23.WAMediaEntryData.MediaEntry.ProgressiveJpegDetailsR\x16progressiveJPEGDetails\x12\x12\n" +
  311. "\x04size\x18\x10 \x01(\x03R\x04size\x12B\n" +
  312. "\x1clastDownloadAttemptTimestamp\x18\x11 \x01(\x03R\x1clastDownloadAttemptTimestamp\x1aT\n" +
  313. "\x16ProgressiveJpegDetails\x12 \n" +
  314. "\vscanLengths\x18\x01 \x03(\rR\vscanLengths\x12\x18\n" +
  315. "\asidecar\x18\x02 \x01(\fR\asidecar\x1a\xe3\x01\n" +
  316. "\x15DownloadableThumbnail\x12\x1e\n" +
  317. "\n" +
  318. "fileSHA256\x18\x01 \x01(\fR\n" +
  319. "fileSHA256\x12$\n" +
  320. "\rfileEncSHA256\x18\x02 \x01(\fR\rfileEncSHA256\x12\x1e\n" +
  321. "\n" +
  322. "directPath\x18\x03 \x01(\tR\n" +
  323. "directPath\x12\x1a\n" +
  324. "\bmediaKey\x18\x04 \x01(\fR\bmediaKey\x12,\n" +
  325. "\x11mediaKeyTimestamp\x18\x05 \x01(\x03R\x11mediaKeyTimestamp\x12\x1a\n" +
  326. "\bobjectID\x18\x06 \x01(\tR\bobjectIDB,Z*git.bobomao.top/joey/whatsmeow/proto/waMediaEntryData"
  327. var (
  328. file_waMediaEntryData_WAMediaEntryData_proto_rawDescOnce sync.Once
  329. file_waMediaEntryData_WAMediaEntryData_proto_rawDescData []byte
  330. )
  331. func file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP() []byte {
  332. file_waMediaEntryData_WAMediaEntryData_proto_rawDescOnce.Do(func() {
  333. file_waMediaEntryData_WAMediaEntryData_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc), len(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc)))
  334. })
  335. return file_waMediaEntryData_WAMediaEntryData_proto_rawDescData
  336. }
  337. var file_waMediaEntryData_WAMediaEntryData_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  338. var file_waMediaEntryData_WAMediaEntryData_proto_goTypes = []any{
  339. (*MediaEntry)(nil), // 0: WAMediaEntryData.MediaEntry
  340. (*MediaEntry_ProgressiveJpegDetails)(nil), // 1: WAMediaEntryData.MediaEntry.ProgressiveJpegDetails
  341. (*MediaEntry_DownloadableThumbnail)(nil), // 2: WAMediaEntryData.MediaEntry.DownloadableThumbnail
  342. }
  343. var file_waMediaEntryData_WAMediaEntryData_proto_depIdxs = []int32{
  344. 2, // 0: WAMediaEntryData.MediaEntry.downloadableThumbnail:type_name -> WAMediaEntryData.MediaEntry.DownloadableThumbnail
  345. 1, // 1: WAMediaEntryData.MediaEntry.progressiveJPEGDetails:type_name -> WAMediaEntryData.MediaEntry.ProgressiveJpegDetails
  346. 2, // [2:2] is the sub-list for method output_type
  347. 2, // [2:2] is the sub-list for method input_type
  348. 2, // [2:2] is the sub-list for extension type_name
  349. 2, // [2:2] is the sub-list for extension extendee
  350. 0, // [0:2] is the sub-list for field type_name
  351. }
  352. func init() { file_waMediaEntryData_WAMediaEntryData_proto_init() }
  353. func file_waMediaEntryData_WAMediaEntryData_proto_init() {
  354. if File_waMediaEntryData_WAMediaEntryData_proto != nil {
  355. return
  356. }
  357. type x struct{}
  358. out := protoimpl.TypeBuilder{
  359. File: protoimpl.DescBuilder{
  360. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  361. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc), len(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc)),
  362. NumEnums: 0,
  363. NumMessages: 3,
  364. NumExtensions: 0,
  365. NumServices: 0,
  366. },
  367. GoTypes: file_waMediaEntryData_WAMediaEntryData_proto_goTypes,
  368. DependencyIndexes: file_waMediaEntryData_WAMediaEntryData_proto_depIdxs,
  369. MessageInfos: file_waMediaEntryData_WAMediaEntryData_proto_msgTypes,
  370. }.Build()
  371. File_waMediaEntryData_WAMediaEntryData_proto = out.File
  372. file_waMediaEntryData_WAMediaEntryData_proto_goTypes = nil
  373. file_waMediaEntryData_WAMediaEntryData_proto_depIdxs = nil
  374. }