WAWinUIApi.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  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: waWinUIApi/WAWinUIApi.proto
  6. package waWinUIApi
  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 PositronDataSource int32
  21. const (
  22. PositronDataSource_MESSAGES PositronDataSource = 1
  23. PositronDataSource_CHATS PositronDataSource = 2
  24. PositronDataSource_CONTACTS PositronDataSource = 3
  25. PositronDataSource_GROUP_METADATA PositronDataSource = 4
  26. PositronDataSource_GROUP_PARTICIPANTS PositronDataSource = 5
  27. PositronDataSource_REACTIONS PositronDataSource = 6
  28. )
  29. // Enum value maps for PositronDataSource.
  30. var (
  31. PositronDataSource_name = map[int32]string{
  32. 1: "MESSAGES",
  33. 2: "CHATS",
  34. 3: "CONTACTS",
  35. 4: "GROUP_METADATA",
  36. 5: "GROUP_PARTICIPANTS",
  37. 6: "REACTIONS",
  38. }
  39. PositronDataSource_value = map[string]int32{
  40. "MESSAGES": 1,
  41. "CHATS": 2,
  42. "CONTACTS": 3,
  43. "GROUP_METADATA": 4,
  44. "GROUP_PARTICIPANTS": 5,
  45. "REACTIONS": 6,
  46. }
  47. )
  48. func (x PositronDataSource) Enum() *PositronDataSource {
  49. p := new(PositronDataSource)
  50. *p = x
  51. return p
  52. }
  53. func (x PositronDataSource) String() string {
  54. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  55. }
  56. func (PositronDataSource) Descriptor() protoreflect.EnumDescriptor {
  57. return file_waWinUIApi_WAWinUIApi_proto_enumTypes[0].Descriptor()
  58. }
  59. func (PositronDataSource) Type() protoreflect.EnumType {
  60. return &file_waWinUIApi_WAWinUIApi_proto_enumTypes[0]
  61. }
  62. func (x PositronDataSource) Number() protoreflect.EnumNumber {
  63. return protoreflect.EnumNumber(x)
  64. }
  65. // Deprecated: Do not use.
  66. func (x *PositronDataSource) UnmarshalJSON(b []byte) error {
  67. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  68. if err != nil {
  69. return err
  70. }
  71. *x = PositronDataSource(num)
  72. return nil
  73. }
  74. // Deprecated: Use PositronDataSource.Descriptor instead.
  75. func (PositronDataSource) EnumDescriptor() ([]byte, []int) {
  76. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{0}
  77. }
  78. type PositronMessage struct {
  79. state protoimpl.MessageState `protogen:"open.v1"`
  80. Timestamp *int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
  81. Type *string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
  82. Body *string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"`
  83. ID *PositronMessage_MsgKey `protobuf:"bytes,4,opt,name=ID" json:"ID,omitempty"`
  84. JSON *string `protobuf:"bytes,99,opt,name=JSON" json:"JSON,omitempty"`
  85. unknownFields protoimpl.UnknownFields
  86. sizeCache protoimpl.SizeCache
  87. }
  88. func (x *PositronMessage) Reset() {
  89. *x = PositronMessage{}
  90. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[0]
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. ms.StoreMessageInfo(mi)
  93. }
  94. func (x *PositronMessage) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*PositronMessage) ProtoMessage() {}
  98. func (x *PositronMessage) ProtoReflect() protoreflect.Message {
  99. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[0]
  100. if x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use PositronMessage.ProtoReflect.Descriptor instead.
  110. func (*PositronMessage) Descriptor() ([]byte, []int) {
  111. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{0}
  112. }
  113. func (x *PositronMessage) GetTimestamp() int64 {
  114. if x != nil && x.Timestamp != nil {
  115. return *x.Timestamp
  116. }
  117. return 0
  118. }
  119. func (x *PositronMessage) GetType() string {
  120. if x != nil && x.Type != nil {
  121. return *x.Type
  122. }
  123. return ""
  124. }
  125. func (x *PositronMessage) GetBody() string {
  126. if x != nil && x.Body != nil {
  127. return *x.Body
  128. }
  129. return ""
  130. }
  131. func (x *PositronMessage) GetID() *PositronMessage_MsgKey {
  132. if x != nil {
  133. return x.ID
  134. }
  135. return nil
  136. }
  137. func (x *PositronMessage) GetJSON() string {
  138. if x != nil && x.JSON != nil {
  139. return *x.JSON
  140. }
  141. return ""
  142. }
  143. type PositronChat struct {
  144. state protoimpl.MessageState `protogen:"open.v1"`
  145. ID *string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
  146. Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  147. Timestamp *int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
  148. UnreadCount *int64 `protobuf:"varint,4,opt,name=unreadCount" json:"unreadCount,omitempty"`
  149. JSON *string `protobuf:"bytes,99,opt,name=JSON" json:"JSON,omitempty"`
  150. unknownFields protoimpl.UnknownFields
  151. sizeCache protoimpl.SizeCache
  152. }
  153. func (x *PositronChat) Reset() {
  154. *x = PositronChat{}
  155. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[1]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. func (x *PositronChat) String() string {
  160. return protoimpl.X.MessageStringOf(x)
  161. }
  162. func (*PositronChat) ProtoMessage() {}
  163. func (x *PositronChat) ProtoReflect() protoreflect.Message {
  164. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[1]
  165. if x != nil {
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. if ms.LoadMessageInfo() == nil {
  168. ms.StoreMessageInfo(mi)
  169. }
  170. return ms
  171. }
  172. return mi.MessageOf(x)
  173. }
  174. // Deprecated: Use PositronChat.ProtoReflect.Descriptor instead.
  175. func (*PositronChat) Descriptor() ([]byte, []int) {
  176. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{1}
  177. }
  178. func (x *PositronChat) GetID() string {
  179. if x != nil && x.ID != nil {
  180. return *x.ID
  181. }
  182. return ""
  183. }
  184. func (x *PositronChat) GetName() string {
  185. if x != nil && x.Name != nil {
  186. return *x.Name
  187. }
  188. return ""
  189. }
  190. func (x *PositronChat) GetTimestamp() int64 {
  191. if x != nil && x.Timestamp != nil {
  192. return *x.Timestamp
  193. }
  194. return 0
  195. }
  196. func (x *PositronChat) GetUnreadCount() int64 {
  197. if x != nil && x.UnreadCount != nil {
  198. return *x.UnreadCount
  199. }
  200. return 0
  201. }
  202. func (x *PositronChat) GetJSON() string {
  203. if x != nil && x.JSON != nil {
  204. return *x.JSON
  205. }
  206. return ""
  207. }
  208. type PositronContact struct {
  209. state protoimpl.MessageState `protogen:"open.v1"`
  210. ID *string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
  211. PhoneNumber *string `protobuf:"bytes,2,opt,name=phoneNumber" json:"phoneNumber,omitempty"`
  212. Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
  213. IsAddressBookContact *bool `protobuf:"varint,4,opt,name=isAddressBookContact" json:"isAddressBookContact,omitempty"`
  214. JSON *string `protobuf:"bytes,99,opt,name=JSON" json:"JSON,omitempty"`
  215. unknownFields protoimpl.UnknownFields
  216. sizeCache protoimpl.SizeCache
  217. }
  218. func (x *PositronContact) Reset() {
  219. *x = PositronContact{}
  220. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[2]
  221. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  222. ms.StoreMessageInfo(mi)
  223. }
  224. func (x *PositronContact) String() string {
  225. return protoimpl.X.MessageStringOf(x)
  226. }
  227. func (*PositronContact) ProtoMessage() {}
  228. func (x *PositronContact) ProtoReflect() protoreflect.Message {
  229. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[2]
  230. if x != nil {
  231. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  232. if ms.LoadMessageInfo() == nil {
  233. ms.StoreMessageInfo(mi)
  234. }
  235. return ms
  236. }
  237. return mi.MessageOf(x)
  238. }
  239. // Deprecated: Use PositronContact.ProtoReflect.Descriptor instead.
  240. func (*PositronContact) Descriptor() ([]byte, []int) {
  241. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{2}
  242. }
  243. func (x *PositronContact) GetID() string {
  244. if x != nil && x.ID != nil {
  245. return *x.ID
  246. }
  247. return ""
  248. }
  249. func (x *PositronContact) GetPhoneNumber() string {
  250. if x != nil && x.PhoneNumber != nil {
  251. return *x.PhoneNumber
  252. }
  253. return ""
  254. }
  255. func (x *PositronContact) GetName() string {
  256. if x != nil && x.Name != nil {
  257. return *x.Name
  258. }
  259. return ""
  260. }
  261. func (x *PositronContact) GetIsAddressBookContact() bool {
  262. if x != nil && x.IsAddressBookContact != nil {
  263. return *x.IsAddressBookContact
  264. }
  265. return false
  266. }
  267. func (x *PositronContact) GetJSON() string {
  268. if x != nil && x.JSON != nil {
  269. return *x.JSON
  270. }
  271. return ""
  272. }
  273. type PositronGroupMetadata struct {
  274. state protoimpl.MessageState `protogen:"open.v1"`
  275. ID *string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
  276. Subject *string `protobuf:"bytes,2,opt,name=subject" json:"subject,omitempty"`
  277. JSON *string `protobuf:"bytes,99,opt,name=JSON" json:"JSON,omitempty"`
  278. unknownFields protoimpl.UnknownFields
  279. sizeCache protoimpl.SizeCache
  280. }
  281. func (x *PositronGroupMetadata) Reset() {
  282. *x = PositronGroupMetadata{}
  283. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[3]
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. ms.StoreMessageInfo(mi)
  286. }
  287. func (x *PositronGroupMetadata) String() string {
  288. return protoimpl.X.MessageStringOf(x)
  289. }
  290. func (*PositronGroupMetadata) ProtoMessage() {}
  291. func (x *PositronGroupMetadata) ProtoReflect() protoreflect.Message {
  292. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[3]
  293. if x != nil {
  294. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  295. if ms.LoadMessageInfo() == nil {
  296. ms.StoreMessageInfo(mi)
  297. }
  298. return ms
  299. }
  300. return mi.MessageOf(x)
  301. }
  302. // Deprecated: Use PositronGroupMetadata.ProtoReflect.Descriptor instead.
  303. func (*PositronGroupMetadata) Descriptor() ([]byte, []int) {
  304. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{3}
  305. }
  306. func (x *PositronGroupMetadata) GetID() string {
  307. if x != nil && x.ID != nil {
  308. return *x.ID
  309. }
  310. return ""
  311. }
  312. func (x *PositronGroupMetadata) GetSubject() string {
  313. if x != nil && x.Subject != nil {
  314. return *x.Subject
  315. }
  316. return ""
  317. }
  318. func (x *PositronGroupMetadata) GetJSON() string {
  319. if x != nil && x.JSON != nil {
  320. return *x.JSON
  321. }
  322. return ""
  323. }
  324. type PositronGroupParticipants struct {
  325. state protoimpl.MessageState `protogen:"open.v1"`
  326. ID *string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
  327. Participants []string `protobuf:"bytes,2,rep,name=participants" json:"participants,omitempty"`
  328. JSON *string `protobuf:"bytes,99,opt,name=JSON" json:"JSON,omitempty"`
  329. unknownFields protoimpl.UnknownFields
  330. sizeCache protoimpl.SizeCache
  331. }
  332. func (x *PositronGroupParticipants) Reset() {
  333. *x = PositronGroupParticipants{}
  334. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[4]
  335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  336. ms.StoreMessageInfo(mi)
  337. }
  338. func (x *PositronGroupParticipants) String() string {
  339. return protoimpl.X.MessageStringOf(x)
  340. }
  341. func (*PositronGroupParticipants) ProtoMessage() {}
  342. func (x *PositronGroupParticipants) ProtoReflect() protoreflect.Message {
  343. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[4]
  344. if x != nil {
  345. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  346. if ms.LoadMessageInfo() == nil {
  347. ms.StoreMessageInfo(mi)
  348. }
  349. return ms
  350. }
  351. return mi.MessageOf(x)
  352. }
  353. // Deprecated: Use PositronGroupParticipants.ProtoReflect.Descriptor instead.
  354. func (*PositronGroupParticipants) Descriptor() ([]byte, []int) {
  355. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{4}
  356. }
  357. func (x *PositronGroupParticipants) GetID() string {
  358. if x != nil && x.ID != nil {
  359. return *x.ID
  360. }
  361. return ""
  362. }
  363. func (x *PositronGroupParticipants) GetParticipants() []string {
  364. if x != nil {
  365. return x.Participants
  366. }
  367. return nil
  368. }
  369. func (x *PositronGroupParticipants) GetJSON() string {
  370. if x != nil && x.JSON != nil {
  371. return *x.JSON
  372. }
  373. return ""
  374. }
  375. type PositronReaction struct {
  376. state protoimpl.MessageState `protogen:"open.v1"`
  377. ID *string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
  378. ParentMsgKey *string `protobuf:"bytes,2,opt,name=parentMsgKey" json:"parentMsgKey,omitempty"`
  379. ReactionText *string `protobuf:"bytes,3,opt,name=reactionText" json:"reactionText,omitempty"`
  380. Timestamp *int64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
  381. SenderUserJID *string `protobuf:"bytes,5,opt,name=senderUserJID" json:"senderUserJID,omitempty"`
  382. JSON *string `protobuf:"bytes,99,opt,name=JSON" json:"JSON,omitempty"`
  383. unknownFields protoimpl.UnknownFields
  384. sizeCache protoimpl.SizeCache
  385. }
  386. func (x *PositronReaction) Reset() {
  387. *x = PositronReaction{}
  388. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[5]
  389. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  390. ms.StoreMessageInfo(mi)
  391. }
  392. func (x *PositronReaction) String() string {
  393. return protoimpl.X.MessageStringOf(x)
  394. }
  395. func (*PositronReaction) ProtoMessage() {}
  396. func (x *PositronReaction) ProtoReflect() protoreflect.Message {
  397. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[5]
  398. if x != nil {
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. if ms.LoadMessageInfo() == nil {
  401. ms.StoreMessageInfo(mi)
  402. }
  403. return ms
  404. }
  405. return mi.MessageOf(x)
  406. }
  407. // Deprecated: Use PositronReaction.ProtoReflect.Descriptor instead.
  408. func (*PositronReaction) Descriptor() ([]byte, []int) {
  409. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{5}
  410. }
  411. func (x *PositronReaction) GetID() string {
  412. if x != nil && x.ID != nil {
  413. return *x.ID
  414. }
  415. return ""
  416. }
  417. func (x *PositronReaction) GetParentMsgKey() string {
  418. if x != nil && x.ParentMsgKey != nil {
  419. return *x.ParentMsgKey
  420. }
  421. return ""
  422. }
  423. func (x *PositronReaction) GetReactionText() string {
  424. if x != nil && x.ReactionText != nil {
  425. return *x.ReactionText
  426. }
  427. return ""
  428. }
  429. func (x *PositronReaction) GetTimestamp() int64 {
  430. if x != nil && x.Timestamp != nil {
  431. return *x.Timestamp
  432. }
  433. return 0
  434. }
  435. func (x *PositronReaction) GetSenderUserJID() string {
  436. if x != nil && x.SenderUserJID != nil {
  437. return *x.SenderUserJID
  438. }
  439. return ""
  440. }
  441. func (x *PositronReaction) GetJSON() string {
  442. if x != nil && x.JSON != nil {
  443. return *x.JSON
  444. }
  445. return ""
  446. }
  447. type PositronData struct {
  448. state protoimpl.MessageState `protogen:"open.v1"`
  449. DataSource *PositronDataSource `protobuf:"varint,1,opt,name=dataSource,enum=WAWinUIApi.PositronDataSource" json:"dataSource,omitempty"`
  450. Messages []*PositronMessage `protobuf:"bytes,2,rep,name=messages" json:"messages,omitempty"`
  451. Chats []*PositronChat `protobuf:"bytes,3,rep,name=chats" json:"chats,omitempty"`
  452. Contacts []*PositronContact `protobuf:"bytes,4,rep,name=contacts" json:"contacts,omitempty"`
  453. GroupMetadata []*PositronGroupMetadata `protobuf:"bytes,5,rep,name=groupMetadata" json:"groupMetadata,omitempty"`
  454. GroupParticipants []*PositronGroupParticipants `protobuf:"bytes,6,rep,name=groupParticipants" json:"groupParticipants,omitempty"`
  455. Reactions []*PositronReaction `protobuf:"bytes,7,rep,name=reactions" json:"reactions,omitempty"`
  456. unknownFields protoimpl.UnknownFields
  457. sizeCache protoimpl.SizeCache
  458. }
  459. func (x *PositronData) Reset() {
  460. *x = PositronData{}
  461. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[6]
  462. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  463. ms.StoreMessageInfo(mi)
  464. }
  465. func (x *PositronData) String() string {
  466. return protoimpl.X.MessageStringOf(x)
  467. }
  468. func (*PositronData) ProtoMessage() {}
  469. func (x *PositronData) ProtoReflect() protoreflect.Message {
  470. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[6]
  471. if x != nil {
  472. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  473. if ms.LoadMessageInfo() == nil {
  474. ms.StoreMessageInfo(mi)
  475. }
  476. return ms
  477. }
  478. return mi.MessageOf(x)
  479. }
  480. // Deprecated: Use PositronData.ProtoReflect.Descriptor instead.
  481. func (*PositronData) Descriptor() ([]byte, []int) {
  482. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{6}
  483. }
  484. func (x *PositronData) GetDataSource() PositronDataSource {
  485. if x != nil && x.DataSource != nil {
  486. return *x.DataSource
  487. }
  488. return PositronDataSource_MESSAGES
  489. }
  490. func (x *PositronData) GetMessages() []*PositronMessage {
  491. if x != nil {
  492. return x.Messages
  493. }
  494. return nil
  495. }
  496. func (x *PositronData) GetChats() []*PositronChat {
  497. if x != nil {
  498. return x.Chats
  499. }
  500. return nil
  501. }
  502. func (x *PositronData) GetContacts() []*PositronContact {
  503. if x != nil {
  504. return x.Contacts
  505. }
  506. return nil
  507. }
  508. func (x *PositronData) GetGroupMetadata() []*PositronGroupMetadata {
  509. if x != nil {
  510. return x.GroupMetadata
  511. }
  512. return nil
  513. }
  514. func (x *PositronData) GetGroupParticipants() []*PositronGroupParticipants {
  515. if x != nil {
  516. return x.GroupParticipants
  517. }
  518. return nil
  519. }
  520. func (x *PositronData) GetReactions() []*PositronReaction {
  521. if x != nil {
  522. return x.Reactions
  523. }
  524. return nil
  525. }
  526. type PositronMessage_MsgKey struct {
  527. state protoimpl.MessageState `protogen:"open.v1"`
  528. FromMe *bool `protobuf:"varint,1,opt,name=fromMe" json:"fromMe,omitempty"`
  529. Remote *PositronMessage_WID `protobuf:"bytes,2,opt,name=remote" json:"remote,omitempty"`
  530. ID *string `protobuf:"bytes,3,opt,name=ID" json:"ID,omitempty"`
  531. Participant *PositronMessage_WID `protobuf:"bytes,4,opt,name=participant" json:"participant,omitempty"`
  532. unknownFields protoimpl.UnknownFields
  533. sizeCache protoimpl.SizeCache
  534. }
  535. func (x *PositronMessage_MsgKey) Reset() {
  536. *x = PositronMessage_MsgKey{}
  537. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[7]
  538. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  539. ms.StoreMessageInfo(mi)
  540. }
  541. func (x *PositronMessage_MsgKey) String() string {
  542. return protoimpl.X.MessageStringOf(x)
  543. }
  544. func (*PositronMessage_MsgKey) ProtoMessage() {}
  545. func (x *PositronMessage_MsgKey) ProtoReflect() protoreflect.Message {
  546. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[7]
  547. if x != nil {
  548. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  549. if ms.LoadMessageInfo() == nil {
  550. ms.StoreMessageInfo(mi)
  551. }
  552. return ms
  553. }
  554. return mi.MessageOf(x)
  555. }
  556. // Deprecated: Use PositronMessage_MsgKey.ProtoReflect.Descriptor instead.
  557. func (*PositronMessage_MsgKey) Descriptor() ([]byte, []int) {
  558. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{0, 0}
  559. }
  560. func (x *PositronMessage_MsgKey) GetFromMe() bool {
  561. if x != nil && x.FromMe != nil {
  562. return *x.FromMe
  563. }
  564. return false
  565. }
  566. func (x *PositronMessage_MsgKey) GetRemote() *PositronMessage_WID {
  567. if x != nil {
  568. return x.Remote
  569. }
  570. return nil
  571. }
  572. func (x *PositronMessage_MsgKey) GetID() string {
  573. if x != nil && x.ID != nil {
  574. return *x.ID
  575. }
  576. return ""
  577. }
  578. func (x *PositronMessage_MsgKey) GetParticipant() *PositronMessage_WID {
  579. if x != nil {
  580. return x.Participant
  581. }
  582. return nil
  583. }
  584. type PositronMessage_WID struct {
  585. state protoimpl.MessageState `protogen:"open.v1"`
  586. Serialized *string `protobuf:"bytes,1,opt,name=serialized" json:"serialized,omitempty"`
  587. unknownFields protoimpl.UnknownFields
  588. sizeCache protoimpl.SizeCache
  589. }
  590. func (x *PositronMessage_WID) Reset() {
  591. *x = PositronMessage_WID{}
  592. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[8]
  593. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  594. ms.StoreMessageInfo(mi)
  595. }
  596. func (x *PositronMessage_WID) String() string {
  597. return protoimpl.X.MessageStringOf(x)
  598. }
  599. func (*PositronMessage_WID) ProtoMessage() {}
  600. func (x *PositronMessage_WID) ProtoReflect() protoreflect.Message {
  601. mi := &file_waWinUIApi_WAWinUIApi_proto_msgTypes[8]
  602. if x != nil {
  603. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  604. if ms.LoadMessageInfo() == nil {
  605. ms.StoreMessageInfo(mi)
  606. }
  607. return ms
  608. }
  609. return mi.MessageOf(x)
  610. }
  611. // Deprecated: Use PositronMessage_WID.ProtoReflect.Descriptor instead.
  612. func (*PositronMessage_WID) Descriptor() ([]byte, []int) {
  613. return file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP(), []int{0, 1}
  614. }
  615. func (x *PositronMessage_WID) GetSerialized() string {
  616. if x != nil && x.Serialized != nil {
  617. return *x.Serialized
  618. }
  619. return ""
  620. }
  621. var File_waWinUIApi_WAWinUIApi_proto protoreflect.FileDescriptor
  622. const file_waWinUIApi_WAWinUIApi_proto_rawDesc = "" +
  623. "\n" +
  624. "\x1bwaWinUIApi/WAWinUIApi.proto\x12\n" +
  625. "WAWinUIApi\"\xf5\x02\n" +
  626. "\x0fPositronMessage\x12\x1c\n" +
  627. "\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x12\n" +
  628. "\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
  629. "\x04body\x18\x03 \x01(\tR\x04body\x122\n" +
  630. "\x02ID\x18\x04 \x01(\v2\".WAWinUIApi.PositronMessage.MsgKeyR\x02ID\x12\x12\n" +
  631. "\x04JSON\x18c \x01(\tR\x04JSON\x1a\xac\x01\n" +
  632. "\x06MsgKey\x12\x16\n" +
  633. "\x06fromMe\x18\x01 \x01(\bR\x06fromMe\x127\n" +
  634. "\x06remote\x18\x02 \x01(\v2\x1f.WAWinUIApi.PositronMessage.WIDR\x06remote\x12\x0e\n" +
  635. "\x02ID\x18\x03 \x01(\tR\x02ID\x12A\n" +
  636. "\vparticipant\x18\x04 \x01(\v2\x1f.WAWinUIApi.PositronMessage.WIDR\vparticipant\x1a%\n" +
  637. "\x03WID\x12\x1e\n" +
  638. "\n" +
  639. "serialized\x18\x01 \x01(\tR\n" +
  640. "serialized\"\x86\x01\n" +
  641. "\fPositronChat\x12\x0e\n" +
  642. "\x02ID\x18\x01 \x01(\tR\x02ID\x12\x12\n" +
  643. "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" +
  644. "\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\x12 \n" +
  645. "\vunreadCount\x18\x04 \x01(\x03R\vunreadCount\x12\x12\n" +
  646. "\x04JSON\x18c \x01(\tR\x04JSON\"\x9f\x01\n" +
  647. "\x0fPositronContact\x12\x0e\n" +
  648. "\x02ID\x18\x01 \x01(\tR\x02ID\x12 \n" +
  649. "\vphoneNumber\x18\x02 \x01(\tR\vphoneNumber\x12\x12\n" +
  650. "\x04name\x18\x03 \x01(\tR\x04name\x122\n" +
  651. "\x14isAddressBookContact\x18\x04 \x01(\bR\x14isAddressBookContact\x12\x12\n" +
  652. "\x04JSON\x18c \x01(\tR\x04JSON\"U\n" +
  653. "\x15PositronGroupMetadata\x12\x0e\n" +
  654. "\x02ID\x18\x01 \x01(\tR\x02ID\x12\x18\n" +
  655. "\asubject\x18\x02 \x01(\tR\asubject\x12\x12\n" +
  656. "\x04JSON\x18c \x01(\tR\x04JSON\"c\n" +
  657. "\x19PositronGroupParticipants\x12\x0e\n" +
  658. "\x02ID\x18\x01 \x01(\tR\x02ID\x12\"\n" +
  659. "\fparticipants\x18\x02 \x03(\tR\fparticipants\x12\x12\n" +
  660. "\x04JSON\x18c \x01(\tR\x04JSON\"\xc2\x01\n" +
  661. "\x10PositronReaction\x12\x0e\n" +
  662. "\x02ID\x18\x01 \x01(\tR\x02ID\x12\"\n" +
  663. "\fparentMsgKey\x18\x02 \x01(\tR\fparentMsgKey\x12\"\n" +
  664. "\freactionText\x18\x03 \x01(\tR\freactionText\x12\x1c\n" +
  665. "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12$\n" +
  666. "\rsenderUserJID\x18\x05 \x01(\tR\rsenderUserJID\x12\x12\n" +
  667. "\x04JSON\x18c \x01(\tR\x04JSON\"\xca\x03\n" +
  668. "\fPositronData\x12>\n" +
  669. "\n" +
  670. "dataSource\x18\x01 \x01(\x0e2\x1e.WAWinUIApi.PositronDataSourceR\n" +
  671. "dataSource\x127\n" +
  672. "\bmessages\x18\x02 \x03(\v2\x1b.WAWinUIApi.PositronMessageR\bmessages\x12.\n" +
  673. "\x05chats\x18\x03 \x03(\v2\x18.WAWinUIApi.PositronChatR\x05chats\x127\n" +
  674. "\bcontacts\x18\x04 \x03(\v2\x1b.WAWinUIApi.PositronContactR\bcontacts\x12G\n" +
  675. "\rgroupMetadata\x18\x05 \x03(\v2!.WAWinUIApi.PositronGroupMetadataR\rgroupMetadata\x12S\n" +
  676. "\x11groupParticipants\x18\x06 \x03(\v2%.WAWinUIApi.PositronGroupParticipantsR\x11groupParticipants\x12:\n" +
  677. "\treactions\x18\a \x03(\v2\x1c.WAWinUIApi.PositronReactionR\treactions*v\n" +
  678. "\x12PositronDataSource\x12\f\n" +
  679. "\bMESSAGES\x10\x01\x12\t\n" +
  680. "\x05CHATS\x10\x02\x12\f\n" +
  681. "\bCONTACTS\x10\x03\x12\x12\n" +
  682. "\x0eGROUP_METADATA\x10\x04\x12\x16\n" +
  683. "\x12GROUP_PARTICIPANTS\x10\x05\x12\r\n" +
  684. "\tREACTIONS\x10\x06B&Z$git.bobomao.top/joey/whatsmeow/proto/waWinUIApi"
  685. var (
  686. file_waWinUIApi_WAWinUIApi_proto_rawDescOnce sync.Once
  687. file_waWinUIApi_WAWinUIApi_proto_rawDescData []byte
  688. )
  689. func file_waWinUIApi_WAWinUIApi_proto_rawDescGZIP() []byte {
  690. file_waWinUIApi_WAWinUIApi_proto_rawDescOnce.Do(func() {
  691. file_waWinUIApi_WAWinUIApi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waWinUIApi_WAWinUIApi_proto_rawDesc), len(file_waWinUIApi_WAWinUIApi_proto_rawDesc)))
  692. })
  693. return file_waWinUIApi_WAWinUIApi_proto_rawDescData
  694. }
  695. var file_waWinUIApi_WAWinUIApi_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  696. var file_waWinUIApi_WAWinUIApi_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  697. var file_waWinUIApi_WAWinUIApi_proto_goTypes = []any{
  698. (PositronDataSource)(0), // 0: WAWinUIApi.PositronDataSource
  699. (*PositronMessage)(nil), // 1: WAWinUIApi.PositronMessage
  700. (*PositronChat)(nil), // 2: WAWinUIApi.PositronChat
  701. (*PositronContact)(nil), // 3: WAWinUIApi.PositronContact
  702. (*PositronGroupMetadata)(nil), // 4: WAWinUIApi.PositronGroupMetadata
  703. (*PositronGroupParticipants)(nil), // 5: WAWinUIApi.PositronGroupParticipants
  704. (*PositronReaction)(nil), // 6: WAWinUIApi.PositronReaction
  705. (*PositronData)(nil), // 7: WAWinUIApi.PositronData
  706. (*PositronMessage_MsgKey)(nil), // 8: WAWinUIApi.PositronMessage.MsgKey
  707. (*PositronMessage_WID)(nil), // 9: WAWinUIApi.PositronMessage.WID
  708. }
  709. var file_waWinUIApi_WAWinUIApi_proto_depIdxs = []int32{
  710. 8, // 0: WAWinUIApi.PositronMessage.ID:type_name -> WAWinUIApi.PositronMessage.MsgKey
  711. 0, // 1: WAWinUIApi.PositronData.dataSource:type_name -> WAWinUIApi.PositronDataSource
  712. 1, // 2: WAWinUIApi.PositronData.messages:type_name -> WAWinUIApi.PositronMessage
  713. 2, // 3: WAWinUIApi.PositronData.chats:type_name -> WAWinUIApi.PositronChat
  714. 3, // 4: WAWinUIApi.PositronData.contacts:type_name -> WAWinUIApi.PositronContact
  715. 4, // 5: WAWinUIApi.PositronData.groupMetadata:type_name -> WAWinUIApi.PositronGroupMetadata
  716. 5, // 6: WAWinUIApi.PositronData.groupParticipants:type_name -> WAWinUIApi.PositronGroupParticipants
  717. 6, // 7: WAWinUIApi.PositronData.reactions:type_name -> WAWinUIApi.PositronReaction
  718. 9, // 8: WAWinUIApi.PositronMessage.MsgKey.remote:type_name -> WAWinUIApi.PositronMessage.WID
  719. 9, // 9: WAWinUIApi.PositronMessage.MsgKey.participant:type_name -> WAWinUIApi.PositronMessage.WID
  720. 10, // [10:10] is the sub-list for method output_type
  721. 10, // [10:10] is the sub-list for method input_type
  722. 10, // [10:10] is the sub-list for extension type_name
  723. 10, // [10:10] is the sub-list for extension extendee
  724. 0, // [0:10] is the sub-list for field type_name
  725. }
  726. func init() { file_waWinUIApi_WAWinUIApi_proto_init() }
  727. func file_waWinUIApi_WAWinUIApi_proto_init() {
  728. if File_waWinUIApi_WAWinUIApi_proto != nil {
  729. return
  730. }
  731. type x struct{}
  732. out := protoimpl.TypeBuilder{
  733. File: protoimpl.DescBuilder{
  734. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  735. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waWinUIApi_WAWinUIApi_proto_rawDesc), len(file_waWinUIApi_WAWinUIApi_proto_rawDesc)),
  736. NumEnums: 1,
  737. NumMessages: 9,
  738. NumExtensions: 0,
  739. NumServices: 0,
  740. },
  741. GoTypes: file_waWinUIApi_WAWinUIApi_proto_goTypes,
  742. DependencyIndexes: file_waWinUIApi_WAWinUIApi_proto_depIdxs,
  743. EnumInfos: file_waWinUIApi_WAWinUIApi_proto_enumTypes,
  744. MessageInfos: file_waWinUIApi_WAWinUIApi_proto_msgTypes,
  745. }.Build()
  746. File_waWinUIApi_WAWinUIApi_proto = out.File
  747. file_waWinUIApi_WAWinUIApi_proto_goTypes = nil
  748. file_waWinUIApi_WAWinUIApi_proto_depIdxs = nil
  749. }