datahub.pb.go 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0-devel
  4. // protoc v3.13.0
  5. // source: datahub.proto
  6. package pbmodel
  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 StringPair struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
  28. Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
  29. }
  30. func (x *StringPair) Reset() {
  31. *x = StringPair{}
  32. if protoimpl.UnsafeEnabled {
  33. mi := &file_datahub_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. }
  38. func (x *StringPair) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*StringPair) ProtoMessage() {}
  42. func (x *StringPair) ProtoReflect() protoreflect.Message {
  43. mi := &file_datahub_proto_msgTypes[0]
  44. if protoimpl.UnsafeEnabled && x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use StringPair.ProtoReflect.Descriptor instead.
  54. func (*StringPair) Descriptor() ([]byte, []int) {
  55. return file_datahub_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *StringPair) GetKey() string {
  58. if x != nil && x.Key != nil {
  59. return *x.Key
  60. }
  61. return ""
  62. }
  63. func (x *StringPair) GetValue() string {
  64. if x != nil && x.Value != nil {
  65. return *x.Value
  66. }
  67. return ""
  68. }
  69. type FieldData struct {
  70. state protoimpl.MessageState
  71. sizeCache protoimpl.SizeCache
  72. unknownFields protoimpl.UnknownFields
  73. Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
  74. }
  75. func (x *FieldData) Reset() {
  76. *x = FieldData{}
  77. if protoimpl.UnsafeEnabled {
  78. mi := &file_datahub_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. }
  83. func (x *FieldData) String() string {
  84. return protoimpl.X.MessageStringOf(x)
  85. }
  86. func (*FieldData) ProtoMessage() {}
  87. func (x *FieldData) ProtoReflect() protoreflect.Message {
  88. mi := &file_datahub_proto_msgTypes[1]
  89. if protoimpl.UnsafeEnabled && x != nil {
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. if ms.LoadMessageInfo() == nil {
  92. ms.StoreMessageInfo(mi)
  93. }
  94. return ms
  95. }
  96. return mi.MessageOf(x)
  97. }
  98. // Deprecated: Use FieldData.ProtoReflect.Descriptor instead.
  99. func (*FieldData) Descriptor() ([]byte, []int) {
  100. return file_datahub_proto_rawDescGZIP(), []int{1}
  101. }
  102. func (x *FieldData) GetValue() []byte {
  103. if x != nil {
  104. return x.Value
  105. }
  106. return nil
  107. }
  108. type RecordAttributes struct {
  109. state protoimpl.MessageState
  110. sizeCache protoimpl.SizeCache
  111. unknownFields protoimpl.UnknownFields
  112. Attributes []*StringPair `protobuf:"bytes,1,rep,name=attributes" json:"attributes,omitempty"`
  113. }
  114. func (x *RecordAttributes) Reset() {
  115. *x = RecordAttributes{}
  116. if protoimpl.UnsafeEnabled {
  117. mi := &file_datahub_proto_msgTypes[2]
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. ms.StoreMessageInfo(mi)
  120. }
  121. }
  122. func (x *RecordAttributes) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*RecordAttributes) ProtoMessage() {}
  126. func (x *RecordAttributes) ProtoReflect() protoreflect.Message {
  127. mi := &file_datahub_proto_msgTypes[2]
  128. if protoimpl.UnsafeEnabled && x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use RecordAttributes.ProtoReflect.Descriptor instead.
  138. func (*RecordAttributes) Descriptor() ([]byte, []int) {
  139. return file_datahub_proto_rawDescGZIP(), []int{2}
  140. }
  141. func (x *RecordAttributes) GetAttributes() []*StringPair {
  142. if x != nil {
  143. return x.Attributes
  144. }
  145. return nil
  146. }
  147. type RecordData struct {
  148. state protoimpl.MessageState
  149. sizeCache protoimpl.SizeCache
  150. unknownFields protoimpl.UnknownFields
  151. Data []*FieldData `protobuf:"bytes,1,rep,name=data" json:"data,omitempty"`
  152. }
  153. func (x *RecordData) Reset() {
  154. *x = RecordData{}
  155. if protoimpl.UnsafeEnabled {
  156. mi := &file_datahub_proto_msgTypes[3]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. }
  161. func (x *RecordData) String() string {
  162. return protoimpl.X.MessageStringOf(x)
  163. }
  164. func (*RecordData) ProtoMessage() {}
  165. func (x *RecordData) ProtoReflect() protoreflect.Message {
  166. mi := &file_datahub_proto_msgTypes[3]
  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 RecordData.ProtoReflect.Descriptor instead.
  177. func (*RecordData) Descriptor() ([]byte, []int) {
  178. return file_datahub_proto_rawDescGZIP(), []int{3}
  179. }
  180. func (x *RecordData) GetData() []*FieldData {
  181. if x != nil {
  182. return x.Data
  183. }
  184. return nil
  185. }
  186. type RecordEntry struct {
  187. state protoimpl.MessageState
  188. sizeCache protoimpl.SizeCache
  189. unknownFields protoimpl.UnknownFields
  190. ShardId *string `protobuf:"bytes,1,opt,name=shard_id,json=shardId" json:"shard_id,omitempty"`
  191. HashKey *string `protobuf:"bytes,2,opt,name=hash_key,json=hashKey" json:"hash_key,omitempty"`
  192. PartitionKey *string `protobuf:"bytes,3,opt,name=partition_key,json=partitionKey" json:"partition_key,omitempty"`
  193. Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
  194. NextCursor *string `protobuf:"bytes,5,opt,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
  195. Sequence *int64 `protobuf:"varint,6,opt,name=sequence" json:"sequence,omitempty"`
  196. SystemTime *int64 `protobuf:"varint,7,opt,name=system_time,json=systemTime" json:"system_time,omitempty"`
  197. Attributes *RecordAttributes `protobuf:"bytes,8,opt,name=attributes" json:"attributes,omitempty"`
  198. Data *RecordData `protobuf:"bytes,9,req,name=data" json:"data,omitempty"`
  199. }
  200. func (x *RecordEntry) Reset() {
  201. *x = RecordEntry{}
  202. if protoimpl.UnsafeEnabled {
  203. mi := &file_datahub_proto_msgTypes[4]
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. ms.StoreMessageInfo(mi)
  206. }
  207. }
  208. func (x *RecordEntry) String() string {
  209. return protoimpl.X.MessageStringOf(x)
  210. }
  211. func (*RecordEntry) ProtoMessage() {}
  212. func (x *RecordEntry) ProtoReflect() protoreflect.Message {
  213. mi := &file_datahub_proto_msgTypes[4]
  214. if protoimpl.UnsafeEnabled && x != nil {
  215. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  216. if ms.LoadMessageInfo() == nil {
  217. ms.StoreMessageInfo(mi)
  218. }
  219. return ms
  220. }
  221. return mi.MessageOf(x)
  222. }
  223. // Deprecated: Use RecordEntry.ProtoReflect.Descriptor instead.
  224. func (*RecordEntry) Descriptor() ([]byte, []int) {
  225. return file_datahub_proto_rawDescGZIP(), []int{4}
  226. }
  227. func (x *RecordEntry) GetShardId() string {
  228. if x != nil && x.ShardId != nil {
  229. return *x.ShardId
  230. }
  231. return ""
  232. }
  233. func (x *RecordEntry) GetHashKey() string {
  234. if x != nil && x.HashKey != nil {
  235. return *x.HashKey
  236. }
  237. return ""
  238. }
  239. func (x *RecordEntry) GetPartitionKey() string {
  240. if x != nil && x.PartitionKey != nil {
  241. return *x.PartitionKey
  242. }
  243. return ""
  244. }
  245. func (x *RecordEntry) GetCursor() string {
  246. if x != nil && x.Cursor != nil {
  247. return *x.Cursor
  248. }
  249. return ""
  250. }
  251. func (x *RecordEntry) GetNextCursor() string {
  252. if x != nil && x.NextCursor != nil {
  253. return *x.NextCursor
  254. }
  255. return ""
  256. }
  257. func (x *RecordEntry) GetSequence() int64 {
  258. if x != nil && x.Sequence != nil {
  259. return *x.Sequence
  260. }
  261. return 0
  262. }
  263. func (x *RecordEntry) GetSystemTime() int64 {
  264. if x != nil && x.SystemTime != nil {
  265. return *x.SystemTime
  266. }
  267. return 0
  268. }
  269. func (x *RecordEntry) GetAttributes() *RecordAttributes {
  270. if x != nil {
  271. return x.Attributes
  272. }
  273. return nil
  274. }
  275. func (x *RecordEntry) GetData() *RecordData {
  276. if x != nil {
  277. return x.Data
  278. }
  279. return nil
  280. }
  281. type PutRecordsRequest struct {
  282. state protoimpl.MessageState
  283. sizeCache protoimpl.SizeCache
  284. unknownFields protoimpl.UnknownFields
  285. Records []*RecordEntry `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
  286. }
  287. func (x *PutRecordsRequest) Reset() {
  288. *x = PutRecordsRequest{}
  289. if protoimpl.UnsafeEnabled {
  290. mi := &file_datahub_proto_msgTypes[5]
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. ms.StoreMessageInfo(mi)
  293. }
  294. }
  295. func (x *PutRecordsRequest) String() string {
  296. return protoimpl.X.MessageStringOf(x)
  297. }
  298. func (*PutRecordsRequest) ProtoMessage() {}
  299. func (x *PutRecordsRequest) ProtoReflect() protoreflect.Message {
  300. mi := &file_datahub_proto_msgTypes[5]
  301. if protoimpl.UnsafeEnabled && x != nil {
  302. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  303. if ms.LoadMessageInfo() == nil {
  304. ms.StoreMessageInfo(mi)
  305. }
  306. return ms
  307. }
  308. return mi.MessageOf(x)
  309. }
  310. // Deprecated: Use PutRecordsRequest.ProtoReflect.Descriptor instead.
  311. func (*PutRecordsRequest) Descriptor() ([]byte, []int) {
  312. return file_datahub_proto_rawDescGZIP(), []int{5}
  313. }
  314. func (x *PutRecordsRequest) GetRecords() []*RecordEntry {
  315. if x != nil {
  316. return x.Records
  317. }
  318. return nil
  319. }
  320. type FailedRecord struct {
  321. state protoimpl.MessageState
  322. sizeCache protoimpl.SizeCache
  323. unknownFields protoimpl.UnknownFields
  324. Index *int32 `protobuf:"varint,1,req,name=index" json:"index,omitempty"`
  325. ErrorCode *string `protobuf:"bytes,2,opt,name=error_code,json=errorCode" json:"error_code,omitempty"`
  326. ErrorMessage *string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
  327. }
  328. func (x *FailedRecord) Reset() {
  329. *x = FailedRecord{}
  330. if protoimpl.UnsafeEnabled {
  331. mi := &file_datahub_proto_msgTypes[6]
  332. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  333. ms.StoreMessageInfo(mi)
  334. }
  335. }
  336. func (x *FailedRecord) String() string {
  337. return protoimpl.X.MessageStringOf(x)
  338. }
  339. func (*FailedRecord) ProtoMessage() {}
  340. func (x *FailedRecord) ProtoReflect() protoreflect.Message {
  341. mi := &file_datahub_proto_msgTypes[6]
  342. if protoimpl.UnsafeEnabled && x != nil {
  343. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  344. if ms.LoadMessageInfo() == nil {
  345. ms.StoreMessageInfo(mi)
  346. }
  347. return ms
  348. }
  349. return mi.MessageOf(x)
  350. }
  351. // Deprecated: Use FailedRecord.ProtoReflect.Descriptor instead.
  352. func (*FailedRecord) Descriptor() ([]byte, []int) {
  353. return file_datahub_proto_rawDescGZIP(), []int{6}
  354. }
  355. func (x *FailedRecord) GetIndex() int32 {
  356. if x != nil && x.Index != nil {
  357. return *x.Index
  358. }
  359. return 0
  360. }
  361. func (x *FailedRecord) GetErrorCode() string {
  362. if x != nil && x.ErrorCode != nil {
  363. return *x.ErrorCode
  364. }
  365. return ""
  366. }
  367. func (x *FailedRecord) GetErrorMessage() string {
  368. if x != nil && x.ErrorMessage != nil {
  369. return *x.ErrorMessage
  370. }
  371. return ""
  372. }
  373. type PutRecordsResponse struct {
  374. state protoimpl.MessageState
  375. sizeCache protoimpl.SizeCache
  376. unknownFields protoimpl.UnknownFields
  377. FailedCount *int32 `protobuf:"varint,1,opt,name=failed_count,json=failedCount" json:"failed_count,omitempty"`
  378. FailedRecords []*FailedRecord `protobuf:"bytes,2,rep,name=failed_records,json=failedRecords" json:"failed_records,omitempty"`
  379. }
  380. func (x *PutRecordsResponse) Reset() {
  381. *x = PutRecordsResponse{}
  382. if protoimpl.UnsafeEnabled {
  383. mi := &file_datahub_proto_msgTypes[7]
  384. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  385. ms.StoreMessageInfo(mi)
  386. }
  387. }
  388. func (x *PutRecordsResponse) String() string {
  389. return protoimpl.X.MessageStringOf(x)
  390. }
  391. func (*PutRecordsResponse) ProtoMessage() {}
  392. func (x *PutRecordsResponse) ProtoReflect() protoreflect.Message {
  393. mi := &file_datahub_proto_msgTypes[7]
  394. if protoimpl.UnsafeEnabled && x != nil {
  395. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  396. if ms.LoadMessageInfo() == nil {
  397. ms.StoreMessageInfo(mi)
  398. }
  399. return ms
  400. }
  401. return mi.MessageOf(x)
  402. }
  403. // Deprecated: Use PutRecordsResponse.ProtoReflect.Descriptor instead.
  404. func (*PutRecordsResponse) Descriptor() ([]byte, []int) {
  405. return file_datahub_proto_rawDescGZIP(), []int{7}
  406. }
  407. func (x *PutRecordsResponse) GetFailedCount() int32 {
  408. if x != nil && x.FailedCount != nil {
  409. return *x.FailedCount
  410. }
  411. return 0
  412. }
  413. func (x *PutRecordsResponse) GetFailedRecords() []*FailedRecord {
  414. if x != nil {
  415. return x.FailedRecords
  416. }
  417. return nil
  418. }
  419. type GetRecordsRequest struct {
  420. state protoimpl.MessageState
  421. sizeCache protoimpl.SizeCache
  422. unknownFields protoimpl.UnknownFields
  423. Cursor *string `protobuf:"bytes,1,req,name=cursor" json:"cursor,omitempty"`
  424. Limit *int32 `protobuf:"varint,2,opt,name=limit,def=1" json:"limit,omitempty"`
  425. }
  426. // Default values for GetRecordsRequest fields.
  427. const (
  428. Default_GetRecordsRequest_Limit = int32(1)
  429. )
  430. func (x *GetRecordsRequest) Reset() {
  431. *x = GetRecordsRequest{}
  432. if protoimpl.UnsafeEnabled {
  433. mi := &file_datahub_proto_msgTypes[8]
  434. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  435. ms.StoreMessageInfo(mi)
  436. }
  437. }
  438. func (x *GetRecordsRequest) String() string {
  439. return protoimpl.X.MessageStringOf(x)
  440. }
  441. func (*GetRecordsRequest) ProtoMessage() {}
  442. func (x *GetRecordsRequest) ProtoReflect() protoreflect.Message {
  443. mi := &file_datahub_proto_msgTypes[8]
  444. if protoimpl.UnsafeEnabled && x != nil {
  445. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  446. if ms.LoadMessageInfo() == nil {
  447. ms.StoreMessageInfo(mi)
  448. }
  449. return ms
  450. }
  451. return mi.MessageOf(x)
  452. }
  453. // Deprecated: Use GetRecordsRequest.ProtoReflect.Descriptor instead.
  454. func (*GetRecordsRequest) Descriptor() ([]byte, []int) {
  455. return file_datahub_proto_rawDescGZIP(), []int{8}
  456. }
  457. func (x *GetRecordsRequest) GetCursor() string {
  458. if x != nil && x.Cursor != nil {
  459. return *x.Cursor
  460. }
  461. return ""
  462. }
  463. func (x *GetRecordsRequest) GetLimit() int32 {
  464. if x != nil && x.Limit != nil {
  465. return *x.Limit
  466. }
  467. return Default_GetRecordsRequest_Limit
  468. }
  469. type GetRecordsResponse struct {
  470. state protoimpl.MessageState
  471. sizeCache protoimpl.SizeCache
  472. unknownFields protoimpl.UnknownFields
  473. NextCursor *string `protobuf:"bytes,1,req,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
  474. RecordCount *int32 `protobuf:"varint,2,req,name=record_count,json=recordCount" json:"record_count,omitempty"`
  475. StartSequence *int64 `protobuf:"varint,3,opt,name=start_sequence,json=startSequence" json:"start_sequence,omitempty"`
  476. Records []*RecordEntry `protobuf:"bytes,4,rep,name=records" json:"records,omitempty"`
  477. LatestSequence *int64 `protobuf:"varint,5,opt,name=latest_sequence,json=latestSequence,def=-1" json:"latest_sequence,omitempty"`
  478. LatestTime *int64 `protobuf:"varint,6,opt,name=latest_time,json=latestTime,def=-1" json:"latest_time,omitempty"`
  479. }
  480. // Default values for GetRecordsResponse fields.
  481. const (
  482. Default_GetRecordsResponse_LatestSequence = int64(-1)
  483. Default_GetRecordsResponse_LatestTime = int64(-1)
  484. )
  485. func (x *GetRecordsResponse) Reset() {
  486. *x = GetRecordsResponse{}
  487. if protoimpl.UnsafeEnabled {
  488. mi := &file_datahub_proto_msgTypes[9]
  489. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  490. ms.StoreMessageInfo(mi)
  491. }
  492. }
  493. func (x *GetRecordsResponse) String() string {
  494. return protoimpl.X.MessageStringOf(x)
  495. }
  496. func (*GetRecordsResponse) ProtoMessage() {}
  497. func (x *GetRecordsResponse) ProtoReflect() protoreflect.Message {
  498. mi := &file_datahub_proto_msgTypes[9]
  499. if protoimpl.UnsafeEnabled && x != nil {
  500. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  501. if ms.LoadMessageInfo() == nil {
  502. ms.StoreMessageInfo(mi)
  503. }
  504. return ms
  505. }
  506. return mi.MessageOf(x)
  507. }
  508. // Deprecated: Use GetRecordsResponse.ProtoReflect.Descriptor instead.
  509. func (*GetRecordsResponse) Descriptor() ([]byte, []int) {
  510. return file_datahub_proto_rawDescGZIP(), []int{9}
  511. }
  512. func (x *GetRecordsResponse) GetNextCursor() string {
  513. if x != nil && x.NextCursor != nil {
  514. return *x.NextCursor
  515. }
  516. return ""
  517. }
  518. func (x *GetRecordsResponse) GetRecordCount() int32 {
  519. if x != nil && x.RecordCount != nil {
  520. return *x.RecordCount
  521. }
  522. return 0
  523. }
  524. func (x *GetRecordsResponse) GetStartSequence() int64 {
  525. if x != nil && x.StartSequence != nil {
  526. return *x.StartSequence
  527. }
  528. return 0
  529. }
  530. func (x *GetRecordsResponse) GetRecords() []*RecordEntry {
  531. if x != nil {
  532. return x.Records
  533. }
  534. return nil
  535. }
  536. func (x *GetRecordsResponse) GetLatestSequence() int64 {
  537. if x != nil && x.LatestSequence != nil {
  538. return *x.LatestSequence
  539. }
  540. return Default_GetRecordsResponse_LatestSequence
  541. }
  542. func (x *GetRecordsResponse) GetLatestTime() int64 {
  543. if x != nil && x.LatestTime != nil {
  544. return *x.LatestTime
  545. }
  546. return Default_GetRecordsResponse_LatestTime
  547. }
  548. type BinaryRecordEntry struct {
  549. state protoimpl.MessageState
  550. sizeCache protoimpl.SizeCache
  551. unknownFields protoimpl.UnknownFields
  552. Cursor *string `protobuf:"bytes,1,opt,name=cursor" json:"cursor,omitempty"`
  553. NextCursor *string `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
  554. Sequence *int64 `protobuf:"varint,3,opt,name=sequence" json:"sequence,omitempty"`
  555. SystemTime *int64 `protobuf:"varint,4,opt,name=system_time,json=systemTime" json:"system_time,omitempty"`
  556. Serial *uint32 `protobuf:"varint,5,opt,name=serial,def=0" json:"serial,omitempty"`
  557. Data []byte `protobuf:"bytes,6,opt,name=data" json:"data,omitempty"`
  558. }
  559. // Default values for BinaryRecordEntry fields.
  560. const (
  561. Default_BinaryRecordEntry_Serial = uint32(0)
  562. )
  563. func (x *BinaryRecordEntry) Reset() {
  564. *x = BinaryRecordEntry{}
  565. if protoimpl.UnsafeEnabled {
  566. mi := &file_datahub_proto_msgTypes[10]
  567. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  568. ms.StoreMessageInfo(mi)
  569. }
  570. }
  571. func (x *BinaryRecordEntry) String() string {
  572. return protoimpl.X.MessageStringOf(x)
  573. }
  574. func (*BinaryRecordEntry) ProtoMessage() {}
  575. func (x *BinaryRecordEntry) ProtoReflect() protoreflect.Message {
  576. mi := &file_datahub_proto_msgTypes[10]
  577. if protoimpl.UnsafeEnabled && x != nil {
  578. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  579. if ms.LoadMessageInfo() == nil {
  580. ms.StoreMessageInfo(mi)
  581. }
  582. return ms
  583. }
  584. return mi.MessageOf(x)
  585. }
  586. // Deprecated: Use BinaryRecordEntry.ProtoReflect.Descriptor instead.
  587. func (*BinaryRecordEntry) Descriptor() ([]byte, []int) {
  588. return file_datahub_proto_rawDescGZIP(), []int{10}
  589. }
  590. func (x *BinaryRecordEntry) GetCursor() string {
  591. if x != nil && x.Cursor != nil {
  592. return *x.Cursor
  593. }
  594. return ""
  595. }
  596. func (x *BinaryRecordEntry) GetNextCursor() string {
  597. if x != nil && x.NextCursor != nil {
  598. return *x.NextCursor
  599. }
  600. return ""
  601. }
  602. func (x *BinaryRecordEntry) GetSequence() int64 {
  603. if x != nil && x.Sequence != nil {
  604. return *x.Sequence
  605. }
  606. return 0
  607. }
  608. func (x *BinaryRecordEntry) GetSystemTime() int64 {
  609. if x != nil && x.SystemTime != nil {
  610. return *x.SystemTime
  611. }
  612. return 0
  613. }
  614. func (x *BinaryRecordEntry) GetSerial() uint32 {
  615. if x != nil && x.Serial != nil {
  616. return *x.Serial
  617. }
  618. return Default_BinaryRecordEntry_Serial
  619. }
  620. func (x *BinaryRecordEntry) GetData() []byte {
  621. if x != nil {
  622. return x.Data
  623. }
  624. return nil
  625. }
  626. type PutBinaryRecordsRequest struct {
  627. state protoimpl.MessageState
  628. sizeCache protoimpl.SizeCache
  629. unknownFields protoimpl.UnknownFields
  630. Records []*BinaryRecordEntry `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
  631. }
  632. func (x *PutBinaryRecordsRequest) Reset() {
  633. *x = PutBinaryRecordsRequest{}
  634. if protoimpl.UnsafeEnabled {
  635. mi := &file_datahub_proto_msgTypes[11]
  636. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  637. ms.StoreMessageInfo(mi)
  638. }
  639. }
  640. func (x *PutBinaryRecordsRequest) String() string {
  641. return protoimpl.X.MessageStringOf(x)
  642. }
  643. func (*PutBinaryRecordsRequest) ProtoMessage() {}
  644. func (x *PutBinaryRecordsRequest) ProtoReflect() protoreflect.Message {
  645. mi := &file_datahub_proto_msgTypes[11]
  646. if protoimpl.UnsafeEnabled && x != nil {
  647. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  648. if ms.LoadMessageInfo() == nil {
  649. ms.StoreMessageInfo(mi)
  650. }
  651. return ms
  652. }
  653. return mi.MessageOf(x)
  654. }
  655. // Deprecated: Use PutBinaryRecordsRequest.ProtoReflect.Descriptor instead.
  656. func (*PutBinaryRecordsRequest) Descriptor() ([]byte, []int) {
  657. return file_datahub_proto_rawDescGZIP(), []int{11}
  658. }
  659. func (x *PutBinaryRecordsRequest) GetRecords() []*BinaryRecordEntry {
  660. if x != nil {
  661. return x.Records
  662. }
  663. return nil
  664. }
  665. type GetBinaryRecordsResponse struct {
  666. state protoimpl.MessageState
  667. sizeCache protoimpl.SizeCache
  668. unknownFields protoimpl.UnknownFields
  669. NextCursor *string `protobuf:"bytes,1,req,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
  670. RecordCount *int32 `protobuf:"varint,2,req,name=record_count,json=recordCount" json:"record_count,omitempty"`
  671. StartSequence *int64 `protobuf:"varint,3,opt,name=start_sequence,json=startSequence" json:"start_sequence,omitempty"`
  672. Records []*BinaryRecordEntry `protobuf:"bytes,4,rep,name=records" json:"records,omitempty"`
  673. LatestSequence *int64 `protobuf:"varint,5,opt,name=latest_sequence,json=latestSequence,def=-1" json:"latest_sequence,omitempty"`
  674. LatestTime *int64 `protobuf:"varint,6,opt,name=latest_time,json=latestTime,def=-1" json:"latest_time,omitempty"`
  675. }
  676. // Default values for GetBinaryRecordsResponse fields.
  677. const (
  678. Default_GetBinaryRecordsResponse_LatestSequence = int64(-1)
  679. Default_GetBinaryRecordsResponse_LatestTime = int64(-1)
  680. )
  681. func (x *GetBinaryRecordsResponse) Reset() {
  682. *x = GetBinaryRecordsResponse{}
  683. if protoimpl.UnsafeEnabled {
  684. mi := &file_datahub_proto_msgTypes[12]
  685. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  686. ms.StoreMessageInfo(mi)
  687. }
  688. }
  689. func (x *GetBinaryRecordsResponse) String() string {
  690. return protoimpl.X.MessageStringOf(x)
  691. }
  692. func (*GetBinaryRecordsResponse) ProtoMessage() {}
  693. func (x *GetBinaryRecordsResponse) ProtoReflect() protoreflect.Message {
  694. mi := &file_datahub_proto_msgTypes[12]
  695. if protoimpl.UnsafeEnabled && x != nil {
  696. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  697. if ms.LoadMessageInfo() == nil {
  698. ms.StoreMessageInfo(mi)
  699. }
  700. return ms
  701. }
  702. return mi.MessageOf(x)
  703. }
  704. // Deprecated: Use GetBinaryRecordsResponse.ProtoReflect.Descriptor instead.
  705. func (*GetBinaryRecordsResponse) Descriptor() ([]byte, []int) {
  706. return file_datahub_proto_rawDescGZIP(), []int{12}
  707. }
  708. func (x *GetBinaryRecordsResponse) GetNextCursor() string {
  709. if x != nil && x.NextCursor != nil {
  710. return *x.NextCursor
  711. }
  712. return ""
  713. }
  714. func (x *GetBinaryRecordsResponse) GetRecordCount() int32 {
  715. if x != nil && x.RecordCount != nil {
  716. return *x.RecordCount
  717. }
  718. return 0
  719. }
  720. func (x *GetBinaryRecordsResponse) GetStartSequence() int64 {
  721. if x != nil && x.StartSequence != nil {
  722. return *x.StartSequence
  723. }
  724. return 0
  725. }
  726. func (x *GetBinaryRecordsResponse) GetRecords() []*BinaryRecordEntry {
  727. if x != nil {
  728. return x.Records
  729. }
  730. return nil
  731. }
  732. func (x *GetBinaryRecordsResponse) GetLatestSequence() int64 {
  733. if x != nil && x.LatestSequence != nil {
  734. return *x.LatestSequence
  735. }
  736. return Default_GetBinaryRecordsResponse_LatestSequence
  737. }
  738. func (x *GetBinaryRecordsResponse) GetLatestTime() int64 {
  739. if x != nil && x.LatestTime != nil {
  740. return *x.LatestTime
  741. }
  742. return Default_GetBinaryRecordsResponse_LatestTime
  743. }
  744. var File_datahub_proto protoreflect.FileDescriptor
  745. var file_datahub_proto_rawDesc = []byte{
  746. 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x68, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  747. 0x07, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x34, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69,
  748. 0x6e, 0x67, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  749. 0x02, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  750. 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21,
  751. 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x76,
  752. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  753. 0x65, 0x22, 0x47, 0x0a, 0x10, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69,
  754. 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  755. 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x6d, 0x6f,
  756. 0x64, 0x65, 0x6c, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a,
  757. 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x0a, 0x52, 0x65,
  758. 0x63, 0x6f, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
  759. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
  760. 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
  761. 0x22, 0xc2, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79,
  762. 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  763. 0x28, 0x09, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x68,
  764. 0x61, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68,
  765. 0x61, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
  766. 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70,
  767. 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63,
  768. 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72,
  769. 0x73, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73,
  770. 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75,
  771. 0x72, 0x73, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  772. 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  773. 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
  774. 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d,
  775. 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18,
  776. 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e,
  777. 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73,
  778. 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x04,
  779. 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x6d,
  780. 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52,
  781. 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x43, 0x0a, 0x11, 0x50, 0x75, 0x74, 0x52, 0x65, 0x63, 0x6f,
  782. 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65,
  783. 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x62,
  784. 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72,
  785. 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x68, 0x0a, 0x0c, 0x46, 0x61,
  786. 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e,
  787. 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78,
  788. 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
  789. 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12,
  790. 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  791. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73,
  792. 0x73, 0x61, 0x67, 0x65, 0x22, 0x75, 0x0a, 0x12, 0x50, 0x75, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72,
  793. 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61,
  794. 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
  795. 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3c, 0x0a,
  796. 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18,
  797. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e,
  798. 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x0d, 0x66, 0x61,
  799. 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x44, 0x0a, 0x11, 0x47,
  800. 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  801. 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09,
  802. 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,
  803. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x01, 0x31, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69,
  804. 0x74, 0x22, 0x81, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
  805. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74,
  806. 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x0a, 0x6e,
  807. 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63,
  808. 0x6f, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x02, 0x28, 0x05, 0x52,
  809. 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e,
  810. 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03,
  811. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65,
  812. 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x04,
  813. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x52,
  814. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f,
  815. 0x72, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65,
  816. 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x2d, 0x31,
  817. 0x52, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  818. 0x12, 0x23, 0x0a, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
  819. 0x06, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x73,
  820. 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x11, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79,
  821. 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63,
  822. 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72,
  823. 0x73, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73,
  824. 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75,
  825. 0x72, 0x73, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  826. 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  827. 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
  828. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d,
  829. 0x65, 0x12, 0x19, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
  830. 0x0d, 0x3a, 0x01, 0x30, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04,
  831. 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
  832. 0x22, 0x4f, 0x0a, 0x17, 0x50, 0x75, 0x74, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x63,
  833. 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72,
  834. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70,
  835. 0x62, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x63,
  836. 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
  837. 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52,
  838. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f,
  839. 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20,
  840. 0x02, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12,
  841. 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  842. 0x02, 0x20, 0x02, 0x28, 0x05, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x75,
  843. 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75,
  844. 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72,
  845. 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x63,
  846. 0x6f, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x6d,
  847. 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72,
  848. 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12,
  849. 0x2b, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
  850. 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x0e, 0x6c, 0x61,
  851. 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0b,
  852. 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
  853. 0x03, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d,
  854. 0x65, 0x42, 0x39, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6c, 0x69, 0x79, 0x75, 0x6e, 0x2e,
  855. 0x64, 0x61, 0x74, 0x61, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x6d,
  856. 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0d, 0x44,
  857. 0x61, 0x74, 0x61, 0x68, 0x75, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73,
  858. }
  859. var (
  860. file_datahub_proto_rawDescOnce sync.Once
  861. file_datahub_proto_rawDescData = file_datahub_proto_rawDesc
  862. )
  863. func file_datahub_proto_rawDescGZIP() []byte {
  864. file_datahub_proto_rawDescOnce.Do(func() {
  865. file_datahub_proto_rawDescData = protoimpl.X.CompressGZIP(file_datahub_proto_rawDescData)
  866. })
  867. return file_datahub_proto_rawDescData
  868. }
  869. var file_datahub_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  870. var file_datahub_proto_goTypes = []interface{}{
  871. (*StringPair)(nil), // 0: pbmodel.StringPair
  872. (*FieldData)(nil), // 1: pbmodel.FieldData
  873. (*RecordAttributes)(nil), // 2: pbmodel.RecordAttributes
  874. (*RecordData)(nil), // 3: pbmodel.RecordData
  875. (*RecordEntry)(nil), // 4: pbmodel.RecordEntry
  876. (*PutRecordsRequest)(nil), // 5: pbmodel.PutRecordsRequest
  877. (*FailedRecord)(nil), // 6: pbmodel.FailedRecord
  878. (*PutRecordsResponse)(nil), // 7: pbmodel.PutRecordsResponse
  879. (*GetRecordsRequest)(nil), // 8: pbmodel.GetRecordsRequest
  880. (*GetRecordsResponse)(nil), // 9: pbmodel.GetRecordsResponse
  881. (*BinaryRecordEntry)(nil), // 10: pbmodel.BinaryRecordEntry
  882. (*PutBinaryRecordsRequest)(nil), // 11: pbmodel.PutBinaryRecordsRequest
  883. (*GetBinaryRecordsResponse)(nil), // 12: pbmodel.GetBinaryRecordsResponse
  884. }
  885. var file_datahub_proto_depIdxs = []int32{
  886. 0, // 0: pbmodel.RecordAttributes.attributes:type_name -> pbmodel.StringPair
  887. 1, // 1: pbmodel.RecordData.data:type_name -> pbmodel.FieldData
  888. 2, // 2: pbmodel.RecordEntry.attributes:type_name -> pbmodel.RecordAttributes
  889. 3, // 3: pbmodel.RecordEntry.data:type_name -> pbmodel.RecordData
  890. 4, // 4: pbmodel.PutRecordsRequest.records:type_name -> pbmodel.RecordEntry
  891. 6, // 5: pbmodel.PutRecordsResponse.failed_records:type_name -> pbmodel.FailedRecord
  892. 4, // 6: pbmodel.GetRecordsResponse.records:type_name -> pbmodel.RecordEntry
  893. 10, // 7: pbmodel.PutBinaryRecordsRequest.records:type_name -> pbmodel.BinaryRecordEntry
  894. 10, // 8: pbmodel.GetBinaryRecordsResponse.records:type_name -> pbmodel.BinaryRecordEntry
  895. 9, // [9:9] is the sub-list for method output_type
  896. 9, // [9:9] is the sub-list for method input_type
  897. 9, // [9:9] is the sub-list for extension type_name
  898. 9, // [9:9] is the sub-list for extension extendee
  899. 0, // [0:9] is the sub-list for field type_name
  900. }
  901. func init() { file_datahub_proto_init() }
  902. func file_datahub_proto_init() {
  903. if File_datahub_proto != nil {
  904. return
  905. }
  906. if !protoimpl.UnsafeEnabled {
  907. file_datahub_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  908. switch v := v.(*StringPair); i {
  909. case 0:
  910. return &v.state
  911. case 1:
  912. return &v.sizeCache
  913. case 2:
  914. return &v.unknownFields
  915. default:
  916. return nil
  917. }
  918. }
  919. file_datahub_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  920. switch v := v.(*FieldData); i {
  921. case 0:
  922. return &v.state
  923. case 1:
  924. return &v.sizeCache
  925. case 2:
  926. return &v.unknownFields
  927. default:
  928. return nil
  929. }
  930. }
  931. file_datahub_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  932. switch v := v.(*RecordAttributes); i {
  933. case 0:
  934. return &v.state
  935. case 1:
  936. return &v.sizeCache
  937. case 2:
  938. return &v.unknownFields
  939. default:
  940. return nil
  941. }
  942. }
  943. file_datahub_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  944. switch v := v.(*RecordData); i {
  945. case 0:
  946. return &v.state
  947. case 1:
  948. return &v.sizeCache
  949. case 2:
  950. return &v.unknownFields
  951. default:
  952. return nil
  953. }
  954. }
  955. file_datahub_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  956. switch v := v.(*RecordEntry); i {
  957. case 0:
  958. return &v.state
  959. case 1:
  960. return &v.sizeCache
  961. case 2:
  962. return &v.unknownFields
  963. default:
  964. return nil
  965. }
  966. }
  967. file_datahub_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  968. switch v := v.(*PutRecordsRequest); i {
  969. case 0:
  970. return &v.state
  971. case 1:
  972. return &v.sizeCache
  973. case 2:
  974. return &v.unknownFields
  975. default:
  976. return nil
  977. }
  978. }
  979. file_datahub_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  980. switch v := v.(*FailedRecord); i {
  981. case 0:
  982. return &v.state
  983. case 1:
  984. return &v.sizeCache
  985. case 2:
  986. return &v.unknownFields
  987. default:
  988. return nil
  989. }
  990. }
  991. file_datahub_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  992. switch v := v.(*PutRecordsResponse); i {
  993. case 0:
  994. return &v.state
  995. case 1:
  996. return &v.sizeCache
  997. case 2:
  998. return &v.unknownFields
  999. default:
  1000. return nil
  1001. }
  1002. }
  1003. file_datahub_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1004. switch v := v.(*GetRecordsRequest); i {
  1005. case 0:
  1006. return &v.state
  1007. case 1:
  1008. return &v.sizeCache
  1009. case 2:
  1010. return &v.unknownFields
  1011. default:
  1012. return nil
  1013. }
  1014. }
  1015. file_datahub_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1016. switch v := v.(*GetRecordsResponse); i {
  1017. case 0:
  1018. return &v.state
  1019. case 1:
  1020. return &v.sizeCache
  1021. case 2:
  1022. return &v.unknownFields
  1023. default:
  1024. return nil
  1025. }
  1026. }
  1027. file_datahub_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1028. switch v := v.(*BinaryRecordEntry); i {
  1029. case 0:
  1030. return &v.state
  1031. case 1:
  1032. return &v.sizeCache
  1033. case 2:
  1034. return &v.unknownFields
  1035. default:
  1036. return nil
  1037. }
  1038. }
  1039. file_datahub_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1040. switch v := v.(*PutBinaryRecordsRequest); i {
  1041. case 0:
  1042. return &v.state
  1043. case 1:
  1044. return &v.sizeCache
  1045. case 2:
  1046. return &v.unknownFields
  1047. default:
  1048. return nil
  1049. }
  1050. }
  1051. file_datahub_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1052. switch v := v.(*GetBinaryRecordsResponse); i {
  1053. case 0:
  1054. return &v.state
  1055. case 1:
  1056. return &v.sizeCache
  1057. case 2:
  1058. return &v.unknownFields
  1059. default:
  1060. return nil
  1061. }
  1062. }
  1063. }
  1064. type x struct{}
  1065. out := protoimpl.TypeBuilder{
  1066. File: protoimpl.DescBuilder{
  1067. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1068. RawDescriptor: file_datahub_proto_rawDesc,
  1069. NumEnums: 0,
  1070. NumMessages: 13,
  1071. NumExtensions: 0,
  1072. NumServices: 0,
  1073. },
  1074. GoTypes: file_datahub_proto_goTypes,
  1075. DependencyIndexes: file_datahub_proto_depIdxs,
  1076. MessageInfos: file_datahub_proto_msgTypes,
  1077. }.Build()
  1078. File_datahub_proto = out.File
  1079. file_datahub_proto_rawDesc = nil
  1080. file_datahub_proto_goTypes = nil
  1081. file_datahub_proto_depIdxs = nil
  1082. }