rocketmq-client-nodejs-bate 1.0.12

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 (209) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +186 -0
  3. package/dist/client/BaseClient.d.ts +95 -0
  4. package/dist/client/BaseClient.js +324 -0
  5. package/dist/client/ClientId.d.ts +24 -0
  6. package/dist/client/ClientId.js +33 -0
  7. package/dist/client/Logger.d.ts +25 -0
  8. package/dist/client/Logger.js +33 -0
  9. package/dist/client/RpcClient.d.ts +48 -0
  10. package/dist/client/RpcClient.js +219 -0
  11. package/dist/client/RpcClientManager.d.ts +42 -0
  12. package/dist/client/RpcClientManager.js +144 -0
  13. package/dist/client/SessionCredentials.d.ts +21 -0
  14. package/dist/client/SessionCredentials.js +19 -0
  15. package/dist/client/Settings.d.ts +31 -0
  16. package/dist/client/Settings.js +40 -0
  17. package/dist/client/TelemetrySession.d.ts +27 -0
  18. package/dist/client/TelemetrySession.js +110 -0
  19. package/dist/client/UserAgent.d.ts +25 -0
  20. package/dist/client/UserAgent.js +47 -0
  21. package/dist/client/index.d.ts +26 -0
  22. package/dist/client/index.js +43 -0
  23. package/dist/consumer/Assignment.d.ts +23 -0
  24. package/dist/consumer/Assignment.js +40 -0
  25. package/dist/consumer/Assignments.d.ts +24 -0
  26. package/dist/consumer/Assignments.js +47 -0
  27. package/dist/consumer/ConsumeResult.d.ts +20 -0
  28. package/dist/consumer/ConsumeResult.js +25 -0
  29. package/dist/consumer/ConsumeService.d.ts +28 -0
  30. package/dist/consumer/ConsumeService.js +49 -0
  31. package/dist/consumer/ConsumeTask.d.ts +24 -0
  32. package/dist/consumer/ConsumeTask.js +40 -0
  33. package/dist/consumer/Consumer.d.ts +38 -0
  34. package/dist/consumer/Consumer.js +111 -0
  35. package/dist/consumer/FifoConsumeService.d.ts +25 -0
  36. package/dist/consumer/FifoConsumeService.js +123 -0
  37. package/dist/consumer/FilterExpression.d.ts +25 -0
  38. package/dist/consumer/FilterExpression.js +40 -0
  39. package/dist/consumer/MessageListener.d.ts +21 -0
  40. package/dist/consumer/MessageListener.js +19 -0
  41. package/dist/consumer/ProcessQueue.d.ts +39 -0
  42. package/dist/consumer/ProcessQueue.js +286 -0
  43. package/dist/consumer/PushConsumer.d.ts +68 -0
  44. package/dist/consumer/PushConsumer.js +377 -0
  45. package/dist/consumer/PushSubscriptionSettings.d.ts +31 -0
  46. package/dist/consumer/PushSubscriptionSettings.js +97 -0
  47. package/dist/consumer/SimpleConsumer.d.ts +50 -0
  48. package/dist/consumer/SimpleConsumer.js +122 -0
  49. package/dist/consumer/SimpleSubscriptionSettings.d.ts +28 -0
  50. package/dist/consumer/SimpleSubscriptionSettings.js +57 -0
  51. package/dist/consumer/StandardConsumeService.d.ts +24 -0
  52. package/dist/consumer/StandardConsumeService.js +42 -0
  53. package/dist/consumer/SubscriptionLoadBalancer.d.ts +23 -0
  54. package/dist/consumer/SubscriptionLoadBalancer.js +46 -0
  55. package/dist/consumer/index.d.ts +32 -0
  56. package/dist/consumer/index.js +49 -0
  57. package/dist/exception/BadRequestException.d.ts +20 -0
  58. package/dist/exception/BadRequestException.js +28 -0
  59. package/dist/exception/ClientException.d.ts +20 -0
  60. package/dist/exception/ClientException.js +31 -0
  61. package/dist/exception/ForbiddenException.d.ts +20 -0
  62. package/dist/exception/ForbiddenException.js +28 -0
  63. package/dist/exception/InternalErrorException.d.ts +20 -0
  64. package/dist/exception/InternalErrorException.js +28 -0
  65. package/dist/exception/NotFoundException.d.ts +20 -0
  66. package/dist/exception/NotFoundException.js +28 -0
  67. package/dist/exception/PayloadTooLargeException.d.ts +20 -0
  68. package/dist/exception/PayloadTooLargeException.js +28 -0
  69. package/dist/exception/PaymentRequiredException.d.ts +20 -0
  70. package/dist/exception/PaymentRequiredException.js +28 -0
  71. package/dist/exception/ProxyTimeoutException.d.ts +20 -0
  72. package/dist/exception/ProxyTimeoutException.js +28 -0
  73. package/dist/exception/RequestHeaderFieldsTooLargeException.d.ts +20 -0
  74. package/dist/exception/RequestHeaderFieldsTooLargeException.js +28 -0
  75. package/dist/exception/StatusChecker.d.ts +20 -0
  76. package/dist/exception/StatusChecker.js +98 -0
  77. package/dist/exception/TooManyRequestsException.d.ts +20 -0
  78. package/dist/exception/TooManyRequestsException.js +28 -0
  79. package/dist/exception/UnauthorizedException.d.ts +20 -0
  80. package/dist/exception/UnauthorizedException.js +28 -0
  81. package/dist/exception/UnsupportedException.d.ts +20 -0
  82. package/dist/exception/UnsupportedException.js +28 -0
  83. package/dist/exception/index.d.ts +29 -0
  84. package/dist/exception/index.js +46 -0
  85. package/dist/index.d.ts +22 -0
  86. package/dist/index.js +39 -0
  87. package/dist/message/Message.d.ts +38 -0
  88. package/dist/message/Message.js +57 -0
  89. package/dist/message/MessageId.d.ts +59 -0
  90. package/dist/message/MessageId.js +123 -0
  91. package/dist/message/MessageView.d.ts +38 -0
  92. package/dist/message/MessageView.js +90 -0
  93. package/dist/message/PublishingMessage.d.ts +30 -0
  94. package/dist/message/PublishingMessage.js +100 -0
  95. package/dist/message/index.d.ts +20 -0
  96. package/dist/message/index.js +37 -0
  97. package/dist/producer/Producer.d.ts +55 -0
  98. package/dist/producer/Producer.js +318 -0
  99. package/dist/producer/PublishingLoadBalancer.d.ts +24 -0
  100. package/dist/producer/PublishingLoadBalancer.js +82 -0
  101. package/dist/producer/PublishingSettings.d.ts +28 -0
  102. package/dist/producer/PublishingSettings.js +70 -0
  103. package/dist/producer/RecallReceipt.d.ts +25 -0
  104. package/dist/producer/RecallReceipt.js +34 -0
  105. package/dist/producer/SendReceipt.d.ts +29 -0
  106. package/dist/producer/SendReceipt.js +60 -0
  107. package/dist/producer/Transaction.d.ts +28 -0
  108. package/dist/producer/Transaction.js +70 -0
  109. package/dist/producer/TransactionChecker.d.ts +21 -0
  110. package/dist/producer/TransactionChecker.js +19 -0
  111. package/dist/producer/index.d.ts +22 -0
  112. package/dist/producer/index.js +40 -0
  113. package/dist/retry/ExponentialBackoffRetryPolicy.d.ts +27 -0
  114. package/dist/retry/ExponentialBackoffRetryPolicy.js +64 -0
  115. package/dist/retry/RetryPolicy.d.ts +46 -0
  116. package/dist/retry/RetryPolicy.js +19 -0
  117. package/dist/retry/index.d.ts +18 -0
  118. package/dist/retry/index.js +35 -0
  119. package/dist/route/Broker.d.ts +25 -0
  120. package/dist/route/Broker.js +40 -0
  121. package/dist/route/Endpoints.d.ts +30 -0
  122. package/dist/route/Endpoints.js +71 -0
  123. package/dist/route/MessageQueue.d.ts +27 -0
  124. package/dist/route/MessageQueue.js +47 -0
  125. package/dist/route/TopicRouteData.d.ts +24 -0
  126. package/dist/route/TopicRouteData.js +37 -0
  127. package/dist/route/index.d.ts +20 -0
  128. package/dist/route/index.js +37 -0
  129. package/dist/util/index.d.ts +35 -0
  130. package/dist/util/index.js +88 -0
  131. package/package.json +62 -0
  132. package/proto/apache/rocketmq/v2/admin.proto +43 -0
  133. package/proto/apache/rocketmq/v2/admin_grpc_pb.d.ts +41 -0
  134. package/proto/apache/rocketmq/v2/admin_grpc_pb.js +60 -0
  135. package/proto/apache/rocketmq/v2/admin_pb.d.ts +56 -0
  136. package/proto/apache/rocketmq/v2/admin_pb.js +340 -0
  137. package/proto/apache/rocketmq/v2/definition.proto +570 -0
  138. package/proto/apache/rocketmq/v2/definition_grpc_pb.js +1 -0
  139. package/proto/apache/rocketmq/v2/definition_pb.d.ts +885 -0
  140. package/proto/apache/rocketmq/v2/definition_pb.js +6141 -0
  141. package/proto/apache/rocketmq/v2/service.proto +443 -0
  142. package/proto/apache/rocketmq/v2/service_grpc_pb.d.ts +294 -0
  143. package/proto/apache/rocketmq/v2/service_grpc_pb.js +637 -0
  144. package/proto/apache/rocketmq/v2/service_pb.d.ts +1249 -0
  145. package/proto/apache/rocketmq/v2/service_pb.js +9723 -0
  146. package/src/client/BaseClient.ts +404 -0
  147. package/src/client/ClientId.ts +31 -0
  148. package/src/client/Logger.ts +36 -0
  149. package/src/client/RpcClient.ts +258 -0
  150. package/src/client/RpcClientManager.ts +180 -0
  151. package/src/client/SessionCredentials.ts +22 -0
  152. package/src/client/Settings.ts +46 -0
  153. package/src/client/TelemetrySession.ts +130 -0
  154. package/src/client/UserAgent.ts +45 -0
  155. package/src/client/index.ts +27 -0
  156. package/src/consumer/Assignment.ts +39 -0
  157. package/src/consumer/Assignments.ts +46 -0
  158. package/src/consumer/ConsumeResult.ts +21 -0
  159. package/src/consumer/ConsumeService.ts +54 -0
  160. package/src/consumer/ConsumeTask.ts +40 -0
  161. package/src/consumer/Consumer.ts +129 -0
  162. package/src/consumer/FifoConsumeService.ts +136 -0
  163. package/src/consumer/FilterExpression.ts +42 -0
  164. package/src/consumer/MessageListener.ts +23 -0
  165. package/src/consumer/ProcessQueue.ts +326 -0
  166. package/src/consumer/PushConsumer.ts +473 -0
  167. package/src/consumer/PushSubscriptionSettings.ts +123 -0
  168. package/src/consumer/SimpleConsumer.ts +153 -0
  169. package/src/consumer/SimpleSubscriptionSettings.ts +64 -0
  170. package/src/consumer/StandardConsumeService.ts +44 -0
  171. package/src/consumer/SubscriptionLoadBalancer.ts +47 -0
  172. package/src/consumer/index.ts +33 -0
  173. package/src/exception/BadRequestException.ts +25 -0
  174. package/src/exception/ClientException.ts +29 -0
  175. package/src/exception/ForbiddenException.ts +25 -0
  176. package/src/exception/InternalErrorException.ts +25 -0
  177. package/src/exception/NotFoundException.ts +25 -0
  178. package/src/exception/PayloadTooLargeException.ts +25 -0
  179. package/src/exception/PaymentRequiredException.ts +25 -0
  180. package/src/exception/ProxyTimeoutException.ts +25 -0
  181. package/src/exception/RequestHeaderFieldsTooLargeException.ts +25 -0
  182. package/src/exception/StatusChecker.ts +94 -0
  183. package/src/exception/TooManyRequestsException.ts +25 -0
  184. package/src/exception/UnauthorizedException.ts +25 -0
  185. package/src/exception/UnsupportedException.ts +25 -0
  186. package/src/exception/index.ts +30 -0
  187. package/src/index.ts +23 -0
  188. package/src/message/Message.ts +67 -0
  189. package/src/message/MessageId.ts +123 -0
  190. package/src/message/MessageView.ts +94 -0
  191. package/src/message/PublishingMessage.ts +104 -0
  192. package/src/message/index.ts +21 -0
  193. package/src/producer/Producer.ts +388 -0
  194. package/src/producer/PublishingLoadBalancer.ts +85 -0
  195. package/src/producer/PublishingSettings.ts +78 -0
  196. package/src/producer/RecallReceipt.ts +32 -0
  197. package/src/producer/SendReceipt.ts +63 -0
  198. package/src/producer/Transaction.ts +86 -0
  199. package/src/producer/TransactionChecker.ts +23 -0
  200. package/src/producer/index.ts +24 -0
  201. package/src/retry/ExponentialBackoffRetryPolicy.ts +76 -0
  202. package/src/retry/RetryPolicy.ts +51 -0
  203. package/src/retry/index.ts +19 -0
  204. package/src/route/Broker.ts +39 -0
  205. package/src/route/Endpoints.ts +70 -0
  206. package/src/route/MessageQueue.ts +49 -0
  207. package/src/route/TopicRouteData.ts +38 -0
  208. package/src/route/index.ts +21 -0
  209. package/src/util/index.ts +83 -0
