badgerpb4.pb.go 26 KB

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