WAServerSync.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  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: waServerSync/WAServerSync.proto
  6. package waServerSync
  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 SyncdMutation_SyncdOperation int32
  21. const (
  22. SyncdMutation_SET SyncdMutation_SyncdOperation = 0
  23. SyncdMutation_REMOVE SyncdMutation_SyncdOperation = 1
  24. )
  25. // Enum value maps for SyncdMutation_SyncdOperation.
  26. var (
  27. SyncdMutation_SyncdOperation_name = map[int32]string{
  28. 0: "SET",
  29. 1: "REMOVE",
  30. }
  31. SyncdMutation_SyncdOperation_value = map[string]int32{
  32. "SET": 0,
  33. "REMOVE": 1,
  34. }
  35. )
  36. func (x SyncdMutation_SyncdOperation) Enum() *SyncdMutation_SyncdOperation {
  37. p := new(SyncdMutation_SyncdOperation)
  38. *p = x
  39. return p
  40. }
  41. func (x SyncdMutation_SyncdOperation) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (SyncdMutation_SyncdOperation) Descriptor() protoreflect.EnumDescriptor {
  45. return file_waServerSync_WAServerSync_proto_enumTypes[0].Descriptor()
  46. }
  47. func (SyncdMutation_SyncdOperation) Type() protoreflect.EnumType {
  48. return &file_waServerSync_WAServerSync_proto_enumTypes[0]
  49. }
  50. func (x SyncdMutation_SyncdOperation) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Do not use.
  54. func (x *SyncdMutation_SyncdOperation) UnmarshalJSON(b []byte) error {
  55. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  56. if err != nil {
  57. return err
  58. }
  59. *x = SyncdMutation_SyncdOperation(num)
  60. return nil
  61. }
  62. // Deprecated: Use SyncdMutation_SyncdOperation.Descriptor instead.
  63. func (SyncdMutation_SyncdOperation) EnumDescriptor() ([]byte, []int) {
  64. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{0, 0}
  65. }
  66. type SyncdMutation struct {
  67. state protoimpl.MessageState `protogen:"open.v1"`
  68. Operation *SyncdMutation_SyncdOperation `protobuf:"varint,1,opt,name=operation,enum=WAServerSync.SyncdMutation_SyncdOperation" json:"operation,omitempty"`
  69. Record *SyncdRecord `protobuf:"bytes,2,opt,name=record" json:"record,omitempty"`
  70. unknownFields protoimpl.UnknownFields
  71. sizeCache protoimpl.SizeCache
  72. }
  73. func (x *SyncdMutation) Reset() {
  74. *x = SyncdMutation{}
  75. mi := &file_waServerSync_WAServerSync_proto_msgTypes[0]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. func (x *SyncdMutation) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*SyncdMutation) ProtoMessage() {}
  83. func (x *SyncdMutation) ProtoReflect() protoreflect.Message {
  84. mi := &file_waServerSync_WAServerSync_proto_msgTypes[0]
  85. if x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use SyncdMutation.ProtoReflect.Descriptor instead.
  95. func (*SyncdMutation) Descriptor() ([]byte, []int) {
  96. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{0}
  97. }
  98. func (x *SyncdMutation) GetOperation() SyncdMutation_SyncdOperation {
  99. if x != nil && x.Operation != nil {
  100. return *x.Operation
  101. }
  102. return SyncdMutation_SET
  103. }
  104. func (x *SyncdMutation) GetRecord() *SyncdRecord {
  105. if x != nil {
  106. return x.Record
  107. }
  108. return nil
  109. }
  110. type SyncdVersion struct {
  111. state protoimpl.MessageState `protogen:"open.v1"`
  112. Version *uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
  113. unknownFields protoimpl.UnknownFields
  114. sizeCache protoimpl.SizeCache
  115. }
  116. func (x *SyncdVersion) Reset() {
  117. *x = SyncdVersion{}
  118. mi := &file_waServerSync_WAServerSync_proto_msgTypes[1]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. func (x *SyncdVersion) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*SyncdVersion) ProtoMessage() {}
  126. func (x *SyncdVersion) ProtoReflect() protoreflect.Message {
  127. mi := &file_waServerSync_WAServerSync_proto_msgTypes[1]
  128. if x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use SyncdVersion.ProtoReflect.Descriptor instead.
  138. func (*SyncdVersion) Descriptor() ([]byte, []int) {
  139. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{1}
  140. }
  141. func (x *SyncdVersion) GetVersion() uint64 {
  142. if x != nil && x.Version != nil {
  143. return *x.Version
  144. }
  145. return 0
  146. }
  147. type ExitCode struct {
  148. state protoimpl.MessageState `protogen:"open.v1"`
  149. Code *uint64 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
  150. Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
  151. unknownFields protoimpl.UnknownFields
  152. sizeCache protoimpl.SizeCache
  153. }
  154. func (x *ExitCode) Reset() {
  155. *x = ExitCode{}
  156. mi := &file_waServerSync_WAServerSync_proto_msgTypes[2]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. func (x *ExitCode) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*ExitCode) ProtoMessage() {}
  164. func (x *ExitCode) ProtoReflect() protoreflect.Message {
  165. mi := &file_waServerSync_WAServerSync_proto_msgTypes[2]
  166. if x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use ExitCode.ProtoReflect.Descriptor instead.
  176. func (*ExitCode) Descriptor() ([]byte, []int) {
  177. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{2}
  178. }
  179. func (x *ExitCode) GetCode() uint64 {
  180. if x != nil && x.Code != nil {
  181. return *x.Code
  182. }
  183. return 0
  184. }
  185. func (x *ExitCode) GetText() string {
  186. if x != nil && x.Text != nil {
  187. return *x.Text
  188. }
  189. return ""
  190. }
  191. type SyncdIndex struct {
  192. state protoimpl.MessageState `protogen:"open.v1"`
  193. Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"`
  194. unknownFields protoimpl.UnknownFields
  195. sizeCache protoimpl.SizeCache
  196. }
  197. func (x *SyncdIndex) Reset() {
  198. *x = SyncdIndex{}
  199. mi := &file_waServerSync_WAServerSync_proto_msgTypes[3]
  200. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  201. ms.StoreMessageInfo(mi)
  202. }
  203. func (x *SyncdIndex) String() string {
  204. return protoimpl.X.MessageStringOf(x)
  205. }
  206. func (*SyncdIndex) ProtoMessage() {}
  207. func (x *SyncdIndex) ProtoReflect() protoreflect.Message {
  208. mi := &file_waServerSync_WAServerSync_proto_msgTypes[3]
  209. if x != nil {
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. if ms.LoadMessageInfo() == nil {
  212. ms.StoreMessageInfo(mi)
  213. }
  214. return ms
  215. }
  216. return mi.MessageOf(x)
  217. }
  218. // Deprecated: Use SyncdIndex.ProtoReflect.Descriptor instead.
  219. func (*SyncdIndex) Descriptor() ([]byte, []int) {
  220. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{3}
  221. }
  222. func (x *SyncdIndex) GetBlob() []byte {
  223. if x != nil {
  224. return x.Blob
  225. }
  226. return nil
  227. }
  228. type SyncdValue struct {
  229. state protoimpl.MessageState `protogen:"open.v1"`
  230. Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"`
  231. unknownFields protoimpl.UnknownFields
  232. sizeCache protoimpl.SizeCache
  233. }
  234. func (x *SyncdValue) Reset() {
  235. *x = SyncdValue{}
  236. mi := &file_waServerSync_WAServerSync_proto_msgTypes[4]
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. ms.StoreMessageInfo(mi)
  239. }
  240. func (x *SyncdValue) String() string {
  241. return protoimpl.X.MessageStringOf(x)
  242. }
  243. func (*SyncdValue) ProtoMessage() {}
  244. func (x *SyncdValue) ProtoReflect() protoreflect.Message {
  245. mi := &file_waServerSync_WAServerSync_proto_msgTypes[4]
  246. if x != nil {
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. if ms.LoadMessageInfo() == nil {
  249. ms.StoreMessageInfo(mi)
  250. }
  251. return ms
  252. }
  253. return mi.MessageOf(x)
  254. }
  255. // Deprecated: Use SyncdValue.ProtoReflect.Descriptor instead.
  256. func (*SyncdValue) Descriptor() ([]byte, []int) {
  257. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{4}
  258. }
  259. func (x *SyncdValue) GetBlob() []byte {
  260. if x != nil {
  261. return x.Blob
  262. }
  263. return nil
  264. }
  265. type KeyId struct {
  266. state protoimpl.MessageState `protogen:"open.v1"`
  267. ID []byte `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
  268. unknownFields protoimpl.UnknownFields
  269. sizeCache protoimpl.SizeCache
  270. }
  271. func (x *KeyId) Reset() {
  272. *x = KeyId{}
  273. mi := &file_waServerSync_WAServerSync_proto_msgTypes[5]
  274. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  275. ms.StoreMessageInfo(mi)
  276. }
  277. func (x *KeyId) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*KeyId) ProtoMessage() {}
  281. func (x *KeyId) ProtoReflect() protoreflect.Message {
  282. mi := &file_waServerSync_WAServerSync_proto_msgTypes[5]
  283. if x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use KeyId.ProtoReflect.Descriptor instead.
  293. func (*KeyId) Descriptor() ([]byte, []int) {
  294. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{5}
  295. }
  296. func (x *KeyId) GetID() []byte {
  297. if x != nil {
  298. return x.ID
  299. }
  300. return nil
  301. }
  302. type SyncdRecord struct {
  303. state protoimpl.MessageState `protogen:"open.v1"`
  304. Index *SyncdIndex `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"`
  305. Value *SyncdValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  306. KeyID *KeyId `protobuf:"bytes,3,opt,name=keyID" json:"keyID,omitempty"`
  307. unknownFields protoimpl.UnknownFields
  308. sizeCache protoimpl.SizeCache
  309. }
  310. func (x *SyncdRecord) Reset() {
  311. *x = SyncdRecord{}
  312. mi := &file_waServerSync_WAServerSync_proto_msgTypes[6]
  313. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  314. ms.StoreMessageInfo(mi)
  315. }
  316. func (x *SyncdRecord) String() string {
  317. return protoimpl.X.MessageStringOf(x)
  318. }
  319. func (*SyncdRecord) ProtoMessage() {}
  320. func (x *SyncdRecord) ProtoReflect() protoreflect.Message {
  321. mi := &file_waServerSync_WAServerSync_proto_msgTypes[6]
  322. if x != nil {
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. if ms.LoadMessageInfo() == nil {
  325. ms.StoreMessageInfo(mi)
  326. }
  327. return ms
  328. }
  329. return mi.MessageOf(x)
  330. }
  331. // Deprecated: Use SyncdRecord.ProtoReflect.Descriptor instead.
  332. func (*SyncdRecord) Descriptor() ([]byte, []int) {
  333. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{6}
  334. }
  335. func (x *SyncdRecord) GetIndex() *SyncdIndex {
  336. if x != nil {
  337. return x.Index
  338. }
  339. return nil
  340. }
  341. func (x *SyncdRecord) GetValue() *SyncdValue {
  342. if x != nil {
  343. return x.Value
  344. }
  345. return nil
  346. }
  347. func (x *SyncdRecord) GetKeyID() *KeyId {
  348. if x != nil {
  349. return x.KeyID
  350. }
  351. return nil
  352. }
  353. type ExternalBlobReference struct {
  354. state protoimpl.MessageState `protogen:"open.v1"`
  355. MediaKey []byte `protobuf:"bytes,1,opt,name=mediaKey" json:"mediaKey,omitempty"`
  356. DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"`
  357. Handle *string `protobuf:"bytes,3,opt,name=handle" json:"handle,omitempty"`
  358. FileSizeBytes *uint64 `protobuf:"varint,4,opt,name=fileSizeBytes" json:"fileSizeBytes,omitempty"`
  359. FileSHA256 []byte `protobuf:"bytes,5,opt,name=fileSHA256" json:"fileSHA256,omitempty"`
  360. FileEncSHA256 []byte `protobuf:"bytes,6,opt,name=fileEncSHA256" json:"fileEncSHA256,omitempty"`
  361. unknownFields protoimpl.UnknownFields
  362. sizeCache protoimpl.SizeCache
  363. }
  364. func (x *ExternalBlobReference) Reset() {
  365. *x = ExternalBlobReference{}
  366. mi := &file_waServerSync_WAServerSync_proto_msgTypes[7]
  367. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  368. ms.StoreMessageInfo(mi)
  369. }
  370. func (x *ExternalBlobReference) String() string {
  371. return protoimpl.X.MessageStringOf(x)
  372. }
  373. func (*ExternalBlobReference) ProtoMessage() {}
  374. func (x *ExternalBlobReference) ProtoReflect() protoreflect.Message {
  375. mi := &file_waServerSync_WAServerSync_proto_msgTypes[7]
  376. if x != nil {
  377. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  378. if ms.LoadMessageInfo() == nil {
  379. ms.StoreMessageInfo(mi)
  380. }
  381. return ms
  382. }
  383. return mi.MessageOf(x)
  384. }
  385. // Deprecated: Use ExternalBlobReference.ProtoReflect.Descriptor instead.
  386. func (*ExternalBlobReference) Descriptor() ([]byte, []int) {
  387. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{7}
  388. }
  389. func (x *ExternalBlobReference) GetMediaKey() []byte {
  390. if x != nil {
  391. return x.MediaKey
  392. }
  393. return nil
  394. }
  395. func (x *ExternalBlobReference) GetDirectPath() string {
  396. if x != nil && x.DirectPath != nil {
  397. return *x.DirectPath
  398. }
  399. return ""
  400. }
  401. func (x *ExternalBlobReference) GetHandle() string {
  402. if x != nil && x.Handle != nil {
  403. return *x.Handle
  404. }
  405. return ""
  406. }
  407. func (x *ExternalBlobReference) GetFileSizeBytes() uint64 {
  408. if x != nil && x.FileSizeBytes != nil {
  409. return *x.FileSizeBytes
  410. }
  411. return 0
  412. }
  413. func (x *ExternalBlobReference) GetFileSHA256() []byte {
  414. if x != nil {
  415. return x.FileSHA256
  416. }
  417. return nil
  418. }
  419. func (x *ExternalBlobReference) GetFileEncSHA256() []byte {
  420. if x != nil {
  421. return x.FileEncSHA256
  422. }
  423. return nil
  424. }
  425. type SyncdSnapshot struct {
  426. state protoimpl.MessageState `protogen:"open.v1"`
  427. Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
  428. Records []*SyncdRecord `protobuf:"bytes,2,rep,name=records" json:"records,omitempty"`
  429. Mac []byte `protobuf:"bytes,3,opt,name=mac" json:"mac,omitempty"`
  430. KeyID *KeyId `protobuf:"bytes,4,opt,name=keyID" json:"keyID,omitempty"`
  431. unknownFields protoimpl.UnknownFields
  432. sizeCache protoimpl.SizeCache
  433. }
  434. func (x *SyncdSnapshot) Reset() {
  435. *x = SyncdSnapshot{}
  436. mi := &file_waServerSync_WAServerSync_proto_msgTypes[8]
  437. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  438. ms.StoreMessageInfo(mi)
  439. }
  440. func (x *SyncdSnapshot) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*SyncdSnapshot) ProtoMessage() {}
  444. func (x *SyncdSnapshot) ProtoReflect() protoreflect.Message {
  445. mi := &file_waServerSync_WAServerSync_proto_msgTypes[8]
  446. if x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use SyncdSnapshot.ProtoReflect.Descriptor instead.
  456. func (*SyncdSnapshot) Descriptor() ([]byte, []int) {
  457. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{8}
  458. }
  459. func (x *SyncdSnapshot) GetVersion() *SyncdVersion {
  460. if x != nil {
  461. return x.Version
  462. }
  463. return nil
  464. }
  465. func (x *SyncdSnapshot) GetRecords() []*SyncdRecord {
  466. if x != nil {
  467. return x.Records
  468. }
  469. return nil
  470. }
  471. func (x *SyncdSnapshot) GetMac() []byte {
  472. if x != nil {
  473. return x.Mac
  474. }
  475. return nil
  476. }
  477. func (x *SyncdSnapshot) GetKeyID() *KeyId {
  478. if x != nil {
  479. return x.KeyID
  480. }
  481. return nil
  482. }
  483. type SyncdMutations struct {
  484. state protoimpl.MessageState `protogen:"open.v1"`
  485. Mutations []*SyncdMutation `protobuf:"bytes,1,rep,name=mutations" json:"mutations,omitempty"`
  486. unknownFields protoimpl.UnknownFields
  487. sizeCache protoimpl.SizeCache
  488. }
  489. func (x *SyncdMutations) Reset() {
  490. *x = SyncdMutations{}
  491. mi := &file_waServerSync_WAServerSync_proto_msgTypes[9]
  492. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  493. ms.StoreMessageInfo(mi)
  494. }
  495. func (x *SyncdMutations) String() string {
  496. return protoimpl.X.MessageStringOf(x)
  497. }
  498. func (*SyncdMutations) ProtoMessage() {}
  499. func (x *SyncdMutations) ProtoReflect() protoreflect.Message {
  500. mi := &file_waServerSync_WAServerSync_proto_msgTypes[9]
  501. if x != nil {
  502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  503. if ms.LoadMessageInfo() == nil {
  504. ms.StoreMessageInfo(mi)
  505. }
  506. return ms
  507. }
  508. return mi.MessageOf(x)
  509. }
  510. // Deprecated: Use SyncdMutations.ProtoReflect.Descriptor instead.
  511. func (*SyncdMutations) Descriptor() ([]byte, []int) {
  512. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{9}
  513. }
  514. func (x *SyncdMutations) GetMutations() []*SyncdMutation {
  515. if x != nil {
  516. return x.Mutations
  517. }
  518. return nil
  519. }
  520. type SyncdPatch struct {
  521. state protoimpl.MessageState `protogen:"open.v1"`
  522. Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
  523. Mutations []*SyncdMutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"`
  524. ExternalMutations *ExternalBlobReference `protobuf:"bytes,3,opt,name=externalMutations" json:"externalMutations,omitempty"`
  525. SnapshotMAC []byte `protobuf:"bytes,4,opt,name=snapshotMAC" json:"snapshotMAC,omitempty"`
  526. PatchMAC []byte `protobuf:"bytes,5,opt,name=patchMAC" json:"patchMAC,omitempty"`
  527. KeyID *KeyId `protobuf:"bytes,6,opt,name=keyID" json:"keyID,omitempty"`
  528. ExitCode *ExitCode `protobuf:"bytes,7,opt,name=exitCode" json:"exitCode,omitempty"`
  529. DeviceIndex *uint32 `protobuf:"varint,8,opt,name=deviceIndex" json:"deviceIndex,omitempty"`
  530. ClientDebugData []byte `protobuf:"bytes,9,opt,name=clientDebugData" json:"clientDebugData,omitempty"`
  531. unknownFields protoimpl.UnknownFields
  532. sizeCache protoimpl.SizeCache
  533. }
  534. func (x *SyncdPatch) Reset() {
  535. *x = SyncdPatch{}
  536. mi := &file_waServerSync_WAServerSync_proto_msgTypes[10]
  537. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  538. ms.StoreMessageInfo(mi)
  539. }
  540. func (x *SyncdPatch) String() string {
  541. return protoimpl.X.MessageStringOf(x)
  542. }
  543. func (*SyncdPatch) ProtoMessage() {}
  544. func (x *SyncdPatch) ProtoReflect() protoreflect.Message {
  545. mi := &file_waServerSync_WAServerSync_proto_msgTypes[10]
  546. if x != nil {
  547. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  548. if ms.LoadMessageInfo() == nil {
  549. ms.StoreMessageInfo(mi)
  550. }
  551. return ms
  552. }
  553. return mi.MessageOf(x)
  554. }
  555. // Deprecated: Use SyncdPatch.ProtoReflect.Descriptor instead.
  556. func (*SyncdPatch) Descriptor() ([]byte, []int) {
  557. return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{10}
  558. }
  559. func (x *SyncdPatch) GetVersion() *SyncdVersion {
  560. if x != nil {
  561. return x.Version
  562. }
  563. return nil
  564. }
  565. func (x *SyncdPatch) GetMutations() []*SyncdMutation {
  566. if x != nil {
  567. return x.Mutations
  568. }
  569. return nil
  570. }
  571. func (x *SyncdPatch) GetExternalMutations() *ExternalBlobReference {
  572. if x != nil {
  573. return x.ExternalMutations
  574. }
  575. return nil
  576. }
  577. func (x *SyncdPatch) GetSnapshotMAC() []byte {
  578. if x != nil {
  579. return x.SnapshotMAC
  580. }
  581. return nil
  582. }
  583. func (x *SyncdPatch) GetPatchMAC() []byte {
  584. if x != nil {
  585. return x.PatchMAC
  586. }
  587. return nil
  588. }
  589. func (x *SyncdPatch) GetKeyID() *KeyId {
  590. if x != nil {
  591. return x.KeyID
  592. }
  593. return nil
  594. }
  595. func (x *SyncdPatch) GetExitCode() *ExitCode {
  596. if x != nil {
  597. return x.ExitCode
  598. }
  599. return nil
  600. }
  601. func (x *SyncdPatch) GetDeviceIndex() uint32 {
  602. if x != nil && x.DeviceIndex != nil {
  603. return *x.DeviceIndex
  604. }
  605. return 0
  606. }
  607. func (x *SyncdPatch) GetClientDebugData() []byte {
  608. if x != nil {
  609. return x.ClientDebugData
  610. }
  611. return nil
  612. }
  613. var File_waServerSync_WAServerSync_proto protoreflect.FileDescriptor
  614. const file_waServerSync_WAServerSync_proto_rawDesc = "" +
  615. "\n" +
  616. "\x1fwaServerSync/WAServerSync.proto\x12\fWAServerSync\"\xb3\x01\n" +
  617. "\rSyncdMutation\x12H\n" +
  618. "\toperation\x18\x01 \x01(\x0e2*.WAServerSync.SyncdMutation.SyncdOperationR\toperation\x121\n" +
  619. "\x06record\x18\x02 \x01(\v2\x19.WAServerSync.SyncdRecordR\x06record\"%\n" +
  620. "\x0eSyncdOperation\x12\a\n" +
  621. "\x03SET\x10\x00\x12\n" +
  622. "\n" +
  623. "\x06REMOVE\x10\x01\"(\n" +
  624. "\fSyncdVersion\x12\x18\n" +
  625. "\aversion\x18\x01 \x01(\x04R\aversion\"2\n" +
  626. "\bExitCode\x12\x12\n" +
  627. "\x04code\x18\x01 \x01(\x04R\x04code\x12\x12\n" +
  628. "\x04text\x18\x02 \x01(\tR\x04text\" \n" +
  629. "\n" +
  630. "SyncdIndex\x12\x12\n" +
  631. "\x04blob\x18\x01 \x01(\fR\x04blob\" \n" +
  632. "\n" +
  633. "SyncdValue\x12\x12\n" +
  634. "\x04blob\x18\x01 \x01(\fR\x04blob\"\x17\n" +
  635. "\x05KeyId\x12\x0e\n" +
  636. "\x02ID\x18\x01 \x01(\fR\x02ID\"\x98\x01\n" +
  637. "\vSyncdRecord\x12.\n" +
  638. "\x05index\x18\x01 \x01(\v2\x18.WAServerSync.SyncdIndexR\x05index\x12.\n" +
  639. "\x05value\x18\x02 \x01(\v2\x18.WAServerSync.SyncdValueR\x05value\x12)\n" +
  640. "\x05keyID\x18\x03 \x01(\v2\x13.WAServerSync.KeyIdR\x05keyID\"\xd7\x01\n" +
  641. "\x15ExternalBlobReference\x12\x1a\n" +
  642. "\bmediaKey\x18\x01 \x01(\fR\bmediaKey\x12\x1e\n" +
  643. "\n" +
  644. "directPath\x18\x02 \x01(\tR\n" +
  645. "directPath\x12\x16\n" +
  646. "\x06handle\x18\x03 \x01(\tR\x06handle\x12$\n" +
  647. "\rfileSizeBytes\x18\x04 \x01(\x04R\rfileSizeBytes\x12\x1e\n" +
  648. "\n" +
  649. "fileSHA256\x18\x05 \x01(\fR\n" +
  650. "fileSHA256\x12$\n" +
  651. "\rfileEncSHA256\x18\x06 \x01(\fR\rfileEncSHA256\"\xb7\x01\n" +
  652. "\rSyncdSnapshot\x124\n" +
  653. "\aversion\x18\x01 \x01(\v2\x1a.WAServerSync.SyncdVersionR\aversion\x123\n" +
  654. "\arecords\x18\x02 \x03(\v2\x19.WAServerSync.SyncdRecordR\arecords\x12\x10\n" +
  655. "\x03mac\x18\x03 \x01(\fR\x03mac\x12)\n" +
  656. "\x05keyID\x18\x04 \x01(\v2\x13.WAServerSync.KeyIdR\x05keyID\"K\n" +
  657. "\x0eSyncdMutations\x129\n" +
  658. "\tmutations\x18\x01 \x03(\v2\x1b.WAServerSync.SyncdMutationR\tmutations\"\xb9\x03\n" +
  659. "\n" +
  660. "SyncdPatch\x124\n" +
  661. "\aversion\x18\x01 \x01(\v2\x1a.WAServerSync.SyncdVersionR\aversion\x129\n" +
  662. "\tmutations\x18\x02 \x03(\v2\x1b.WAServerSync.SyncdMutationR\tmutations\x12Q\n" +
  663. "\x11externalMutations\x18\x03 \x01(\v2#.WAServerSync.ExternalBlobReferenceR\x11externalMutations\x12 \n" +
  664. "\vsnapshotMAC\x18\x04 \x01(\fR\vsnapshotMAC\x12\x1a\n" +
  665. "\bpatchMAC\x18\x05 \x01(\fR\bpatchMAC\x12)\n" +
  666. "\x05keyID\x18\x06 \x01(\v2\x13.WAServerSync.KeyIdR\x05keyID\x122\n" +
  667. "\bexitCode\x18\a \x01(\v2\x16.WAServerSync.ExitCodeR\bexitCode\x12 \n" +
  668. "\vdeviceIndex\x18\b \x01(\rR\vdeviceIndex\x12(\n" +
  669. "\x0fclientDebugData\x18\t \x01(\fR\x0fclientDebugDataB3Z1git.bobomao.top/joey/whatsmeow/proto/waServerSync"
  670. var (
  671. file_waServerSync_WAServerSync_proto_rawDescOnce sync.Once
  672. file_waServerSync_WAServerSync_proto_rawDescData []byte
  673. )
  674. func file_waServerSync_WAServerSync_proto_rawDescGZIP() []byte {
  675. file_waServerSync_WAServerSync_proto_rawDescOnce.Do(func() {
  676. file_waServerSync_WAServerSync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waServerSync_WAServerSync_proto_rawDesc), len(file_waServerSync_WAServerSync_proto_rawDesc)))
  677. })
  678. return file_waServerSync_WAServerSync_proto_rawDescData
  679. }
  680. var file_waServerSync_WAServerSync_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  681. var file_waServerSync_WAServerSync_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  682. var file_waServerSync_WAServerSync_proto_goTypes = []any{
  683. (SyncdMutation_SyncdOperation)(0), // 0: WAServerSync.SyncdMutation.SyncdOperation
  684. (*SyncdMutation)(nil), // 1: WAServerSync.SyncdMutation
  685. (*SyncdVersion)(nil), // 2: WAServerSync.SyncdVersion
  686. (*ExitCode)(nil), // 3: WAServerSync.ExitCode
  687. (*SyncdIndex)(nil), // 4: WAServerSync.SyncdIndex
  688. (*SyncdValue)(nil), // 5: WAServerSync.SyncdValue
  689. (*KeyId)(nil), // 6: WAServerSync.KeyId
  690. (*SyncdRecord)(nil), // 7: WAServerSync.SyncdRecord
  691. (*ExternalBlobReference)(nil), // 8: WAServerSync.ExternalBlobReference
  692. (*SyncdSnapshot)(nil), // 9: WAServerSync.SyncdSnapshot
  693. (*SyncdMutations)(nil), // 10: WAServerSync.SyncdMutations
  694. (*SyncdPatch)(nil), // 11: WAServerSync.SyncdPatch
  695. }
  696. var file_waServerSync_WAServerSync_proto_depIdxs = []int32{
  697. 0, // 0: WAServerSync.SyncdMutation.operation:type_name -> WAServerSync.SyncdMutation.SyncdOperation
  698. 7, // 1: WAServerSync.SyncdMutation.record:type_name -> WAServerSync.SyncdRecord
  699. 4, // 2: WAServerSync.SyncdRecord.index:type_name -> WAServerSync.SyncdIndex
  700. 5, // 3: WAServerSync.SyncdRecord.value:type_name -> WAServerSync.SyncdValue
  701. 6, // 4: WAServerSync.SyncdRecord.keyID:type_name -> WAServerSync.KeyId
  702. 2, // 5: WAServerSync.SyncdSnapshot.version:type_name -> WAServerSync.SyncdVersion
  703. 7, // 6: WAServerSync.SyncdSnapshot.records:type_name -> WAServerSync.SyncdRecord
  704. 6, // 7: WAServerSync.SyncdSnapshot.keyID:type_name -> WAServerSync.KeyId
  705. 1, // 8: WAServerSync.SyncdMutations.mutations:type_name -> WAServerSync.SyncdMutation
  706. 2, // 9: WAServerSync.SyncdPatch.version:type_name -> WAServerSync.SyncdVersion
  707. 1, // 10: WAServerSync.SyncdPatch.mutations:type_name -> WAServerSync.SyncdMutation
  708. 8, // 11: WAServerSync.SyncdPatch.externalMutations:type_name -> WAServerSync.ExternalBlobReference
  709. 6, // 12: WAServerSync.SyncdPatch.keyID:type_name -> WAServerSync.KeyId
  710. 3, // 13: WAServerSync.SyncdPatch.exitCode:type_name -> WAServerSync.ExitCode
  711. 14, // [14:14] is the sub-list for method output_type
  712. 14, // [14:14] is the sub-list for method input_type
  713. 14, // [14:14] is the sub-list for extension type_name
  714. 14, // [14:14] is the sub-list for extension extendee
  715. 0, // [0:14] is the sub-list for field type_name
  716. }
  717. func init() { file_waServerSync_WAServerSync_proto_init() }
  718. func file_waServerSync_WAServerSync_proto_init() {
  719. if File_waServerSync_WAServerSync_proto != nil {
  720. return
  721. }
  722. type x struct{}
  723. out := protoimpl.TypeBuilder{
  724. File: protoimpl.DescBuilder{
  725. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  726. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waServerSync_WAServerSync_proto_rawDesc), len(file_waServerSync_WAServerSync_proto_rawDesc)),
  727. NumEnums: 1,
  728. NumMessages: 11,
  729. NumExtensions: 0,
  730. NumServices: 0,
  731. },
  732. GoTypes: file_waServerSync_WAServerSync_proto_goTypes,
  733. DependencyIndexes: file_waServerSync_WAServerSync_proto_depIdxs,
  734. EnumInfos: file_waServerSync_WAServerSync_proto_enumTypes,
  735. MessageInfos: file_waServerSync_WAServerSync_proto_msgTypes,
  736. }.Build()
  737. File_waServerSync_WAServerSync_proto = out.File
  738. file_waServerSync_WAServerSync_proto_goTypes = nil
  739. file_waServerSync_WAServerSync_proto_depIdxs = nil
  740. }