WACommon.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v6.31.1
  5. // source: waCommon/WACommon.proto
  6. package waCommon
  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. unsafe "unsafe"
  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 FutureProofBehavior int32
  21. const (
  22. FutureProofBehavior_PLACEHOLDER FutureProofBehavior = 0
  23. FutureProofBehavior_NO_PLACEHOLDER FutureProofBehavior = 1
  24. FutureProofBehavior_IGNORE FutureProofBehavior = 2
  25. )
  26. // Enum value maps for FutureProofBehavior.
  27. var (
  28. FutureProofBehavior_name = map[int32]string{
  29. 0: "PLACEHOLDER",
  30. 1: "NO_PLACEHOLDER",
  31. 2: "IGNORE",
  32. }
  33. FutureProofBehavior_value = map[string]int32{
  34. "PLACEHOLDER": 0,
  35. "NO_PLACEHOLDER": 1,
  36. "IGNORE": 2,
  37. }
  38. )
  39. func (x FutureProofBehavior) Enum() *FutureProofBehavior {
  40. p := new(FutureProofBehavior)
  41. *p = x
  42. return p
  43. }
  44. func (x FutureProofBehavior) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (FutureProofBehavior) Descriptor() protoreflect.EnumDescriptor {
  48. return file_waCommon_WACommon_proto_enumTypes[0].Descriptor()
  49. }
  50. func (FutureProofBehavior) Type() protoreflect.EnumType {
  51. return &file_waCommon_WACommon_proto_enumTypes[0]
  52. }
  53. func (x FutureProofBehavior) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Do not use.
  57. func (x *FutureProofBehavior) UnmarshalJSON(b []byte) error {
  58. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  59. if err != nil {
  60. return err
  61. }
  62. *x = FutureProofBehavior(num)
  63. return nil
  64. }
  65. // Deprecated: Use FutureProofBehavior.Descriptor instead.
  66. func (FutureProofBehavior) EnumDescriptor() ([]byte, []int) {
  67. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{0}
  68. }
  69. type Command_CommandType int32
  70. const (
  71. Command_EVERYONE Command_CommandType = 1
  72. Command_SILENT Command_CommandType = 2
  73. Command_AI Command_CommandType = 3
  74. Command_AI_IMAGINE Command_CommandType = 4
  75. )
  76. // Enum value maps for Command_CommandType.
  77. var (
  78. Command_CommandType_name = map[int32]string{
  79. 1: "EVERYONE",
  80. 2: "SILENT",
  81. 3: "AI",
  82. 4: "AI_IMAGINE",
  83. }
  84. Command_CommandType_value = map[string]int32{
  85. "EVERYONE": 1,
  86. "SILENT": 2,
  87. "AI": 3,
  88. "AI_IMAGINE": 4,
  89. }
  90. )
  91. func (x Command_CommandType) Enum() *Command_CommandType {
  92. p := new(Command_CommandType)
  93. *p = x
  94. return p
  95. }
  96. func (x Command_CommandType) String() string {
  97. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  98. }
  99. func (Command_CommandType) Descriptor() protoreflect.EnumDescriptor {
  100. return file_waCommon_WACommon_proto_enumTypes[1].Descriptor()
  101. }
  102. func (Command_CommandType) Type() protoreflect.EnumType {
  103. return &file_waCommon_WACommon_proto_enumTypes[1]
  104. }
  105. func (x Command_CommandType) Number() protoreflect.EnumNumber {
  106. return protoreflect.EnumNumber(x)
  107. }
  108. // Deprecated: Do not use.
  109. func (x *Command_CommandType) UnmarshalJSON(b []byte) error {
  110. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  111. if err != nil {
  112. return err
  113. }
  114. *x = Command_CommandType(num)
  115. return nil
  116. }
  117. // Deprecated: Use Command_CommandType.Descriptor instead.
  118. func (Command_CommandType) EnumDescriptor() ([]byte, []int) {
  119. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{1, 0}
  120. }
  121. type Mention_MentionType int32
  122. const (
  123. Mention_PROFILE Mention_MentionType = 0
  124. )
  125. // Enum value maps for Mention_MentionType.
  126. var (
  127. Mention_MentionType_name = map[int32]string{
  128. 0: "PROFILE",
  129. }
  130. Mention_MentionType_value = map[string]int32{
  131. "PROFILE": 0,
  132. }
  133. )
  134. func (x Mention_MentionType) Enum() *Mention_MentionType {
  135. p := new(Mention_MentionType)
  136. *p = x
  137. return p
  138. }
  139. func (x Mention_MentionType) String() string {
  140. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  141. }
  142. func (Mention_MentionType) Descriptor() protoreflect.EnumDescriptor {
  143. return file_waCommon_WACommon_proto_enumTypes[2].Descriptor()
  144. }
  145. func (Mention_MentionType) Type() protoreflect.EnumType {
  146. return &file_waCommon_WACommon_proto_enumTypes[2]
  147. }
  148. func (x Mention_MentionType) Number() protoreflect.EnumNumber {
  149. return protoreflect.EnumNumber(x)
  150. }
  151. // Deprecated: Do not use.
  152. func (x *Mention_MentionType) UnmarshalJSON(b []byte) error {
  153. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  154. if err != nil {
  155. return err
  156. }
  157. *x = Mention_MentionType(num)
  158. return nil
  159. }
  160. // Deprecated: Use Mention_MentionType.Descriptor instead.
  161. func (Mention_MentionType) EnumDescriptor() ([]byte, []int) {
  162. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{2, 0}
  163. }
  164. type LimitSharing_Trigger int32
  165. const (
  166. LimitSharing_UNKNOWN LimitSharing_Trigger = 0
  167. LimitSharing_CHAT_SETTING LimitSharing_Trigger = 1
  168. LimitSharing_BIZ_SUPPORTS_FB_HOSTING LimitSharing_Trigger = 2
  169. LimitSharing_UNKNOWN_GROUP LimitSharing_Trigger = 3
  170. )
  171. // Enum value maps for LimitSharing_Trigger.
  172. var (
  173. LimitSharing_Trigger_name = map[int32]string{
  174. 0: "UNKNOWN",
  175. 1: "CHAT_SETTING",
  176. 2: "BIZ_SUPPORTS_FB_HOSTING",
  177. 3: "UNKNOWN_GROUP",
  178. }
  179. LimitSharing_Trigger_value = map[string]int32{
  180. "UNKNOWN": 0,
  181. "CHAT_SETTING": 1,
  182. "BIZ_SUPPORTS_FB_HOSTING": 2,
  183. "UNKNOWN_GROUP": 3,
  184. }
  185. )
  186. func (x LimitSharing_Trigger) Enum() *LimitSharing_Trigger {
  187. p := new(LimitSharing_Trigger)
  188. *p = x
  189. return p
  190. }
  191. func (x LimitSharing_Trigger) String() string {
  192. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  193. }
  194. func (LimitSharing_Trigger) Descriptor() protoreflect.EnumDescriptor {
  195. return file_waCommon_WACommon_proto_enumTypes[3].Descriptor()
  196. }
  197. func (LimitSharing_Trigger) Type() protoreflect.EnumType {
  198. return &file_waCommon_WACommon_proto_enumTypes[3]
  199. }
  200. func (x LimitSharing_Trigger) Number() protoreflect.EnumNumber {
  201. return protoreflect.EnumNumber(x)
  202. }
  203. // Deprecated: Do not use.
  204. func (x *LimitSharing_Trigger) UnmarshalJSON(b []byte) error {
  205. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  206. if err != nil {
  207. return err
  208. }
  209. *x = LimitSharing_Trigger(num)
  210. return nil
  211. }
  212. // Deprecated: Use LimitSharing_Trigger.Descriptor instead.
  213. func (LimitSharing_Trigger) EnumDescriptor() ([]byte, []int) {
  214. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{5, 0}
  215. }
  216. type MessageKey struct {
  217. state protoimpl.MessageState `protogen:"open.v1"`
  218. RemoteJID *string `protobuf:"bytes,1,opt,name=remoteJID" json:"remoteJID,omitempty"`
  219. FromMe *bool `protobuf:"varint,2,opt,name=fromMe" json:"fromMe,omitempty"`
  220. ID *string `protobuf:"bytes,3,opt,name=ID" json:"ID,omitempty"`
  221. Participant *string `protobuf:"bytes,4,opt,name=participant" json:"participant,omitempty"`
  222. unknownFields protoimpl.UnknownFields
  223. sizeCache protoimpl.SizeCache
  224. }
  225. func (x *MessageKey) Reset() {
  226. *x = MessageKey{}
  227. mi := &file_waCommon_WACommon_proto_msgTypes[0]
  228. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  229. ms.StoreMessageInfo(mi)
  230. }
  231. func (x *MessageKey) String() string {
  232. return protoimpl.X.MessageStringOf(x)
  233. }
  234. func (*MessageKey) ProtoMessage() {}
  235. func (x *MessageKey) ProtoReflect() protoreflect.Message {
  236. mi := &file_waCommon_WACommon_proto_msgTypes[0]
  237. if x != nil {
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. if ms.LoadMessageInfo() == nil {
  240. ms.StoreMessageInfo(mi)
  241. }
  242. return ms
  243. }
  244. return mi.MessageOf(x)
  245. }
  246. // Deprecated: Use MessageKey.ProtoReflect.Descriptor instead.
  247. func (*MessageKey) Descriptor() ([]byte, []int) {
  248. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{0}
  249. }
  250. func (x *MessageKey) GetRemoteJID() string {
  251. if x != nil && x.RemoteJID != nil {
  252. return *x.RemoteJID
  253. }
  254. return ""
  255. }
  256. func (x *MessageKey) GetFromMe() bool {
  257. if x != nil && x.FromMe != nil {
  258. return *x.FromMe
  259. }
  260. return false
  261. }
  262. func (x *MessageKey) GetID() string {
  263. if x != nil && x.ID != nil {
  264. return *x.ID
  265. }
  266. return ""
  267. }
  268. func (x *MessageKey) GetParticipant() string {
  269. if x != nil && x.Participant != nil {
  270. return *x.Participant
  271. }
  272. return ""
  273. }
  274. type Command struct {
  275. state protoimpl.MessageState `protogen:"open.v1"`
  276. CommandType *Command_CommandType `protobuf:"varint,1,opt,name=commandType,enum=WACommon.Command_CommandType" json:"commandType,omitempty"`
  277. Offset *uint32 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
  278. Length *uint32 `protobuf:"varint,3,opt,name=length" json:"length,omitempty"`
  279. ValidationToken *string `protobuf:"bytes,4,opt,name=validationToken" json:"validationToken,omitempty"`
  280. unknownFields protoimpl.UnknownFields
  281. sizeCache protoimpl.SizeCache
  282. }
  283. func (x *Command) Reset() {
  284. *x = Command{}
  285. mi := &file_waCommon_WACommon_proto_msgTypes[1]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. func (x *Command) String() string {
  290. return protoimpl.X.MessageStringOf(x)
  291. }
  292. func (*Command) ProtoMessage() {}
  293. func (x *Command) ProtoReflect() protoreflect.Message {
  294. mi := &file_waCommon_WACommon_proto_msgTypes[1]
  295. if x != nil {
  296. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  297. if ms.LoadMessageInfo() == nil {
  298. ms.StoreMessageInfo(mi)
  299. }
  300. return ms
  301. }
  302. return mi.MessageOf(x)
  303. }
  304. // Deprecated: Use Command.ProtoReflect.Descriptor instead.
  305. func (*Command) Descriptor() ([]byte, []int) {
  306. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{1}
  307. }
  308. func (x *Command) GetCommandType() Command_CommandType {
  309. if x != nil && x.CommandType != nil {
  310. return *x.CommandType
  311. }
  312. return Command_EVERYONE
  313. }
  314. func (x *Command) GetOffset() uint32 {
  315. if x != nil && x.Offset != nil {
  316. return *x.Offset
  317. }
  318. return 0
  319. }
  320. func (x *Command) GetLength() uint32 {
  321. if x != nil && x.Length != nil {
  322. return *x.Length
  323. }
  324. return 0
  325. }
  326. func (x *Command) GetValidationToken() string {
  327. if x != nil && x.ValidationToken != nil {
  328. return *x.ValidationToken
  329. }
  330. return ""
  331. }
  332. type Mention struct {
  333. state protoimpl.MessageState `protogen:"open.v1"`
  334. MentionType *Mention_MentionType `protobuf:"varint,1,opt,name=mentionType,enum=WACommon.Mention_MentionType" json:"mentionType,omitempty"`
  335. MentionedJID *string `protobuf:"bytes,2,opt,name=mentionedJID" json:"mentionedJID,omitempty"`
  336. Offset *uint32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"`
  337. Length *uint32 `protobuf:"varint,4,opt,name=length" json:"length,omitempty"`
  338. unknownFields protoimpl.UnknownFields
  339. sizeCache protoimpl.SizeCache
  340. }
  341. func (x *Mention) Reset() {
  342. *x = Mention{}
  343. mi := &file_waCommon_WACommon_proto_msgTypes[2]
  344. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  345. ms.StoreMessageInfo(mi)
  346. }
  347. func (x *Mention) String() string {
  348. return protoimpl.X.MessageStringOf(x)
  349. }
  350. func (*Mention) ProtoMessage() {}
  351. func (x *Mention) ProtoReflect() protoreflect.Message {
  352. mi := &file_waCommon_WACommon_proto_msgTypes[2]
  353. if x != nil {
  354. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  355. if ms.LoadMessageInfo() == nil {
  356. ms.StoreMessageInfo(mi)
  357. }
  358. return ms
  359. }
  360. return mi.MessageOf(x)
  361. }
  362. // Deprecated: Use Mention.ProtoReflect.Descriptor instead.
  363. func (*Mention) Descriptor() ([]byte, []int) {
  364. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{2}
  365. }
  366. func (x *Mention) GetMentionType() Mention_MentionType {
  367. if x != nil && x.MentionType != nil {
  368. return *x.MentionType
  369. }
  370. return Mention_PROFILE
  371. }
  372. func (x *Mention) GetMentionedJID() string {
  373. if x != nil && x.MentionedJID != nil {
  374. return *x.MentionedJID
  375. }
  376. return ""
  377. }
  378. func (x *Mention) GetOffset() uint32 {
  379. if x != nil && x.Offset != nil {
  380. return *x.Offset
  381. }
  382. return 0
  383. }
  384. func (x *Mention) GetLength() uint32 {
  385. if x != nil && x.Length != nil {
  386. return *x.Length
  387. }
  388. return 0
  389. }
  390. type MessageText struct {
  391. state protoimpl.MessageState `protogen:"open.v1"`
  392. Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
  393. MentionedJID []string `protobuf:"bytes,2,rep,name=mentionedJID" json:"mentionedJID,omitempty"`
  394. Commands []*Command `protobuf:"bytes,3,rep,name=commands" json:"commands,omitempty"`
  395. Mentions []*Mention `protobuf:"bytes,4,rep,name=mentions" json:"mentions,omitempty"`
  396. unknownFields protoimpl.UnknownFields
  397. sizeCache protoimpl.SizeCache
  398. }
  399. func (x *MessageText) Reset() {
  400. *x = MessageText{}
  401. mi := &file_waCommon_WACommon_proto_msgTypes[3]
  402. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  403. ms.StoreMessageInfo(mi)
  404. }
  405. func (x *MessageText) String() string {
  406. return protoimpl.X.MessageStringOf(x)
  407. }
  408. func (*MessageText) ProtoMessage() {}
  409. func (x *MessageText) ProtoReflect() protoreflect.Message {
  410. mi := &file_waCommon_WACommon_proto_msgTypes[3]
  411. if x != nil {
  412. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  413. if ms.LoadMessageInfo() == nil {
  414. ms.StoreMessageInfo(mi)
  415. }
  416. return ms
  417. }
  418. return mi.MessageOf(x)
  419. }
  420. // Deprecated: Use MessageText.ProtoReflect.Descriptor instead.
  421. func (*MessageText) Descriptor() ([]byte, []int) {
  422. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{3}
  423. }
  424. func (x *MessageText) GetText() string {
  425. if x != nil && x.Text != nil {
  426. return *x.Text
  427. }
  428. return ""
  429. }
  430. func (x *MessageText) GetMentionedJID() []string {
  431. if x != nil {
  432. return x.MentionedJID
  433. }
  434. return nil
  435. }
  436. func (x *MessageText) GetCommands() []*Command {
  437. if x != nil {
  438. return x.Commands
  439. }
  440. return nil
  441. }
  442. func (x *MessageText) GetMentions() []*Mention {
  443. if x != nil {
  444. return x.Mentions
  445. }
  446. return nil
  447. }
  448. type SubProtocol struct {
  449. state protoimpl.MessageState `protogen:"open.v1"`
  450. Payload []byte `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
  451. Version *int32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"`
  452. unknownFields protoimpl.UnknownFields
  453. sizeCache protoimpl.SizeCache
  454. }
  455. func (x *SubProtocol) Reset() {
  456. *x = SubProtocol{}
  457. mi := &file_waCommon_WACommon_proto_msgTypes[4]
  458. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  459. ms.StoreMessageInfo(mi)
  460. }
  461. func (x *SubProtocol) String() string {
  462. return protoimpl.X.MessageStringOf(x)
  463. }
  464. func (*SubProtocol) ProtoMessage() {}
  465. func (x *SubProtocol) ProtoReflect() protoreflect.Message {
  466. mi := &file_waCommon_WACommon_proto_msgTypes[4]
  467. if x != nil {
  468. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  469. if ms.LoadMessageInfo() == nil {
  470. ms.StoreMessageInfo(mi)
  471. }
  472. return ms
  473. }
  474. return mi.MessageOf(x)
  475. }
  476. // Deprecated: Use SubProtocol.ProtoReflect.Descriptor instead.
  477. func (*SubProtocol) Descriptor() ([]byte, []int) {
  478. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{4}
  479. }
  480. func (x *SubProtocol) GetPayload() []byte {
  481. if x != nil {
  482. return x.Payload
  483. }
  484. return nil
  485. }
  486. func (x *SubProtocol) GetVersion() int32 {
  487. if x != nil && x.Version != nil {
  488. return *x.Version
  489. }
  490. return 0
  491. }
  492. type LimitSharing struct {
  493. state protoimpl.MessageState `protogen:"open.v1"`
  494. SharingLimited *bool `protobuf:"varint,1,opt,name=sharingLimited" json:"sharingLimited,omitempty"`
  495. Trigger *LimitSharing_Trigger `protobuf:"varint,2,opt,name=trigger,enum=WACommon.LimitSharing_Trigger" json:"trigger,omitempty"`
  496. LimitSharingSettingTimestamp *int64 `protobuf:"varint,3,opt,name=limitSharingSettingTimestamp" json:"limitSharingSettingTimestamp,omitempty"`
  497. InitiatedByMe *bool `protobuf:"varint,4,opt,name=initiatedByMe" json:"initiatedByMe,omitempty"`
  498. unknownFields protoimpl.UnknownFields
  499. sizeCache protoimpl.SizeCache
  500. }
  501. func (x *LimitSharing) Reset() {
  502. *x = LimitSharing{}
  503. mi := &file_waCommon_WACommon_proto_msgTypes[5]
  504. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  505. ms.StoreMessageInfo(mi)
  506. }
  507. func (x *LimitSharing) String() string {
  508. return protoimpl.X.MessageStringOf(x)
  509. }
  510. func (*LimitSharing) ProtoMessage() {}
  511. func (x *LimitSharing) ProtoReflect() protoreflect.Message {
  512. mi := &file_waCommon_WACommon_proto_msgTypes[5]
  513. if x != nil {
  514. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  515. if ms.LoadMessageInfo() == nil {
  516. ms.StoreMessageInfo(mi)
  517. }
  518. return ms
  519. }
  520. return mi.MessageOf(x)
  521. }
  522. // Deprecated: Use LimitSharing.ProtoReflect.Descriptor instead.
  523. func (*LimitSharing) Descriptor() ([]byte, []int) {
  524. return file_waCommon_WACommon_proto_rawDescGZIP(), []int{5}
  525. }
  526. func (x *LimitSharing) GetSharingLimited() bool {
  527. if x != nil && x.SharingLimited != nil {
  528. return *x.SharingLimited
  529. }
  530. return false
  531. }
  532. func (x *LimitSharing) GetTrigger() LimitSharing_Trigger {
  533. if x != nil && x.Trigger != nil {
  534. return *x.Trigger
  535. }
  536. return LimitSharing_UNKNOWN
  537. }
  538. func (x *LimitSharing) GetLimitSharingSettingTimestamp() int64 {
  539. if x != nil && x.LimitSharingSettingTimestamp != nil {
  540. return *x.LimitSharingSettingTimestamp
  541. }
  542. return 0
  543. }
  544. func (x *LimitSharing) GetInitiatedByMe() bool {
  545. if x != nil && x.InitiatedByMe != nil {
  546. return *x.InitiatedByMe
  547. }
  548. return false
  549. }
  550. var File_waCommon_WACommon_proto protoreflect.FileDescriptor
  551. const file_waCommon_WACommon_proto_rawDesc = "" +
  552. "\n" +
  553. "\x17waCommon/WACommon.proto\x12\bWACommon\"t\n" +
  554. "\n" +
  555. "MessageKey\x12\x1c\n" +
  556. "\tremoteJID\x18\x01 \x01(\tR\tremoteJID\x12\x16\n" +
  557. "\x06fromMe\x18\x02 \x01(\bR\x06fromMe\x12\x0e\n" +
  558. "\x02ID\x18\x03 \x01(\tR\x02ID\x12 \n" +
  559. "\vparticipant\x18\x04 \x01(\tR\vparticipant\"\xe5\x01\n" +
  560. "\aCommand\x12?\n" +
  561. "\vcommandType\x18\x01 \x01(\x0e2\x1d.WACommon.Command.CommandTypeR\vcommandType\x12\x16\n" +
  562. "\x06offset\x18\x02 \x01(\rR\x06offset\x12\x16\n" +
  563. "\x06length\x18\x03 \x01(\rR\x06length\x12(\n" +
  564. "\x0fvalidationToken\x18\x04 \x01(\tR\x0fvalidationToken\"?\n" +
  565. "\vCommandType\x12\f\n" +
  566. "\bEVERYONE\x10\x01\x12\n" +
  567. "\n" +
  568. "\x06SILENT\x10\x02\x12\x06\n" +
  569. "\x02AI\x10\x03\x12\x0e\n" +
  570. "\n" +
  571. "AI_IMAGINE\x10\x04\"\xba\x01\n" +
  572. "\aMention\x12?\n" +
  573. "\vmentionType\x18\x01 \x01(\x0e2\x1d.WACommon.Mention.MentionTypeR\vmentionType\x12\"\n" +
  574. "\fmentionedJID\x18\x02 \x01(\tR\fmentionedJID\x12\x16\n" +
  575. "\x06offset\x18\x03 \x01(\rR\x06offset\x12\x16\n" +
  576. "\x06length\x18\x04 \x01(\rR\x06length\"\x1a\n" +
  577. "\vMentionType\x12\v\n" +
  578. "\aPROFILE\x10\x00\"\xa3\x01\n" +
  579. "\vMessageText\x12\x12\n" +
  580. "\x04text\x18\x01 \x01(\tR\x04text\x12\"\n" +
  581. "\fmentionedJID\x18\x02 \x03(\tR\fmentionedJID\x12-\n" +
  582. "\bcommands\x18\x03 \x03(\v2\x11.WACommon.CommandR\bcommands\x12-\n" +
  583. "\bmentions\x18\x04 \x03(\v2\x11.WACommon.MentionR\bmentions\"A\n" +
  584. "\vSubProtocol\x12\x18\n" +
  585. "\apayload\x18\x01 \x01(\fR\apayload\x12\x18\n" +
  586. "\aversion\x18\x02 \x01(\x05R\aversion\"\xb4\x02\n" +
  587. "\fLimitSharing\x12&\n" +
  588. "\x0esharingLimited\x18\x01 \x01(\bR\x0esharingLimited\x128\n" +
  589. "\atrigger\x18\x02 \x01(\x0e2\x1e.WACommon.LimitSharing.TriggerR\atrigger\x12B\n" +
  590. "\x1climitSharingSettingTimestamp\x18\x03 \x01(\x03R\x1climitSharingSettingTimestamp\x12$\n" +
  591. "\rinitiatedByMe\x18\x04 \x01(\bR\rinitiatedByMe\"X\n" +
  592. "\aTrigger\x12\v\n" +
  593. "\aUNKNOWN\x10\x00\x12\x10\n" +
  594. "\fCHAT_SETTING\x10\x01\x12\x1b\n" +
  595. "\x17BIZ_SUPPORTS_FB_HOSTING\x10\x02\x12\x11\n" +
  596. "\rUNKNOWN_GROUP\x10\x03*F\n" +
  597. "\x13FutureProofBehavior\x12\x0f\n" +
  598. "\vPLACEHOLDER\x10\x00\x12\x12\n" +
  599. "\x0eNO_PLACEHOLDER\x10\x01\x12\n" +
  600. "\n" +
  601. "\x06IGNORE\x10\x02B/Z-git.bobomao.top/joey/whatsmeow/proto/waCommon"
  602. var (
  603. file_waCommon_WACommon_proto_rawDescOnce sync.Once
  604. file_waCommon_WACommon_proto_rawDescData []byte
  605. )
  606. func file_waCommon_WACommon_proto_rawDescGZIP() []byte {
  607. file_waCommon_WACommon_proto_rawDescOnce.Do(func() {
  608. file_waCommon_WACommon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waCommon_WACommon_proto_rawDesc), len(file_waCommon_WACommon_proto_rawDesc)))
  609. })
  610. return file_waCommon_WACommon_proto_rawDescData
  611. }
  612. var file_waCommon_WACommon_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
  613. var file_waCommon_WACommon_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  614. var file_waCommon_WACommon_proto_goTypes = []any{
  615. (FutureProofBehavior)(0), // 0: WACommon.FutureProofBehavior
  616. (Command_CommandType)(0), // 1: WACommon.Command.CommandType
  617. (Mention_MentionType)(0), // 2: WACommon.Mention.MentionType
  618. (LimitSharing_Trigger)(0), // 3: WACommon.LimitSharing.Trigger
  619. (*MessageKey)(nil), // 4: WACommon.MessageKey
  620. (*Command)(nil), // 5: WACommon.Command
  621. (*Mention)(nil), // 6: WACommon.Mention
  622. (*MessageText)(nil), // 7: WACommon.MessageText
  623. (*SubProtocol)(nil), // 8: WACommon.SubProtocol
  624. (*LimitSharing)(nil), // 9: WACommon.LimitSharing
  625. }
  626. var file_waCommon_WACommon_proto_depIdxs = []int32{
  627. 1, // 0: WACommon.Command.commandType:type_name -> WACommon.Command.CommandType
  628. 2, // 1: WACommon.Mention.mentionType:type_name -> WACommon.Mention.MentionType
  629. 5, // 2: WACommon.MessageText.commands:type_name -> WACommon.Command
  630. 6, // 3: WACommon.MessageText.mentions:type_name -> WACommon.Mention
  631. 3, // 4: WACommon.LimitSharing.trigger:type_name -> WACommon.LimitSharing.Trigger
  632. 5, // [5:5] is the sub-list for method output_type
  633. 5, // [5:5] is the sub-list for method input_type
  634. 5, // [5:5] is the sub-list for extension type_name
  635. 5, // [5:5] is the sub-list for extension extendee
  636. 0, // [0:5] is the sub-list for field type_name
  637. }
  638. func init() { file_waCommon_WACommon_proto_init() }
  639. func file_waCommon_WACommon_proto_init() {
  640. if File_waCommon_WACommon_proto != nil {
  641. return
  642. }
  643. type x struct{}
  644. out := protoimpl.TypeBuilder{
  645. File: protoimpl.DescBuilder{
  646. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  647. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waCommon_WACommon_proto_rawDesc), len(file_waCommon_WACommon_proto_rawDesc)),
  648. NumEnums: 4,
  649. NumMessages: 6,
  650. NumExtensions: 0,
  651. NumServices: 0,
  652. },
  653. GoTypes: file_waCommon_WACommon_proto_goTypes,
  654. DependencyIndexes: file_waCommon_WACommon_proto_depIdxs,
  655. EnumInfos: file_waCommon_WACommon_proto_enumTypes,
  656. MessageInfos: file_waCommon_WACommon_proto_msgTypes,
  657. }.Build()
  658. File_waCommon_WACommon_proto = out.File
  659. file_waCommon_WACommon_proto_goTypes = nil
  660. file_waCommon_WACommon_proto_depIdxs = nil
  661. }