mq_schema.pb.go 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v5.29.3
  5. // source: weed/pb/mq_schema.proto
  6. package schema_pb
  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. unsafe "unsafe"
  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. type OffsetType int32
  21. const (
  22. OffsetType_RESUME_OR_EARLIEST OffsetType = 0
  23. OffsetType_RESET_TO_EARLIEST OffsetType = 5
  24. OffsetType_EXACT_TS_NS OffsetType = 10
  25. OffsetType_RESET_TO_LATEST OffsetType = 15
  26. OffsetType_RESUME_OR_LATEST OffsetType = 20
  27. )
  28. // Enum value maps for OffsetType.
  29. var (
  30. OffsetType_name = map[int32]string{
  31. 0: "RESUME_OR_EARLIEST",
  32. 5: "RESET_TO_EARLIEST",
  33. 10: "EXACT_TS_NS",
  34. 15: "RESET_TO_LATEST",
  35. 20: "RESUME_OR_LATEST",
  36. }
  37. OffsetType_value = map[string]int32{
  38. "RESUME_OR_EARLIEST": 0,
  39. "RESET_TO_EARLIEST": 5,
  40. "EXACT_TS_NS": 10,
  41. "RESET_TO_LATEST": 15,
  42. "RESUME_OR_LATEST": 20,
  43. }
  44. )
  45. func (x OffsetType) Enum() *OffsetType {
  46. p := new(OffsetType)
  47. *p = x
  48. return p
  49. }
  50. func (x OffsetType) String() string {
  51. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  52. }
  53. func (OffsetType) Descriptor() protoreflect.EnumDescriptor {
  54. return file_weed_pb_mq_schema_proto_enumTypes[0].Descriptor()
  55. }
  56. func (OffsetType) Type() protoreflect.EnumType {
  57. return &file_weed_pb_mq_schema_proto_enumTypes[0]
  58. }
  59. func (x OffsetType) Number() protoreflect.EnumNumber {
  60. return protoreflect.EnumNumber(x)
  61. }
  62. // Deprecated: Use OffsetType.Descriptor instead.
  63. func (OffsetType) EnumDescriptor() ([]byte, []int) {
  64. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{0}
  65. }
  66. type ScalarType int32
  67. const (
  68. ScalarType_BOOL ScalarType = 0
  69. ScalarType_INT32 ScalarType = 1
  70. ScalarType_INT64 ScalarType = 3
  71. ScalarType_FLOAT ScalarType = 4
  72. ScalarType_DOUBLE ScalarType = 5
  73. ScalarType_BYTES ScalarType = 6
  74. ScalarType_STRING ScalarType = 7
  75. // Parquet logical types for analytics
  76. ScalarType_TIMESTAMP ScalarType = 8 // UTC timestamp (microseconds since epoch)
  77. ScalarType_DATE ScalarType = 9 // Date (days since epoch)
  78. ScalarType_DECIMAL ScalarType = 10 // Arbitrary precision decimal
  79. ScalarType_TIME ScalarType = 11 // Time of day (microseconds)
  80. )
  81. // Enum value maps for ScalarType.
  82. var (
  83. ScalarType_name = map[int32]string{
  84. 0: "BOOL",
  85. 1: "INT32",
  86. 3: "INT64",
  87. 4: "FLOAT",
  88. 5: "DOUBLE",
  89. 6: "BYTES",
  90. 7: "STRING",
  91. 8: "TIMESTAMP",
  92. 9: "DATE",
  93. 10: "DECIMAL",
  94. 11: "TIME",
  95. }
  96. ScalarType_value = map[string]int32{
  97. "BOOL": 0,
  98. "INT32": 1,
  99. "INT64": 3,
  100. "FLOAT": 4,
  101. "DOUBLE": 5,
  102. "BYTES": 6,
  103. "STRING": 7,
  104. "TIMESTAMP": 8,
  105. "DATE": 9,
  106. "DECIMAL": 10,
  107. "TIME": 11,
  108. }
  109. )
  110. func (x ScalarType) Enum() *ScalarType {
  111. p := new(ScalarType)
  112. *p = x
  113. return p
  114. }
  115. func (x ScalarType) String() string {
  116. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  117. }
  118. func (ScalarType) Descriptor() protoreflect.EnumDescriptor {
  119. return file_weed_pb_mq_schema_proto_enumTypes[1].Descriptor()
  120. }
  121. func (ScalarType) Type() protoreflect.EnumType {
  122. return &file_weed_pb_mq_schema_proto_enumTypes[1]
  123. }
  124. func (x ScalarType) Number() protoreflect.EnumNumber {
  125. return protoreflect.EnumNumber(x)
  126. }
  127. // Deprecated: Use ScalarType.Descriptor instead.
  128. func (ScalarType) EnumDescriptor() ([]byte, []int) {
  129. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{1}
  130. }
  131. type Topic struct {
  132. state protoimpl.MessageState `protogen:"open.v1"`
  133. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  134. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  135. unknownFields protoimpl.UnknownFields
  136. sizeCache protoimpl.SizeCache
  137. }
  138. func (x *Topic) Reset() {
  139. *x = Topic{}
  140. mi := &file_weed_pb_mq_schema_proto_msgTypes[0]
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. ms.StoreMessageInfo(mi)
  143. }
  144. func (x *Topic) String() string {
  145. return protoimpl.X.MessageStringOf(x)
  146. }
  147. func (*Topic) ProtoMessage() {}
  148. func (x *Topic) ProtoReflect() protoreflect.Message {
  149. mi := &file_weed_pb_mq_schema_proto_msgTypes[0]
  150. if 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 Topic.ProtoReflect.Descriptor instead.
  160. func (*Topic) Descriptor() ([]byte, []int) {
  161. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{0}
  162. }
  163. func (x *Topic) GetNamespace() string {
  164. if x != nil {
  165. return x.Namespace
  166. }
  167. return ""
  168. }
  169. func (x *Topic) GetName() string {
  170. if x != nil {
  171. return x.Name
  172. }
  173. return ""
  174. }
  175. type Partition struct {
  176. state protoimpl.MessageState `protogen:"open.v1"`
  177. RingSize int32 `protobuf:"varint,1,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"`
  178. RangeStart int32 `protobuf:"varint,2,opt,name=range_start,json=rangeStart,proto3" json:"range_start,omitempty"`
  179. RangeStop int32 `protobuf:"varint,3,opt,name=range_stop,json=rangeStop,proto3" json:"range_stop,omitempty"`
  180. UnixTimeNs int64 `protobuf:"varint,4,opt,name=unix_time_ns,json=unixTimeNs,proto3" json:"unix_time_ns,omitempty"`
  181. unknownFields protoimpl.UnknownFields
  182. sizeCache protoimpl.SizeCache
  183. }
  184. func (x *Partition) Reset() {
  185. *x = Partition{}
  186. mi := &file_weed_pb_mq_schema_proto_msgTypes[1]
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. ms.StoreMessageInfo(mi)
  189. }
  190. func (x *Partition) String() string {
  191. return protoimpl.X.MessageStringOf(x)
  192. }
  193. func (*Partition) ProtoMessage() {}
  194. func (x *Partition) ProtoReflect() protoreflect.Message {
  195. mi := &file_weed_pb_mq_schema_proto_msgTypes[1]
  196. if x != nil {
  197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  198. if ms.LoadMessageInfo() == nil {
  199. ms.StoreMessageInfo(mi)
  200. }
  201. return ms
  202. }
  203. return mi.MessageOf(x)
  204. }
  205. // Deprecated: Use Partition.ProtoReflect.Descriptor instead.
  206. func (*Partition) Descriptor() ([]byte, []int) {
  207. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{1}
  208. }
  209. func (x *Partition) GetRingSize() int32 {
  210. if x != nil {
  211. return x.RingSize
  212. }
  213. return 0
  214. }
  215. func (x *Partition) GetRangeStart() int32 {
  216. if x != nil {
  217. return x.RangeStart
  218. }
  219. return 0
  220. }
  221. func (x *Partition) GetRangeStop() int32 {
  222. if x != nil {
  223. return x.RangeStop
  224. }
  225. return 0
  226. }
  227. func (x *Partition) GetUnixTimeNs() int64 {
  228. if x != nil {
  229. return x.UnixTimeNs
  230. }
  231. return 0
  232. }
  233. type Offset struct {
  234. state protoimpl.MessageState `protogen:"open.v1"`
  235. Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  236. PartitionOffsets []*PartitionOffset `protobuf:"bytes,2,rep,name=partition_offsets,json=partitionOffsets,proto3" json:"partition_offsets,omitempty"`
  237. unknownFields protoimpl.UnknownFields
  238. sizeCache protoimpl.SizeCache
  239. }
  240. func (x *Offset) Reset() {
  241. *x = Offset{}
  242. mi := &file_weed_pb_mq_schema_proto_msgTypes[2]
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. ms.StoreMessageInfo(mi)
  245. }
  246. func (x *Offset) String() string {
  247. return protoimpl.X.MessageStringOf(x)
  248. }
  249. func (*Offset) ProtoMessage() {}
  250. func (x *Offset) ProtoReflect() protoreflect.Message {
  251. mi := &file_weed_pb_mq_schema_proto_msgTypes[2]
  252. if x != nil {
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. if ms.LoadMessageInfo() == nil {
  255. ms.StoreMessageInfo(mi)
  256. }
  257. return ms
  258. }
  259. return mi.MessageOf(x)
  260. }
  261. // Deprecated: Use Offset.ProtoReflect.Descriptor instead.
  262. func (*Offset) Descriptor() ([]byte, []int) {
  263. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{2}
  264. }
  265. func (x *Offset) GetTopic() *Topic {
  266. if x != nil {
  267. return x.Topic
  268. }
  269. return nil
  270. }
  271. func (x *Offset) GetPartitionOffsets() []*PartitionOffset {
  272. if x != nil {
  273. return x.PartitionOffsets
  274. }
  275. return nil
  276. }
  277. type PartitionOffset struct {
  278. state protoimpl.MessageState `protogen:"open.v1"`
  279. Partition *Partition `protobuf:"bytes,1,opt,name=partition,proto3" json:"partition,omitempty"`
  280. StartTsNs int64 `protobuf:"varint,2,opt,name=start_ts_ns,json=startTsNs,proto3" json:"start_ts_ns,omitempty"`
  281. unknownFields protoimpl.UnknownFields
  282. sizeCache protoimpl.SizeCache
  283. }
  284. func (x *PartitionOffset) Reset() {
  285. *x = PartitionOffset{}
  286. mi := &file_weed_pb_mq_schema_proto_msgTypes[3]
  287. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  288. ms.StoreMessageInfo(mi)
  289. }
  290. func (x *PartitionOffset) String() string {
  291. return protoimpl.X.MessageStringOf(x)
  292. }
  293. func (*PartitionOffset) ProtoMessage() {}
  294. func (x *PartitionOffset) ProtoReflect() protoreflect.Message {
  295. mi := &file_weed_pb_mq_schema_proto_msgTypes[3]
  296. if x != nil {
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. if ms.LoadMessageInfo() == nil {
  299. ms.StoreMessageInfo(mi)
  300. }
  301. return ms
  302. }
  303. return mi.MessageOf(x)
  304. }
  305. // Deprecated: Use PartitionOffset.ProtoReflect.Descriptor instead.
  306. func (*PartitionOffset) Descriptor() ([]byte, []int) {
  307. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{3}
  308. }
  309. func (x *PartitionOffset) GetPartition() *Partition {
  310. if x != nil {
  311. return x.Partition
  312. }
  313. return nil
  314. }
  315. func (x *PartitionOffset) GetStartTsNs() int64 {
  316. if x != nil {
  317. return x.StartTsNs
  318. }
  319. return 0
  320. }
  321. type RecordType struct {
  322. state protoimpl.MessageState `protogen:"open.v1"`
  323. Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
  324. unknownFields protoimpl.UnknownFields
  325. sizeCache protoimpl.SizeCache
  326. }
  327. func (x *RecordType) Reset() {
  328. *x = RecordType{}
  329. mi := &file_weed_pb_mq_schema_proto_msgTypes[4]
  330. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  331. ms.StoreMessageInfo(mi)
  332. }
  333. func (x *RecordType) String() string {
  334. return protoimpl.X.MessageStringOf(x)
  335. }
  336. func (*RecordType) ProtoMessage() {}
  337. func (x *RecordType) ProtoReflect() protoreflect.Message {
  338. mi := &file_weed_pb_mq_schema_proto_msgTypes[4]
  339. if x != nil {
  340. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  341. if ms.LoadMessageInfo() == nil {
  342. ms.StoreMessageInfo(mi)
  343. }
  344. return ms
  345. }
  346. return mi.MessageOf(x)
  347. }
  348. // Deprecated: Use RecordType.ProtoReflect.Descriptor instead.
  349. func (*RecordType) Descriptor() ([]byte, []int) {
  350. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{4}
  351. }
  352. func (x *RecordType) GetFields() []*Field {
  353. if x != nil {
  354. return x.Fields
  355. }
  356. return nil
  357. }
  358. type Field struct {
  359. state protoimpl.MessageState `protogen:"open.v1"`
  360. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  361. FieldIndex int32 `protobuf:"varint,2,opt,name=field_index,json=fieldIndex,proto3" json:"field_index,omitempty"`
  362. Type *Type `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  363. IsRepeated bool `protobuf:"varint,4,opt,name=is_repeated,json=isRepeated,proto3" json:"is_repeated,omitempty"`
  364. IsRequired bool `protobuf:"varint,5,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
  365. unknownFields protoimpl.UnknownFields
  366. sizeCache protoimpl.SizeCache
  367. }
  368. func (x *Field) Reset() {
  369. *x = Field{}
  370. mi := &file_weed_pb_mq_schema_proto_msgTypes[5]
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. ms.StoreMessageInfo(mi)
  373. }
  374. func (x *Field) String() string {
  375. return protoimpl.X.MessageStringOf(x)
  376. }
  377. func (*Field) ProtoMessage() {}
  378. func (x *Field) ProtoReflect() protoreflect.Message {
  379. mi := &file_weed_pb_mq_schema_proto_msgTypes[5]
  380. if x != nil {
  381. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  382. if ms.LoadMessageInfo() == nil {
  383. ms.StoreMessageInfo(mi)
  384. }
  385. return ms
  386. }
  387. return mi.MessageOf(x)
  388. }
  389. // Deprecated: Use Field.ProtoReflect.Descriptor instead.
  390. func (*Field) Descriptor() ([]byte, []int) {
  391. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{5}
  392. }
  393. func (x *Field) GetName() string {
  394. if x != nil {
  395. return x.Name
  396. }
  397. return ""
  398. }
  399. func (x *Field) GetFieldIndex() int32 {
  400. if x != nil {
  401. return x.FieldIndex
  402. }
  403. return 0
  404. }
  405. func (x *Field) GetType() *Type {
  406. if x != nil {
  407. return x.Type
  408. }
  409. return nil
  410. }
  411. func (x *Field) GetIsRepeated() bool {
  412. if x != nil {
  413. return x.IsRepeated
  414. }
  415. return false
  416. }
  417. func (x *Field) GetIsRequired() bool {
  418. if x != nil {
  419. return x.IsRequired
  420. }
  421. return false
  422. }
  423. type Type struct {
  424. state protoimpl.MessageState `protogen:"open.v1"`
  425. // Types that are valid to be assigned to Kind:
  426. //
  427. // *Type_ScalarType
  428. // *Type_RecordType
  429. // *Type_ListType
  430. Kind isType_Kind `protobuf_oneof:"kind"`
  431. unknownFields protoimpl.UnknownFields
  432. sizeCache protoimpl.SizeCache
  433. }
  434. func (x *Type) Reset() {
  435. *x = Type{}
  436. mi := &file_weed_pb_mq_schema_proto_msgTypes[6]
  437. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  438. ms.StoreMessageInfo(mi)
  439. }
  440. func (x *Type) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*Type) ProtoMessage() {}
  444. func (x *Type) ProtoReflect() protoreflect.Message {
  445. mi := &file_weed_pb_mq_schema_proto_msgTypes[6]
  446. if x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use Type.ProtoReflect.Descriptor instead.
  456. func (*Type) Descriptor() ([]byte, []int) {
  457. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{6}
  458. }
  459. func (x *Type) GetKind() isType_Kind {
  460. if x != nil {
  461. return x.Kind
  462. }
  463. return nil
  464. }
  465. func (x *Type) GetScalarType() ScalarType {
  466. if x != nil {
  467. if x, ok := x.Kind.(*Type_ScalarType); ok {
  468. return x.ScalarType
  469. }
  470. }
  471. return ScalarType_BOOL
  472. }
  473. func (x *Type) GetRecordType() *RecordType {
  474. if x != nil {
  475. if x, ok := x.Kind.(*Type_RecordType); ok {
  476. return x.RecordType
  477. }
  478. }
  479. return nil
  480. }
  481. func (x *Type) GetListType() *ListType {
  482. if x != nil {
  483. if x, ok := x.Kind.(*Type_ListType); ok {
  484. return x.ListType
  485. }
  486. }
  487. return nil
  488. }
  489. type isType_Kind interface {
  490. isType_Kind()
  491. }
  492. type Type_ScalarType struct {
  493. ScalarType ScalarType `protobuf:"varint,1,opt,name=scalar_type,json=scalarType,proto3,enum=schema_pb.ScalarType,oneof"`
  494. }
  495. type Type_RecordType struct {
  496. RecordType *RecordType `protobuf:"bytes,2,opt,name=record_type,json=recordType,proto3,oneof"`
  497. }
  498. type Type_ListType struct {
  499. ListType *ListType `protobuf:"bytes,3,opt,name=list_type,json=listType,proto3,oneof"`
  500. }
  501. func (*Type_ScalarType) isType_Kind() {}
  502. func (*Type_RecordType) isType_Kind() {}
  503. func (*Type_ListType) isType_Kind() {}
  504. type ListType struct {
  505. state protoimpl.MessageState `protogen:"open.v1"`
  506. ElementType *Type `protobuf:"bytes,1,opt,name=element_type,json=elementType,proto3" json:"element_type,omitempty"`
  507. unknownFields protoimpl.UnknownFields
  508. sizeCache protoimpl.SizeCache
  509. }
  510. func (x *ListType) Reset() {
  511. *x = ListType{}
  512. mi := &file_weed_pb_mq_schema_proto_msgTypes[7]
  513. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  514. ms.StoreMessageInfo(mi)
  515. }
  516. func (x *ListType) String() string {
  517. return protoimpl.X.MessageStringOf(x)
  518. }
  519. func (*ListType) ProtoMessage() {}
  520. func (x *ListType) ProtoReflect() protoreflect.Message {
  521. mi := &file_weed_pb_mq_schema_proto_msgTypes[7]
  522. if x != nil {
  523. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  524. if ms.LoadMessageInfo() == nil {
  525. ms.StoreMessageInfo(mi)
  526. }
  527. return ms
  528. }
  529. return mi.MessageOf(x)
  530. }
  531. // Deprecated: Use ListType.ProtoReflect.Descriptor instead.
  532. func (*ListType) Descriptor() ([]byte, []int) {
  533. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{7}
  534. }
  535. func (x *ListType) GetElementType() *Type {
  536. if x != nil {
  537. return x.ElementType
  538. }
  539. return nil
  540. }
  541. // /////////////////////////
  542. // value definition
  543. // /////////////////////////
  544. type RecordValue struct {
  545. state protoimpl.MessageState `protogen:"open.v1"`
  546. Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  547. unknownFields protoimpl.UnknownFields
  548. sizeCache protoimpl.SizeCache
  549. }
  550. func (x *RecordValue) Reset() {
  551. *x = RecordValue{}
  552. mi := &file_weed_pb_mq_schema_proto_msgTypes[8]
  553. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  554. ms.StoreMessageInfo(mi)
  555. }
  556. func (x *RecordValue) String() string {
  557. return protoimpl.X.MessageStringOf(x)
  558. }
  559. func (*RecordValue) ProtoMessage() {}
  560. func (x *RecordValue) ProtoReflect() protoreflect.Message {
  561. mi := &file_weed_pb_mq_schema_proto_msgTypes[8]
  562. if x != nil {
  563. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  564. if ms.LoadMessageInfo() == nil {
  565. ms.StoreMessageInfo(mi)
  566. }
  567. return ms
  568. }
  569. return mi.MessageOf(x)
  570. }
  571. // Deprecated: Use RecordValue.ProtoReflect.Descriptor instead.
  572. func (*RecordValue) Descriptor() ([]byte, []int) {
  573. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{8}
  574. }
  575. func (x *RecordValue) GetFields() map[string]*Value {
  576. if x != nil {
  577. return x.Fields
  578. }
  579. return nil
  580. }
  581. type Value struct {
  582. state protoimpl.MessageState `protogen:"open.v1"`
  583. // Types that are valid to be assigned to Kind:
  584. //
  585. // *Value_BoolValue
  586. // *Value_Int32Value
  587. // *Value_Int64Value
  588. // *Value_FloatValue
  589. // *Value_DoubleValue
  590. // *Value_BytesValue
  591. // *Value_StringValue
  592. // *Value_TimestampValue
  593. // *Value_DateValue
  594. // *Value_DecimalValue
  595. // *Value_TimeValue
  596. // *Value_ListValue
  597. // *Value_RecordValue
  598. Kind isValue_Kind `protobuf_oneof:"kind"`
  599. unknownFields protoimpl.UnknownFields
  600. sizeCache protoimpl.SizeCache
  601. }
  602. func (x *Value) Reset() {
  603. *x = Value{}
  604. mi := &file_weed_pb_mq_schema_proto_msgTypes[9]
  605. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  606. ms.StoreMessageInfo(mi)
  607. }
  608. func (x *Value) String() string {
  609. return protoimpl.X.MessageStringOf(x)
  610. }
  611. func (*Value) ProtoMessage() {}
  612. func (x *Value) ProtoReflect() protoreflect.Message {
  613. mi := &file_weed_pb_mq_schema_proto_msgTypes[9]
  614. if x != nil {
  615. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  616. if ms.LoadMessageInfo() == nil {
  617. ms.StoreMessageInfo(mi)
  618. }
  619. return ms
  620. }
  621. return mi.MessageOf(x)
  622. }
  623. // Deprecated: Use Value.ProtoReflect.Descriptor instead.
  624. func (*Value) Descriptor() ([]byte, []int) {
  625. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{9}
  626. }
  627. func (x *Value) GetKind() isValue_Kind {
  628. if x != nil {
  629. return x.Kind
  630. }
  631. return nil
  632. }
  633. func (x *Value) GetBoolValue() bool {
  634. if x != nil {
  635. if x, ok := x.Kind.(*Value_BoolValue); ok {
  636. return x.BoolValue
  637. }
  638. }
  639. return false
  640. }
  641. func (x *Value) GetInt32Value() int32 {
  642. if x != nil {
  643. if x, ok := x.Kind.(*Value_Int32Value); ok {
  644. return x.Int32Value
  645. }
  646. }
  647. return 0
  648. }
  649. func (x *Value) GetInt64Value() int64 {
  650. if x != nil {
  651. if x, ok := x.Kind.(*Value_Int64Value); ok {
  652. return x.Int64Value
  653. }
  654. }
  655. return 0
  656. }
  657. func (x *Value) GetFloatValue() float32 {
  658. if x != nil {
  659. if x, ok := x.Kind.(*Value_FloatValue); ok {
  660. return x.FloatValue
  661. }
  662. }
  663. return 0
  664. }
  665. func (x *Value) GetDoubleValue() float64 {
  666. if x != nil {
  667. if x, ok := x.Kind.(*Value_DoubleValue); ok {
  668. return x.DoubleValue
  669. }
  670. }
  671. return 0
  672. }
  673. func (x *Value) GetBytesValue() []byte {
  674. if x != nil {
  675. if x, ok := x.Kind.(*Value_BytesValue); ok {
  676. return x.BytesValue
  677. }
  678. }
  679. return nil
  680. }
  681. func (x *Value) GetStringValue() string {
  682. if x != nil {
  683. if x, ok := x.Kind.(*Value_StringValue); ok {
  684. return x.StringValue
  685. }
  686. }
  687. return ""
  688. }
  689. func (x *Value) GetTimestampValue() *TimestampValue {
  690. if x != nil {
  691. if x, ok := x.Kind.(*Value_TimestampValue); ok {
  692. return x.TimestampValue
  693. }
  694. }
  695. return nil
  696. }
  697. func (x *Value) GetDateValue() *DateValue {
  698. if x != nil {
  699. if x, ok := x.Kind.(*Value_DateValue); ok {
  700. return x.DateValue
  701. }
  702. }
  703. return nil
  704. }
  705. func (x *Value) GetDecimalValue() *DecimalValue {
  706. if x != nil {
  707. if x, ok := x.Kind.(*Value_DecimalValue); ok {
  708. return x.DecimalValue
  709. }
  710. }
  711. return nil
  712. }
  713. func (x *Value) GetTimeValue() *TimeValue {
  714. if x != nil {
  715. if x, ok := x.Kind.(*Value_TimeValue); ok {
  716. return x.TimeValue
  717. }
  718. }
  719. return nil
  720. }
  721. func (x *Value) GetListValue() *ListValue {
  722. if x != nil {
  723. if x, ok := x.Kind.(*Value_ListValue); ok {
  724. return x.ListValue
  725. }
  726. }
  727. return nil
  728. }
  729. func (x *Value) GetRecordValue() *RecordValue {
  730. if x != nil {
  731. if x, ok := x.Kind.(*Value_RecordValue); ok {
  732. return x.RecordValue
  733. }
  734. }
  735. return nil
  736. }
  737. type isValue_Kind interface {
  738. isValue_Kind()
  739. }
  740. type Value_BoolValue struct {
  741. BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
  742. }
  743. type Value_Int32Value struct {
  744. Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
  745. }
  746. type Value_Int64Value struct {
  747. Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
  748. }
  749. type Value_FloatValue struct {
  750. FloatValue float32 `protobuf:"fixed32,4,opt,name=float_value,json=floatValue,proto3,oneof"`
  751. }
  752. type Value_DoubleValue struct {
  753. DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
  754. }
  755. type Value_BytesValue struct {
  756. BytesValue []byte `protobuf:"bytes,6,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
  757. }
  758. type Value_StringValue struct {
  759. StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof"`
  760. }
  761. type Value_TimestampValue struct {
  762. // Parquet logical type values
  763. TimestampValue *TimestampValue `protobuf:"bytes,8,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
  764. }
  765. type Value_DateValue struct {
  766. DateValue *DateValue `protobuf:"bytes,9,opt,name=date_value,json=dateValue,proto3,oneof"`
  767. }
  768. type Value_DecimalValue struct {
  769. DecimalValue *DecimalValue `protobuf:"bytes,10,opt,name=decimal_value,json=decimalValue,proto3,oneof"`
  770. }
  771. type Value_TimeValue struct {
  772. TimeValue *TimeValue `protobuf:"bytes,11,opt,name=time_value,json=timeValue,proto3,oneof"`
  773. }
  774. type Value_ListValue struct {
  775. // Complex types
  776. ListValue *ListValue `protobuf:"bytes,14,opt,name=list_value,json=listValue,proto3,oneof"`
  777. }
  778. type Value_RecordValue struct {
  779. RecordValue *RecordValue `protobuf:"bytes,15,opt,name=record_value,json=recordValue,proto3,oneof"`
  780. }
  781. func (*Value_BoolValue) isValue_Kind() {}
  782. func (*Value_Int32Value) isValue_Kind() {}
  783. func (*Value_Int64Value) isValue_Kind() {}
  784. func (*Value_FloatValue) isValue_Kind() {}
  785. func (*Value_DoubleValue) isValue_Kind() {}
  786. func (*Value_BytesValue) isValue_Kind() {}
  787. func (*Value_StringValue) isValue_Kind() {}
  788. func (*Value_TimestampValue) isValue_Kind() {}
  789. func (*Value_DateValue) isValue_Kind() {}
  790. func (*Value_DecimalValue) isValue_Kind() {}
  791. func (*Value_TimeValue) isValue_Kind() {}
  792. func (*Value_ListValue) isValue_Kind() {}
  793. func (*Value_RecordValue) isValue_Kind() {}
  794. // Parquet logical type value messages
  795. type TimestampValue struct {
  796. state protoimpl.MessageState `protogen:"open.v1"`
  797. TimestampMicros int64 `protobuf:"varint,1,opt,name=timestamp_micros,json=timestampMicros,proto3" json:"timestamp_micros,omitempty"` // Microseconds since Unix epoch (UTC)
  798. IsUtc bool `protobuf:"varint,2,opt,name=is_utc,json=isUtc,proto3" json:"is_utc,omitempty"` // True if UTC, false if local time
  799. unknownFields protoimpl.UnknownFields
  800. sizeCache protoimpl.SizeCache
  801. }
  802. func (x *TimestampValue) Reset() {
  803. *x = TimestampValue{}
  804. mi := &file_weed_pb_mq_schema_proto_msgTypes[10]
  805. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  806. ms.StoreMessageInfo(mi)
  807. }
  808. func (x *TimestampValue) String() string {
  809. return protoimpl.X.MessageStringOf(x)
  810. }
  811. func (*TimestampValue) ProtoMessage() {}
  812. func (x *TimestampValue) ProtoReflect() protoreflect.Message {
  813. mi := &file_weed_pb_mq_schema_proto_msgTypes[10]
  814. if x != nil {
  815. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  816. if ms.LoadMessageInfo() == nil {
  817. ms.StoreMessageInfo(mi)
  818. }
  819. return ms
  820. }
  821. return mi.MessageOf(x)
  822. }
  823. // Deprecated: Use TimestampValue.ProtoReflect.Descriptor instead.
  824. func (*TimestampValue) Descriptor() ([]byte, []int) {
  825. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{10}
  826. }
  827. func (x *TimestampValue) GetTimestampMicros() int64 {
  828. if x != nil {
  829. return x.TimestampMicros
  830. }
  831. return 0
  832. }
  833. func (x *TimestampValue) GetIsUtc() bool {
  834. if x != nil {
  835. return x.IsUtc
  836. }
  837. return false
  838. }
  839. type DateValue struct {
  840. state protoimpl.MessageState `protogen:"open.v1"`
  841. DaysSinceEpoch int32 `protobuf:"varint,1,opt,name=days_since_epoch,json=daysSinceEpoch,proto3" json:"days_since_epoch,omitempty"` // Days since Unix epoch (1970-01-01)
  842. unknownFields protoimpl.UnknownFields
  843. sizeCache protoimpl.SizeCache
  844. }
  845. func (x *DateValue) Reset() {
  846. *x = DateValue{}
  847. mi := &file_weed_pb_mq_schema_proto_msgTypes[11]
  848. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  849. ms.StoreMessageInfo(mi)
  850. }
  851. func (x *DateValue) String() string {
  852. return protoimpl.X.MessageStringOf(x)
  853. }
  854. func (*DateValue) ProtoMessage() {}
  855. func (x *DateValue) ProtoReflect() protoreflect.Message {
  856. mi := &file_weed_pb_mq_schema_proto_msgTypes[11]
  857. if x != nil {
  858. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  859. if ms.LoadMessageInfo() == nil {
  860. ms.StoreMessageInfo(mi)
  861. }
  862. return ms
  863. }
  864. return mi.MessageOf(x)
  865. }
  866. // Deprecated: Use DateValue.ProtoReflect.Descriptor instead.
  867. func (*DateValue) Descriptor() ([]byte, []int) {
  868. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{11}
  869. }
  870. func (x *DateValue) GetDaysSinceEpoch() int32 {
  871. if x != nil {
  872. return x.DaysSinceEpoch
  873. }
  874. return 0
  875. }
  876. type DecimalValue struct {
  877. state protoimpl.MessageState `protogen:"open.v1"`
  878. Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Arbitrary precision decimal as bytes
  879. Precision int32 `protobuf:"varint,2,opt,name=precision,proto3" json:"precision,omitempty"` // Total number of digits
  880. Scale int32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"` // Number of digits after decimal point
  881. unknownFields protoimpl.UnknownFields
  882. sizeCache protoimpl.SizeCache
  883. }
  884. func (x *DecimalValue) Reset() {
  885. *x = DecimalValue{}
  886. mi := &file_weed_pb_mq_schema_proto_msgTypes[12]
  887. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  888. ms.StoreMessageInfo(mi)
  889. }
  890. func (x *DecimalValue) String() string {
  891. return protoimpl.X.MessageStringOf(x)
  892. }
  893. func (*DecimalValue) ProtoMessage() {}
  894. func (x *DecimalValue) ProtoReflect() protoreflect.Message {
  895. mi := &file_weed_pb_mq_schema_proto_msgTypes[12]
  896. if x != nil {
  897. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  898. if ms.LoadMessageInfo() == nil {
  899. ms.StoreMessageInfo(mi)
  900. }
  901. return ms
  902. }
  903. return mi.MessageOf(x)
  904. }
  905. // Deprecated: Use DecimalValue.ProtoReflect.Descriptor instead.
  906. func (*DecimalValue) Descriptor() ([]byte, []int) {
  907. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{12}
  908. }
  909. func (x *DecimalValue) GetValue() []byte {
  910. if x != nil {
  911. return x.Value
  912. }
  913. return nil
  914. }
  915. func (x *DecimalValue) GetPrecision() int32 {
  916. if x != nil {
  917. return x.Precision
  918. }
  919. return 0
  920. }
  921. func (x *DecimalValue) GetScale() int32 {
  922. if x != nil {
  923. return x.Scale
  924. }
  925. return 0
  926. }
  927. type TimeValue struct {
  928. state protoimpl.MessageState `protogen:"open.v1"`
  929. TimeMicros int64 `protobuf:"varint,1,opt,name=time_micros,json=timeMicros,proto3" json:"time_micros,omitempty"` // Microseconds since midnight
  930. unknownFields protoimpl.UnknownFields
  931. sizeCache protoimpl.SizeCache
  932. }
  933. func (x *TimeValue) Reset() {
  934. *x = TimeValue{}
  935. mi := &file_weed_pb_mq_schema_proto_msgTypes[13]
  936. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  937. ms.StoreMessageInfo(mi)
  938. }
  939. func (x *TimeValue) String() string {
  940. return protoimpl.X.MessageStringOf(x)
  941. }
  942. func (*TimeValue) ProtoMessage() {}
  943. func (x *TimeValue) ProtoReflect() protoreflect.Message {
  944. mi := &file_weed_pb_mq_schema_proto_msgTypes[13]
  945. if x != nil {
  946. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  947. if ms.LoadMessageInfo() == nil {
  948. ms.StoreMessageInfo(mi)
  949. }
  950. return ms
  951. }
  952. return mi.MessageOf(x)
  953. }
  954. // Deprecated: Use TimeValue.ProtoReflect.Descriptor instead.
  955. func (*TimeValue) Descriptor() ([]byte, []int) {
  956. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{13}
  957. }
  958. func (x *TimeValue) GetTimeMicros() int64 {
  959. if x != nil {
  960. return x.TimeMicros
  961. }
  962. return 0
  963. }
  964. type ListValue struct {
  965. state protoimpl.MessageState `protogen:"open.v1"`
  966. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  967. unknownFields protoimpl.UnknownFields
  968. sizeCache protoimpl.SizeCache
  969. }
  970. func (x *ListValue) Reset() {
  971. *x = ListValue{}
  972. mi := &file_weed_pb_mq_schema_proto_msgTypes[14]
  973. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  974. ms.StoreMessageInfo(mi)
  975. }
  976. func (x *ListValue) String() string {
  977. return protoimpl.X.MessageStringOf(x)
  978. }
  979. func (*ListValue) ProtoMessage() {}
  980. func (x *ListValue) ProtoReflect() protoreflect.Message {
  981. mi := &file_weed_pb_mq_schema_proto_msgTypes[14]
  982. if x != nil {
  983. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  984. if ms.LoadMessageInfo() == nil {
  985. ms.StoreMessageInfo(mi)
  986. }
  987. return ms
  988. }
  989. return mi.MessageOf(x)
  990. }
  991. // Deprecated: Use ListValue.ProtoReflect.Descriptor instead.
  992. func (*ListValue) Descriptor() ([]byte, []int) {
  993. return file_weed_pb_mq_schema_proto_rawDescGZIP(), []int{14}
  994. }
  995. func (x *ListValue) GetValues() []*Value {
  996. if x != nil {
  997. return x.Values
  998. }
  999. return nil
  1000. }
  1001. var File_weed_pb_mq_schema_proto protoreflect.FileDescriptor
  1002. const file_weed_pb_mq_schema_proto_rawDesc = "" +
  1003. "\n" +
  1004. "\x17weed/pb/mq_schema.proto\x12\tschema_pb\"9\n" +
  1005. "\x05Topic\x12\x1c\n" +
  1006. "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" +
  1007. "\x04name\x18\x02 \x01(\tR\x04name\"\x8a\x01\n" +
  1008. "\tPartition\x12\x1b\n" +
  1009. "\tring_size\x18\x01 \x01(\x05R\bringSize\x12\x1f\n" +
  1010. "\vrange_start\x18\x02 \x01(\x05R\n" +
  1011. "rangeStart\x12\x1d\n" +
  1012. "\n" +
  1013. "range_stop\x18\x03 \x01(\x05R\trangeStop\x12 \n" +
  1014. "\funix_time_ns\x18\x04 \x01(\x03R\n" +
  1015. "unixTimeNs\"y\n" +
  1016. "\x06Offset\x12&\n" +
  1017. "\x05topic\x18\x01 \x01(\v2\x10.schema_pb.TopicR\x05topic\x12G\n" +
  1018. "\x11partition_offsets\x18\x02 \x03(\v2\x1a.schema_pb.PartitionOffsetR\x10partitionOffsets\"e\n" +
  1019. "\x0fPartitionOffset\x122\n" +
  1020. "\tpartition\x18\x01 \x01(\v2\x14.schema_pb.PartitionR\tpartition\x12\x1e\n" +
  1021. "\vstart_ts_ns\x18\x02 \x01(\x03R\tstartTsNs\"6\n" +
  1022. "\n" +
  1023. "RecordType\x12(\n" +
  1024. "\x06fields\x18\x01 \x03(\v2\x10.schema_pb.FieldR\x06fields\"\xa3\x01\n" +
  1025. "\x05Field\x12\x12\n" +
  1026. "\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n" +
  1027. "\vfield_index\x18\x02 \x01(\x05R\n" +
  1028. "fieldIndex\x12#\n" +
  1029. "\x04type\x18\x03 \x01(\v2\x0f.schema_pb.TypeR\x04type\x12\x1f\n" +
  1030. "\vis_repeated\x18\x04 \x01(\bR\n" +
  1031. "isRepeated\x12\x1f\n" +
  1032. "\vis_required\x18\x05 \x01(\bR\n" +
  1033. "isRequired\"\xb6\x01\n" +
  1034. "\x04Type\x128\n" +
  1035. "\vscalar_type\x18\x01 \x01(\x0e2\x15.schema_pb.ScalarTypeH\x00R\n" +
  1036. "scalarType\x128\n" +
  1037. "\vrecord_type\x18\x02 \x01(\v2\x15.schema_pb.RecordTypeH\x00R\n" +
  1038. "recordType\x122\n" +
  1039. "\tlist_type\x18\x03 \x01(\v2\x13.schema_pb.ListTypeH\x00R\blistTypeB\x06\n" +
  1040. "\x04kind\">\n" +
  1041. "\bListType\x122\n" +
  1042. "\felement_type\x18\x01 \x01(\v2\x0f.schema_pb.TypeR\velementType\"\x96\x01\n" +
  1043. "\vRecordValue\x12:\n" +
  1044. "\x06fields\x18\x01 \x03(\v2\".schema_pb.RecordValue.FieldsEntryR\x06fields\x1aK\n" +
  1045. "\vFieldsEntry\x12\x10\n" +
  1046. "\x03key\x18\x01 \x01(\tR\x03key\x12&\n" +
  1047. "\x05value\x18\x02 \x01(\v2\x10.schema_pb.ValueR\x05value:\x028\x01\"\xee\x04\n" +
  1048. "\x05Value\x12\x1f\n" +
  1049. "\n" +
  1050. "bool_value\x18\x01 \x01(\bH\x00R\tboolValue\x12!\n" +
  1051. "\vint32_value\x18\x02 \x01(\x05H\x00R\n" +
  1052. "int32Value\x12!\n" +
  1053. "\vint64_value\x18\x03 \x01(\x03H\x00R\n" +
  1054. "int64Value\x12!\n" +
  1055. "\vfloat_value\x18\x04 \x01(\x02H\x00R\n" +
  1056. "floatValue\x12#\n" +
  1057. "\fdouble_value\x18\x05 \x01(\x01H\x00R\vdoubleValue\x12!\n" +
  1058. "\vbytes_value\x18\x06 \x01(\fH\x00R\n" +
  1059. "bytesValue\x12#\n" +
  1060. "\fstring_value\x18\a \x01(\tH\x00R\vstringValue\x12D\n" +
  1061. "\x0ftimestamp_value\x18\b \x01(\v2\x19.schema_pb.TimestampValueH\x00R\x0etimestampValue\x125\n" +
  1062. "\n" +
  1063. "date_value\x18\t \x01(\v2\x14.schema_pb.DateValueH\x00R\tdateValue\x12>\n" +
  1064. "\rdecimal_value\x18\n" +
  1065. " \x01(\v2\x17.schema_pb.DecimalValueH\x00R\fdecimalValue\x125\n" +
  1066. "\n" +
  1067. "time_value\x18\v \x01(\v2\x14.schema_pb.TimeValueH\x00R\ttimeValue\x125\n" +
  1068. "\n" +
  1069. "list_value\x18\x0e \x01(\v2\x14.schema_pb.ListValueH\x00R\tlistValue\x12;\n" +
  1070. "\frecord_value\x18\x0f \x01(\v2\x16.schema_pb.RecordValueH\x00R\vrecordValueB\x06\n" +
  1071. "\x04kind\"R\n" +
  1072. "\x0eTimestampValue\x12)\n" +
  1073. "\x10timestamp_micros\x18\x01 \x01(\x03R\x0ftimestampMicros\x12\x15\n" +
  1074. "\x06is_utc\x18\x02 \x01(\bR\x05isUtc\"5\n" +
  1075. "\tDateValue\x12(\n" +
  1076. "\x10days_since_epoch\x18\x01 \x01(\x05R\x0edaysSinceEpoch\"X\n" +
  1077. "\fDecimalValue\x12\x14\n" +
  1078. "\x05value\x18\x01 \x01(\fR\x05value\x12\x1c\n" +
  1079. "\tprecision\x18\x02 \x01(\x05R\tprecision\x12\x14\n" +
  1080. "\x05scale\x18\x03 \x01(\x05R\x05scale\",\n" +
  1081. "\tTimeValue\x12\x1f\n" +
  1082. "\vtime_micros\x18\x01 \x01(\x03R\n" +
  1083. "timeMicros\"5\n" +
  1084. "\tListValue\x12(\n" +
  1085. "\x06values\x18\x01 \x03(\v2\x10.schema_pb.ValueR\x06values*w\n" +
  1086. "\n" +
  1087. "OffsetType\x12\x16\n" +
  1088. "\x12RESUME_OR_EARLIEST\x10\x00\x12\x15\n" +
  1089. "\x11RESET_TO_EARLIEST\x10\x05\x12\x0f\n" +
  1090. "\vEXACT_TS_NS\x10\n" +
  1091. "\x12\x13\n" +
  1092. "\x0fRESET_TO_LATEST\x10\x0f\x12\x14\n" +
  1093. "\x10RESUME_OR_LATEST\x10\x14*\x8a\x01\n" +
  1094. "\n" +
  1095. "ScalarType\x12\b\n" +
  1096. "\x04BOOL\x10\x00\x12\t\n" +
  1097. "\x05INT32\x10\x01\x12\t\n" +
  1098. "\x05INT64\x10\x03\x12\t\n" +
  1099. "\x05FLOAT\x10\x04\x12\n" +
  1100. "\n" +
  1101. "\x06DOUBLE\x10\x05\x12\t\n" +
  1102. "\x05BYTES\x10\x06\x12\n" +
  1103. "\n" +
  1104. "\x06STRING\x10\a\x12\r\n" +
  1105. "\tTIMESTAMP\x10\b\x12\b\n" +
  1106. "\x04DATE\x10\t\x12\v\n" +
  1107. "\aDECIMAL\x10\n" +
  1108. "\x12\b\n" +
  1109. "\x04TIME\x10\vB2Z0github.com/seaweedfs/seaweedfs/weed/pb/schema_pbb\x06proto3"
  1110. var (
  1111. file_weed_pb_mq_schema_proto_rawDescOnce sync.Once
  1112. file_weed_pb_mq_schema_proto_rawDescData []byte
  1113. )
  1114. func file_weed_pb_mq_schema_proto_rawDescGZIP() []byte {
  1115. file_weed_pb_mq_schema_proto_rawDescOnce.Do(func() {
  1116. file_weed_pb_mq_schema_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_weed_pb_mq_schema_proto_rawDesc), len(file_weed_pb_mq_schema_proto_rawDesc)))
  1117. })
  1118. return file_weed_pb_mq_schema_proto_rawDescData
  1119. }
  1120. var file_weed_pb_mq_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  1121. var file_weed_pb_mq_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
  1122. var file_weed_pb_mq_schema_proto_goTypes = []any{
  1123. (OffsetType)(0), // 0: schema_pb.OffsetType
  1124. (ScalarType)(0), // 1: schema_pb.ScalarType
  1125. (*Topic)(nil), // 2: schema_pb.Topic
  1126. (*Partition)(nil), // 3: schema_pb.Partition
  1127. (*Offset)(nil), // 4: schema_pb.Offset
  1128. (*PartitionOffset)(nil), // 5: schema_pb.PartitionOffset
  1129. (*RecordType)(nil), // 6: schema_pb.RecordType
  1130. (*Field)(nil), // 7: schema_pb.Field
  1131. (*Type)(nil), // 8: schema_pb.Type
  1132. (*ListType)(nil), // 9: schema_pb.ListType
  1133. (*RecordValue)(nil), // 10: schema_pb.RecordValue
  1134. (*Value)(nil), // 11: schema_pb.Value
  1135. (*TimestampValue)(nil), // 12: schema_pb.TimestampValue
  1136. (*DateValue)(nil), // 13: schema_pb.DateValue
  1137. (*DecimalValue)(nil), // 14: schema_pb.DecimalValue
  1138. (*TimeValue)(nil), // 15: schema_pb.TimeValue
  1139. (*ListValue)(nil), // 16: schema_pb.ListValue
  1140. nil, // 17: schema_pb.RecordValue.FieldsEntry
  1141. }
  1142. var file_weed_pb_mq_schema_proto_depIdxs = []int32{
  1143. 2, // 0: schema_pb.Offset.topic:type_name -> schema_pb.Topic
  1144. 5, // 1: schema_pb.Offset.partition_offsets:type_name -> schema_pb.PartitionOffset
  1145. 3, // 2: schema_pb.PartitionOffset.partition:type_name -> schema_pb.Partition
  1146. 7, // 3: schema_pb.RecordType.fields:type_name -> schema_pb.Field
  1147. 8, // 4: schema_pb.Field.type:type_name -> schema_pb.Type
  1148. 1, // 5: schema_pb.Type.scalar_type:type_name -> schema_pb.ScalarType
  1149. 6, // 6: schema_pb.Type.record_type:type_name -> schema_pb.RecordType
  1150. 9, // 7: schema_pb.Type.list_type:type_name -> schema_pb.ListType
  1151. 8, // 8: schema_pb.ListType.element_type:type_name -> schema_pb.Type
  1152. 17, // 9: schema_pb.RecordValue.fields:type_name -> schema_pb.RecordValue.FieldsEntry
  1153. 12, // 10: schema_pb.Value.timestamp_value:type_name -> schema_pb.TimestampValue
  1154. 13, // 11: schema_pb.Value.date_value:type_name -> schema_pb.DateValue
  1155. 14, // 12: schema_pb.Value.decimal_value:type_name -> schema_pb.DecimalValue
  1156. 15, // 13: schema_pb.Value.time_value:type_name -> schema_pb.TimeValue
  1157. 16, // 14: schema_pb.Value.list_value:type_name -> schema_pb.ListValue
  1158. 10, // 15: schema_pb.Value.record_value:type_name -> schema_pb.RecordValue
  1159. 11, // 16: schema_pb.ListValue.values:type_name -> schema_pb.Value
  1160. 11, // 17: schema_pb.RecordValue.FieldsEntry.value:type_name -> schema_pb.Value
  1161. 18, // [18:18] is the sub-list for method output_type
  1162. 18, // [18:18] is the sub-list for method input_type
  1163. 18, // [18:18] is the sub-list for extension type_name
  1164. 18, // [18:18] is the sub-list for extension extendee
  1165. 0, // [0:18] is the sub-list for field type_name
  1166. }
  1167. func init() { file_weed_pb_mq_schema_proto_init() }
  1168. func file_weed_pb_mq_schema_proto_init() {
  1169. if File_weed_pb_mq_schema_proto != nil {
  1170. return
  1171. }
  1172. file_weed_pb_mq_schema_proto_msgTypes[6].OneofWrappers = []any{
  1173. (*Type_ScalarType)(nil),
  1174. (*Type_RecordType)(nil),
  1175. (*Type_ListType)(nil),
  1176. }
  1177. file_weed_pb_mq_schema_proto_msgTypes[9].OneofWrappers = []any{
  1178. (*Value_BoolValue)(nil),
  1179. (*Value_Int32Value)(nil),
  1180. (*Value_Int64Value)(nil),
  1181. (*Value_FloatValue)(nil),
  1182. (*Value_DoubleValue)(nil),
  1183. (*Value_BytesValue)(nil),
  1184. (*Value_StringValue)(nil),
  1185. (*Value_TimestampValue)(nil),
  1186. (*Value_DateValue)(nil),
  1187. (*Value_DecimalValue)(nil),
  1188. (*Value_TimeValue)(nil),
  1189. (*Value_ListValue)(nil),
  1190. (*Value_RecordValue)(nil),
  1191. }
  1192. type x struct{}
  1193. out := protoimpl.TypeBuilder{
  1194. File: protoimpl.DescBuilder{
  1195. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1196. RawDescriptor: unsafe.Slice(unsafe.StringData(file_weed_pb_mq_schema_proto_rawDesc), len(file_weed_pb_mq_schema_proto_rawDesc)),
  1197. NumEnums: 2,
  1198. NumMessages: 16,
  1199. NumExtensions: 0,
  1200. NumServices: 0,
  1201. },
  1202. GoTypes: file_weed_pb_mq_schema_proto_goTypes,
  1203. DependencyIndexes: file_weed_pb_mq_schema_proto_depIdxs,
  1204. EnumInfos: file_weed_pb_mq_schema_proto_enumTypes,
  1205. MessageInfos: file_weed_pb_mq_schema_proto_msgTypes,
  1206. }.Build()
  1207. File_weed_pb_mq_schema_proto = out.File
  1208. file_weed_pb_mq_schema_proto_goTypes = nil
  1209. file_weed_pb_mq_schema_proto_depIdxs = nil
  1210. }