You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1146 lines
38 KiB

5 years ago
3 years ago
3 years ago
5 years ago
5 years ago
2 years ago
2 years ago
5 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
5 years ago
3 years ago
5 years ago
3 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
5 years ago
3 years ago
2 years ago
2 years ago
5 years ago
3 years ago
5 years ago
3 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.4
  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. Init *PublishRequest_InitMessage `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"`
  525. Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,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) GetInit() *PublishRequest_InitMessage {
  555. if x != nil {
  556. return x.Init
  557. }
  558. return nil
  559. }
  560. func (x *PublishRequest) GetMessage() []byte {
  561. if x != nil {
  562. return x.Message
  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_InitMessage struct {
  613. state protoimpl.MessageState
  614. sizeCache protoimpl.SizeCache
  615. unknownFields protoimpl.UnknownFields
  616. Segment *Segment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"`
  617. }
  618. func (x *PublishRequest_InitMessage) Reset() {
  619. *x = PublishRequest_InitMessage{}
  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_InitMessage) String() string {
  627. return protoimpl.X.MessageStringOf(x)
  628. }
  629. func (*PublishRequest_InitMessage) ProtoMessage() {}
  630. func (x *PublishRequest_InitMessage) 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_InitMessage.ProtoReflect.Descriptor instead.
  642. func (*PublishRequest_InitMessage) Descriptor() ([]byte, []int) {
  643. return file_mq_proto_rawDescGZIP(), []int{11, 0}
  644. }
  645. func (x *PublishRequest_InitMessage) GetSegment() *Segment {
  646. if x != nil {
  647. return x.Segment
  648. }
  649. return nil
  650. }
  651. var File_mq_proto protoreflect.FileDescriptor
  652. var file_mq_proto_rawDesc = []byte{
  653. 0x0a, 0x08, 0x6d, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  654. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22, 0xe8, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x67,
  655. 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x67, 0x6d,
  656. 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  657. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74,
  658. 0x52, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x73, 0x74, 0x61,
  659. 0x72, 0x74, 0x5f, 0x74, 0x73, 0x5f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  660. 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x4e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x72, 0x6f,
  661. 0x6b, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x72, 0x6f, 0x6b,
  662. 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x74, 0x73, 0x5f, 0x6e,
  663. 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x54, 0x73, 0x4e,
  664. 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x65,
  665. 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x10, 0x70, 0x72,
  666. 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23,
  667. 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18,
  668. 0x06, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65,
  669. 0x6e, 0x74, 0x73, 0x22, 0x3a, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65,
  670. 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f,
  671. 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20,
  672. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22,
  673. 0x32, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61,
  674. 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x62,
  675. 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x6f,
  676. 0x6b, 0x65, 0x72, 0x22, 0x68, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
  677. 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20,
  678. 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a,
  679. 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01,
  680. 0x28, 0x05, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1d,
  681. 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01,
  682. 0x28, 0x05, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x74, 0x6f, 0x70, 0x22, 0x84, 0x01,
  683. 0x0a, 0x07, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d,
  684. 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61,
  685. 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63,
  686. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x0e, 0x0a,
  687. 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a,
  688. 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
  689. 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  690. 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69,
  691. 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4e, 0x0a, 0x1b, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65,
  692. 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,
  693. 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01,
  694. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  695. 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x73, 0x65, 0x67,
  696. 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x1c, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65,
  697. 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
  698. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x18,
  699. 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x22, 0x4c,
  700. 0x0a, 0x19, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74,
  701. 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x07, 0x73,
  702. 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d,
  703. 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x67, 0x6d,
  704. 0x65, 0x6e, 0x74, 0x52, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x39, 0x0a, 0x1a,
  705. 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74,
  706. 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73,
  707. 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69,
  708. 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b,
  709. 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  710. 0x74, 0x22, 0x5f, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72,
  711. 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d,
  712. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20,
  713. 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e,
  714. 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  715. 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x75,
  716. 0x6e, 0x74, 0x22, 0xa8, 0x01, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65,
  717. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20,
  718. 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  719. 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  720. 0x74, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x04, 0x69,
  721. 0x6e, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02,
  722. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x3e, 0x0a,
  723. 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x07,
  724. 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e,
  725. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x67,
  726. 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x51, 0x0a,
  727. 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  728. 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  729. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x63, 0x6b, 0x53, 0x65, 0x71, 0x75, 0x65,
  730. 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64,
  731. 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64,
  732. 0x32, 0x83, 0x04, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73,
  733. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x63, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f,
  734. 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  735. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f,
  736. 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  737. 0x1a, 0x26, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  738. 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72,
  739. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x14, 0x41, 0x73,
  740. 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65,
  741. 0x72, 0x73, 0x12, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70,
  742. 0x62, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42,
  743. 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e,
  744. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x73, 0x73,
  745. 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72,
  746. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x12, 0x43,
  747. 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
  748. 0x73, 0x12, 0x27, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  749. 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61,
  750. 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6d, 0x65, 0x73,
  751. 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53,
  752. 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70,
  753. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42,
  754. 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x12, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  755. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72,
  756. 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  757. 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43,
  758. 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65,
  759. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c,
  760. 0x69, 0x73, 0x68, 0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  761. 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  762. 0x74, 0x1a, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  763. 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  764. 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x4e, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65,
  765. 0x64, 0x66, 0x73, 0x2e, 0x6d, 0x71, 0x42, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x51, 0x75,
  766. 0x65, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  767. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73,
  768. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62,
  769. 0x2f, 0x6d, 0x71, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  770. }
  771. var (
  772. file_mq_proto_rawDescOnce sync.Once
  773. file_mq_proto_rawDescData = file_mq_proto_rawDesc
  774. )
  775. func file_mq_proto_rawDescGZIP() []byte {
  776. file_mq_proto_rawDescOnce.Do(func() {
  777. file_mq_proto_rawDescData = protoimpl.X.CompressGZIP(file_mq_proto_rawDescData)
  778. })
  779. return file_mq_proto_rawDescData
  780. }
  781. var file_mq_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
  782. var file_mq_proto_goTypes = []interface{}{
  783. (*SegmentInfo)(nil), // 0: messaging_pb.SegmentInfo
  784. (*FindBrokerLeaderRequest)(nil), // 1: messaging_pb.FindBrokerLeaderRequest
  785. (*FindBrokerLeaderResponse)(nil), // 2: messaging_pb.FindBrokerLeaderResponse
  786. (*Partition)(nil), // 3: messaging_pb.Partition
  787. (*Segment)(nil), // 4: messaging_pb.Segment
  788. (*AssignSegmentBrokersRequest)(nil), // 5: messaging_pb.AssignSegmentBrokersRequest
  789. (*AssignSegmentBrokersResponse)(nil), // 6: messaging_pb.AssignSegmentBrokersResponse
  790. (*CheckSegmentStatusRequest)(nil), // 7: messaging_pb.CheckSegmentStatusRequest
  791. (*CheckSegmentStatusResponse)(nil), // 8: messaging_pb.CheckSegmentStatusResponse
  792. (*CheckBrokerLoadRequest)(nil), // 9: messaging_pb.CheckBrokerLoadRequest
  793. (*CheckBrokerLoadResponse)(nil), // 10: messaging_pb.CheckBrokerLoadResponse
  794. (*PublishRequest)(nil), // 11: messaging_pb.PublishRequest
  795. (*PublishResponse)(nil), // 12: messaging_pb.PublishResponse
  796. (*PublishRequest_InitMessage)(nil), // 13: messaging_pb.PublishRequest.InitMessage
  797. }
  798. var file_mq_proto_depIdxs = []int32{
  799. 4, // 0: messaging_pb.SegmentInfo.segment:type_name -> messaging_pb.Segment
  800. 3, // 1: messaging_pb.Segment.partition:type_name -> messaging_pb.Partition
  801. 4, // 2: messaging_pb.AssignSegmentBrokersRequest.segment:type_name -> messaging_pb.Segment
  802. 4, // 3: messaging_pb.CheckSegmentStatusRequest.segment:type_name -> messaging_pb.Segment
  803. 13, // 4: messaging_pb.PublishRequest.init:type_name -> messaging_pb.PublishRequest.InitMessage
  804. 4, // 5: messaging_pb.PublishRequest.InitMessage.segment:type_name -> messaging_pb.Segment
  805. 1, // 6: messaging_pb.SeaweedMessaging.FindBrokerLeader:input_type -> messaging_pb.FindBrokerLeaderRequest
  806. 5, // 7: messaging_pb.SeaweedMessaging.AssignSegmentBrokers:input_type -> messaging_pb.AssignSegmentBrokersRequest
  807. 7, // 8: messaging_pb.SeaweedMessaging.CheckSegmentStatus:input_type -> messaging_pb.CheckSegmentStatusRequest
  808. 9, // 9: messaging_pb.SeaweedMessaging.CheckBrokerLoad:input_type -> messaging_pb.CheckBrokerLoadRequest
  809. 11, // 10: messaging_pb.SeaweedMessaging.Publish:input_type -> messaging_pb.PublishRequest
  810. 2, // 11: messaging_pb.SeaweedMessaging.FindBrokerLeader:output_type -> messaging_pb.FindBrokerLeaderResponse
  811. 6, // 12: messaging_pb.SeaweedMessaging.AssignSegmentBrokers:output_type -> messaging_pb.AssignSegmentBrokersResponse
  812. 8, // 13: messaging_pb.SeaweedMessaging.CheckSegmentStatus:output_type -> messaging_pb.CheckSegmentStatusResponse
  813. 10, // 14: messaging_pb.SeaweedMessaging.CheckBrokerLoad:output_type -> messaging_pb.CheckBrokerLoadResponse
  814. 12, // 15: messaging_pb.SeaweedMessaging.Publish:output_type -> messaging_pb.PublishResponse
  815. 11, // [11:16] is the sub-list for method output_type
  816. 6, // [6:11] is the sub-list for method input_type
  817. 6, // [6:6] is the sub-list for extension type_name
  818. 6, // [6:6] is the sub-list for extension extendee
  819. 0, // [0:6] is the sub-list for field type_name
  820. }
  821. func init() { file_mq_proto_init() }
  822. func file_mq_proto_init() {
  823. if File_mq_proto != nil {
  824. return
  825. }
  826. if !protoimpl.UnsafeEnabled {
  827. file_mq_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  828. switch v := v.(*SegmentInfo); i {
  829. case 0:
  830. return &v.state
  831. case 1:
  832. return &v.sizeCache
  833. case 2:
  834. return &v.unknownFields
  835. default:
  836. return nil
  837. }
  838. }
  839. file_mq_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  840. switch v := v.(*FindBrokerLeaderRequest); i {
  841. case 0:
  842. return &v.state
  843. case 1:
  844. return &v.sizeCache
  845. case 2:
  846. return &v.unknownFields
  847. default:
  848. return nil
  849. }
  850. }
  851. file_mq_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  852. switch v := v.(*FindBrokerLeaderResponse); i {
  853. case 0:
  854. return &v.state
  855. case 1:
  856. return &v.sizeCache
  857. case 2:
  858. return &v.unknownFields
  859. default:
  860. return nil
  861. }
  862. }
  863. file_mq_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  864. switch v := v.(*Partition); i {
  865. case 0:
  866. return &v.state
  867. case 1:
  868. return &v.sizeCache
  869. case 2:
  870. return &v.unknownFields
  871. default:
  872. return nil
  873. }
  874. }
  875. file_mq_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  876. switch v := v.(*Segment); i {
  877. case 0:
  878. return &v.state
  879. case 1:
  880. return &v.sizeCache
  881. case 2:
  882. return &v.unknownFields
  883. default:
  884. return nil
  885. }
  886. }
  887. file_mq_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  888. switch v := v.(*AssignSegmentBrokersRequest); i {
  889. case 0:
  890. return &v.state
  891. case 1:
  892. return &v.sizeCache
  893. case 2:
  894. return &v.unknownFields
  895. default:
  896. return nil
  897. }
  898. }
  899. file_mq_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  900. switch v := v.(*AssignSegmentBrokersResponse); i {
  901. case 0:
  902. return &v.state
  903. case 1:
  904. return &v.sizeCache
  905. case 2:
  906. return &v.unknownFields
  907. default:
  908. return nil
  909. }
  910. }
  911. file_mq_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  912. switch v := v.(*CheckSegmentStatusRequest); i {
  913. case 0:
  914. return &v.state
  915. case 1:
  916. return &v.sizeCache
  917. case 2:
  918. return &v.unknownFields
  919. default:
  920. return nil
  921. }
  922. }
  923. file_mq_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  924. switch v := v.(*CheckSegmentStatusResponse); i {
  925. case 0:
  926. return &v.state
  927. case 1:
  928. return &v.sizeCache
  929. case 2:
  930. return &v.unknownFields
  931. default:
  932. return nil
  933. }
  934. }
  935. file_mq_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  936. switch v := v.(*CheckBrokerLoadRequest); i {
  937. case 0:
  938. return &v.state
  939. case 1:
  940. return &v.sizeCache
  941. case 2:
  942. return &v.unknownFields
  943. default:
  944. return nil
  945. }
  946. }
  947. file_mq_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  948. switch v := v.(*CheckBrokerLoadResponse); i {
  949. case 0:
  950. return &v.state
  951. case 1:
  952. return &v.sizeCache
  953. case 2:
  954. return &v.unknownFields
  955. default:
  956. return nil
  957. }
  958. }
  959. file_mq_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  960. switch v := v.(*PublishRequest); i {
  961. case 0:
  962. return &v.state
  963. case 1:
  964. return &v.sizeCache
  965. case 2:
  966. return &v.unknownFields
  967. default:
  968. return nil
  969. }
  970. }
  971. file_mq_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  972. switch v := v.(*PublishResponse); i {
  973. case 0:
  974. return &v.state
  975. case 1:
  976. return &v.sizeCache
  977. case 2:
  978. return &v.unknownFields
  979. default:
  980. return nil
  981. }
  982. }
  983. file_mq_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  984. switch v := v.(*PublishRequest_InitMessage); i {
  985. case 0:
  986. return &v.state
  987. case 1:
  988. return &v.sizeCache
  989. case 2:
  990. return &v.unknownFields
  991. default:
  992. return nil
  993. }
  994. }
  995. }
  996. type x struct{}
  997. out := protoimpl.TypeBuilder{
  998. File: protoimpl.DescBuilder{
  999. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1000. RawDescriptor: file_mq_proto_rawDesc,
  1001. NumEnums: 0,
  1002. NumMessages: 14,
  1003. NumExtensions: 0,
  1004. NumServices: 1,
  1005. },
  1006. GoTypes: file_mq_proto_goTypes,
  1007. DependencyIndexes: file_mq_proto_depIdxs,
  1008. MessageInfos: file_mq_proto_msgTypes,
  1009. }.Build()
  1010. File_mq_proto = out.File
  1011. file_mq_proto_rawDesc = nil
  1012. file_mq_proto_goTypes = nil
  1013. file_mq_proto_depIdxs = nil
  1014. }