You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

438 lines
14 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.12.3
  5. // source: skiplist.proto
  6. package skiplist
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type SkipListProto struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. StartLevels []*SkipListElementReference `protobuf:"bytes,1,rep,name=start_levels,json=startLevels,proto3" json:"start_levels,omitempty"`
  28. EndLevels []*SkipListElementReference `protobuf:"bytes,2,rep,name=end_levels,json=endLevels,proto3" json:"end_levels,omitempty"`
  29. MaxNewLevel int32 `protobuf:"varint,3,opt,name=max_new_level,json=maxNewLevel,proto3" json:"max_new_level,omitempty"`
  30. MaxLevel int32 `protobuf:"varint,4,opt,name=max_level,json=maxLevel,proto3" json:"max_level,omitempty"`
  31. }
  32. func (x *SkipListProto) Reset() {
  33. *x = SkipListProto{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_skiplist_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *SkipListProto) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*SkipListProto) ProtoMessage() {}
  44. func (x *SkipListProto) ProtoReflect() protoreflect.Message {
  45. mi := &file_skiplist_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use SkipListProto.ProtoReflect.Descriptor instead.
  56. func (*SkipListProto) Descriptor() ([]byte, []int) {
  57. return file_skiplist_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *SkipListProto) GetStartLevels() []*SkipListElementReference {
  60. if x != nil {
  61. return x.StartLevels
  62. }
  63. return nil
  64. }
  65. func (x *SkipListProto) GetEndLevels() []*SkipListElementReference {
  66. if x != nil {
  67. return x.EndLevels
  68. }
  69. return nil
  70. }
  71. func (x *SkipListProto) GetMaxNewLevel() int32 {
  72. if x != nil {
  73. return x.MaxNewLevel
  74. }
  75. return 0
  76. }
  77. func (x *SkipListProto) GetMaxLevel() int32 {
  78. if x != nil {
  79. return x.MaxLevel
  80. }
  81. return 0
  82. }
  83. type SkipListElementReference struct {
  84. state protoimpl.MessageState
  85. sizeCache protoimpl.SizeCache
  86. unknownFields protoimpl.UnknownFields
  87. ElementPointer int64 `protobuf:"varint,1,opt,name=element_pointer,json=elementPointer,proto3" json:"element_pointer,omitempty"`
  88. Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  89. }
  90. func (x *SkipListElementReference) Reset() {
  91. *x = SkipListElementReference{}
  92. if protoimpl.UnsafeEnabled {
  93. mi := &file_skiplist_proto_msgTypes[1]
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. ms.StoreMessageInfo(mi)
  96. }
  97. }
  98. func (x *SkipListElementReference) String() string {
  99. return protoimpl.X.MessageStringOf(x)
  100. }
  101. func (*SkipListElementReference) ProtoMessage() {}
  102. func (x *SkipListElementReference) ProtoReflect() protoreflect.Message {
  103. mi := &file_skiplist_proto_msgTypes[1]
  104. if protoimpl.UnsafeEnabled && x != nil {
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. if ms.LoadMessageInfo() == nil {
  107. ms.StoreMessageInfo(mi)
  108. }
  109. return ms
  110. }
  111. return mi.MessageOf(x)
  112. }
  113. // Deprecated: Use SkipListElementReference.ProtoReflect.Descriptor instead.
  114. func (*SkipListElementReference) Descriptor() ([]byte, []int) {
  115. return file_skiplist_proto_rawDescGZIP(), []int{1}
  116. }
  117. func (x *SkipListElementReference) GetElementPointer() int64 {
  118. if x != nil {
  119. return x.ElementPointer
  120. }
  121. return 0
  122. }
  123. func (x *SkipListElementReference) GetKey() []byte {
  124. if x != nil {
  125. return x.Key
  126. }
  127. return nil
  128. }
  129. type SkipListElement struct {
  130. state protoimpl.MessageState
  131. sizeCache protoimpl.SizeCache
  132. unknownFields protoimpl.UnknownFields
  133. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  134. Next []*SkipListElementReference `protobuf:"bytes,2,rep,name=next,proto3" json:"next,omitempty"`
  135. Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
  136. Key []byte `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
  137. Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
  138. Prev *SkipListElementReference `protobuf:"bytes,6,opt,name=prev,proto3" json:"prev,omitempty"`
  139. }
  140. func (x *SkipListElement) Reset() {
  141. *x = SkipListElement{}
  142. if protoimpl.UnsafeEnabled {
  143. mi := &file_skiplist_proto_msgTypes[2]
  144. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  145. ms.StoreMessageInfo(mi)
  146. }
  147. }
  148. func (x *SkipListElement) String() string {
  149. return protoimpl.X.MessageStringOf(x)
  150. }
  151. func (*SkipListElement) ProtoMessage() {}
  152. func (x *SkipListElement) ProtoReflect() protoreflect.Message {
  153. mi := &file_skiplist_proto_msgTypes[2]
  154. if protoimpl.UnsafeEnabled && x != nil {
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. if ms.LoadMessageInfo() == nil {
  157. ms.StoreMessageInfo(mi)
  158. }
  159. return ms
  160. }
  161. return mi.MessageOf(x)
  162. }
  163. // Deprecated: Use SkipListElement.ProtoReflect.Descriptor instead.
  164. func (*SkipListElement) Descriptor() ([]byte, []int) {
  165. return file_skiplist_proto_rawDescGZIP(), []int{2}
  166. }
  167. func (x *SkipListElement) GetId() int64 {
  168. if x != nil {
  169. return x.Id
  170. }
  171. return 0
  172. }
  173. func (x *SkipListElement) GetNext() []*SkipListElementReference {
  174. if x != nil {
  175. return x.Next
  176. }
  177. return nil
  178. }
  179. func (x *SkipListElement) GetLevel() int32 {
  180. if x != nil {
  181. return x.Level
  182. }
  183. return 0
  184. }
  185. func (x *SkipListElement) GetKey() []byte {
  186. if x != nil {
  187. return x.Key
  188. }
  189. return nil
  190. }
  191. func (x *SkipListElement) GetValue() []byte {
  192. if x != nil {
  193. return x.Value
  194. }
  195. return nil
  196. }
  197. func (x *SkipListElement) GetPrev() *SkipListElementReference {
  198. if x != nil {
  199. return x.Prev
  200. }
  201. return nil
  202. }
  203. type NameBatchData struct {
  204. state protoimpl.MessageState
  205. sizeCache protoimpl.SizeCache
  206. unknownFields protoimpl.UnknownFields
  207. Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
  208. }
  209. func (x *NameBatchData) Reset() {
  210. *x = NameBatchData{}
  211. if protoimpl.UnsafeEnabled {
  212. mi := &file_skiplist_proto_msgTypes[3]
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. ms.StoreMessageInfo(mi)
  215. }
  216. }
  217. func (x *NameBatchData) String() string {
  218. return protoimpl.X.MessageStringOf(x)
  219. }
  220. func (*NameBatchData) ProtoMessage() {}
  221. func (x *NameBatchData) ProtoReflect() protoreflect.Message {
  222. mi := &file_skiplist_proto_msgTypes[3]
  223. if protoimpl.UnsafeEnabled && x != nil {
  224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  225. if ms.LoadMessageInfo() == nil {
  226. ms.StoreMessageInfo(mi)
  227. }
  228. return ms
  229. }
  230. return mi.MessageOf(x)
  231. }
  232. // Deprecated: Use NameBatchData.ProtoReflect.Descriptor instead.
  233. func (*NameBatchData) Descriptor() ([]byte, []int) {
  234. return file_skiplist_proto_rawDescGZIP(), []int{3}
  235. }
  236. func (x *NameBatchData) GetNames() [][]byte {
  237. if x != nil {
  238. return x.Names
  239. }
  240. return nil
  241. }
  242. var File_skiplist_proto protoreflect.FileDescriptor
  243. var file_skiplist_proto_rawDesc = []byte{
  244. 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  245. 0x12, 0x08, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xda, 0x01, 0x0a, 0x0d, 0x53,
  246. 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x45, 0x0a, 0x0c,
  247. 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03,
  248. 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x6b,
  249. 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66,
  250. 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x65, 0x76,
  251. 0x65, 0x6c, 0x73, 0x12, 0x41, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  252. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69,
  253. 0x73, 0x74, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65,
  254. 0x6e, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x64,
  255. 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x65,
  256. 0x77, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d,
  257. 0x61, 0x78, 0x4e, 0x65, 0x77, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61,
  258. 0x78, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d,
  259. 0x61, 0x78, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x55, 0x0a, 0x18, 0x53, 0x6b, 0x69, 0x70, 0x4c,
  260. 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65,
  261. 0x6e, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70,
  262. 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, 0x6c,
  263. 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03,
  264. 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0xcf,
  265. 0x01, 0x0a, 0x0f, 0x53, 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65,
  266. 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
  267. 0x69, 0x64, 0x12, 0x36, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  268. 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x6b, 0x69, 0x70,
  269. 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72,
  270. 0x65, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
  271. 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  272. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b,
  273. 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
  274. 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x72, 0x65, 0x76,
  275. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73,
  276. 0x74, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e,
  277. 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x70, 0x72, 0x65, 0x76,
  278. 0x22, 0x25, 0x0a, 0x0d, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x61, 0x74,
  279. 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c,
  280. 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75,
  281. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f,
  282. 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x75,
  283. 0x74, 0x69, 0x6c, 0x2f, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72,
  284. 0x6f, 0x74, 0x6f, 0x33,
  285. }
  286. var (
  287. file_skiplist_proto_rawDescOnce sync.Once
  288. file_skiplist_proto_rawDescData = file_skiplist_proto_rawDesc
  289. )
  290. func file_skiplist_proto_rawDescGZIP() []byte {
  291. file_skiplist_proto_rawDescOnce.Do(func() {
  292. file_skiplist_proto_rawDescData = protoimpl.X.CompressGZIP(file_skiplist_proto_rawDescData)
  293. })
  294. return file_skiplist_proto_rawDescData
  295. }
  296. var file_skiplist_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  297. var file_skiplist_proto_goTypes = []interface{}{
  298. (*SkipListProto)(nil), // 0: skiplist.SkipListProto
  299. (*SkipListElementReference)(nil), // 1: skiplist.SkipListElementReference
  300. (*SkipListElement)(nil), // 2: skiplist.SkipListElement
  301. (*NameBatchData)(nil), // 3: skiplist.NameBatchData
  302. }
  303. var file_skiplist_proto_depIdxs = []int32{
  304. 1, // 0: skiplist.SkipListProto.start_levels:type_name -> skiplist.SkipListElementReference
  305. 1, // 1: skiplist.SkipListProto.end_levels:type_name -> skiplist.SkipListElementReference
  306. 1, // 2: skiplist.SkipListElement.next:type_name -> skiplist.SkipListElementReference
  307. 1, // 3: skiplist.SkipListElement.prev:type_name -> skiplist.SkipListElementReference
  308. 4, // [4:4] is the sub-list for method output_type
  309. 4, // [4:4] is the sub-list for method input_type
  310. 4, // [4:4] is the sub-list for extension type_name
  311. 4, // [4:4] is the sub-list for extension extendee
  312. 0, // [0:4] is the sub-list for field type_name
  313. }
  314. func init() { file_skiplist_proto_init() }
  315. func file_skiplist_proto_init() {
  316. if File_skiplist_proto != nil {
  317. return
  318. }
  319. if !protoimpl.UnsafeEnabled {
  320. file_skiplist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  321. switch v := v.(*SkipListProto); i {
  322. case 0:
  323. return &v.state
  324. case 1:
  325. return &v.sizeCache
  326. case 2:
  327. return &v.unknownFields
  328. default:
  329. return nil
  330. }
  331. }
  332. file_skiplist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  333. switch v := v.(*SkipListElementReference); i {
  334. case 0:
  335. return &v.state
  336. case 1:
  337. return &v.sizeCache
  338. case 2:
  339. return &v.unknownFields
  340. default:
  341. return nil
  342. }
  343. }
  344. file_skiplist_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  345. switch v := v.(*SkipListElement); i {
  346. case 0:
  347. return &v.state
  348. case 1:
  349. return &v.sizeCache
  350. case 2:
  351. return &v.unknownFields
  352. default:
  353. return nil
  354. }
  355. }
  356. file_skiplist_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  357. switch v := v.(*NameBatchData); i {
  358. case 0:
  359. return &v.state
  360. case 1:
  361. return &v.sizeCache
  362. case 2:
  363. return &v.unknownFields
  364. default:
  365. return nil
  366. }
  367. }
  368. }
  369. type x struct{}
  370. out := protoimpl.TypeBuilder{
  371. File: protoimpl.DescBuilder{
  372. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  373. RawDescriptor: file_skiplist_proto_rawDesc,
  374. NumEnums: 0,
  375. NumMessages: 4,
  376. NumExtensions: 0,
  377. NumServices: 0,
  378. },
  379. GoTypes: file_skiplist_proto_goTypes,
  380. DependencyIndexes: file_skiplist_proto_depIdxs,
  381. MessageInfos: file_skiplist_proto_msgTypes,
  382. }.Build()
  383. File_skiplist_proto = out.File
  384. file_skiplist_proto_rawDesc = nil
  385. file_skiplist_proto_goTypes = nil
  386. file_skiplist_proto_depIdxs = nil
  387. }