rocketmq-client-remoting-nodejs 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.en.md +428 -0
  2. package/README.md +424 -2
  3. package/dist/client/admin.d.ts +229 -0
  4. package/dist/client/admin.js +2462 -0
  5. package/dist/client/allocate.d.ts +48 -0
  6. package/dist/client/allocate.js +365 -0
  7. package/dist/client/backpressure.d.ts +23 -0
  8. package/dist/client/backpressure.js +95 -0
  9. package/dist/client/consumer.d.ts +294 -0
  10. package/dist/client/consumer.js +3095 -0
  11. package/dist/client/consumer_result.d.ts +129 -0
  12. package/dist/client/consumer_result.js +138 -0
  13. package/dist/client/consumer_stats.d.ts +69 -0
  14. package/dist/client/consumer_stats.js +258 -0
  15. package/dist/client/exception.d.ts +39 -0
  16. package/dist/client/exception.js +36 -0
  17. package/dist/client/hook.d.ts +145 -0
  18. package/dist/client/hook.js +171 -0
  19. package/dist/client/latency.d.ts +61 -0
  20. package/dist/client/latency.js +239 -0
  21. package/dist/client/lite_pull_consumer.d.ts +151 -0
  22. package/dist/client/lite_pull_consumer.js +1096 -0
  23. package/dist/client/mq_client.d.ts +188 -0
  24. package/dist/client/mq_client.js +1678 -0
  25. package/dist/client/mq_client_manager.d.ts +21 -0
  26. package/dist/client/mq_client_manager.js +129 -0
  27. package/dist/client/offset_store.d.ts +45 -0
  28. package/dist/client/offset_store.js +389 -0
  29. package/dist/client/open_tracing_hook.d.ts +52 -0
  30. package/dist/client/open_tracing_hook.js +241 -0
  31. package/dist/client/pop_api.d.ts +28 -0
  32. package/dist/client/pop_api.js +224 -0
  33. package/dist/client/pop_consumer.d.ts +23 -0
  34. package/dist/client/pop_consumer.js +719 -0
  35. package/dist/client/pop_process_queue.d.ts +15 -0
  36. package/dist/client/pop_process_queue.js +51 -0
  37. package/dist/client/process_queue.d.ts +49 -0
  38. package/dist/client/process_queue.js +261 -0
  39. package/dist/client/produce_accumulator.d.ts +75 -0
  40. package/dist/client/produce_accumulator.js +288 -0
  41. package/dist/client/producer.d.ts +231 -0
  42. package/dist/client/producer.js +1774 -0
  43. package/dist/client/pull_api.d.ts +26 -0
  44. package/dist/client/pull_api.js +264 -0
  45. package/dist/client/pull_consumer.d.ts +119 -0
  46. package/dist/client/pull_consumer.js +876 -0
  47. package/dist/client/pull_schedule_service.d.ts +71 -0
  48. package/dist/client/pull_schedule_service.js +424 -0
  49. package/dist/client/request_reply.d.ts +61 -0
  50. package/dist/client/request_reply.js +232 -0
  51. package/dist/client/retry_message.d.ts +2 -0
  52. package/dist/client/retry_message.js +27 -0
  53. package/dist/client/send_result.d.ts +57 -0
  54. package/dist/client/send_result.js +70 -0
  55. package/dist/client/top_addressing.d.ts +20 -0
  56. package/dist/client/top_addressing.js +75 -0
  57. package/dist/client/trace_context.d.ts +61 -0
  58. package/dist/client/trace_context.js +373 -0
  59. package/dist/client/trace_dispatcher.d.ts +31 -0
  60. package/dist/client/trace_dispatcher.js +236 -0
  61. package/dist/client/trace_hook.d.ts +23 -0
  62. package/dist/client/trace_hook.js +228 -0
  63. package/dist/client/traceparent.d.ts +9 -0
  64. package/dist/client/traceparent.js +86 -0
  65. package/dist/common/boundary_type.d.ts +7 -0
  66. package/dist/common/boundary_type.js +16 -0
  67. package/dist/common/compress.d.ts +28 -0
  68. package/dist/common/compress.js +512 -0
  69. package/dist/common/message.d.ts +129 -0
  70. package/dist/common/message.js +214 -0
  71. package/dist/common/messageClientIdSetter.d.ts +7 -0
  72. package/dist/common/messageClientIdSetter.js +48 -0
  73. package/dist/common/messageConst.d.ts +68 -0
  74. package/dist/common/messageConst.js +68 -0
  75. package/dist/common/messageDecoder.d.ts +40 -0
  76. package/dist/common/messageDecoder.js +504 -0
  77. package/dist/common/messageType.d.ts +11 -0
  78. package/dist/common/messageType.js +11 -0
  79. package/dist/common/message_accessor.d.ts +39 -0
  80. package/dist/common/message_accessor.js +135 -0
  81. package/dist/common/mixAll.d.ts +106 -0
  82. package/dist/common/mixAll.js +247 -0
  83. package/dist/common/recall_message_handle.d.ts +25 -0
  84. package/dist/common/recall_message_handle.js +98 -0
  85. package/dist/common/subscriptionData.d.ts +36 -0
  86. package/dist/common/subscriptionData.js +64 -0
  87. package/dist/common/sysflag.d.ts +129 -0
  88. package/dist/common/sysflag.js +96 -0
  89. package/dist/common/topic_config.d.ts +66 -0
  90. package/dist/common/topic_config.js +106 -0
  91. package/dist/common/topic_validator.d.ts +49 -0
  92. package/dist/common/topic_validator.js +115 -0
  93. package/dist/common/utilAll.d.ts +39 -0
  94. package/dist/common/utilAll.js +154 -0
  95. package/dist/common/validators.d.ts +25 -0
  96. package/dist/common/validators.js +80 -0
  97. package/dist/index.d.ts +24 -0
  98. package/dist/index.js +36 -0
  99. package/dist/logging.d.ts +24 -0
  100. package/dist/logging.js +246 -0
  101. package/dist/remoting/acl.d.ts +16 -0
  102. package/dist/remoting/acl.js +39 -0
  103. package/dist/remoting/admin_body.d.ts +257 -0
  104. package/dist/remoting/admin_body.js +669 -0
  105. package/dist/remoting/bodies.d.ts +475 -0
  106. package/dist/remoting/bodies.js +1131 -0
  107. package/dist/remoting/client.d.ts +73 -0
  108. package/dist/remoting/client.js +591 -0
  109. package/dist/remoting/codes.d.ts +296 -0
  110. package/dist/remoting/codes.js +301 -0
  111. package/dist/remoting/exception.d.ts +45 -0
  112. package/dist/remoting/exception.js +58 -0
  113. package/dist/remoting/extra_info.d.ts +61 -0
  114. package/dist/remoting/extra_info.js +220 -0
  115. package/dist/remoting/headers.d.ts +758 -0
  116. package/dist/remoting/headers.js +1307 -0
  117. package/dist/remoting/heartbeat.d.ts +91 -0
  118. package/dist/remoting/heartbeat.js +227 -0
  119. package/dist/remoting/namespace.d.ts +14 -0
  120. package/dist/remoting/namespace.js +85 -0
  121. package/dist/remoting/pop_bodies.d.ts +58 -0
  122. package/dist/remoting/pop_bodies.js +214 -0
  123. package/dist/remoting/remotingCommand.d.ts +39 -0
  124. package/dist/remoting/remotingCommand.js +225 -0
  125. package/dist/remoting/route.d.ts +61 -0
  126. package/dist/remoting/route.js +288 -0
  127. package/dist/remoting/rpc_hooks.d.ts +31 -0
  128. package/dist/remoting/rpc_hooks.js +73 -0
  129. package/dist/remoting/serialize.d.ts +33 -0
  130. package/dist/remoting/serialize.js +372 -0
  131. package/dist/remoting/socks_proxy.d.ts +29 -0
  132. package/dist/remoting/socks_proxy.js +379 -0
  133. package/dist/remoting/static_topic.d.ts +49 -0
  134. package/dist/remoting/static_topic.js +244 -0
  135. package/dist/remoting/subscription.d.ts +65 -0
  136. package/dist/remoting/subscription.js +172 -0
  137. package/package.json +38 -4
