badgerpb4.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. //
  2. // SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
  3. // SPDX-License-Identifier: Apache-2.0
  4. // Use protos/gen.sh to generate .pb.go files.
  5. // Code generated by protoc-gen-go. DO NOT EDIT.
  6. // versions:
  7. // protoc-gen-go v1.31.0
  8. // protoc v3.21.12
  9. // source: badgerpb4.proto
  10. package pb
  11. import (
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type EncryptionAlgo int32
  24. const (
  25. EncryptionAlgo_aes EncryptionAlgo = 0
  26. )
  27. // Enum value maps for EncryptionAlgo.
  28. var (
  29. EncryptionAlgo_name = map[int32]string{
  30. 0: "aes",
  31. }
  32. EncryptionAlgo_value = map[string]int32{
  33. "aes": 0,
  34. }
  35. )
  36. func (x EncryptionAlgo) Enum() *EncryptionAlgo {
  37. p := new(EncryptionAlgo)
  38. *p = x
  39. return p
  40. }
  41. func (x EncryptionAlgo) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (EncryptionAlgo) Descriptor() protoreflect.EnumDescriptor {
  45. return file_badgerpb4_proto_enumTypes[0].Descriptor()
  46. }
  47. func (EncryptionAlgo) Type() protoreflect.EnumType {
  48. return &file_badgerpb4_proto_enumTypes[0]
  49. }
  50. func (x EncryptionAlgo) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use EncryptionAlgo.Descriptor instead.
  54. func (EncryptionAlgo) EnumDescriptor() ([]byte, []int) {
  55. return file_badgerpb4_proto_rawDescGZIP(), []int{0}
  56. }
  57. type ManifestChange_Operation int32
  58. const (
  59. ManifestChange_CREATE ManifestChange_Operation = 0
  60. ManifestChange_DELETE ManifestChange_Operation = 1
  61. )
  62. // Enum value maps for ManifestChange_Operation.
  63. var (
  64. ManifestChange_Operation_name = map[int32]string{
  65. 0: "CREATE",
  66. 1: "DELETE",
  67. }
  68. ManifestChange_Operation_value = map[string]int32{
  69. "CREATE": 0,
  70. "DELETE": 1,
  71. }
  72. )
  73. func (x ManifestChange_Operation) Enum() *ManifestChange_Operation {
  74. p := new(ManifestChange_Operation)
  75. *p = x
  76. return p
  77. }
  78. func (x ManifestChange_Operation) String() string {
  79. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  80. }
  81. func (ManifestChange_Operation) Descriptor() protoreflect.EnumDescriptor {
  82. return file_badgerpb4_proto_enumTypes[1].Descriptor()
  83. }
  84. func (ManifestChange_Operation) Type() protoreflect.EnumType {
  85. return &file_badgerpb4_proto_enumTypes[1]
  86. }
  87. func (x ManifestChange_Operation) Number() protoreflect.EnumNumber {
  88. return protoreflect.EnumNumber(x)
  89. }
  90. // Deprecated: Use ManifestChange_Operation.Descriptor instead.
  91. func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int) {
  92. return file_badgerpb4_proto_rawDescGZIP(), []int{3, 0}
  93. }
  94. type Checksum_Algorithm int32
  95. const (
  96. Checksum_CRC32C Checksum_Algorithm = 0
  97. Checksum_XXHash64 Checksum_Algorithm = 1
  98. )
  99. // Enum value maps for Checksum_Algorithm.
  100. var (
  101. Checksum_Algorithm_name = map[int32]string{
  102. 0: "CRC32C",
  103. 1: "XXHash64",
  104. }
  105. Checksum_Algorithm_value = map[string]int32{
  106. "CRC32C": 0,
  107. "XXHash64": 1,
  108. }
  109. )
  110. func (x Checksum_Algorithm) Enum() *Checksum_Algorithm {
  111. p := new(Checksum_Algorithm)
  112. *p = x
  113. return p
  114. }
  115. func (x Checksum_Algorithm) String() string {
  116. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  117. }
  118. func (Checksum_Algorithm) Descriptor() protoreflect.EnumDescriptor {
  119. return file_badgerpb4_proto_enumTypes[2].Descriptor()
  120. }
  121. func (Checksum_Algorithm) Type() protoreflect.EnumType {
  122. return &file_badgerpb4_proto_enumTypes[2]
  123. }
  124. func (x Checksum_Algorithm) Number() protoreflect.EnumNumber {
  125. return protoreflect.EnumNumber(x)
  126. }
  127. // Deprecated: Use Checksum_Algorithm.Descriptor instead.
  128. func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int) {
  129. return file_badgerpb4_proto_rawDescGZIP(), []int{4, 0}
  130. }
  131. type KV struct {
  132. state protoimpl.MessageState
  133. sizeCache protoimpl.SizeCache
  134. unknownFields protoimpl.UnknownFields
  135. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  136. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  137. UserMeta []byte `protobuf:"bytes,3,opt,name=user_meta,json=userMeta,proto3" json:"user_meta,omitempty"`
  138. Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
  139. ExpiresAt uint64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
  140. Meta []byte `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"`
  141. // Stream id is used to identify which stream the KV came from.
  142. StreamId uint32 `protobuf:"varint,10,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
  143. // Stream done is used to indicate end of stream.
  144. StreamDone bool `protobuf:"varint,11,opt,name=stream_done,json=streamDone,proto3" json:"stream_done,omitempty"`
  145. }
  146. func (x *KV) Reset() {
  147. *x = KV{}
  148. if protoimpl.UnsafeEnabled {
  149. mi := &file_badgerpb4_proto_msgTypes[0]
  150. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  151. ms.StoreMessageInfo(mi)
  152. }
  153. }
  154. func (x *KV) String() string {
  155. return protoimpl.X.MessageStringOf(x)
  156. }
  157. func (*KV) ProtoMessage() {}
  158. func (x *KV) ProtoReflect() protoreflect.Message {
  159. mi := &file_badgerpb4_proto_msgTypes[0]
  160. if protoimpl.UnsafeEnabled && x != nil {
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. if ms.LoadMessageInfo() == nil {
  163. ms.StoreMessageInfo(mi)
  164. }
  165. return ms
  166. }
  167. return mi.MessageOf(x)
  168. }
  169. // Deprecated: Use KV.ProtoReflect.Descriptor instead.
  170. func (*KV) Descriptor() ([]byte, []int) {
  171. return file_badgerpb4_proto_rawDescGZIP(), []int{0}
  172. }
  173. func (x *KV) GetKey() []byte {
  174. if x != nil {
  175. return x.Key
  176. }
  177. return nil
  178. }
  179. func (x *KV) GetValue() []byte {
  180. if x != nil {
  181. return x.Value
  182. }
  183. return nil
  184. }
  185. func (x *KV) GetUserMeta() []byte {
  186. if x != nil {
  187. return x.UserMeta
  188. }
  189. return nil
  190. }
  191. func (x *KV) GetVersion() uint64 {
  192. if x != nil {
  193. return x.Version
  194. }
  195. return 0
  196. }
  197. func (x *KV) GetExpiresAt() uint64 {
  198. if x != nil {
  199. return x.ExpiresAt
  200. }
  201. return 0
  202. }
  203. func (x *KV) GetMeta() []byte {
  204. if x != nil {
  205. return x.Meta
  206. }
  207. return nil
  208. }
  209. func (x *KV) GetStreamId() uint32 {
  210. if x != nil {
  211. return x.StreamId
  212. }
  213. return 0
  214. }
  215. func (x *KV) GetStreamDone() bool {
  216. if x != nil {
  217. return x.StreamDone
  218. }
  219. return false
  220. }
  221. type KVList struct {
  222. state protoimpl.MessageState
  223. sizeCache protoimpl.SizeCache
  224. unknownFields protoimpl.UnknownFields
  225. Kv []*KV `protobuf:"bytes,1,rep,name=kv,proto3" json:"kv,omitempty"`
  226. // alloc_ref used internally for memory management.
  227. AllocRef uint64 `protobuf:"varint,10,opt,name=alloc_ref,json=allocRef,proto3" json:"alloc_ref,omitempty"`
  228. }
  229. func (x *KVList) Reset() {
  230. *x = KVList{}
  231. if protoimpl.UnsafeEnabled {
  232. mi := &file_badgerpb4_proto_msgTypes[1]
  233. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  234. ms.StoreMessageInfo(mi)
  235. }
  236. }
  237. func (x *KVList) String() string {
  238. return protoimpl.X.MessageStringOf(x)
  239. }
  240. func (*KVList) ProtoMessage() {}
  241. func (x *KVList) ProtoReflect() protoreflect.Message {
  242. mi := &file_badgerpb4_proto_msgTypes[1]
  243. if protoimpl.UnsafeEnabled && x != nil {
  244. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  245. if ms.LoadMessageInfo() == nil {
  246. ms.StoreMessageInfo(mi)
  247. }
  248. return ms
  249. }
  250. return mi.MessageOf(x)
  251. }
  252. // Deprecated: Use KVList.ProtoReflect.Descriptor instead.
  253. func (*KVList) Descriptor() ([]byte, []int) {
  254. return file_badgerpb4_proto_rawDescGZIP(), []int{1}
  255. }
  256. func (x *KVList) GetKv() []*KV {
  257. if x != nil {
  258. return x.Kv
  259. }
  260. return nil
  261. }
  262. func (x *KVList) GetAllocRef() uint64 {
  263. if x != nil {
  264. return x.AllocRef
  265. }
  266. return 0
  267. }
  268. type ManifestChangeSet struct {
  269. state protoimpl.MessageState
  270. sizeCache protoimpl.SizeCache
  271. unknownFields protoimpl.UnknownFields
  272. // A set of changes that are applied atomically.
  273. Changes []*ManifestChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
  274. }
  275. func (x *ManifestChangeSet) Reset() {
  276. *x = ManifestChangeSet{}
  277. if protoimpl.UnsafeEnabled {
  278. mi := &file_badgerpb4_proto_msgTypes[2]
  279. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  280. ms.StoreMessageInfo(mi)
  281. }
  282. }
  283. func (x *ManifestChangeSet) String() string {
  284. return protoimpl.X.MessageStringOf(x)
  285. }
  286. func (*ManifestChangeSet) ProtoMessage() {}
  287. func (x *ManifestChangeSet) ProtoReflect() protoreflect.Message {
  288. mi := &file_badgerpb4_proto_msgTypes[2]
  289. if protoimpl.UnsafeEnabled && x != nil {
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. if ms.LoadMessageInfo() == nil {
  292. ms.StoreMessageInfo(mi)
  293. }
  294. return ms
  295. }
  296. return mi.MessageOf(x)
  297. }
  298. // Deprecated: Use ManifestChangeSet.ProtoReflect.Descriptor instead.
  299. func (*ManifestChangeSet) Descriptor() ([]byte, []int) {
  300. return file_badgerpb4_proto_rawDescGZIP(), []int{2}
  301. }
  302. func (x *ManifestChangeSet) GetChanges() []*ManifestChange {
  303. if x != nil {
  304. return x.Changes
  305. }
  306. return nil
  307. }
  308. type ManifestChange struct {
  309. state protoimpl.MessageState
  310. sizeCache protoimpl.SizeCache
  311. unknownFields protoimpl.UnknownFields
  312. Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // Table ID.
  313. Op ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=badgerpb4.ManifestChange_Operation" json:"Op,omitempty"`
  314. Level uint32 `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"` // Only used for CREATE.
  315. KeyId uint64 `protobuf:"varint,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
  316. EncryptionAlgo EncryptionAlgo `protobuf:"varint,5,opt,name=encryption_algo,json=encryptionAlgo,proto3,enum=badgerpb4.EncryptionAlgo" json:"encryption_algo,omitempty"`
  317. Compression uint32 `protobuf:"varint,6,opt,name=compression,proto3" json:"compression,omitempty"` // Only used for CREATE Op.
  318. }
  319. func (x *ManifestChange) Reset() {
  320. *x = ManifestChange{}
  321. if protoimpl.UnsafeEnabled {
  322. mi := &file_badgerpb4_proto_msgTypes[3]
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. ms.StoreMessageInfo(mi)
  325. }
  326. }
  327. func (x *ManifestChange) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*ManifestChange) ProtoMessage() {}
  331. func (x *ManifestChange) ProtoReflect() protoreflect.Message {
  332. mi := &file_badgerpb4_proto_msgTypes[3]
  333. if protoimpl.UnsafeEnabled && x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use ManifestChange.ProtoReflect.Descriptor instead.
  343. func (*ManifestChange) Descriptor() ([]byte, []int) {
  344. return file_badgerpb4_proto_rawDescGZIP(), []int{3}
  345. }
  346. func (x *ManifestChange) GetId() uint64 {
  347. if x != nil {
  348. return x.Id
  349. }
  350. return 0
  351. }
  352. func (x *ManifestChange) GetOp() ManifestChange_Operation {
  353. if x != nil {
  354. return x.Op
  355. }
  356. return ManifestChange_CREATE
  357. }
  358. func (x *ManifestChange) GetLevel() uint32 {
  359. if x != nil {
  360. return x.Level
  361. }
  362. return 0
  363. }
  364. func (x *ManifestChange) GetKeyId() uint64 {
  365. if x != nil {
  366. return x.KeyId
  367. }
  368. return 0
  369. }
  370. func (x *ManifestChange) GetEncryptionAlgo() EncryptionAlgo {
  371. if x != nil {
  372. return x.EncryptionAlgo
  373. }
  374. return EncryptionAlgo_aes
  375. }
  376. func (x *ManifestChange) GetCompression() uint32 {
  377. if x != nil {
  378. return x.Compression
  379. }
  380. return 0
  381. }
  382. type Checksum struct {
  383. state protoimpl.MessageState
  384. sizeCache protoimpl.SizeCache
  385. unknownFields protoimpl.UnknownFields
  386. Algo Checksum_Algorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=badgerpb4.Checksum_Algorithm" json:"algo,omitempty"` // For storing type of Checksum algorithm used
  387. Sum uint64 `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"`
  388. }
  389. func (x *Checksum) Reset() {
  390. *x = Checksum{}
  391. if protoimpl.UnsafeEnabled {
  392. mi := &file_badgerpb4_proto_msgTypes[4]
  393. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  394. ms.StoreMessageInfo(mi)
  395. }
  396. }
  397. func (x *Checksum) String() string {
  398. return protoimpl.X.MessageStringOf(x)
  399. }
  400. func (*Checksum) ProtoMessage() {}
  401. func (x *Checksum) ProtoReflect() protoreflect.Message {
  402. mi := &file_badgerpb4_proto_msgTypes[4]
  403. if protoimpl.UnsafeEnabled && x != nil {
  404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  405. if ms.LoadMessageInfo() == nil {
  406. ms.StoreMessageInfo(mi)
  407. }
  408. return ms
  409. }
  410. return mi.MessageOf(x)
  411. }
  412. // Deprecated: Use Checksum.ProtoReflect.Descriptor instead.
  413. func (*Checksum) Descriptor() ([]byte, []int) {
  414. return file_badgerpb4_proto_rawDescGZIP(), []int{4}
  415. }
  416. func (x *Checksum) GetAlgo() Checksum_Algorithm {
  417. if x != nil {
  418. return x.Algo
  419. }
  420. return Checksum_CRC32C
  421. }
  422. func (x *Checksum) GetSum() uint64 {
  423. if x != nil {
  424. return x.Sum
  425. }
  426. return 0
  427. }
  428. type DataKey struct {
  429. state protoimpl.MessageState
  430. sizeCache protoimpl.SizeCache
  431. unknownFields protoimpl.UnknownFields
  432. KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
  433. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  434. Iv []byte `protobuf:"bytes,3,opt,name=iv,proto3" json:"iv,omitempty"`
  435. CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  436. }
  437. func (x *DataKey) Reset() {
  438. *x = DataKey{}
  439. if protoimpl.UnsafeEnabled {
  440. mi := &file_badgerpb4_proto_msgTypes[5]
  441. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  442. ms.StoreMessageInfo(mi)
  443. }
  444. }
  445. func (x *DataKey) String() string {
  446. return protoimpl.X.MessageStringOf(x)
  447. }
  448. func (*DataKey) ProtoMessage() {}
  449. func (x *DataKey) ProtoReflect() protoreflect.Message {
  450. mi := &file_badgerpb4_proto_msgTypes[5]
  451. if protoimpl.UnsafeEnabled && x != nil {
  452. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  453. if ms.LoadMessageInfo() == nil {
  454. ms.StoreMessageInfo(mi)
  455. }
  456. return ms
  457. }
  458. return mi.MessageOf(x)
  459. }
  460. // Deprecated: Use DataKey.ProtoReflect.Descriptor instead.
  461. func (*DataKey) Descriptor() ([]byte, []int) {
  462. return file_badgerpb4_proto_rawDescGZIP(), []int{5}
  463. }
  464. func (x *DataKey) GetKeyId() uint64 {
  465. if x != nil {
  466. return x.KeyId
  467. }
  468. return 0
  469. }
  470. func (x *DataKey) GetData() []byte {
  471. if x != nil {
  472. return x.Data
  473. }
  474. return nil
  475. }
  476. func (x *DataKey) GetIv() []byte {
  477. if x != nil {
  478. return x.Iv
  479. }
  480. return nil
  481. }
  482. func (x *DataKey) GetCreatedAt() int64 {
  483. if x != nil {
  484. return x.CreatedAt
  485. }
  486. return 0
  487. }
  488. type Match struct {
  489. state protoimpl.MessageState
  490. sizeCache protoimpl.SizeCache
  491. unknownFields protoimpl.UnknownFields
  492. Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
  493. IgnoreBytes string `protobuf:"bytes,2,opt,name=ignore_bytes,json=ignoreBytes,proto3" json:"ignore_bytes,omitempty"` // Comma separated with dash to represent ranges "1, 2-3, 4-7, 9"
  494. }
  495. func (x *Match) Reset() {
  496. *x = Match{}
  497. if protoimpl.UnsafeEnabled {
  498. mi := &file_badgerpb4_proto_msgTypes[6]
  499. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  500. ms.StoreMessageInfo(mi)
  501. }
  502. }
  503. func (x *Match) String() string {
  504. return protoimpl.X.MessageStringOf(x)
  505. }
  506. func (*Match) ProtoMessage() {}
  507. func (x *Match) ProtoReflect() protoreflect.Message {
  508. mi := &file_badgerpb4_proto_msgTypes[6]
  509. if protoimpl.UnsafeEnabled && x != nil {
  510. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  511. if ms.LoadMessageInfo() == nil {
  512. ms.StoreMessageInfo(mi)
  513. }
  514. return ms
  515. }
  516. return mi.MessageOf(x)
  517. }
  518. // Deprecated: Use Match.ProtoReflect.Descriptor instead.
  519. func (*Match) Descriptor() ([]byte, []int) {
  520. return file_badgerpb4_proto_rawDescGZIP(), []int{6}
  521. }
  522. func (x *Match) GetPrefix() []byte {
  523. if x != nil {
  524. return x.Prefix
  525. }
  526. return nil
  527. }
  528. func (x *Match) GetIgnoreBytes() string {
  529. if x != nil {
  530. return x.IgnoreBytes
  531. }
  532. return ""
  533. }
  534. var File_badgerpb4_proto protoreflect.FileDescriptor
  535. var file_badgerpb4_proto_rawDesc = []byte{
  536. 0x0a, 0x0f, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  537. 0x6f, 0x12, 0x09, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x22, 0xd4, 0x01, 0x0a,
  538. 0x02, 0x4b, 0x56, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
  539. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
  540. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75,
  541. 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08,
  542. 0x75, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
  543. 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  544. 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74,
  545. 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41,
  546. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52,
  547. 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f,
  548. 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
  549. 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x64, 0x6f, 0x6e,
  550. 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44,
  551. 0x6f, 0x6e, 0x65, 0x22, 0x44, 0x0a, 0x06, 0x4b, 0x56, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a,
  552. 0x02, 0x6b, 0x76, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x64, 0x67,
  553. 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4b, 0x56, 0x52, 0x02, 0x6b, 0x76, 0x12, 0x1b, 0x0a, 0x09,
  554. 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52,
  555. 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x52, 0x65, 0x66, 0x22, 0x48, 0x0a, 0x11, 0x4d, 0x61, 0x6e,
  556. 0x69, 0x66, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x12, 0x33,
  557. 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  558. 0x19, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4d, 0x61, 0x6e, 0x69,
  559. 0x66, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e,
  560. 0x67, 0x65, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x0e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
  561. 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  562. 0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x02, 0x4f, 0x70, 0x18, 0x02, 0x20, 0x01,
  563. 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4d,
  564. 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4f, 0x70,
  565. 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x4f, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x4c,
  566. 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x4c, 0x65, 0x76, 0x65,
  567. 0x6c, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  568. 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72,
  569. 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28,
  570. 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x45, 0x6e,
  571. 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x52, 0x0e, 0x65, 0x6e,
  572. 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x12, 0x20, 0x0a, 0x0b,
  573. 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28,
  574. 0x0d, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x23,
  575. 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x43,
  576. 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54,
  577. 0x45, 0x10, 0x01, 0x22, 0x76, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12,
  578. 0x31, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e,
  579. 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73,
  580. 0x75, 0x6d, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x04, 0x61, 0x6c,
  581. 0x67, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
  582. 0x03, 0x73, 0x75, 0x6d, 0x22, 0x25, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
  583. 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x43, 0x33, 0x32, 0x43, 0x10, 0x00, 0x12, 0x0c, 0x0a,
  584. 0x08, 0x58, 0x58, 0x48, 0x61, 0x73, 0x68, 0x36, 0x34, 0x10, 0x01, 0x22, 0x63, 0x0a, 0x07, 0x44,
  585. 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64,
  586. 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a,
  587. 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74,
  588. 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69,
  589. 0x76, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
  590. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
  591. 0x22, 0x42, 0x0a, 0x05, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65,
  592. 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69,
  593. 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65,
  594. 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x42,
  595. 0x79, 0x74, 0x65, 0x73, 0x2a, 0x19, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,
  596. 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x12, 0x07, 0x0a, 0x03, 0x61, 0x65, 0x73, 0x10, 0x00, 0x42,
  597. 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x67,
  598. 0x72, 0x61, 0x70, 0x68, 0x2d, 0x69, 0x6f, 0x2f, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x76,
  599. 0x34, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  600. }
  601. var (
  602. file_badgerpb4_proto_rawDescOnce sync.Once
  603. file_badgerpb4_proto_rawDescData = file_badgerpb4_proto_rawDesc
  604. )
  605. func file_badgerpb4_proto_rawDescGZIP() []byte {
  606. file_badgerpb4_proto_rawDescOnce.Do(func() {
  607. file_badgerpb4_proto_rawDescData = protoimpl.X.CompressGZIP(file_badgerpb4_proto_rawDescData)
  608. })
  609. return file_badgerpb4_proto_rawDescData
  610. }
  611. var file_badgerpb4_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  612. var file_badgerpb4_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  613. var file_badgerpb4_proto_goTypes = []interface{}{
  614. (EncryptionAlgo)(0), // 0: badgerpb4.EncryptionAlgo
  615. (ManifestChange_Operation)(0), // 1: badgerpb4.ManifestChange.Operation
  616. (Checksum_Algorithm)(0), // 2: badgerpb4.Checksum.Algorithm
  617. (*KV)(nil), // 3: badgerpb4.KV
  618. (*KVList)(nil), // 4: badgerpb4.KVList
  619. (*ManifestChangeSet)(nil), // 5: badgerpb4.ManifestChangeSet
  620. (*ManifestChange)(nil), // 6: badgerpb4.ManifestChange
  621. (*Checksum)(nil), // 7: badgerpb4.Checksum
  622. (*DataKey)(nil), // 8: badgerpb4.DataKey
  623. (*Match)(nil), // 9: badgerpb4.Match
  624. }
  625. var file_badgerpb4_proto_depIdxs = []int32{
  626. 3, // 0: badgerpb4.KVList.kv:type_name -> badgerpb4.KV
  627. 6, // 1: badgerpb4.ManifestChangeSet.changes:type_name -> badgerpb4.ManifestChange
  628. 1, // 2: badgerpb4.ManifestChange.Op:type_name -> badgerpb4.ManifestChange.Operation
  629. 0, // 3: badgerpb4.ManifestChange.encryption_algo:type_name -> badgerpb4.EncryptionAlgo
  630. 2, // 4: badgerpb4.Checksum.algo:type_name -> badgerpb4.Checksum.Algorithm
  631. 5, // [5:5] is the sub-list for method output_type
  632. 5, // [5:5] is the sub-list for method input_type
  633. 5, // [5:5] is the sub-list for extension type_name
  634. 5, // [5:5] is the sub-list for extension extendee
  635. 0, // [0:5] is the sub-list for field type_name
  636. }
  637. func init() { file_badgerpb4_proto_init() }
  638. func file_badgerpb4_proto_init() {
  639. if File_badgerpb4_proto != nil {
  640. return
  641. }
  642. if !protoimpl.UnsafeEnabled {
  643. file_badgerpb4_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  644. switch v := v.(*KV); i {
  645. case 0:
  646. return &v.state
  647. case 1:
  648. return &v.sizeCache
  649. case 2:
  650. return &v.unknownFields
  651. default:
  652. return nil
  653. }
  654. }
  655. file_badgerpb4_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  656. switch v := v.(*KVList); i {
  657. case 0:
  658. return &v.state
  659. case 1:
  660. return &v.sizeCache
  661. case 2:
  662. return &v.unknownFields
  663. default:
  664. return nil
  665. }
  666. }
  667. file_badgerpb4_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  668. switch v := v.(*ManifestChangeSet); i {
  669. case 0:
  670. return &v.state
  671. case 1:
  672. return &v.sizeCache
  673. case 2:
  674. return &v.unknownFields
  675. default:
  676. return nil
  677. }
  678. }
  679. file_badgerpb4_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  680. switch v := v.(*ManifestChange); i {
  681. case 0:
  682. return &v.state
  683. case 1:
  684. return &v.sizeCache
  685. case 2:
  686. return &v.unknownFields
  687. default:
  688. return nil
  689. }
  690. }
  691. file_badgerpb4_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  692. switch v := v.(*Checksum); i {
  693. case 0:
  694. return &v.state
  695. case 1:
  696. return &v.sizeCache
  697. case 2:
  698. return &v.unknownFields
  699. default:
  700. return nil
  701. }
  702. }
  703. file_badgerpb4_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  704. switch v := v.(*DataKey); i {
  705. case 0:
  706. return &v.state
  707. case 1:
  708. return &v.sizeCache
  709. case 2:
  710. return &v.unknownFields
  711. default:
  712. return nil
  713. }
  714. }
  715. file_badgerpb4_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  716. switch v := v.(*Match); i {
  717. case 0:
  718. return &v.state
  719. case 1:
  720. return &v.sizeCache
  721. case 2:
  722. return &v.unknownFields
  723. default:
  724. return nil
  725. }
  726. }
  727. }
  728. type x struct{}
  729. out := protoimpl.TypeBuilder{
  730. File: protoimpl.DescBuilder{
  731. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  732. RawDescriptor: file_badgerpb4_proto_rawDesc,
  733. NumEnums: 3,
  734. NumMessages: 7,
  735. NumExtensions: 0,
  736. NumServices: 0,
  737. },
  738. GoTypes: file_badgerpb4_proto_goTypes,
  739. DependencyIndexes: file_badgerpb4_proto_depIdxs,
  740. EnumInfos: file_badgerpb4_proto_enumTypes,
  741. MessageInfos: file_badgerpb4_proto_msgTypes,
  742. }.Build()
  743. File_badgerpb4_proto = out.File
  744. file_badgerpb4_proto_rawDesc = nil
  745. file_badgerpb4_proto_goTypes = nil
  746. file_badgerpb4_proto_depIdxs = nil
  747. }