mq.pb.go 41 KB

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