@@ -0,0 +1,1307 @@
1
+ // -*- coding: utf-8 -*-
2
+ // Request/response headers for the classic remoting protocol.
3
+ //
4
+ // Each header implements toExtFields() (returns a plain object whose fields can be
5
+ // converted to strings; null is skipped) and fromExtFields(fields) (reads from Record<string,string>).
6
+ // Boolean values are normalized to lowercase "true"/"false"; field names match the wire protocol keys exactly.
7
+ function _ext(fields) {
8
+ const out = {};
9
+ for (const [k, v] of Object.entries(fields)) {
10
+ if (v === null || v === undefined)
11
+ continue;
12
+ out[k] = (typeof v === 'boolean') ? (v ? 'true' : 'false') : v;
13
+ }
14
+ return out;
15
+ }
16
+ function _num(v) {
17
+ if (v == null)
18
+ return null;
19
+ const n = parseInt(v, 10);
20
+ return Number.isNaN(n) ? null : n;
21
+ }
22
+ function _b(v) {
23
+ if (v == null)
24
+ return null;
25
+ const s = String(v).toLowerCase();
26
+ return s === 'true' || s === '1';
27
+ }
28
+ export class BoundaryType {
29
+ static LOWER = { value: 'LOWER', lowercaseName: 'lower' };
30
+ static UPPER = { value: 'UPPER', lowercaseName: 'upper' };
31
+ static get_type(name) {
32
+ if (typeof name === 'string' && name.toLowerCase() === 'upper')
33
+ return BoundaryType.UPPER;
34
+ return BoundaryType.LOWER;
35
+ }
36
+ }
37
+ export class CommandCustomHeader {
38
+ toExtFields() { return {}; }
39
+ checkFields() { }
40
+ }
41
+ export class SendMessageRequestHeader extends CommandCustomHeader {
42
+ producerGroup = null;
43
+ topic = null;
44
+ defaultTopic = null;
45
+ defaultTopicQueueNums = null;
46
+ queueId = null;
47
+ sysFlag = null;
48
+ bornTimestamp = null;
49
+ flag = null;
50
+ properties = null;
51
+ reconsumeTimes = null;
52
+ unitMode = null;
53
+ maxReconsumeTimes = null;
54
+ batch = null;
55
+ brokerName = null;
56
+ toExtFields() {
57
+ return _ext({
58
+ producerGroup: this.producerGroup,
59
+ topic: this.topic,
60
+ defaultTopic: this.defaultTopic,
61
+ defaultTopicQueueNums: this.defaultTopicQueueNums,
62
+ queueId: this.queueId,
63
+ sysFlag: this.sysFlag,
64
+ bornTimestamp: this.bornTimestamp,
65
+ flag: this.flag,
66
+ properties: this.properties,
67
+ reconsumeTimes: this.reconsumeTimes,
68
+ unitMode: this.unitMode,
69
+ maxReconsumeTimes: this.maxReconsumeTimes,
70
+ batch: this.batch,
71
+ brokerName: this.brokerName,
72
+ });
73
+ }
74
+ fromExtFields(ext) {
75
+ this.producerGroup = ext['producerGroup'] != null ? ext['producerGroup'] : null;
76
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
77
+ this.defaultTopic = ext['defaultTopic'] != null ? ext['defaultTopic'] : null;
78
+ this.defaultTopicQueueNums = _num(ext['defaultTopicQueueNums']);
79
+ this.queueId = _num(ext['queueId']);
80
+ this.sysFlag = _num(ext['sysFlag']);
81
+ this.bornTimestamp = _num(ext['bornTimestamp']);
82
+ this.flag = _num(ext['flag']);
83
+ this.properties = ext['properties'] != null ? ext['properties'] : null;
84
+ this.reconsumeTimes = _num(ext['reconsumeTimes']);
85
+ this.unitMode = _b(ext['unitMode']);
86
+ this.maxReconsumeTimes = _num(ext['maxReconsumeTimes']);
87
+ this.batch = _b(ext['batch']);
88
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
89
+ }
90
+ }
91
+ // Short-field-name V2 encoding (producerGroup->a ... brokerName->n).
92
+ // Note: SendMessageRequestHeaderV2 uses 14 short keys (a..n), not 17.
93
+ export class SendMessageRequestHeaderV2 extends CommandCustomHeader {
94
+ producerGroup = null;
95
+ topic = null;
96
+ defaultTopic = null;
97
+ defaultTopicQueueNums = null;
98
+ queueId = null;
99
+ sysFlag = null;
100
+ bornTimestamp = null;
101
+ flag = null;
102
+ properties = null;
103
+ reconsumeTimes = null;
104
+ unitMode = null;
105
+ maxReconsumeTimes = null;
106
+ batch = null;
107
+ brokerName = null;
108
+ static createV2(req) {
109
+ const v2 = new SendMessageRequestHeaderV2();
110
+ v2.producerGroup = req.producerGroup;
111
+ v2.topic = req.topic;
112
+ v2.defaultTopic = req.defaultTopic;
113
+ v2.defaultTopicQueueNums = req.defaultTopicQueueNums;
114
+ v2.queueId = req.queueId;
115
+ v2.sysFlag = req.sysFlag;
116
+ v2.bornTimestamp = req.bornTimestamp;
117
+ v2.flag = req.flag;
118
+ v2.properties = req.properties;
119
+ v2.reconsumeTimes = req.reconsumeTimes;
120
+ v2.unitMode = req.unitMode;
121
+ v2.maxReconsumeTimes = req.maxReconsumeTimes;
122
+ v2.batch = req.batch;
123
+ v2.brokerName = req.brokerName;
124
+ return v2;
125
+ }
126
+ toV1() {
127
+ const v1 = new SendMessageRequestHeader();
128
+ v1.producerGroup = this.producerGroup;
129
+ v1.topic = this.topic;
130
+ v1.defaultTopic = this.defaultTopic;
131
+ v1.defaultTopicQueueNums = this.defaultTopicQueueNums;
132
+ v1.queueId = this.queueId;
133
+ v1.sysFlag = this.sysFlag;
134
+ v1.bornTimestamp = this.bornTimestamp;
135
+ v1.flag = this.flag;
136
+ v1.properties = this.properties;
137
+ v1.reconsumeTimes = this.reconsumeTimes;
138
+ v1.unitMode = this.unitMode;
139
+ v1.maxReconsumeTimes = this.maxReconsumeTimes;
140
+ v1.batch = this.batch;
141
+ v1.brokerName = this.brokerName;
142
+ return v1;
143
+ }
144
+ toExtFields() {
145
+ return _ext({
146
+ a: this.producerGroup,
147
+ b: this.topic,
148
+ c: this.defaultTopic,
149
+ d: this.defaultTopicQueueNums,
150
+ e: this.queueId,
151
+ f: this.sysFlag,
152
+ g: this.bornTimestamp,
153
+ h: this.flag,
154
+ i: this.properties,
155
+ j: this.reconsumeTimes,
156
+ k: this.unitMode,
157
+ l: this.maxReconsumeTimes,
158
+ m: this.batch,
159
+ n: this.brokerName,
160
+ });
161
+ }
162
+ fromExtFields(ext) {
163
+ this.producerGroup = ext['a'] != null ? ext['a'] : null;
164
+ this.topic = ext['b'] != null ? ext['b'] : null;
165
+ this.defaultTopic = ext['c'] != null ? ext['c'] : null;
166
+ this.defaultTopicQueueNums = _num(ext['d']);
167
+ this.queueId = _num(ext['e']);
168
+ this.sysFlag = _num(ext['f']);
169
+ this.bornTimestamp = _num(ext['g']);
170
+ this.flag = _num(ext['h']);
171
+ this.properties = ext['i'] != null ? ext['i'] : null;
172
+ this.reconsumeTimes = _num(ext['j']);
173
+ this.unitMode = _b(ext['k']);
174
+ this.maxReconsumeTimes = _num(ext['l']);
175
+ this.batch = _b(ext['m']);
176
+ this.brokerName = ext['n'] != null ? ext['n'] : null;
177
+ }
178
+ }
179
+ export class ReplyMessageRequestHeader extends CommandCustomHeader {
180
+ producerGroup = null;
181
+ topic = null;
182
+ defaultTopic = null;
183
+ defaultTopicQueueNums = null;
184
+ queueId = null;
185
+ sysFlag = null;
186
+ bornTimestamp = null;
187
+ flag = null;
188
+ properties = null;
189
+ reconsumeTimes = null;
190
+ unitMode = null;
191
+ bornHost = null;
192
+ storeHost = null;
193
+ storeTimestamp = null;
194
+ toExtFields() {
195
+ return _ext({
196
+ producerGroup: this.producerGroup,
197
+ topic: this.topic,
198
+ defaultTopic: this.defaultTopic,
199
+ defaultTopicQueueNums: this.defaultTopicQueueNums,
200
+ queueId: this.queueId,
201
+ sysFlag: this.sysFlag,
202
+ bornTimestamp: this.bornTimestamp,
203
+ flag: this.flag,
204
+ properties: this.properties,
205
+ reconsumeTimes: this.reconsumeTimes,
206
+ unitMode: this.unitMode,
207
+ bornHost: this.bornHost,
208
+ storeHost: this.storeHost,
209
+ storeTimestamp: this.storeTimestamp,
210
+ });
211
+ }
212
+ fromExtFields(ext) {
213
+ this.producerGroup = ext['producerGroup'] != null ? ext['producerGroup'] : null;
214
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
215
+ this.defaultTopic = ext['defaultTopic'] != null ? ext['defaultTopic'] : null;
216
+ this.defaultTopicQueueNums = _num(ext['defaultTopicQueueNums']);
217
+ this.queueId = _num(ext['queueId']);
218
+ this.sysFlag = _num(ext['sysFlag']);
219
+ this.bornTimestamp = _num(ext['bornTimestamp']);
220
+ this.flag = _num(ext['flag']);
221
+ this.properties = ext['properties'] != null ? ext['properties'] : null;
222
+ this.reconsumeTimes = _num(ext['reconsumeTimes']);
223
+ this.unitMode = _b(ext['unitMode']);
224
+ this.bornHost = ext['bornHost'] != null ? ext['bornHost'] : null;
225
+ this.storeHost = ext['storeHost'] != null ? ext['storeHost'] : null;
226
+ this.storeTimestamp = _num(ext['storeTimestamp']);
227
+ }
228
+ }
229
+ export class SendMessageResponseHeader extends CommandCustomHeader {
230
+ msgId = null;
231
+ queueId = null;
232
+ queueOffset = null;
233
+ transactionId = null;
234
+ batchUniqId = null;
235
+ recallHandle = null;
236
+ toExtFields() {
237
+ return _ext({
238
+ msgId: this.msgId,
239
+ queueId: this.queueId,
240
+ queueOffset: this.queueOffset,
241
+ transactionId: this.transactionId,
242
+ batchUniqId: this.batchUniqId,
243
+ recallHandle: this.recallHandle,
244
+ });
245
+ }
246
+ fromExtFields(ext) {
247
+ this.msgId = ext['msgId'] != null ? ext['msgId'] : null;
248
+ this.queueId = _num(ext['queueId']);
249
+ this.queueOffset = _num(ext['queueOffset']);
250
+ this.transactionId = ext['transactionId'] != null ? ext['transactionId'] : null;
251
+ this.batchUniqId = ext['batchUniqId'] != null ? ext['batchUniqId'] : null;
252
+ this.recallHandle = ext['recallHandle'] != null ? ext['recallHandle'] : null;
253
+ }
254
+ }
255
+ export class RecallMessageRequestHeader extends CommandCustomHeader {
256
+ producerGroup = null;
257
+ topic = null;
258
+ recallHandle = null;
259
+ bname = null;
260
+ toExtFields() {
261
+ return _ext({ producerGroup: this.producerGroup, topic: this.topic, recallHandle: this.recallHandle, bname: this.bname });
262
+ }
263
+ fromExtFields(ext) {
264
+ this.producerGroup = ext['producerGroup'] != null ? ext['producerGroup'] : null;
265
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
266
+ this.recallHandle = ext['recallHandle'] != null ? ext['recallHandle'] : null;
267
+ this.bname = ext['bname'] != null ? ext['bname'] : null;
268
+ }
269
+ }
270
+ export class RecallMessageResponseHeader extends CommandCustomHeader {
271
+ msgId = null;
272
+ toExtFields() { return _ext({ msgId: this.msgId }); }
273
+ fromExtFields(ext) { this.msgId = ext['msgId'] != null ? ext['msgId'] : null; }
274
+ }
275
+ export class PullMessageRequestHeader extends CommandCustomHeader {
276
+ consumerGroup = null;
277
+ topic = null;
278
+ liteTopic = null;
279
+ queueId = null;
280
+ queueOffset = null;
281
+ maxMsgNums = null;
282
+ sysFlag = null;
283
+ commitOffset = null;
284
+ suspendTimeoutMillis = null;
285
+ subscription = null;
286
+ subVersion = null;
287
+ expressionType = null;
288
+ maxMsgBytes = null;
289
+ requestSource = null;
290
+ proxyFrowardClientId = null;
291
+ toExtFields() {
292
+ return _ext({
293
+ consumerGroup: this.consumerGroup,
294
+ topic: this.topic,
295
+ liteTopic: this.liteTopic,
296
+ queueId: this.queueId,
297
+ queueOffset: this.queueOffset,
298
+ maxMsgNums: this.maxMsgNums,
299
+ sysFlag: this.sysFlag,
300
+ commitOffset: this.commitOffset,
301
+ suspendTimeoutMillis: this.suspendTimeoutMillis,
302
+ subscription: this.subscription,
303
+ subVersion: this.subVersion,
304
+ expressionType: this.expressionType,
305
+ maxMsgBytes: this.maxMsgBytes,
306
+ requestSource: this.requestSource,
307
+ proxyFrowardClientId: this.proxyFrowardClientId,
308
+ });
309
+ }
310
+ fromExtFields(ext) {
311
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
312
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
313
+ this.liteTopic = ext['liteTopic'] != null ? ext['liteTopic'] : null;
314
+ this.queueId = _num(ext['queueId']);
315
+ this.queueOffset = _num(ext['queueOffset']);
316
+ this.maxMsgNums = _num(ext['maxMsgNums']);
317
+ this.sysFlag = _num(ext['sysFlag']);
318
+ this.commitOffset = _num(ext['commitOffset']);
319
+ this.suspendTimeoutMillis = _num(ext['suspendTimeoutMillis']);
320
+ this.subscription = ext['subscription'] != null ? ext['subscription'] : null;
321
+ this.subVersion = _num(ext['subVersion']);
322
+ this.expressionType = ext['expressionType'] != null ? ext['expressionType'] : null;
323
+ this.maxMsgBytes = _num(ext['maxMsgBytes']);
324
+ this.requestSource = _num(ext['requestSource']);
325
+ this.proxyFrowardClientId = ext['proxyFrowardClientId'] != null ? ext['proxyFrowardClientId'] : null;
326
+ }
327
+ }
328
+ export class PullMessageResponseHeader extends CommandCustomHeader {
329
+ nextBeginOffset = null;
330
+ minOffset = null;
331
+ maxOffset = null;
332
+ suggestWhichBrokerId = null;
333
+ topicSysFlag = null;
334
+ groupSysFlag = null;
335
+ forbiddenType = null;
336
+ offsetDelta = null;
337
+ toExtFields() {
338
+ return _ext({
339
+ nextBeginOffset: this.nextBeginOffset,
340
+ minOffset: this.minOffset,
341
+ maxOffset: this.maxOffset,
342
+ suggestWhichBrokerId: this.suggestWhichBrokerId,
343
+ topicSysFlag: this.topicSysFlag,
344
+ groupSysFlag: this.groupSysFlag,
345
+ forbiddenType: this.forbiddenType,
346
+ offsetDelta: this.offsetDelta,
347
+ });
348
+ }
349
+ fromExtFields(ext) {
350
+ this.nextBeginOffset = _num(ext['nextBeginOffset']);
351
+ this.minOffset = _num(ext['minOffset']);
352
+ this.maxOffset = _num(ext['maxOffset']);
353
+ this.suggestWhichBrokerId = _num(ext['suggestWhichBrokerId']);
354
+ this.topicSysFlag = _num(ext['topicSysFlag']);
355
+ this.groupSysFlag = _num(ext['groupSysFlag']);
356
+ this.forbiddenType = _num(ext['forbiddenType']);
357
+ this.offsetDelta = _num(ext['offsetDelta']);
358
+ }
359
+ }
360
+ export class QueryConsumerOffsetRequestHeader extends CommandCustomHeader {
361
+ consumerGroup = null;
362
+ topic = null;
363
+ queueId = null;
364
+ setZeroIfNotFound = null;
365
+ toExtFields() {
366
+ return _ext({ consumerGroup: this.consumerGroup, topic: this.topic, queueId: this.queueId, setZeroIfNotFound: this.setZeroIfNotFound });
367
+ }
368
+ fromExtFields(ext) {
369
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
370
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
371
+ this.queueId = _num(ext['queueId']);
372
+ this.setZeroIfNotFound = _b(ext['setZeroIfNotFound']);
373
+ }
374
+ }
375
+ export class QueryConsumerOffsetResponseHeader extends CommandCustomHeader {
376
+ offset = null;
377
+ toExtFields() { return _ext({ offset: this.offset }); }
378
+ fromExtFields(ext) { this.offset = _num(ext['offset']); }
379
+ }
380
+ export class UpdateConsumerOffsetRequestHeader extends CommandCustomHeader {
381
+ consumerGroup = null;
382
+ topic = null;
383
+ queueId = null;
384
+ commitOffset = null;
385
+ toExtFields() {
386
+ return _ext({ consumerGroup: this.consumerGroup, topic: this.topic, queueId: this.queueId, commitOffset: this.commitOffset });
387
+ }
388
+ fromExtFields(ext) {
389
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
390
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
391
+ this.queueId = _num(ext['queueId']);
392
+ this.commitOffset = _num(ext['commitOffset']);
393
+ }
394
+ }
395
+ export class UpdateConsumerOffsetResponseHeader extends CommandCustomHeader {
396
+ offset = null;
397
+ toExtFields() { return _ext({ offset: this.offset }); }
398
+ fromExtFields(ext) { this.offset = _num(ext['offset']); }
399
+ }
400
+ export class GetMaxOffsetRequestHeader extends CommandCustomHeader {
401
+ topic = null;
402
+ queueId = null;
403
+ toExtFields() { return _ext({ topic: this.topic, queueId: this.queueId }); }
404
+ fromExtFields(ext) {
405
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
406
+ this.queueId = _num(ext['queueId']);
407
+ }
408
+ }
409
+ export class GetMaxOffsetResponseHeader extends CommandCustomHeader {
410
+ offset = null;
411
+ toExtFields() { return _ext({ offset: this.offset }); }
412
+ fromExtFields(ext) { this.offset = _num(ext['offset']); }
413
+ }
414
+ export class GetMinOffsetRequestHeader extends CommandCustomHeader {
415
+ topic = null;
416
+ queueId = null;
417
+ toExtFields() { return _ext({ topic: this.topic, queueId: this.queueId }); }
418
+ fromExtFields(ext) {
419
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
420
+ this.queueId = _num(ext['queueId']);
421
+ }
422
+ }
423
+ export class GetMinOffsetResponseHeader extends CommandCustomHeader {
424
+ offset = null;
425
+ toExtFields() { return _ext({ offset: this.offset }); }
426
+ fromExtFields(ext) { this.offset = _num(ext['offset']); }
427
+ }
428
+ export class SearchOffsetRequestHeader extends CommandCustomHeader {
429
+ topic = null;
430
+ queueId = null;
431
+ timestamp = null;
432
+ boundaryType = null;
433
+ toExtFields() {
434
+ return _ext({
435
+ topic: this.topic,
436
+ queueId: this.queueId,
437
+ timestamp: this.timestamp,
438
+ boundaryType: this.boundaryType != null ? this.boundaryType.value : null,
439
+ });
440
+ }
441
+ fromExtFields(ext) {
442
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
443
+ this.queueId = _num(ext['queueId']);
444
+ this.timestamp = _num(ext['timestamp']);
445
+ const value = ext['boundaryType'];
446
+ this.boundaryType = value != null ? BoundaryType.get_type(value) : null;
447
+ }
448
+ }
449
+ export class SearchOffsetResponseHeader extends CommandCustomHeader {
450
+ offset = null;
451
+ toExtFields() { return _ext({ offset: this.offset }); }
452
+ fromExtFields(ext) { this.offset = _num(ext['offset']); }
453
+ }
454
+ export class GetEarliestMsgStoretimeRequestHeader extends CommandCustomHeader {
455
+ topic = null;
456
+ queueId = null;
457
+ toExtFields() { return _ext({ topic: this.topic, queueId: this.queueId }); }
458
+ fromExtFields(ext) {
459
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
460
+ this.queueId = _num(ext['queueId']);
461
+ }
462
+ }
463
+ export class GetEarliestMsgStoretimeResponseHeader extends CommandCustomHeader {
464
+ timestamp = null;
465
+ toExtFields() { return _ext({ timestamp: this.timestamp }); }
466
+ fromExtFields(ext) { this.timestamp = _num(ext['timestamp']); }
467
+ }
468
+ export class QueryMessageRequestHeader extends CommandCustomHeader {
469
+ topic = null;
470
+ key = null;
471
+ maxNum = null;
472
+ beginTimestamp = null;
473
+ endTimestamp = null;
474
+ indexType = null;
475
+ lastKey = null;
476
+ toExtFields() {
477
+ return _ext({
478
+ topic: this.topic, key: this.key, maxNum: this.maxNum,
479
+ beginTimestamp: this.beginTimestamp, endTimestamp: this.endTimestamp,
480
+ indexType: this.indexType, lastKey: this.lastKey,
481
+ });
482
+ }
483
+ fromExtFields(ext) {
484
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
485
+ this.key = ext['key'] != null ? ext['key'] : null;
486
+ this.maxNum = _num(ext['maxNum']);
487
+ this.beginTimestamp = _num(ext['beginTimestamp']);
488
+ this.endTimestamp = _num(ext['endTimestamp']);
489
+ this.indexType = ext['indexType'] != null ? ext['indexType'] : null;
490
+ this.lastKey = ext['lastKey'] != null ? ext['lastKey'] : null;
491
+ }
492
+ }
493
+ export class QueryMessageResponseHeader extends CommandCustomHeader {
494
+ indexLastUpdateTimestamp = null;
495
+ toExtFields() { return _ext({ indexLastUpdateTimestamp: this.indexLastUpdateTimestamp }); }
496
+ fromExtFields(ext) { this.indexLastUpdateTimestamp = _num(ext['indexLastUpdateTimestamp']); }
497
+ }
498
+ export class ViewMessageRequestHeader extends CommandCustomHeader {
499
+ offset = null;
500
+ toExtFields() { return _ext({ offset: this.offset }); }
501
+ fromExtFields(ext) { this.offset = _num(ext['offset']); }
502
+ }
503
+ export class ViewMessageResponseHeader extends CommandCustomHeader {
504
+ toExtFields() { return {}; }
505
+ fromExtFields(_ext) { }
506
+ }
507
+ export class HeartbeatRequestHeader extends CommandCustomHeader {
508
+ clientID = null;
509
+ toExtFields() { return _ext({ clientID: this.clientID }); }
510
+ fromExtFields(ext) { this.clientID = ext['clientID'] != null ? ext['clientID'] : null; }
511
+ }
512
+ export class UnregisterClientRequestHeader extends CommandCustomHeader {
513
+ clientID = null;
514
+ producerGroup = null;
515
+ consumerGroup = null;
516
+ toExtFields() {
517
+ return _ext({ clientID: this.clientID, producerGroup: this.producerGroup, consumerGroup: this.consumerGroup });
518
+ }
519
+ fromExtFields(ext) {
520
+ this.clientID = ext['clientID'] != null ? ext['clientID'] : null;
521
+ this.producerGroup = ext['producerGroup'] != null ? ext['producerGroup'] : null;
522
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
523
+ }
524
+ }
525
+ export class ConsumerSendMsgBackRequestHeader extends CommandCustomHeader {
526
+ offset = null;
527
+ group = null;
528
+ delayLevel = null;
529
+ originMsgId = null;
530
+ originTopic = null;
531
+ unitMode = null;
532
+ maxReconsumeTimes = null;
533
+ toExtFields() {
534
+ return _ext({
535
+ offset: this.offset, group: this.group, delayLevel: this.delayLevel,
536
+ originMsgId: this.originMsgId, originTopic: this.originTopic,
537
+ unitMode: this.unitMode, maxReconsumeTimes: this.maxReconsumeTimes,
538
+ });
539
+ }
540
+ fromExtFields(ext) {
541
+ this.offset = _num(ext['offset']);
542
+ this.group = ext['group'] != null ? ext['group'] : null;
543
+ this.delayLevel = _num(ext['delayLevel']);
544
+ this.originMsgId = ext['originMsgId'] != null ? ext['originMsgId'] : null;
545
+ this.originTopic = ext['originTopic'] != null ? ext['originTopic'] : null;
546
+ this.unitMode = _b(ext['unitMode']);
547
+ this.maxReconsumeTimes = _num(ext['maxReconsumeTimes']);
548
+ }
549
+ }
550
+ export class GetConsumerListByGroupRequestHeader extends CommandCustomHeader {
551
+ consumerGroup = null;
552
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup }); }
553
+ fromExtFields(ext) { this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null; }
554
+ }
555
+ export class GetConsumerListByGroupResponseHeader extends CommandCustomHeader {
556
+ toExtFields() { return {}; }
557
+ fromExtFields(_ext) { }
558
+ }
559
+ export class NotifyConsumerIdsChangedRequestHeader extends CommandCustomHeader {
560
+ consumerGroup = null;
561
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup }); }
562
+ fromExtFields(ext) { this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null; }
563
+ }
564
+ export class GetConsumerConnectionListRequestHeader extends CommandCustomHeader {
565
+ consumerGroup = null;
566
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup }); }
567
+ fromExtFields(ext) { this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null; }
568
+ }
569
+ export class GetConsumerStatusRequestHeader extends CommandCustomHeader {
570
+ topic = null;
571
+ group = null;
572
+ clientAddr = null;
573
+ toExtFields() { return _ext({ topic: this.topic, group: this.group, clientAddr: this.clientAddr }); }
574
+ fromExtFields(ext) {
575
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
576
+ this.group = ext['group'] != null ? ext['group'] : null;
577
+ this.clientAddr = ext['clientAddr'] != null ? ext['clientAddr'] : null;
578
+ }
579
+ }
580
+ export class GetConsumerRunningInfoRequestHeader extends CommandCustomHeader {
581
+ consumerGroup = null;
582
+ clientId = null;
583
+ jstackEnable = null;
584
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup, clientId: this.clientId, jstackEnable: this.jstackEnable }); }
585
+ fromExtFields(ext) {
586
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
587
+ this.clientId = ext['clientId'] != null ? ext['clientId'] : null;
588
+ this.jstackEnable = _b(ext['jstackEnable']);
589
+ }
590
+ }
591
+ export class ConsumeMessageDirectlyResultRequestHeader extends CommandCustomHeader {
592
+ consumerGroup = null;
593
+ clientId = null;
594
+ msgId = null;
595
+ brokerName = null;
596
+ toExtFields() {
597
+ return _ext({ consumerGroup: this.consumerGroup, clientId: this.clientId, msgId: this.msgId, brokerName: this.brokerName });
598
+ }
599
+ fromExtFields(ext) {
600
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
601
+ this.clientId = ext['clientId'] != null ? ext['clientId'] : null;
602
+ this.msgId = ext['msgId'] != null ? ext['msgId'] : null;
603
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
604
+ }
605
+ }
606
+ export class ResetOffsetRequestHeader extends CommandCustomHeader {
607
+ topic = null;
608
+ group = null;
609
+ timestamp = null;
610
+ isForce = null;
611
+ toExtFields() { return _ext({ topic: this.topic, group: this.group, timestamp: this.timestamp, isForce: this.isForce }); }
612
+ fromExtFields(ext) {
613
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
614
+ this.group = ext['group'] != null ? ext['group'] : null;
615
+ this.timestamp = _num(ext['timestamp']);
616
+ this.isForce = _b(ext['isForce']);
617
+ }
618
+ }
619
+ export class LockBatchMqRequestHeader extends CommandCustomHeader {
620
+ consumerGroup = null;
621
+ clientId = null;
622
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup, clientId: this.clientId }); }
623
+ fromExtFields(ext) {
624
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
625
+ this.clientId = ext['clientId'] != null ? ext['clientId'] : null;
626
+ }
627
+ }
628
+ export class UnlockBatchMqRequestHeader extends CommandCustomHeader {
629
+ consumerGroup = null;
630
+ clientId = null;
631
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup, clientId: this.clientId }); }
632
+ fromExtFields(ext) {
633
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
634
+ this.clientId = ext['clientId'] != null ? ext['clientId'] : null;
635
+ }
636
+ }
637
+ export class EndTransactionRequestHeader extends CommandCustomHeader {
638
+ topic = null;
639
+ producerGroup = null;
640
+ tranStateTableOffset = null;
641
+ commitLogOffset = null;
642
+ commitOrRollback = null;
643
+ fromTransactionCheck = null;
644
+ msgId = null;
645
+ transactionId = null;
646
+ bname = null;
647
+ toExtFields() {
648
+ return _ext({
649
+ topic: this.topic, producerGroup: this.producerGroup,
650
+ tranStateTableOffset: this.tranStateTableOffset, commitLogOffset: this.commitLogOffset,
651
+ commitOrRollback: this.commitOrRollback, fromTransactionCheck: this.fromTransactionCheck,
652
+ msgId: this.msgId, transactionId: this.transactionId, bname: this.bname,
653
+ });
654
+ }
655
+ fromExtFields(ext) {
656
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
657
+ this.producerGroup = ext['producerGroup'] != null ? ext['producerGroup'] : null;
658
+ this.tranStateTableOffset = _num(ext['tranStateTableOffset']);
659
+ this.commitLogOffset = _num(ext['commitLogOffset']);
660
+ this.commitOrRollback = _num(ext['commitOrRollback']);
661
+ this.fromTransactionCheck = _b(ext['fromTransactionCheck']);
662
+ this.msgId = ext['msgId'] != null ? ext['msgId'] : null;
663
+ this.transactionId = ext['transactionId'] != null ? ext['transactionId'] : null;
664
+ this.bname = ext['bname'] != null ? ext['bname'] : null;
665
+ }
666
+ }
667
+ export class EndTransactionResponseHeader extends CommandCustomHeader {
668
+ msgId = null;
669
+ transactionId = null;
670
+ toExtFields() { return _ext({ msgId: this.msgId, transactionId: this.transactionId }); }
671
+ fromExtFields(ext) {
672
+ this.msgId = ext['msgId'] != null ? ext['msgId'] : null;
673
+ this.transactionId = ext['transactionId'] != null ? ext['transactionId'] : null;
674
+ }
675
+ }
676
+ export class CheckTransactionStateRequestHeader extends CommandCustomHeader {
677
+ topic = null;
678
+ tranStateTableOffset = null;
679
+ commitLogOffset = null;
680
+ msgId = null;
681
+ transactionId = null;
682
+ offsetMsgId = null;
683
+ bname = null;
684
+ toExtFields() {
685
+ return _ext({
686
+ topic: this.topic, tranStateTableOffset: this.tranStateTableOffset,
687
+ commitLogOffset: this.commitLogOffset, msgId: this.msgId,
688
+ transactionId: this.transactionId, offsetMsgId: this.offsetMsgId, bname: this.bname,
689
+ });
690
+ }
691
+ fromExtFields(ext) {
692
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
693
+ this.tranStateTableOffset = _num(ext['tranStateTableOffset']);
694
+ this.commitLogOffset = _num(ext['commitLogOffset']);
695
+ this.msgId = ext['msgId'] != null ? ext['msgId'] : null;
696
+ this.transactionId = ext['transactionId'] != null ? ext['transactionId'] : null;
697
+ this.offsetMsgId = ext['offsetMsgId'] != null ? ext['offsetMsgId'] : null;
698
+ this.bname = ext['bname'] != null ? ext['bname'] : null;
699
+ }
700
+ }
701
+ export class CheckTransactionStateResponseHeader extends CommandCustomHeader {
702
+ groupName = null;
703
+ transactionState = null;
704
+ offset = null;
705
+ toExtFields() { return _ext({ groupName: this.groupName, transactionState: this.transactionState, offset: this.offset }); }
706
+ fromExtFields(ext) {
707
+ this.groupName = ext['groupName'] != null ? ext['groupName'] : null;
708
+ this.transactionState = _num(ext['transactionState']);
709
+ this.offset = _num(ext['offset']);
710
+ }
711
+ }
712
+ export class GetAllTopicConfigRequestHeader extends CommandCustomHeader {
713
+ toExtFields() { return {}; }
714
+ fromExtFields(_ext) { }
715
+ }
716
+ export class GetAllTopicConfigResponseHeader extends CommandCustomHeader {
717
+ dataVersion = null;
718
+ toExtFields() { return _ext({ dataVersion: this.dataVersion }); }
719
+ fromExtFields(ext) { this.dataVersion = ext['dataVersion'] != null ? ext['dataVersion'] : null; }
720
+ }
721
+ export class GetTopicConfigRequestHeader extends CommandCustomHeader {
722
+ topic = null;
723
+ toExtFields() { return _ext({ topic: this.topic }); }
724
+ fromExtFields(ext) { this.topic = ext['topic'] != null ? ext['topic'] : null; }
725
+ }
726
+ export class CreateTopicRequestHeader extends CommandCustomHeader {
727
+ topic = null;
728
+ defaultTopic = null;
729
+ readQueueNums = null;
730
+ writeQueueNums = null;
731
+ perm = null;
732
+ topicFilterType = null;
733
+ topicSysFlag = null;
734
+ order = null;
735
+ attributes = null;
736
+ force = null;
737
+ toExtFields() {
738
+ return _ext({
739
+ topic: this.topic, defaultTopic: this.defaultTopic,
740
+ readQueueNums: this.readQueueNums, writeQueueNums: this.writeQueueNums,
741
+ perm: this.perm, topicFilterType: this.topicFilterType,
742
+ topicSysFlag: this.topicSysFlag, order: this.order,
743
+ attributes: this.attributes, force: this.force,
744
+ });
745
+ }
746
+ fromExtFields(ext) {
747
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
748
+ this.defaultTopic = ext['defaultTopic'] != null ? ext['defaultTopic'] : null;
749
+ this.readQueueNums = _num(ext['readQueueNums']);
750
+ this.writeQueueNums = _num(ext['writeQueueNums']);
751
+ this.perm = _num(ext['perm']);
752
+ this.topicFilterType = ext['topicFilterType'] != null ? ext['topicFilterType'] : null;
753
+ this.topicSysFlag = _num(ext['topicSysFlag']);
754
+ this.order = _b(ext['order']);
755
+ this.attributes = ext['attributes'] != null ? ext['attributes'] : null;
756
+ this.force = _b(ext['force']);
757
+ }
758
+ }
759
+ export class DeleteTopicRequestHeader extends CommandCustomHeader {
760
+ topic = null;
761
+ toExtFields() { return _ext({ topic: this.topic }); }
762
+ fromExtFields(ext) { this.topic = ext['topic'] != null ? ext['topic'] : null; }
763
+ }
764
+ export class GetTopicStatsInfoRequestHeader extends CommandCustomHeader {
765
+ topic = null;
766
+ toExtFields() { return _ext({ topic: this.topic }); }
767
+ fromExtFields(ext) { this.topic = ext['topic'] != null ? ext['topic'] : null; }
768
+ }
769
+ export class GetConsumeStatsRequestHeader extends CommandCustomHeader {
770
+ consumerGroup = null;
771
+ topic = null;
772
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup, topic: this.topic }); }
773
+ fromExtFields(ext) {
774
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
775
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
776
+ }
777
+ }
778
+ export class GetAllSubscriptionGroupConfigRequestHeader extends CommandCustomHeader {
779
+ toExtFields() { return {}; }
780
+ fromExtFields(_ext) { }
781
+ }
782
+ export class GetSubscriptionGroupConfigRequestHeader extends CommandCustomHeader {
783
+ group = null;
784
+ toExtFields() { return _ext({ group: this.group }); }
785
+ fromExtFields(ext) { this.group = ext['group'] != null ? ext['group'] : null; }
786
+ }
787
+ export class InterviewGetConsumerStatusRequestHeader extends CommandCustomHeader {
788
+ consumerGroup = null;
789
+ topic = null;
790
+ toExtFields() { return _ext({ consumerGroup: this.consumerGroup, topic: this.topic }); }
791
+ fromExtFields(ext) {
792
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
793
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
794
+ }
795
+ }
796
+ export class GetTopicsByClusterRequestHeader extends CommandCustomHeader {
797
+ cluster = null;
798
+ toExtFields() { return _ext({ cluster: this.cluster }); }
799
+ fromExtFields(ext) { this.cluster = ext['cluster'] != null ? ext['cluster'] : null; }
800
+ }
801
+ export class GetBrokerConfigResponseHeader extends CommandCustomHeader {
802
+ version = null;
803
+ toExtFields() { return _ext({ version: this.version }); }
804
+ fromExtFields(ext) { this.version = ext['version'] != null ? ext['version'] : null; }
805
+ }
806
+ export class GetTopicConfigResponseHeader extends CommandCustomHeader {
807
+ toExtFields() { return {}; }
808
+ fromExtFields(_ext) { }
809
+ }
810
+ export class GetSubscriptionGroupResponseHeader extends CommandCustomHeader {
811
+ toExtFields() { return {}; }
812
+ fromExtFields(_ext) { }
813
+ }
814
+ export class GetTopicListResponseHeader extends CommandCustomHeader {
815
+ brokerAddr = null;
816
+ toExtFields() { return _ext({ brokerAddr: this.brokerAddr }); }
817
+ fromExtFields(ext) { this.brokerAddr = ext['brokerAddr'] != null ? ext['brokerAddr'] : null; }
818
+ }
819
+ export class RegisterBrokerRequestHeader extends CommandCustomHeader {
820
+ brokerName = null;
821
+ brokerAddr = null;
822
+ clusterName = null;
823
+ haServerAddr = null;
824
+ brokerId = null;
825
+ heartbeatTimeoutMillis = null;
826
+ enableActingMaster = null;
827
+ compressed = false;
828
+ bodyCrc32 = 0;
829
+ toExtFields() {
830
+ return _ext({
831
+ brokerName: this.brokerName, brokerAddr: this.brokerAddr, clusterName: this.clusterName,
832
+ haServerAddr: this.haServerAddr, brokerId: this.brokerId,
833
+ heartbeatTimeoutMillis: this.heartbeatTimeoutMillis,
834
+ enableActingMaster: this.enableActingMaster, compressed: this.compressed, bodyCrc32: this.bodyCrc32,
835
+ });
836
+ }
837
+ fromExtFields(ext) {
838
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
839
+ this.brokerAddr = ext['brokerAddr'] != null ? ext['brokerAddr'] : null;
840
+ this.clusterName = ext['clusterName'] != null ? ext['clusterName'] : null;
841
+ this.haServerAddr = ext['haServerAddr'] != null ? ext['haServerAddr'] : null;
842
+ this.brokerId = _num(ext['brokerId']);
843
+ this.heartbeatTimeoutMillis = _num(ext['heartbeatTimeoutMillis']);
844
+ const ea = ext['enableActingMaster'];
845
+ this.enableActingMaster = ea != null ? _b(ea) : null;
846
+ this.compressed = ext['compressed'] === true || ext['compressed'] === 'true';
847
+ this.bodyCrc32 = parseInt(ext['bodyCrc32'] != null ? ext['bodyCrc32'] : 0, 10);
848
+ }
849
+ }
850
+ export class RegisterBrokerResponseHeader extends CommandCustomHeader {
851
+ haServerAddr = null;
852
+ masterAddr = null;
853
+ toExtFields() { return _ext({ haServerAddr: this.haServerAddr, masterAddr: this.masterAddr }); }
854
+ fromExtFields(ext) {
855
+ this.haServerAddr = ext['haServerAddr'] != null ? ext['haServerAddr'] : null;
856
+ this.masterAddr = ext['masterAddr'] != null ? ext['masterAddr'] : null;
857
+ }
858
+ }
859
+ export class UnRegisterBrokerRequestHeader extends CommandCustomHeader {
860
+ brokerName = null;
861
+ brokerAddr = null;
862
+ clusterName = null;
863
+ brokerId = null;
864
+ toExtFields() {
865
+ return _ext({ brokerName: this.brokerName, brokerAddr: this.brokerAddr, clusterName: this.clusterName, brokerId: this.brokerId });
866
+ }
867
+ fromExtFields(ext) {
868
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
869
+ this.brokerAddr = ext['brokerAddr'] != null ? ext['brokerAddr'] : null;
870
+ this.clusterName = ext['clusterName'] != null ? ext['clusterName'] : null;
871
+ this.brokerId = _num(ext['brokerId']);
872
+ }
873
+ }
874
+ export class GetRouteInfoRequestHeader extends CommandCustomHeader {
875
+ topic = null;
876
+ acceptStandardJsonOnly = null;
877
+ toExtFields() { return _ext({ topic: this.topic, acceptStandardJsonOnly: this.acceptStandardJsonOnly }); }
878
+ fromExtFields(ext) {
879
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
880
+ const v = ext['acceptStandardJsonOnly'];
881
+ this.acceptStandardJsonOnly = v != null ? _b(v) : null;
882
+ }
883
+ }
884
+ export class PutKVConfigRequestHeader extends CommandCustomHeader {
885
+ namespace = null;
886
+ key = null;
887
+ value = null;
888
+ toExtFields() { return _ext({ namespace: this.namespace, key: this.key, value: this.value }); }
889
+ fromExtFields(ext) {
890
+ this.namespace = ext['namespace'] != null ? ext['namespace'] : null;
891
+ this.key = ext['key'] != null ? ext['key'] : null;
892
+ this.value = ext['value'] != null ? ext['value'] : null;
893
+ }
894
+ }
895
+ export class GetKVConfigRequestHeader extends CommandCustomHeader {
896
+ namespace = null;
897
+ key = null;
898
+ toExtFields() { return _ext({ namespace: this.namespace, key: this.key }); }
899
+ fromExtFields(ext) {
900
+ this.namespace = ext['namespace'] != null ? ext['namespace'] : null;
901
+ this.key = ext['key'] != null ? ext['key'] : null;
902
+ }
903
+ }
904
+ export class GetKVConfigResponseHeader extends CommandCustomHeader {
905
+ value = null;
906
+ toExtFields() { return _ext({ value: this.value }); }
907
+ fromExtFields(ext) { this.value = ext['value'] != null ? ext['value'] : null; }
908
+ }
909
+ export class DeleteKVConfigRequestHeader extends CommandCustomHeader {
910
+ namespace = null;
911
+ key = null;
912
+ toExtFields() { return _ext({ namespace: this.namespace, key: this.key }); }
913
+ fromExtFields(ext) {
914
+ this.namespace = ext['namespace'] != null ? ext['namespace'] : null;
915
+ this.key = ext['key'] != null ? ext['key'] : null;
916
+ }
917
+ }
918
+ export class GetKVListByNamespaceRequestHeader extends CommandCustomHeader {
919
+ namespace = null;
920
+ toExtFields() { return _ext({ namespace: this.namespace }); }
921
+ fromExtFields(ext) { this.namespace = ext['namespace'] != null ? ext['namespace'] : null; }
922
+ }
923
+ export class RegisterTopicRequestHeader extends CommandCustomHeader {
924
+ topic = null;
925
+ toExtFields() { return _ext({ topic: this.topic }); }
926
+ fromExtFields(ext) { this.topic = ext['topic'] != null ? ext['topic'] : null; }
927
+ }
928
+ export class RegisterOrderTopicRequestHeader extends CommandCustomHeader {
929
+ topic = null;
930
+ orderTopicString = null;
931
+ toExtFields() { return _ext({ topic: this.topic, orderTopicString: this.orderTopicString }); }
932
+ fromExtFields(ext) {
933
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
934
+ this.orderTopicString = ext['orderTopicString'] != null ? ext['orderTopicString'] : null;
935
+ }
936
+ }
937
+ export class DeleteTopicFromNamesrvRequestHeader extends CommandCustomHeader {
938
+ topic = null;
939
+ clusterName = null;
940
+ toExtFields() { return _ext({ topic: this.topic, clusterName: this.clusterName }); }
941
+ fromExtFields(ext) {
942
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
943
+ this.clusterName = ext['clusterName'] != null ? ext['clusterName'] : null;
944
+ }
945
+ }
946
+ export class GetBrokerMemberGroupRequestHeader extends CommandCustomHeader {
947
+ clusterName = null;
948
+ brokerName = null;
949
+ toExtFields() { return _ext({ clusterName: this.clusterName, brokerName: this.brokerName }); }
950
+ fromExtFields(ext) {
951
+ this.clusterName = ext['clusterName'] != null ? ext['clusterName'] : null;
952
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
953
+ }
954
+ }
955
+ export class WipeWritePermOfBrokerRequestHeader extends CommandCustomHeader {
956
+ brokerName = null;
957
+ toExtFields() { return _ext({ brokerName: this.brokerName }); }
958
+ fromExtFields(ext) { this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null; }
959
+ }
960
+ export class WipeWritePermOfBrokerResponseHeader extends CommandCustomHeader {
961
+ wipeTopicCount = null;
962
+ toExtFields() { return _ext({ wipeTopicCount: this.wipeTopicCount }); }
963
+ fromExtFields(ext) { this.wipeTopicCount = _num(ext['wipeTopicCount']); }
964
+ }
965
+ export class AddWritePermOfBrokerRequestHeader extends CommandCustomHeader {
966
+ brokerName = null;
967
+ toExtFields() { return _ext({ brokerName: this.brokerName }); }
968
+ fromExtFields(ext) { this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null; }
969
+ }
970
+ export class AddWritePermOfBrokerResponseHeader extends CommandCustomHeader {
971
+ addTopicCount = null;
972
+ toExtFields() { return _ext({ addTopicCount: this.addTopicCount }); }
973
+ fromExtFields(ext) { this.addTopicCount = _num(ext['addTopicCount']); }
974
+ }
975
+ export class BrokerHeartbeatRequestHeader extends CommandCustomHeader {
976
+ clusterName = null;
977
+ brokerAddr = null;
978
+ brokerName = null;
979
+ brokerId = null;
980
+ epoch = null;
981
+ maxOffset = null;
982
+ confirmOffset = null;
983
+ heartbeatTimeoutMills = null;
984
+ electionPriority = null;
985
+ toExtFields() {
986
+ return _ext({
987
+ clusterName: this.clusterName, brokerAddr: this.brokerAddr, brokerName: this.brokerName,
988
+ brokerId: this.brokerId, epoch: this.epoch, maxOffset: this.maxOffset,
989
+ confirmOffset: this.confirmOffset, heartbeatTimeoutMills: this.heartbeatTimeoutMills,
990
+ electionPriority: this.electionPriority,
991
+ });
992
+ }
993
+ fromExtFields(ext) {
994
+ this.clusterName = ext['clusterName'] != null ? ext['clusterName'] : null;
995
+ this.brokerAddr = ext['brokerAddr'] != null ? ext['brokerAddr'] : null;
996
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
997
+ this.brokerId = _num(ext['brokerId']);
998
+ this.epoch = _num(ext['epoch']);
999
+ this.maxOffset = _num(ext['maxOffset']);
1000
+ this.confirmOffset = _num(ext['confirmOffset']);
1001
+ this.heartbeatTimeoutMills = _num(ext['heartbeatTimeoutMills']);
1002
+ this.electionPriority = _num(ext['electionPriority']);
1003
+ }
1004
+ }
1005
+ export class QueryDataVersionRequestHeader extends CommandCustomHeader {
1006
+ brokerName = null;
1007
+ brokerAddr = null;
1008
+ clusterName = null;
1009
+ brokerId = null;
1010
+ toExtFields() {
1011
+ return _ext({ brokerName: this.brokerName, brokerAddr: this.brokerAddr, clusterName: this.clusterName, brokerId: this.brokerId });
1012
+ }
1013
+ fromExtFields(ext) {
1014
+ this.brokerName = ext['brokerName'] != null ? ext['brokerName'] : null;
1015
+ this.brokerAddr = ext['brokerAddr'] != null ? ext['brokerAddr'] : null;
1016
+ this.clusterName = ext['clusterName'] != null ? ext['clusterName'] : null;
1017
+ this.brokerId = _num(ext['brokerId']);
1018
+ }
1019
+ }
1020
+ export class QueryDataVersionResponseHeader extends CommandCustomHeader {
1021
+ changed = null;
1022
+ toExtFields() { return _ext({ changed: this.changed }); }
1023
+ fromExtFields(ext) { this.changed = _b(ext['changed']); }
1024
+ }
1025
+ export class PopMessageRequestHeader extends CommandCustomHeader {
1026
+ // bname is inherited from RpcRequestHeader.bname and is filled with the queue's broker name on POP requests.
1027
+ // The broker ignores it during POP handling, but the protocol still requires sending it.
1028
+ bname = null;
1029
+ consumerGroup = null;
1030
+ topic = null;
1031
+ queueId = null;
1032
+ maxMsgNums = null;
1033
+ invisibleTime = null;
1034
+ pollTime = null;
1035
+ bornTime = null;
1036
+ initMode = null;
1037
+ expType = null;
1038
+ exp = null;
1039
+ order = false;
1040
+ attemptId = null;
1041
+ toExtFields() {
1042
+ return _ext({
1043
+ bname: this.bname,
1044
+ consumerGroup: this.consumerGroup, topic: this.topic, queueId: this.queueId,
1045
+ maxMsgNums: this.maxMsgNums, invisibleTime: this.invisibleTime, pollTime: this.pollTime,
1046
+ bornTime: this.bornTime, initMode: this.initMode, expType: this.expType, exp: this.exp,
1047
+ order: this.order, attemptId: this.attemptId,
1048
+ });
1049
+ }
1050
+ fromExtFields(ext) {
1051
+ this.bname = ext['bname'] != null ? ext['bname'] : null;
1052
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
1053
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
1054
+ this.queueId = _num(ext['queueId']);
1055
+ this.maxMsgNums = _num(ext['maxMsgNums']);
1056
+ this.invisibleTime = _num(ext['invisibleTime']);
1057
+ this.pollTime = _num(ext['pollTime']);
1058
+ this.bornTime = _num(ext['bornTime']);
1059
+ this.initMode = _num(ext['initMode']);
1060
+ this.expType = ext['expType'] != null ? ext['expType'] : null;
1061
+ this.exp = ext['exp'] != null ? ext['exp'] : null;
1062
+ this.order = ext['order'] === true || ext['order'] === 'true';
1063
+ this.attemptId = ext['attemptId'] != null ? ext['attemptId'] : null;
1064
+ }
1065
+ }
1066
+ export class PopMessageResponseHeader extends CommandCustomHeader {
1067
+ popTime = null;
1068
+ invisibleTime = null;
1069
+ reviveQid = null;
1070
+ restNum = null;
1071
+ startOffsetInfo = null;
1072
+ msgOffsetInfo = null;
1073
+ orderCountInfo = null;
1074
+ toExtFields() {
1075
+ return _ext({
1076
+ popTime: this.popTime, invisibleTime: this.invisibleTime, reviveQid: this.reviveQid,
1077
+ restNum: this.restNum, startOffsetInfo: this.startOffsetInfo,
1078
+ msgOffsetInfo: this.msgOffsetInfo, orderCountInfo: this.orderCountInfo,
1079
+ });
1080
+ }
1081
+ fromExtFields(ext) {
1082
+ this.popTime = _num(ext['popTime']);
1083
+ this.invisibleTime = _num(ext['invisibleTime']);
1084
+ this.reviveQid = _num(ext['reviveQid']);
1085
+ this.restNum = _num(ext['restNum']);
1086
+ this.startOffsetInfo = ext['startOffsetInfo'] != null ? ext['startOffsetInfo'] : null;
1087
+ this.msgOffsetInfo = ext['msgOffsetInfo'] != null ? ext['msgOffsetInfo'] : null;
1088
+ this.orderCountInfo = ext['orderCountInfo'] != null ? ext['orderCountInfo'] : null;
1089
+ }
1090
+ }
1091
+ export class AckMessageRequestHeader extends CommandCustomHeader {
1092
+ bname = null;
1093
+ consumerGroup = null;
1094
+ topic = null;
1095
+ queueId = null;
1096
+ extraInfo = null;
1097
+ offset = null;
1098
+ liteTopic = null;
1099
+ toExtFields() {
1100
+ return _ext({
1101
+ bname: this.bname,
1102
+ consumerGroup: this.consumerGroup, topic: this.topic, queueId: this.queueId,
1103
+ extraInfo: this.extraInfo, offset: this.offset, liteTopic: this.liteTopic,
1104
+ });
1105
+ }
1106
+ fromExtFields(ext) {
1107
+ this.bname = ext['bname'] != null ? ext['bname'] : null;
1108
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
1109
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
1110
+ this.queueId = _num(ext['queueId']);
1111
+ this.extraInfo = ext['extraInfo'] != null ? ext['extraInfo'] : null;
1112
+ this.offset = _num(ext['offset']);
1113
+ this.liteTopic = ext['liteTopic'] != null ? ext['liteTopic'] : null;
1114
+ }
1115
+ }
1116
+ export class ChangeInvisibleTimeRequestHeader extends CommandCustomHeader {
1117
+ bname = null;
1118
+ consumerGroup = null;
1119
+ topic = null;
1120
+ queueId = null;
1121
+ extraInfo = null;
1122
+ offset = null;
1123
+ invisibleTime = null;
1124
+ liteTopic = null;
1125
+ suspend = false;
1126
+ toExtFields() {
1127
+ return _ext({
1128
+ bname: this.bname,
1129
+ consumerGroup: this.consumerGroup, topic: this.topic, queueId: this.queueId,
1130
+ extraInfo: this.extraInfo, offset: this.offset, invisibleTime: this.invisibleTime,
1131
+ liteTopic: this.liteTopic, suspend: this.suspend,
1132
+ });
1133
+ }
1134
+ fromExtFields(ext) {
1135
+ this.bname = ext['bname'] != null ? ext['bname'] : null;
1136
+ this.consumerGroup = ext['consumerGroup'] != null ? ext['consumerGroup'] : null;
1137
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
1138
+ this.queueId = _num(ext['queueId']);
1139
+ this.extraInfo = ext['extraInfo'] != null ? ext['extraInfo'] : null;
1140
+ this.offset = _num(ext['offset']);
1141
+ this.invisibleTime = _num(ext['invisibleTime']);
1142
+ this.liteTopic = ext['liteTopic'] != null ? ext['liteTopic'] : null;
1143
+ this.suspend = ext['suspend'] === true || ext['suspend'] === 'true';
1144
+ }
1145
+ }
1146
+ export class ChangeInvisibleTimeResponseHeader extends CommandCustomHeader {
1147
+ popTime = null;
1148
+ invisibleTime = null;
1149
+ reviveQid = null;
1150
+ toExtFields() { return _ext({ popTime: this.popTime, invisibleTime: this.invisibleTime, reviveQid: this.reviveQid }); }
1151
+ fromExtFields(ext) {
1152
+ this.popTime = _num(ext['popTime']);
1153
+ this.invisibleTime = _num(ext['invisibleTime']);
1154
+ this.reviveQid = _num(ext['reviveQid']);
1155
+ }
1156
+ }
1157
+ // Admin ACL headers (AUTH_CREATE_ACL / AUTH_UPDATE_ACL / AUTH_DELETE_ACL).
1158
+ export class CreateAccessConfigRequestHeader extends CommandCustomHeader {
1159
+ accessKey = null;
1160
+ secretKey = null;
1161
+ whiteRemoteAddress = null;
1162
+ admin = null;
1163
+ defaultTopicPerm = null;
1164
+ defaultGroupPerm = null;
1165
+ topicPerms = null;
1166
+ groupPerms = null;
1167
+ toExtFields() {
1168
+ return _ext({
1169
+ accessKey: this.accessKey, secretKey: this.secretKey,
1170
+ whiteRemoteAddress: this.whiteRemoteAddress, admin: this.admin,
1171
+ defaultTopicPerm: this.defaultTopicPerm, defaultGroupPerm: this.defaultGroupPerm,
1172
+ topicPerms: this.topicPerms, groupPerms: this.groupPerms,
1173
+ });
1174
+ }
1175
+ fromExtFields(ext) {
1176
+ this.accessKey = ext['accessKey'] != null ? ext['accessKey'] : null;
1177
+ this.secretKey = ext['secretKey'] != null ? ext['secretKey'] : null;
1178
+ this.whiteRemoteAddress = ext['whiteRemoteAddress'] != null ? ext['whiteRemoteAddress'] : null;
1179
+ this.admin = _b(ext['admin']);
1180
+ this.defaultTopicPerm = ext['defaultTopicPerm'] != null ? ext['defaultTopicPerm'] : null;
1181
+ this.defaultGroupPerm = ext['defaultGroupPerm'] != null ? ext['defaultGroupPerm'] : null;
1182
+ this.topicPerms = ext['topicPerms'] != null ? ext['topicPerms'] : null;
1183
+ this.groupPerms = ext['groupPerms'] != null ? ext['groupPerms'] : null;
1184
+ }
1185
+ }
1186
+ export class UpdateAccessConfigRequestHeader extends CreateAccessConfigRequestHeader {
1187
+ }
1188
+ export class DeleteAccessConfigRequestHeader extends CommandCustomHeader {
1189
+ accessKey = null;
1190
+ toExtFields() { return _ext({ accessKey: this.accessKey }); }
1191
+ fromExtFields(ext) { this.accessKey = ext['accessKey'] != null ? ext['accessKey'] : null; }
1192
+ }
1193
+ // ---------------- #47 mqadmin ops RPC headers (Java remoting.protocol.header.*) ----------------
1194
+ // QUERY_CORRECTION_OFFSET(308). filterGroups arrives on the wire pre-joined
1195
+ // with commas (Java joins the Set itself in MQClientAPIImpl:2780-2788), so the
1196
+ // port keeps a plain string.
1197
+ export class QueryCorrectionOffsetHeader extends CommandCustomHeader {
1198
+ topic = null;
1199
+ compareGroup = null;
1200
+ filterGroups = null;
1201
+ toExtFields() {
1202
+ return _ext({
1203
+ topic: this.topic, compareGroup: this.compareGroup, filterGroups: this.filterGroups,
1204
+ });
1205
+ }
1206
+ fromExtFields(ext) {
1207
+ this.topic = ext['topic'] != null ? ext['topic'] : null;
1208
+ this.compareGroup = ext['compareGroup'] != null ? ext['compareGroup'] : null;
1209
+ this.filterGroups = ext['filterGroups'] != null ? ext['filterGroups'] : null;
1210
+ }
1211
+ }
1212
+ // GET_ALL_PRODUCER_INFO(328): empty header — the class exists so the request
1213
+ // still carries a (zero-field) header, matching Java's request-object shape.
1214
+ export class GetAllProducerInfoRequestHeader extends CommandCustomHeader {
1215
+ }
1216
+ // RESET_MASTER_FLUSH_OFFSET(908). masterFlushOffset is a primitive long:
1217
+ // 0 is a real value that must be sent.
1218
+ export class ResetMasterFlushOffsetHeader extends CommandCustomHeader {
1219
+ masterFlushOffset = 0;
1220
+ toExtFields() {
1221
+ return _ext({ masterFlushOffset: this.masterFlushOffset });
1222
+ }
1223
+ fromExtFields(ext) {
1224
+ const n = _num(ext['masterFlushOffset']);
1225
+ this.masterFlushOffset = n != null ? n : 0;
1226
+ }
1227
+ }
1228
+ // CONTROLLER_ELECT_MASTER(1002). The admin facade always uses Java's
1229
+ // ofAdminTrigger: designateElect is forced to true and brokerId doubles as the
1230
+ // assigned master id (-1 means "no preference") — both @CFNotNull, always sent.
1231
+ export class ElectMasterRequestHeader extends CommandCustomHeader {
1232
+ clusterName = null;
1233
+ brokerName = null;
1234
+ brokerId = -1;
1235
+ designateElect = false;
1236
+ invokeTime = Date.now();
1237
+ static ofAdminTrigger(clusterName, brokerName, brokerId) {
1238
+ const h = new ElectMasterRequestHeader();
1239
+ h.clusterName = clusterName;
1240
+ h.brokerName = brokerName;
1241
+ h.brokerId = brokerId != null ? brokerId : -1;
1242
+ h.designateElect = true;
1243
+ return h;
1244
+ }
1245
+ toExtFields() {
1246
+ return _ext({
1247
+ clusterName: this.clusterName, brokerName: this.brokerName,
1248
+ brokerId: this.brokerId, designateElect: this.designateElect,
1249
+ invokeTime: this.invokeTime,
1250
+ });
1251
+ }
1252
+ }
1253
+ // The elect answer rides the response extFields, not a body.
1254
+ export class ElectMasterResponseHeader extends CommandCustomHeader {
1255
+ masterBrokerId = null;
1256
+ masterAddress = null;
1257
+ masterEpoch = null;
1258
+ syncStateSetEpoch = null;
1259
+ fromExtFields(ext) {
1260
+ this.masterBrokerId = _num(ext['masterBrokerId']);
1261
+ this.masterAddress = ext['masterAddress'] != null ? ext['masterAddress'] : null;
1262
+ this.masterEpoch = _num(ext['masterEpoch']);
1263
+ this.syncStateSetEpoch = _num(ext['syncStateSetEpoch']);
1264
+ }
1265
+ }
1266
+ export default {
1267
+ CommandCustomHeader, BoundaryType,
1268
+ SendMessageRequestHeader, SendMessageRequestHeaderV2, ReplyMessageRequestHeader,
1269
+ SendMessageResponseHeader, RecallMessageRequestHeader, RecallMessageResponseHeader,
1270
+ PullMessageRequestHeader, PullMessageResponseHeader,
1271
+ QueryConsumerOffsetRequestHeader, QueryConsumerOffsetResponseHeader,
1272
+ UpdateConsumerOffsetRequestHeader, UpdateConsumerOffsetResponseHeader,
1273
+ GetMaxOffsetRequestHeader, GetMaxOffsetResponseHeader,
1274
+ GetMinOffsetRequestHeader, GetMinOffsetResponseHeader,
1275
+ SearchOffsetRequestHeader, SearchOffsetResponseHeader,
1276
+ GetEarliestMsgStoretimeRequestHeader, GetEarliestMsgStoretimeResponseHeader,
1277
+ QueryMessageRequestHeader, QueryMessageResponseHeader,
1278
+ ViewMessageRequestHeader, ViewMessageResponseHeader,
1279
+ HeartbeatRequestHeader, UnregisterClientRequestHeader,
1280
+ ConsumerSendMsgBackRequestHeader, GetConsumerListByGroupRequestHeader,
1281
+ GetConsumerListByGroupResponseHeader, NotifyConsumerIdsChangedRequestHeader,
1282
+ GetConsumerConnectionListRequestHeader, GetConsumerStatusRequestHeader,
1283
+ GetConsumerRunningInfoRequestHeader, ConsumeMessageDirectlyResultRequestHeader,
1284
+ ResetOffsetRequestHeader, LockBatchMqRequestHeader, UnlockBatchMqRequestHeader,
1285
+ EndTransactionRequestHeader, EndTransactionResponseHeader,
1286
+ CheckTransactionStateRequestHeader, CheckTransactionStateResponseHeader,
1287
+ GetAllTopicConfigRequestHeader, GetAllTopicConfigResponseHeader,
1288
+ GetTopicConfigRequestHeader, CreateTopicRequestHeader, DeleteTopicRequestHeader,
1289
+ GetTopicStatsInfoRequestHeader, GetConsumeStatsRequestHeader,
1290
+ GetAllSubscriptionGroupConfigRequestHeader, GetSubscriptionGroupConfigRequestHeader,
1291
+ InterviewGetConsumerStatusRequestHeader, GetTopicsByClusterRequestHeader,
1292
+ GetBrokerConfigResponseHeader, GetTopicConfigResponseHeader,
1293
+ GetSubscriptionGroupResponseHeader, GetTopicListResponseHeader,
1294
+ RegisterBrokerRequestHeader, RegisterBrokerResponseHeader, UnRegisterBrokerRequestHeader,
1295
+ GetRouteInfoRequestHeader, PutKVConfigRequestHeader, GetKVConfigRequestHeader,
1296
+ GetKVConfigResponseHeader, DeleteKVConfigRequestHeader, GetKVListByNamespaceRequestHeader,
1297
+ RegisterTopicRequestHeader, RegisterOrderTopicRequestHeader, DeleteTopicFromNamesrvRequestHeader,
1298
+ GetBrokerMemberGroupRequestHeader, WipeWritePermOfBrokerRequestHeader,
1299
+ WipeWritePermOfBrokerResponseHeader, AddWritePermOfBrokerRequestHeader,
1300
+ AddWritePermOfBrokerResponseHeader, BrokerHeartbeatRequestHeader,
1301
+ QueryDataVersionRequestHeader, QueryDataVersionResponseHeader,
1302
+ PopMessageRequestHeader, PopMessageResponseHeader, AckMessageRequestHeader,
1303
+ ChangeInvisibleTimeRequestHeader, ChangeInvisibleTimeResponseHeader,
1304
+ CreateAccessConfigRequestHeader, UpdateAccessConfigRequestHeader, DeleteAccessConfigRequestHeader,
1305
+ QueryCorrectionOffsetHeader, GetAllProducerInfoRequestHeader, ResetMasterFlushOffsetHeader,
1306
+ ElectMasterRequestHeader, ElectMasterResponseHeader,
1307
+ };