@@ -0,0 +1,340 @@
1
+ // source: apache/rocketmq/v2/admin.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.apache.rocketmq.v2.ChangeLogLevelRequest', null, global);
25
+ goog.exportSymbol('proto.apache.rocketmq.v2.ChangeLogLevelRequest.Level', null, global);
26
+ goog.exportSymbol('proto.apache.rocketmq.v2.ChangeLogLevelResponse', null, global);
27
+ /**
28
+ * Generated by JsPbCodeGenerator.
29
+ * @param {Array=} opt_data Optional initial data array, typically from a
30
+ * server response, or constructed directly in Javascript. The array is used
31
+ * in place and becomes part of the constructed object. It is not cloned.
32
+ * If no data is provided, the constructed object will be empty, but still
33
+ * valid.
34
+ * @extends {jspb.Message}
35
+ * @constructor
36
+ */
37
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest = function(opt_data) {
38
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
39
+ };
40
+ goog.inherits(proto.apache.rocketmq.v2.ChangeLogLevelRequest, jspb.Message);
41
+ if (goog.DEBUG && !COMPILED) {
42
+ /**
43
+ * @public
44
+ * @override
45
+ */
46
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.displayName = 'proto.apache.rocketmq.v2.ChangeLogLevelRequest';
47
+ }
48
+ /**
49
+ * Generated by JsPbCodeGenerator.
50
+ * @param {Array=} opt_data Optional initial data array, typically from a
51
+ * server response, or constructed directly in Javascript. The array is used
52
+ * in place and becomes part of the constructed object. It is not cloned.
53
+ * If no data is provided, the constructed object will be empty, but still
54
+ * valid.
55
+ * @extends {jspb.Message}
56
+ * @constructor
57
+ */
58
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse = function(opt_data) {
59
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
60
+ };
61
+ goog.inherits(proto.apache.rocketmq.v2.ChangeLogLevelResponse, jspb.Message);
62
+ if (goog.DEBUG && !COMPILED) {
63
+ /**
64
+ * @public
65
+ * @override
66
+ */
67
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.displayName = 'proto.apache.rocketmq.v2.ChangeLogLevelResponse';
68
+ }
69
+
70
+
71
+
72
+ if (jspb.Message.GENERATE_TO_OBJECT) {
73
+ /**
74
+ * Creates an object representation of this proto.
75
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
76
+ * Optional fields that are not set will be set to undefined.
77
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
78
+ * For the list of reserved names please see:
79
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
80
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
81
+ * JSPB instance for transitional soy proto support:
82
+ * http://goto/soy-param-migration
83
+ * @return {!Object}
84
+ */
85
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.prototype.toObject = function(opt_includeInstance) {
86
+ return proto.apache.rocketmq.v2.ChangeLogLevelRequest.toObject(opt_includeInstance, this);
87
+ };
88
+
89
+
90
+ /**
91
+ * Static version of the {@see toObject} method.
92
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
93
+ * the JSPB instance for transitional soy proto support:
94
+ * http://goto/soy-param-migration
95
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelRequest} msg The msg instance to transform.
96
+ * @return {!Object}
97
+ * @suppress {unusedLocalVariables} f is only used for nested messages
98
+ */
99
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.toObject = function(includeInstance, msg) {
100
+ var f, obj = {
101
+ level: jspb.Message.getFieldWithDefault(msg, 1, 0)
102
+ };
103
+
104
+ if (includeInstance) {
105
+ obj.$jspbMessageInstance = msg;
106
+ }
107
+ return obj;
108
+ };
109
+ }
110
+
111
+
112
+ /**
113
+ * Deserializes binary data (in protobuf wire format).
114
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
115
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelRequest}
116
+ */
117
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.deserializeBinary = function(bytes) {
118
+ var reader = new jspb.BinaryReader(bytes);
119
+ var msg = new proto.apache.rocketmq.v2.ChangeLogLevelRequest;
120
+ return proto.apache.rocketmq.v2.ChangeLogLevelRequest.deserializeBinaryFromReader(msg, reader);
121
+ };
122
+
123
+
124
+ /**
125
+ * Deserializes binary data (in protobuf wire format) from the
126
+ * given reader into the given message object.
127
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelRequest} msg The message object to deserialize into.
128
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
129
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelRequest}
130
+ */
131
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.deserializeBinaryFromReader = function(msg, reader) {
132
+ while (reader.nextField()) {
133
+ if (reader.isEndGroup()) {
134
+ break;
135
+ }
136
+ var field = reader.getFieldNumber();
137
+ switch (field) {
138
+ case 1:
139
+ var value = /** @type {!proto.apache.rocketmq.v2.ChangeLogLevelRequest.Level} */ (reader.readEnum());
140
+ msg.setLevel(value);
141
+ break;
142
+ default:
143
+ reader.skipField();
144
+ break;
145
+ }
146
+ }
147
+ return msg;
148
+ };
149
+
150
+
151
+ /**
152
+ * Serializes the message to binary data (in protobuf wire format).
153
+ * @return {!Uint8Array}
154
+ */
155
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.prototype.serializeBinary = function() {
156
+ var writer = new jspb.BinaryWriter();
157
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.serializeBinaryToWriter(this, writer);
158
+ return writer.getResultBuffer();
159
+ };
160
+
161
+
162
+ /**
163
+ * Serializes the given message to binary data (in protobuf wire
164
+ * format), writing to the given BinaryWriter.
165
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelRequest} message
166
+ * @param {!jspb.BinaryWriter} writer
167
+ * @suppress {unusedLocalVariables} f is only used for nested messages
168
+ */
169
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.serializeBinaryToWriter = function(message, writer) {
170
+ var f = undefined;
171
+ f = message.getLevel();
172
+ if (f !== 0.0) {
173
+ writer.writeEnum(
174
+ 1,
175
+ f
176
+ );
177
+ }
178
+ };
179
+
180
+
181
+ /**
182
+ * @enum {number}
183
+ */
184
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.Level = {
185
+ TRACE: 0,
186
+ DEBUG: 1,
187
+ INFO: 2,
188
+ WARN: 3,
189
+ ERROR: 4
190
+ };
191
+
192
+ /**
193
+ * optional Level level = 1;
194
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelRequest.Level}
195
+ */
196
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.prototype.getLevel = function() {
197
+ return /** @type {!proto.apache.rocketmq.v2.ChangeLogLevelRequest.Level} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
198
+ };
199
+
200
+
201
+ /**
202
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelRequest.Level} value
203
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelRequest} returns this
204
+ */
205
+ proto.apache.rocketmq.v2.ChangeLogLevelRequest.prototype.setLevel = function(value) {
206
+ return jspb.Message.setProto3EnumField(this, 1, value);
207
+ };
208
+
209
+
210
+
211
+
212
+
213
+ if (jspb.Message.GENERATE_TO_OBJECT) {
214
+ /**
215
+ * Creates an object representation of this proto.
216
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
217
+ * Optional fields that are not set will be set to undefined.
218
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
219
+ * For the list of reserved names please see:
220
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
221
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
222
+ * JSPB instance for transitional soy proto support:
223
+ * http://goto/soy-param-migration
224
+ * @return {!Object}
225
+ */
226
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.prototype.toObject = function(opt_includeInstance) {
227
+ return proto.apache.rocketmq.v2.ChangeLogLevelResponse.toObject(opt_includeInstance, this);
228
+ };
229
+
230
+
231
+ /**
232
+ * Static version of the {@see toObject} method.
233
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
234
+ * the JSPB instance for transitional soy proto support:
235
+ * http://goto/soy-param-migration
236
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelResponse} msg The msg instance to transform.
237
+ * @return {!Object}
238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
239
+ */
240
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.toObject = function(includeInstance, msg) {
241
+ var f, obj = {
242
+ remark: jspb.Message.getFieldWithDefault(msg, 1, "")
243
+ };
244
+
245
+ if (includeInstance) {
246
+ obj.$jspbMessageInstance = msg;
247
+ }
248
+ return obj;
249
+ };
250
+ }
251
+
252
+
253
+ /**
254
+ * Deserializes binary data (in protobuf wire format).
255
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
256
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelResponse}
257
+ */
258
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.deserializeBinary = function(bytes) {
259
+ var reader = new jspb.BinaryReader(bytes);
260
+ var msg = new proto.apache.rocketmq.v2.ChangeLogLevelResponse;
261
+ return proto.apache.rocketmq.v2.ChangeLogLevelResponse.deserializeBinaryFromReader(msg, reader);
262
+ };
263
+
264
+
265
+ /**
266
+ * Deserializes binary data (in protobuf wire format) from the
267
+ * given reader into the given message object.
268
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelResponse} msg The message object to deserialize into.
269
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
270
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelResponse}
271
+ */
272
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.deserializeBinaryFromReader = function(msg, reader) {
273
+ while (reader.nextField()) {
274
+ if (reader.isEndGroup()) {
275
+ break;
276
+ }
277
+ var field = reader.getFieldNumber();
278
+ switch (field) {
279
+ case 1:
280
+ var value = /** @type {string} */ (reader.readString());
281
+ msg.setRemark(value);
282
+ break;
283
+ default:
284
+ reader.skipField();
285
+ break;
286
+ }
287
+ }
288
+ return msg;
289
+ };
290
+
291
+
292
+ /**
293
+ * Serializes the message to binary data (in protobuf wire format).
294
+ * @return {!Uint8Array}
295
+ */
296
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.prototype.serializeBinary = function() {
297
+ var writer = new jspb.BinaryWriter();
298
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.serializeBinaryToWriter(this, writer);
299
+ return writer.getResultBuffer();
300
+ };
301
+
302
+
303
+ /**
304
+ * Serializes the given message to binary data (in protobuf wire
305
+ * format), writing to the given BinaryWriter.
306
+ * @param {!proto.apache.rocketmq.v2.ChangeLogLevelResponse} message
307
+ * @param {!jspb.BinaryWriter} writer
308
+ * @suppress {unusedLocalVariables} f is only used for nested messages
309
+ */
310
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.serializeBinaryToWriter = function(message, writer) {
311
+ var f = undefined;
312
+ f = message.getRemark();
313
+ if (f.length > 0) {
314
+ writer.writeString(
315
+ 1,
316
+ f
317
+ );
318
+ }
319
+ };
320
+
321
+
322
+ /**
323
+ * optional string remark = 1;
324
+ * @return {string}
325
+ */
326
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.prototype.getRemark = function() {
327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
328
+ };
329
+
330
+
331
+ /**
332
+ * @param {string} value
333
+ * @return {!proto.apache.rocketmq.v2.ChangeLogLevelResponse} returns this
334
+ */
335
+ proto.apache.rocketmq.v2.ChangeLogLevelResponse.prototype.setRemark = function(value) {
336
+ return jspb.Message.setProto3StringField(this, 1, value);
337
+ };
338
+
339
+
340
+ goog.object.extend(exports, proto.apache.rocketmq.v2);