| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.10
- // protoc v3.21.12
- // source: waMediaEntryData/WAMediaEntryData.proto
- package waMediaEntryData
- import (
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- )
- 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 MediaEntry struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- FileSHA256 []byte `protobuf:"bytes,1,opt,name=fileSHA256" json:"fileSHA256,omitempty"`
- MediaKey []byte `protobuf:"bytes,2,opt,name=mediaKey" json:"mediaKey,omitempty"`
- FileEncSHA256 []byte `protobuf:"bytes,3,opt,name=fileEncSHA256" json:"fileEncSHA256,omitempty"`
- DirectPath *string `protobuf:"bytes,4,opt,name=directPath" json:"directPath,omitempty"`
- MediaKeyTimestamp *int64 `protobuf:"varint,5,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"`
- ServerMediaType *string `protobuf:"bytes,6,opt,name=serverMediaType" json:"serverMediaType,omitempty"`
- UploadToken []byte `protobuf:"bytes,7,opt,name=uploadToken" json:"uploadToken,omitempty"`
- ValidatedTimestamp []byte `protobuf:"bytes,8,opt,name=validatedTimestamp" json:"validatedTimestamp,omitempty"`
- Sidecar []byte `protobuf:"bytes,9,opt,name=sidecar" json:"sidecar,omitempty"`
- ObjectID *string `protobuf:"bytes,10,opt,name=objectID" json:"objectID,omitempty"`
- FBID *string `protobuf:"bytes,11,opt,name=FBID" json:"FBID,omitempty"`
- DownloadableThumbnail *MediaEntry_DownloadableThumbnail `protobuf:"bytes,12,opt,name=downloadableThumbnail" json:"downloadableThumbnail,omitempty"`
- Handle *string `protobuf:"bytes,13,opt,name=handle" json:"handle,omitempty"`
- Filename *string `protobuf:"bytes,14,opt,name=filename" json:"filename,omitempty"`
- ProgressiveJPEGDetails *MediaEntry_ProgressiveJpegDetails `protobuf:"bytes,15,opt,name=progressiveJPEGDetails" json:"progressiveJPEGDetails,omitempty"`
- Size *int64 `protobuf:"varint,16,opt,name=size" json:"size,omitempty"`
- LastDownloadAttemptTimestamp *int64 `protobuf:"varint,17,opt,name=lastDownloadAttemptTimestamp" json:"lastDownloadAttemptTimestamp,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MediaEntry) Reset() {
- *x = MediaEntry{}
- mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MediaEntry) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MediaEntry) ProtoMessage() {}
- func (x *MediaEntry) ProtoReflect() protoreflect.Message {
- mi := &file_waMediaEntryData_WAMediaEntryData_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 MediaEntry.ProtoReflect.Descriptor instead.
- func (*MediaEntry) Descriptor() ([]byte, []int) {
- return file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP(), []int{0}
- }
- func (x *MediaEntry) GetFileSHA256() []byte {
- if x != nil {
- return x.FileSHA256
- }
- return nil
- }
- func (x *MediaEntry) GetMediaKey() []byte {
- if x != nil {
- return x.MediaKey
- }
- return nil
- }
- func (x *MediaEntry) GetFileEncSHA256() []byte {
- if x != nil {
- return x.FileEncSHA256
- }
- return nil
- }
- func (x *MediaEntry) GetDirectPath() string {
- if x != nil && x.DirectPath != nil {
- return *x.DirectPath
- }
- return ""
- }
- func (x *MediaEntry) GetMediaKeyTimestamp() int64 {
- if x != nil && x.MediaKeyTimestamp != nil {
- return *x.MediaKeyTimestamp
- }
- return 0
- }
- func (x *MediaEntry) GetServerMediaType() string {
- if x != nil && x.ServerMediaType != nil {
- return *x.ServerMediaType
- }
- return ""
- }
- func (x *MediaEntry) GetUploadToken() []byte {
- if x != nil {
- return x.UploadToken
- }
- return nil
- }
- func (x *MediaEntry) GetValidatedTimestamp() []byte {
- if x != nil {
- return x.ValidatedTimestamp
- }
- return nil
- }
- func (x *MediaEntry) GetSidecar() []byte {
- if x != nil {
- return x.Sidecar
- }
- return nil
- }
- func (x *MediaEntry) GetObjectID() string {
- if x != nil && x.ObjectID != nil {
- return *x.ObjectID
- }
- return ""
- }
- func (x *MediaEntry) GetFBID() string {
- if x != nil && x.FBID != nil {
- return *x.FBID
- }
- return ""
- }
- func (x *MediaEntry) GetDownloadableThumbnail() *MediaEntry_DownloadableThumbnail {
- if x != nil {
- return x.DownloadableThumbnail
- }
- return nil
- }
- func (x *MediaEntry) GetHandle() string {
- if x != nil && x.Handle != nil {
- return *x.Handle
- }
- return ""
- }
- func (x *MediaEntry) GetFilename() string {
- if x != nil && x.Filename != nil {
- return *x.Filename
- }
- return ""
- }
- func (x *MediaEntry) GetProgressiveJPEGDetails() *MediaEntry_ProgressiveJpegDetails {
- if x != nil {
- return x.ProgressiveJPEGDetails
- }
- return nil
- }
- func (x *MediaEntry) GetSize() int64 {
- if x != nil && x.Size != nil {
- return *x.Size
- }
- return 0
- }
- func (x *MediaEntry) GetLastDownloadAttemptTimestamp() int64 {
- if x != nil && x.LastDownloadAttemptTimestamp != nil {
- return *x.LastDownloadAttemptTimestamp
- }
- return 0
- }
- type MediaEntry_ProgressiveJpegDetails struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ScanLengths []uint32 `protobuf:"varint,1,rep,name=scanLengths" json:"scanLengths,omitempty"`
- Sidecar []byte `protobuf:"bytes,2,opt,name=sidecar" json:"sidecar,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MediaEntry_ProgressiveJpegDetails) Reset() {
- *x = MediaEntry_ProgressiveJpegDetails{}
- mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MediaEntry_ProgressiveJpegDetails) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MediaEntry_ProgressiveJpegDetails) ProtoMessage() {}
- func (x *MediaEntry_ProgressiveJpegDetails) ProtoReflect() protoreflect.Message {
- mi := &file_waMediaEntryData_WAMediaEntryData_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 MediaEntry_ProgressiveJpegDetails.ProtoReflect.Descriptor instead.
- func (*MediaEntry_ProgressiveJpegDetails) Descriptor() ([]byte, []int) {
- return file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP(), []int{0, 0}
- }
- func (x *MediaEntry_ProgressiveJpegDetails) GetScanLengths() []uint32 {
- if x != nil {
- return x.ScanLengths
- }
- return nil
- }
- func (x *MediaEntry_ProgressiveJpegDetails) GetSidecar() []byte {
- if x != nil {
- return x.Sidecar
- }
- return nil
- }
- type MediaEntry_DownloadableThumbnail struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- FileSHA256 []byte `protobuf:"bytes,1,opt,name=fileSHA256" json:"fileSHA256,omitempty"`
- FileEncSHA256 []byte `protobuf:"bytes,2,opt,name=fileEncSHA256" json:"fileEncSHA256,omitempty"`
- DirectPath *string `protobuf:"bytes,3,opt,name=directPath" json:"directPath,omitempty"`
- MediaKey []byte `protobuf:"bytes,4,opt,name=mediaKey" json:"mediaKey,omitempty"`
- MediaKeyTimestamp *int64 `protobuf:"varint,5,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"`
- ObjectID *string `protobuf:"bytes,6,opt,name=objectID" json:"objectID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MediaEntry_DownloadableThumbnail) Reset() {
- *x = MediaEntry_DownloadableThumbnail{}
- mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MediaEntry_DownloadableThumbnail) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MediaEntry_DownloadableThumbnail) ProtoMessage() {}
- func (x *MediaEntry_DownloadableThumbnail) ProtoReflect() protoreflect.Message {
- mi := &file_waMediaEntryData_WAMediaEntryData_proto_msgTypes[2]
- 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 MediaEntry_DownloadableThumbnail.ProtoReflect.Descriptor instead.
- func (*MediaEntry_DownloadableThumbnail) Descriptor() ([]byte, []int) {
- return file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP(), []int{0, 1}
- }
- func (x *MediaEntry_DownloadableThumbnail) GetFileSHA256() []byte {
- if x != nil {
- return x.FileSHA256
- }
- return nil
- }
- func (x *MediaEntry_DownloadableThumbnail) GetFileEncSHA256() []byte {
- if x != nil {
- return x.FileEncSHA256
- }
- return nil
- }
- func (x *MediaEntry_DownloadableThumbnail) GetDirectPath() string {
- if x != nil && x.DirectPath != nil {
- return *x.DirectPath
- }
- return ""
- }
- func (x *MediaEntry_DownloadableThumbnail) GetMediaKey() []byte {
- if x != nil {
- return x.MediaKey
- }
- return nil
- }
- func (x *MediaEntry_DownloadableThumbnail) GetMediaKeyTimestamp() int64 {
- if x != nil && x.MediaKeyTimestamp != nil {
- return *x.MediaKeyTimestamp
- }
- return 0
- }
- func (x *MediaEntry_DownloadableThumbnail) GetObjectID() string {
- if x != nil && x.ObjectID != nil {
- return *x.ObjectID
- }
- return ""
- }
- var File_waMediaEntryData_WAMediaEntryData_proto protoreflect.FileDescriptor
- const file_waMediaEntryData_WAMediaEntryData_proto_rawDesc = "" +
- "\n" +
- "'waMediaEntryData/WAMediaEntryData.proto\x12\x10WAMediaEntryData\"\xa1\b\n" +
- "\n" +
- "MediaEntry\x12\x1e\n" +
- "\n" +
- "fileSHA256\x18\x01 \x01(\fR\n" +
- "fileSHA256\x12\x1a\n" +
- "\bmediaKey\x18\x02 \x01(\fR\bmediaKey\x12$\n" +
- "\rfileEncSHA256\x18\x03 \x01(\fR\rfileEncSHA256\x12\x1e\n" +
- "\n" +
- "directPath\x18\x04 \x01(\tR\n" +
- "directPath\x12,\n" +
- "\x11mediaKeyTimestamp\x18\x05 \x01(\x03R\x11mediaKeyTimestamp\x12(\n" +
- "\x0fserverMediaType\x18\x06 \x01(\tR\x0fserverMediaType\x12 \n" +
- "\vuploadToken\x18\a \x01(\fR\vuploadToken\x12.\n" +
- "\x12validatedTimestamp\x18\b \x01(\fR\x12validatedTimestamp\x12\x18\n" +
- "\asidecar\x18\t \x01(\fR\asidecar\x12\x1a\n" +
- "\bobjectID\x18\n" +
- " \x01(\tR\bobjectID\x12\x12\n" +
- "\x04FBID\x18\v \x01(\tR\x04FBID\x12h\n" +
- "\x15downloadableThumbnail\x18\f \x01(\v22.WAMediaEntryData.MediaEntry.DownloadableThumbnailR\x15downloadableThumbnail\x12\x16\n" +
- "\x06handle\x18\r \x01(\tR\x06handle\x12\x1a\n" +
- "\bfilename\x18\x0e \x01(\tR\bfilename\x12k\n" +
- "\x16progressiveJPEGDetails\x18\x0f \x01(\v23.WAMediaEntryData.MediaEntry.ProgressiveJpegDetailsR\x16progressiveJPEGDetails\x12\x12\n" +
- "\x04size\x18\x10 \x01(\x03R\x04size\x12B\n" +
- "\x1clastDownloadAttemptTimestamp\x18\x11 \x01(\x03R\x1clastDownloadAttemptTimestamp\x1aT\n" +
- "\x16ProgressiveJpegDetails\x12 \n" +
- "\vscanLengths\x18\x01 \x03(\rR\vscanLengths\x12\x18\n" +
- "\asidecar\x18\x02 \x01(\fR\asidecar\x1a\xe3\x01\n" +
- "\x15DownloadableThumbnail\x12\x1e\n" +
- "\n" +
- "fileSHA256\x18\x01 \x01(\fR\n" +
- "fileSHA256\x12$\n" +
- "\rfileEncSHA256\x18\x02 \x01(\fR\rfileEncSHA256\x12\x1e\n" +
- "\n" +
- "directPath\x18\x03 \x01(\tR\n" +
- "directPath\x12\x1a\n" +
- "\bmediaKey\x18\x04 \x01(\fR\bmediaKey\x12,\n" +
- "\x11mediaKeyTimestamp\x18\x05 \x01(\x03R\x11mediaKeyTimestamp\x12\x1a\n" +
- "\bobjectID\x18\x06 \x01(\tR\bobjectIDB,Z*git.bobomao.top/joey/whatsmeow/proto/waMediaEntryData"
- var (
- file_waMediaEntryData_WAMediaEntryData_proto_rawDescOnce sync.Once
- file_waMediaEntryData_WAMediaEntryData_proto_rawDescData []byte
- )
- func file_waMediaEntryData_WAMediaEntryData_proto_rawDescGZIP() []byte {
- file_waMediaEntryData_WAMediaEntryData_proto_rawDescOnce.Do(func() {
- file_waMediaEntryData_WAMediaEntryData_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc), len(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc)))
- })
- return file_waMediaEntryData_WAMediaEntryData_proto_rawDescData
- }
- var file_waMediaEntryData_WAMediaEntryData_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_waMediaEntryData_WAMediaEntryData_proto_goTypes = []any{
- (*MediaEntry)(nil), // 0: WAMediaEntryData.MediaEntry
- (*MediaEntry_ProgressiveJpegDetails)(nil), // 1: WAMediaEntryData.MediaEntry.ProgressiveJpegDetails
- (*MediaEntry_DownloadableThumbnail)(nil), // 2: WAMediaEntryData.MediaEntry.DownloadableThumbnail
- }
- var file_waMediaEntryData_WAMediaEntryData_proto_depIdxs = []int32{
- 2, // 0: WAMediaEntryData.MediaEntry.downloadableThumbnail:type_name -> WAMediaEntryData.MediaEntry.DownloadableThumbnail
- 1, // 1: WAMediaEntryData.MediaEntry.progressiveJPEGDetails:type_name -> WAMediaEntryData.MediaEntry.ProgressiveJpegDetails
- 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_waMediaEntryData_WAMediaEntryData_proto_init() }
- func file_waMediaEntryData_WAMediaEntryData_proto_init() {
- if File_waMediaEntryData_WAMediaEntryData_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc), len(file_waMediaEntryData_WAMediaEntryData_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_waMediaEntryData_WAMediaEntryData_proto_goTypes,
- DependencyIndexes: file_waMediaEntryData_WAMediaEntryData_proto_depIdxs,
- MessageInfos: file_waMediaEntryData_WAMediaEntryData_proto_msgTypes,
- }.Build()
- File_waMediaEntryData_WAMediaEntryData_proto = out.File
- file_waMediaEntryData_WAMediaEntryData_proto_goTypes = nil
- file_waMediaEntryData_WAMediaEntryData_proto_depIdxs = nil
- }
|