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.

375 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. }
  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. var File_skiplist_proto protoreflect.FileDescriptor
  204. var file_skiplist_proto_rawDesc = []byte{
  205. 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  206. 0x12, 0x08, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xda, 0x01, 0x0a, 0x0d, 0x53,
  207. 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x45, 0x0a, 0x0c,
  208. 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03,
  209. 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x6b,
  210. 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66,
  211. 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x65, 0x76,
  212. 0x65, 0x6c, 0x73, 0x12, 0x41, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  213. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69,
  214. 0x73, 0x74, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65,
  215. 0x6e, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x64,
  216. 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x65,
  217. 0x77, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d,
  218. 0x61, 0x78, 0x4e, 0x65, 0x77, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61,
  219. 0x78, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d,
  220. 0x61, 0x78, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x55, 0x0a, 0x18, 0x53, 0x6b, 0x69, 0x70, 0x4c,
  221. 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65,
  222. 0x6e, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70,
  223. 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, 0x6c,
  224. 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03,
  225. 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0xcf,
  226. 0x01, 0x0a, 0x0f, 0x53, 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65,
  227. 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
  228. 0x69, 0x64, 0x12, 0x36, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  229. 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x6b, 0x69, 0x70,
  230. 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72,
  231. 0x65, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
  232. 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  233. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b,
  234. 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
  235. 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x72, 0x65, 0x76,
  236. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6c, 0x69, 0x73,
  237. 0x74, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e,
  238. 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x70, 0x72, 0x65, 0x76,
  239. 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
  240. 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64,
  241. 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x73, 0x6b, 0x69,
  242. 0x70, 0x6c, 0x69, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  243. }
  244. var (
  245. file_skiplist_proto_rawDescOnce sync.Once
  246. file_skiplist_proto_rawDescData = file_skiplist_proto_rawDesc
  247. )
  248. func file_skiplist_proto_rawDescGZIP() []byte {
  249. file_skiplist_proto_rawDescOnce.Do(func() {
  250. file_skiplist_proto_rawDescData = protoimpl.X.CompressGZIP(file_skiplist_proto_rawDescData)
  251. })
  252. return file_skiplist_proto_rawDescData
  253. }
  254. var file_skiplist_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  255. var file_skiplist_proto_goTypes = []interface{}{
  256. (*SkipListProto)(nil), // 0: skiplist.SkipListProto
  257. (*SkipListElementReference)(nil), // 1: skiplist.SkipListElementReference
  258. (*SkipListElement)(nil), // 2: skiplist.SkipListElement
  259. }
  260. var file_skiplist_proto_depIdxs = []int32{
  261. 1, // 0: skiplist.SkipListProto.start_levels:type_name -> skiplist.SkipListElementReference
  262. 1, // 1: skiplist.SkipListProto.end_levels:type_name -> skiplist.SkipListElementReference
  263. 1, // 2: skiplist.SkipListElement.next:type_name -> skiplist.SkipListElementReference
  264. 1, // 3: skiplist.SkipListElement.prev:type_name -> skiplist.SkipListElementReference
  265. 4, // [4:4] is the sub-list for method output_type
  266. 4, // [4:4] is the sub-list for method input_type
  267. 4, // [4:4] is the sub-list for extension type_name
  268. 4, // [4:4] is the sub-list for extension extendee
  269. 0, // [0:4] is the sub-list for field type_name
  270. }
  271. func init() { file_skiplist_proto_init() }
  272. func file_skiplist_proto_init() {
  273. if File_skiplist_proto != nil {
  274. return
  275. }
  276. if !protoimpl.UnsafeEnabled {
  277. file_skiplist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  278. switch v := v.(*SkipListProto); i {
  279. case 0:
  280. return &v.state
  281. case 1:
  282. return &v.sizeCache
  283. case 2:
  284. return &v.unknownFields
  285. default:
  286. return nil
  287. }
  288. }
  289. file_skiplist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  290. switch v := v.(*SkipListElementReference); i {
  291. case 0:
  292. return &v.state
  293. case 1:
  294. return &v.sizeCache
  295. case 2:
  296. return &v.unknownFields
  297. default:
  298. return nil
  299. }
  300. }
  301. file_skiplist_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  302. switch v := v.(*SkipListElement); i {
  303. case 0:
  304. return &v.state
  305. case 1:
  306. return &v.sizeCache
  307. case 2:
  308. return &v.unknownFields
  309. default:
  310. return nil
  311. }
  312. }
  313. }
  314. type x struct{}
  315. out := protoimpl.TypeBuilder{
  316. File: protoimpl.DescBuilder{
  317. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  318. RawDescriptor: file_skiplist_proto_rawDesc,
  319. NumEnums: 0,
  320. NumMessages: 3,
  321. NumExtensions: 0,
  322. NumServices: 0,
  323. },
  324. GoTypes: file_skiplist_proto_goTypes,
  325. DependencyIndexes: file_skiplist_proto_depIdxs,
  326. MessageInfos: file_skiplist_proto_msgTypes,
  327. }.Build()
  328. File_skiplist_proto = out.File
  329. file_skiplist_proto_rawDesc = nil
  330. file_skiplist_proto_goTypes = nil
  331. file_skiplist_proto_depIdxs = nil
  332. }