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.

808 lines
27 KiB

5 years ago
3 years ago
3 years ago
5 years ago
5 years ago
3 years ago
5 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
5 years ago
3 years ago
3 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.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. type FindBrokerLeaderRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. FilerGroup string `protobuf:"bytes,1,opt,name=filer_group,json=filerGroup,proto3" json:"filer_group,omitempty"`
  24. }
  25. func (x *FindBrokerLeaderRequest) Reset() {
  26. *x = FindBrokerLeaderRequest{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_mq_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *FindBrokerLeaderRequest) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*FindBrokerLeaderRequest) ProtoMessage() {}
  37. func (x *FindBrokerLeaderRequest) ProtoReflect() protoreflect.Message {
  38. mi := &file_mq_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use FindBrokerLeaderRequest.ProtoReflect.Descriptor instead.
  49. func (*FindBrokerLeaderRequest) Descriptor() ([]byte, []int) {
  50. return file_mq_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *FindBrokerLeaderRequest) GetFilerGroup() string {
  53. if x != nil {
  54. return x.FilerGroup
  55. }
  56. return ""
  57. }
  58. type FindBrokerLeaderResponse struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. Broker string `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty"`
  63. }
  64. func (x *FindBrokerLeaderResponse) Reset() {
  65. *x = FindBrokerLeaderResponse{}
  66. if protoimpl.UnsafeEnabled {
  67. mi := &file_mq_proto_msgTypes[1]
  68. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  69. ms.StoreMessageInfo(mi)
  70. }
  71. }
  72. func (x *FindBrokerLeaderResponse) String() string {
  73. return protoimpl.X.MessageStringOf(x)
  74. }
  75. func (*FindBrokerLeaderResponse) ProtoMessage() {}
  76. func (x *FindBrokerLeaderResponse) ProtoReflect() protoreflect.Message {
  77. mi := &file_mq_proto_msgTypes[1]
  78. if protoimpl.UnsafeEnabled && x != nil {
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. if ms.LoadMessageInfo() == nil {
  81. ms.StoreMessageInfo(mi)
  82. }
  83. return ms
  84. }
  85. return mi.MessageOf(x)
  86. }
  87. // Deprecated: Use FindBrokerLeaderResponse.ProtoReflect.Descriptor instead.
  88. func (*FindBrokerLeaderResponse) Descriptor() ([]byte, []int) {
  89. return file_mq_proto_rawDescGZIP(), []int{1}
  90. }
  91. func (x *FindBrokerLeaderResponse) GetBroker() string {
  92. if x != nil {
  93. return x.Broker
  94. }
  95. return ""
  96. }
  97. type Partition struct {
  98. state protoimpl.MessageState
  99. sizeCache protoimpl.SizeCache
  100. unknownFields protoimpl.UnknownFields
  101. RingSize int32 `protobuf:"varint,1,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"`
  102. RangeStart int32 `protobuf:"varint,2,opt,name=range_start,json=rangeStart,proto3" json:"range_start,omitempty"`
  103. RangeStop int32 `protobuf:"varint,3,opt,name=range_stop,json=rangeStop,proto3" json:"range_stop,omitempty"`
  104. }
  105. func (x *Partition) Reset() {
  106. *x = Partition{}
  107. if protoimpl.UnsafeEnabled {
  108. mi := &file_mq_proto_msgTypes[2]
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. ms.StoreMessageInfo(mi)
  111. }
  112. }
  113. func (x *Partition) String() string {
  114. return protoimpl.X.MessageStringOf(x)
  115. }
  116. func (*Partition) ProtoMessage() {}
  117. func (x *Partition) ProtoReflect() protoreflect.Message {
  118. mi := &file_mq_proto_msgTypes[2]
  119. if protoimpl.UnsafeEnabled && x != nil {
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. if ms.LoadMessageInfo() == nil {
  122. ms.StoreMessageInfo(mi)
  123. }
  124. return ms
  125. }
  126. return mi.MessageOf(x)
  127. }
  128. // Deprecated: Use Partition.ProtoReflect.Descriptor instead.
  129. func (*Partition) Descriptor() ([]byte, []int) {
  130. return file_mq_proto_rawDescGZIP(), []int{2}
  131. }
  132. func (x *Partition) GetRingSize() int32 {
  133. if x != nil {
  134. return x.RingSize
  135. }
  136. return 0
  137. }
  138. func (x *Partition) GetRangeStart() int32 {
  139. if x != nil {
  140. return x.RangeStart
  141. }
  142. return 0
  143. }
  144. func (x *Partition) GetRangeStop() int32 {
  145. if x != nil {
  146. return x.RangeStop
  147. }
  148. return 0
  149. }
  150. type Segment struct {
  151. state protoimpl.MessageState
  152. sizeCache protoimpl.SizeCache
  153. unknownFields protoimpl.UnknownFields
  154. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  155. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  156. Id int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
  157. Partition *Partition `protobuf:"bytes,4,opt,name=partition,proto3" json:"partition,omitempty"`
  158. }
  159. func (x *Segment) Reset() {
  160. *x = Segment{}
  161. if protoimpl.UnsafeEnabled {
  162. mi := &file_mq_proto_msgTypes[3]
  163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  164. ms.StoreMessageInfo(mi)
  165. }
  166. }
  167. func (x *Segment) String() string {
  168. return protoimpl.X.MessageStringOf(x)
  169. }
  170. func (*Segment) ProtoMessage() {}
  171. func (x *Segment) ProtoReflect() protoreflect.Message {
  172. mi := &file_mq_proto_msgTypes[3]
  173. if protoimpl.UnsafeEnabled && x != nil {
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. if ms.LoadMessageInfo() == nil {
  176. ms.StoreMessageInfo(mi)
  177. }
  178. return ms
  179. }
  180. return mi.MessageOf(x)
  181. }
  182. // Deprecated: Use Segment.ProtoReflect.Descriptor instead.
  183. func (*Segment) Descriptor() ([]byte, []int) {
  184. return file_mq_proto_rawDescGZIP(), []int{3}
  185. }
  186. func (x *Segment) GetNamespace() string {
  187. if x != nil {
  188. return x.Namespace
  189. }
  190. return ""
  191. }
  192. func (x *Segment) GetTopic() string {
  193. if x != nil {
  194. return x.Topic
  195. }
  196. return ""
  197. }
  198. func (x *Segment) GetId() int32 {
  199. if x != nil {
  200. return x.Id
  201. }
  202. return 0
  203. }
  204. func (x *Segment) GetPartition() *Partition {
  205. if x != nil {
  206. return x.Partition
  207. }
  208. return nil
  209. }
  210. type AssignSegmentBrokersRequest struct {
  211. state protoimpl.MessageState
  212. sizeCache protoimpl.SizeCache
  213. unknownFields protoimpl.UnknownFields
  214. Segment *Segment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"`
  215. }
  216. func (x *AssignSegmentBrokersRequest) Reset() {
  217. *x = AssignSegmentBrokersRequest{}
  218. if protoimpl.UnsafeEnabled {
  219. mi := &file_mq_proto_msgTypes[4]
  220. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  221. ms.StoreMessageInfo(mi)
  222. }
  223. }
  224. func (x *AssignSegmentBrokersRequest) String() string {
  225. return protoimpl.X.MessageStringOf(x)
  226. }
  227. func (*AssignSegmentBrokersRequest) ProtoMessage() {}
  228. func (x *AssignSegmentBrokersRequest) ProtoReflect() protoreflect.Message {
  229. mi := &file_mq_proto_msgTypes[4]
  230. if protoimpl.UnsafeEnabled && x != nil {
  231. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  232. if ms.LoadMessageInfo() == nil {
  233. ms.StoreMessageInfo(mi)
  234. }
  235. return ms
  236. }
  237. return mi.MessageOf(x)
  238. }
  239. // Deprecated: Use AssignSegmentBrokersRequest.ProtoReflect.Descriptor instead.
  240. func (*AssignSegmentBrokersRequest) Descriptor() ([]byte, []int) {
  241. return file_mq_proto_rawDescGZIP(), []int{4}
  242. }
  243. func (x *AssignSegmentBrokersRequest) GetSegment() *Segment {
  244. if x != nil {
  245. return x.Segment
  246. }
  247. return nil
  248. }
  249. type AssignSegmentBrokersResponse struct {
  250. state protoimpl.MessageState
  251. sizeCache protoimpl.SizeCache
  252. unknownFields protoimpl.UnknownFields
  253. Brokers []string `protobuf:"bytes,1,rep,name=brokers,proto3" json:"brokers,omitempty"`
  254. }
  255. func (x *AssignSegmentBrokersResponse) Reset() {
  256. *x = AssignSegmentBrokersResponse{}
  257. if protoimpl.UnsafeEnabled {
  258. mi := &file_mq_proto_msgTypes[5]
  259. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  260. ms.StoreMessageInfo(mi)
  261. }
  262. }
  263. func (x *AssignSegmentBrokersResponse) String() string {
  264. return protoimpl.X.MessageStringOf(x)
  265. }
  266. func (*AssignSegmentBrokersResponse) ProtoMessage() {}
  267. func (x *AssignSegmentBrokersResponse) ProtoReflect() protoreflect.Message {
  268. mi := &file_mq_proto_msgTypes[5]
  269. if protoimpl.UnsafeEnabled && x != nil {
  270. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  271. if ms.LoadMessageInfo() == nil {
  272. ms.StoreMessageInfo(mi)
  273. }
  274. return ms
  275. }
  276. return mi.MessageOf(x)
  277. }
  278. // Deprecated: Use AssignSegmentBrokersResponse.ProtoReflect.Descriptor instead.
  279. func (*AssignSegmentBrokersResponse) Descriptor() ([]byte, []int) {
  280. return file_mq_proto_rawDescGZIP(), []int{5}
  281. }
  282. func (x *AssignSegmentBrokersResponse) GetBrokers() []string {
  283. if x != nil {
  284. return x.Brokers
  285. }
  286. return nil
  287. }
  288. type CheckSegmentStatusRequest struct {
  289. state protoimpl.MessageState
  290. sizeCache protoimpl.SizeCache
  291. unknownFields protoimpl.UnknownFields
  292. Segment *Segment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"`
  293. }
  294. func (x *CheckSegmentStatusRequest) Reset() {
  295. *x = CheckSegmentStatusRequest{}
  296. if protoimpl.UnsafeEnabled {
  297. mi := &file_mq_proto_msgTypes[6]
  298. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  299. ms.StoreMessageInfo(mi)
  300. }
  301. }
  302. func (x *CheckSegmentStatusRequest) String() string {
  303. return protoimpl.X.MessageStringOf(x)
  304. }
  305. func (*CheckSegmentStatusRequest) ProtoMessage() {}
  306. func (x *CheckSegmentStatusRequest) ProtoReflect() protoreflect.Message {
  307. mi := &file_mq_proto_msgTypes[6]
  308. if protoimpl.UnsafeEnabled && x != nil {
  309. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  310. if ms.LoadMessageInfo() == nil {
  311. ms.StoreMessageInfo(mi)
  312. }
  313. return ms
  314. }
  315. return mi.MessageOf(x)
  316. }
  317. // Deprecated: Use CheckSegmentStatusRequest.ProtoReflect.Descriptor instead.
  318. func (*CheckSegmentStatusRequest) Descriptor() ([]byte, []int) {
  319. return file_mq_proto_rawDescGZIP(), []int{6}
  320. }
  321. func (x *CheckSegmentStatusRequest) GetSegment() *Segment {
  322. if x != nil {
  323. return x.Segment
  324. }
  325. return nil
  326. }
  327. type CheckSegmentStatusResponse struct {
  328. state protoimpl.MessageState
  329. sizeCache protoimpl.SizeCache
  330. unknownFields protoimpl.UnknownFields
  331. IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
  332. }
  333. func (x *CheckSegmentStatusResponse) Reset() {
  334. *x = CheckSegmentStatusResponse{}
  335. if protoimpl.UnsafeEnabled {
  336. mi := &file_mq_proto_msgTypes[7]
  337. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  338. ms.StoreMessageInfo(mi)
  339. }
  340. }
  341. func (x *CheckSegmentStatusResponse) String() string {
  342. return protoimpl.X.MessageStringOf(x)
  343. }
  344. func (*CheckSegmentStatusResponse) ProtoMessage() {}
  345. func (x *CheckSegmentStatusResponse) ProtoReflect() protoreflect.Message {
  346. mi := &file_mq_proto_msgTypes[7]
  347. if protoimpl.UnsafeEnabled && x != nil {
  348. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  349. if ms.LoadMessageInfo() == nil {
  350. ms.StoreMessageInfo(mi)
  351. }
  352. return ms
  353. }
  354. return mi.MessageOf(x)
  355. }
  356. // Deprecated: Use CheckSegmentStatusResponse.ProtoReflect.Descriptor instead.
  357. func (*CheckSegmentStatusResponse) Descriptor() ([]byte, []int) {
  358. return file_mq_proto_rawDescGZIP(), []int{7}
  359. }
  360. func (x *CheckSegmentStatusResponse) GetIsActive() bool {
  361. if x != nil {
  362. return x.IsActive
  363. }
  364. return false
  365. }
  366. type CheckBrokerLoadRequest struct {
  367. state protoimpl.MessageState
  368. sizeCache protoimpl.SizeCache
  369. unknownFields protoimpl.UnknownFields
  370. }
  371. func (x *CheckBrokerLoadRequest) Reset() {
  372. *x = CheckBrokerLoadRequest{}
  373. if protoimpl.UnsafeEnabled {
  374. mi := &file_mq_proto_msgTypes[8]
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. ms.StoreMessageInfo(mi)
  377. }
  378. }
  379. func (x *CheckBrokerLoadRequest) String() string {
  380. return protoimpl.X.MessageStringOf(x)
  381. }
  382. func (*CheckBrokerLoadRequest) ProtoMessage() {}
  383. func (x *CheckBrokerLoadRequest) ProtoReflect() protoreflect.Message {
  384. mi := &file_mq_proto_msgTypes[8]
  385. if protoimpl.UnsafeEnabled && x != nil {
  386. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  387. if ms.LoadMessageInfo() == nil {
  388. ms.StoreMessageInfo(mi)
  389. }
  390. return ms
  391. }
  392. return mi.MessageOf(x)
  393. }
  394. // Deprecated: Use CheckBrokerLoadRequest.ProtoReflect.Descriptor instead.
  395. func (*CheckBrokerLoadRequest) Descriptor() ([]byte, []int) {
  396. return file_mq_proto_rawDescGZIP(), []int{8}
  397. }
  398. type CheckBrokerLoadResponse struct {
  399. state protoimpl.MessageState
  400. sizeCache protoimpl.SizeCache
  401. unknownFields protoimpl.UnknownFields
  402. MessageCount int64 `protobuf:"varint,1,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
  403. BytesCount int64 `protobuf:"varint,2,opt,name=bytes_count,json=bytesCount,proto3" json:"bytes_count,omitempty"`
  404. }
  405. func (x *CheckBrokerLoadResponse) Reset() {
  406. *x = CheckBrokerLoadResponse{}
  407. if protoimpl.UnsafeEnabled {
  408. mi := &file_mq_proto_msgTypes[9]
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. ms.StoreMessageInfo(mi)
  411. }
  412. }
  413. func (x *CheckBrokerLoadResponse) String() string {
  414. return protoimpl.X.MessageStringOf(x)
  415. }
  416. func (*CheckBrokerLoadResponse) ProtoMessage() {}
  417. func (x *CheckBrokerLoadResponse) ProtoReflect() protoreflect.Message {
  418. mi := &file_mq_proto_msgTypes[9]
  419. if protoimpl.UnsafeEnabled && x != nil {
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. if ms.LoadMessageInfo() == nil {
  422. ms.StoreMessageInfo(mi)
  423. }
  424. return ms
  425. }
  426. return mi.MessageOf(x)
  427. }
  428. // Deprecated: Use CheckBrokerLoadResponse.ProtoReflect.Descriptor instead.
  429. func (*CheckBrokerLoadResponse) Descriptor() ([]byte, []int) {
  430. return file_mq_proto_rawDescGZIP(), []int{9}
  431. }
  432. func (x *CheckBrokerLoadResponse) GetMessageCount() int64 {
  433. if x != nil {
  434. return x.MessageCount
  435. }
  436. return 0
  437. }
  438. func (x *CheckBrokerLoadResponse) GetBytesCount() int64 {
  439. if x != nil {
  440. return x.BytesCount
  441. }
  442. return 0
  443. }
  444. var File_mq_proto protoreflect.FileDescriptor
  445. var file_mq_proto_rawDesc = []byte{
  446. 0x0a, 0x08, 0x6d, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  447. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22, 0x3a, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64,
  448. 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  449. 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f,
  450. 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x47,
  451. 0x72, 0x6f, 0x75, 0x70, 0x22, 0x32, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b,
  452. 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  453. 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  454. 0x52, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x22, 0x68, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74,
  455. 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x69,
  456. 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x69,
  457. 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72,
  458. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x74,
  459. 0x61, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x6f,
  460. 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x74,
  461. 0x6f, 0x70, 0x22, 0x84, 0x01, 0x0a, 0x07, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c,
  462. 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  463. 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05,
  464. 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70,
  465. 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02,
  466. 0x69, 0x64, 0x12, 0x35, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,
  467. 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  468. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09,
  469. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4e, 0x0a, 0x1b, 0x41, 0x73, 0x73,
  470. 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72,
  471. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x67, 0x6d,
  472. 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  473. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74,
  474. 0x52, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x1c, 0x41, 0x73, 0x73,
  475. 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72,
  476. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x72, 0x6f,
  477. 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x72, 0x6f, 0x6b,
  478. 0x65, 0x72, 0x73, 0x22, 0x4c, 0x0a, 0x19, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d,
  479. 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  480. 0x12, 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  481. 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  482. 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e,
  483. 0x74, 0x22, 0x39, 0x0a, 0x1a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e,
  484. 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  485. 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01,
  486. 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x18, 0x0a, 0x16,
  487. 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52,
  488. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5f, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42,
  489. 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  490. 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x75,
  491. 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  492. 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f,
  493. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x79, 0x74,
  494. 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xb5, 0x03, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x77,
  495. 0x65, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x63, 0x0a, 0x10,
  496. 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72,
  497. 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  498. 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72,
  499. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  500. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65,
  501. 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  502. 0x00, 0x12, 0x6f, 0x0a, 0x14, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65,
  503. 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  504. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x53,
  505. 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71,
  506. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  507. 0x5f, 0x70, 0x62, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e,
  508. 0x74, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  509. 0x22, 0x00, 0x12, 0x69, 0x0a, 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65,
  510. 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  511. 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67,
  512. 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  513. 0x74, 0x1a, 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  514. 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61,
  515. 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a,
  516. 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64,
  517. 0x12, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  518. 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52,
  519. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69,
  520. 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x72, 0x6f, 0x6b, 0x65,
  521. 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42,
  522. 0x4e, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x6d, 0x71, 0x42,
  523. 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x74,
  524. 0x6f, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68,
  525. 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66,
  526. 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x71, 0x5f, 0x70, 0x62, 0x62,
  527. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  528. }
  529. var (
  530. file_mq_proto_rawDescOnce sync.Once
  531. file_mq_proto_rawDescData = file_mq_proto_rawDesc
  532. )
  533. func file_mq_proto_rawDescGZIP() []byte {
  534. file_mq_proto_rawDescOnce.Do(func() {
  535. file_mq_proto_rawDescData = protoimpl.X.CompressGZIP(file_mq_proto_rawDescData)
  536. })
  537. return file_mq_proto_rawDescData
  538. }
  539. var file_mq_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  540. var file_mq_proto_goTypes = []interface{}{
  541. (*FindBrokerLeaderRequest)(nil), // 0: messaging_pb.FindBrokerLeaderRequest
  542. (*FindBrokerLeaderResponse)(nil), // 1: messaging_pb.FindBrokerLeaderResponse
  543. (*Partition)(nil), // 2: messaging_pb.Partition
  544. (*Segment)(nil), // 3: messaging_pb.Segment
  545. (*AssignSegmentBrokersRequest)(nil), // 4: messaging_pb.AssignSegmentBrokersRequest
  546. (*AssignSegmentBrokersResponse)(nil), // 5: messaging_pb.AssignSegmentBrokersResponse
  547. (*CheckSegmentStatusRequest)(nil), // 6: messaging_pb.CheckSegmentStatusRequest
  548. (*CheckSegmentStatusResponse)(nil), // 7: messaging_pb.CheckSegmentStatusResponse
  549. (*CheckBrokerLoadRequest)(nil), // 8: messaging_pb.CheckBrokerLoadRequest
  550. (*CheckBrokerLoadResponse)(nil), // 9: messaging_pb.CheckBrokerLoadResponse
  551. }
  552. var file_mq_proto_depIdxs = []int32{
  553. 2, // 0: messaging_pb.Segment.partition:type_name -> messaging_pb.Partition
  554. 3, // 1: messaging_pb.AssignSegmentBrokersRequest.segment:type_name -> messaging_pb.Segment
  555. 3, // 2: messaging_pb.CheckSegmentStatusRequest.segment:type_name -> messaging_pb.Segment
  556. 0, // 3: messaging_pb.SeaweedMessaging.FindBrokerLeader:input_type -> messaging_pb.FindBrokerLeaderRequest
  557. 4, // 4: messaging_pb.SeaweedMessaging.AssignSegmentBrokers:input_type -> messaging_pb.AssignSegmentBrokersRequest
  558. 6, // 5: messaging_pb.SeaweedMessaging.CheckSegmentStatus:input_type -> messaging_pb.CheckSegmentStatusRequest
  559. 8, // 6: messaging_pb.SeaweedMessaging.CheckBrokerLoad:input_type -> messaging_pb.CheckBrokerLoadRequest
  560. 1, // 7: messaging_pb.SeaweedMessaging.FindBrokerLeader:output_type -> messaging_pb.FindBrokerLeaderResponse
  561. 5, // 8: messaging_pb.SeaweedMessaging.AssignSegmentBrokers:output_type -> messaging_pb.AssignSegmentBrokersResponse
  562. 7, // 9: messaging_pb.SeaweedMessaging.CheckSegmentStatus:output_type -> messaging_pb.CheckSegmentStatusResponse
  563. 9, // 10: messaging_pb.SeaweedMessaging.CheckBrokerLoad:output_type -> messaging_pb.CheckBrokerLoadResponse
  564. 7, // [7:11] is the sub-list for method output_type
  565. 3, // [3:7] is the sub-list for method input_type
  566. 3, // [3:3] is the sub-list for extension type_name
  567. 3, // [3:3] is the sub-list for extension extendee
  568. 0, // [0:3] is the sub-list for field type_name
  569. }
  570. func init() { file_mq_proto_init() }
  571. func file_mq_proto_init() {
  572. if File_mq_proto != nil {
  573. return
  574. }
  575. if !protoimpl.UnsafeEnabled {
  576. file_mq_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  577. switch v := v.(*FindBrokerLeaderRequest); i {
  578. case 0:
  579. return &v.state
  580. case 1:
  581. return &v.sizeCache
  582. case 2:
  583. return &v.unknownFields
  584. default:
  585. return nil
  586. }
  587. }
  588. file_mq_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  589. switch v := v.(*FindBrokerLeaderResponse); i {
  590. case 0:
  591. return &v.state
  592. case 1:
  593. return &v.sizeCache
  594. case 2:
  595. return &v.unknownFields
  596. default:
  597. return nil
  598. }
  599. }
  600. file_mq_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  601. switch v := v.(*Partition); i {
  602. case 0:
  603. return &v.state
  604. case 1:
  605. return &v.sizeCache
  606. case 2:
  607. return &v.unknownFields
  608. default:
  609. return nil
  610. }
  611. }
  612. file_mq_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  613. switch v := v.(*Segment); i {
  614. case 0:
  615. return &v.state
  616. case 1:
  617. return &v.sizeCache
  618. case 2:
  619. return &v.unknownFields
  620. default:
  621. return nil
  622. }
  623. }
  624. file_mq_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  625. switch v := v.(*AssignSegmentBrokersRequest); i {
  626. case 0:
  627. return &v.state
  628. case 1:
  629. return &v.sizeCache
  630. case 2:
  631. return &v.unknownFields
  632. default:
  633. return nil
  634. }
  635. }
  636. file_mq_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  637. switch v := v.(*AssignSegmentBrokersResponse); i {
  638. case 0:
  639. return &v.state
  640. case 1:
  641. return &v.sizeCache
  642. case 2:
  643. return &v.unknownFields
  644. default:
  645. return nil
  646. }
  647. }
  648. file_mq_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  649. switch v := v.(*CheckSegmentStatusRequest); i {
  650. case 0:
  651. return &v.state
  652. case 1:
  653. return &v.sizeCache
  654. case 2:
  655. return &v.unknownFields
  656. default:
  657. return nil
  658. }
  659. }
  660. file_mq_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  661. switch v := v.(*CheckSegmentStatusResponse); i {
  662. case 0:
  663. return &v.state
  664. case 1:
  665. return &v.sizeCache
  666. case 2:
  667. return &v.unknownFields
  668. default:
  669. return nil
  670. }
  671. }
  672. file_mq_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  673. switch v := v.(*CheckBrokerLoadRequest); i {
  674. case 0:
  675. return &v.state
  676. case 1:
  677. return &v.sizeCache
  678. case 2:
  679. return &v.unknownFields
  680. default:
  681. return nil
  682. }
  683. }
  684. file_mq_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  685. switch v := v.(*CheckBrokerLoadResponse); i {
  686. case 0:
  687. return &v.state
  688. case 1:
  689. return &v.sizeCache
  690. case 2:
  691. return &v.unknownFields
  692. default:
  693. return nil
  694. }
  695. }
  696. }
  697. type x struct{}
  698. out := protoimpl.TypeBuilder{
  699. File: protoimpl.DescBuilder{
  700. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  701. RawDescriptor: file_mq_proto_rawDesc,
  702. NumEnums: 0,
  703. NumMessages: 10,
  704. NumExtensions: 0,
  705. NumServices: 1,
  706. },
  707. GoTypes: file_mq_proto_goTypes,
  708. DependencyIndexes: file_mq_proto_depIdxs,
  709. MessageInfos: file_mq_proto_msgTypes,
  710. }.Build()
  711. File_mq_proto = out.File
  712. file_mq_proto_rawDesc = nil
  713. file_mq_proto_goTypes = nil
  714. file_mq_proto_depIdxs = nil
  715. }