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.

386 lines
13 KiB

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