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.

433 lines
14 KiB

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