rocketmq-client-nodejs 1.0.3 → 1.0.5
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.
- package/README.md +84 -1
- package/dist/client/BaseClient.d.ts +24 -2
- package/dist/client/BaseClient.js +173 -28
- package/dist/client/ClientId.js +2 -2
- package/dist/client/Logger.d.ts +1 -0
- package/dist/client/Logger.js +1 -1
- package/dist/client/RpcClient.d.ts +3 -1
- package/dist/client/RpcClient.js +23 -1
- package/dist/client/RpcClientManager.d.ts +3 -1
- package/dist/client/RpcClientManager.js +23 -4
- package/dist/client/TelemetrySession.d.ts +1 -0
- package/dist/client/TelemetrySession.js +47 -9
- package/dist/consumer/Assignment.d.ts +24 -0
- package/dist/consumer/Assignment.js +40 -0
- package/dist/consumer/Assignments.d.ts +25 -0
- package/dist/consumer/Assignments.js +55 -0
- package/dist/consumer/ConsumeResult.d.ts +20 -0
- package/dist/consumer/ConsumeResult.js +25 -0
- package/dist/consumer/ConsumeService.d.ts +28 -0
- package/dist/consumer/ConsumeService.js +53 -0
- package/dist/consumer/ConsumeTask.d.ts +24 -0
- package/dist/consumer/ConsumeTask.js +39 -0
- package/dist/consumer/Consumer.d.ts +19 -1
- package/dist/consumer/Consumer.js +64 -21
- package/dist/consumer/FifoConsumeService.d.ts +25 -0
- package/dist/consumer/FifoConsumeService.js +130 -0
- package/dist/consumer/FilterExpression.d.ts +2 -0
- package/dist/consumer/FilterExpression.js +18 -1
- package/dist/consumer/LitePushConsumer.d.ts +161 -0
- package/dist/consumer/LitePushConsumer.js +172 -0
- package/dist/consumer/LitePushConsumerImpl.d.ts +167 -0
- package/dist/consumer/LitePushConsumerImpl.js +193 -0
- package/dist/consumer/LiteSubscriptionManager.d.ts +97 -0
- package/dist/consumer/LiteSubscriptionManager.js +236 -0
- package/dist/consumer/MessageListener.d.ts +21 -0
- package/dist/consumer/MessageListener.js +19 -0
- package/dist/consumer/OffsetOption.d.ts +109 -0
- package/dist/consumer/OffsetOption.js +191 -0
- package/dist/consumer/ProcessQueue.d.ts +39 -0
- package/dist/consumer/ProcessQueue.js +293 -0
- package/dist/consumer/PushConsumer.d.ts +88 -0
- package/dist/consumer/PushConsumer.js +449 -0
- package/dist/consumer/PushSubscriptionSettings.d.ts +31 -0
- package/dist/consumer/PushSubscriptionSettings.js +97 -0
- package/dist/consumer/SimpleConsumer.d.ts +12 -1
- package/dist/consumer/SimpleConsumer.js +54 -10
- package/dist/consumer/SimpleSubscriptionSettings.d.ts +2 -2
- package/dist/consumer/SimpleSubscriptionSettings.js +3 -3
- package/dist/consumer/StandardConsumeService.d.ts +25 -0
- package/dist/consumer/StandardConsumeService.js +50 -0
- package/dist/consumer/index.d.ts +15 -0
- package/dist/consumer/index.js +19 -1
- package/dist/exception/InternalErrorException.d.ts +5 -0
- package/dist/exception/InternalErrorException.js +10 -1
- package/dist/exception/LiteSubscriptionQuotaExceededException.d.ts +23 -0
- package/dist/exception/LiteSubscriptionQuotaExceededException.js +31 -0
- package/dist/exception/LiteTopicQuotaExceededException.d.ts +23 -0
- package/dist/exception/LiteTopicQuotaExceededException.js +31 -0
- package/dist/exception/StatusChecker.js +4 -1
- package/dist/exception/index.d.ts +2 -0
- package/dist/exception/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/message/Message.d.ts +8 -0
- package/dist/message/Message.js +39 -6
- package/dist/message/MessageId.d.ts +2 -0
- package/dist/message/MessageId.js +17 -1
- package/dist/message/MessageView.d.ts +86 -0
- package/dist/message/MessageView.js +115 -1
- package/dist/message/PublishingMessage.js +21 -5
- package/dist/producer/Producer.d.ts +21 -2
- package/dist/producer/Producer.js +120 -25
- package/dist/producer/PublishingLoadBalancer.d.ts +2 -0
- package/dist/producer/PublishingLoadBalancer.js +23 -1
- package/dist/producer/RecallReceipt.d.ts +25 -0
- package/dist/producer/RecallReceipt.js +34 -0
- package/dist/producer/SendReceipt.d.ts +2 -1
- package/dist/producer/SendReceipt.js +6 -3
- package/dist/producer/Transaction.js +7 -1
- package/dist/producer/index.d.ts +1 -0
- package/dist/producer/index.js +2 -1
- package/dist/route/Broker.d.ts +2 -0
- package/dist/route/Broker.js +21 -1
- package/dist/route/Endpoints.d.ts +2 -0
- package/dist/route/Endpoints.js +36 -1
- package/dist/route/MessageQueue.d.ts +2 -0
- package/dist/route/MessageQueue.js +23 -1
- package/dist/route/Resource.d.ts +54 -0
- package/dist/route/Resource.js +100 -0
- package/dist/route/TopicRouteData.d.ts +12 -0
- package/dist/route/TopicRouteData.js +37 -1
- package/dist/route/index.d.ts +1 -0
- package/dist/route/index.js +2 -1
- package/dist/util/index.d.ts +8 -0
- package/dist/util/index.js +20 -1
- package/package.json +2 -2
- package/proto/apache/rocketmq/v2/definition.proto +56 -0
- package/proto/apache/rocketmq/v2/definition_pb.d.ts +100 -0
- package/proto/apache/rocketmq/v2/definition_pb.js +570 -4
- package/proto/apache/rocketmq/v2/service.proto +65 -0
- package/proto/apache/rocketmq/v2/service_grpc_pb.d.ts +34 -0
- package/proto/apache/rocketmq/v2/service_grpc_pb.js +81 -4
- package/proto/apache/rocketmq/v2/service_pb.d.ts +211 -0
- package/proto/apache/rocketmq/v2/service_pb.js +1691 -25
- package/src/client/BaseClient.ts +196 -28
- package/src/client/ClientId.ts +1 -1
- package/src/client/Logger.ts +1 -0
- package/src/client/RpcClient.ts +26 -0
- package/src/client/RpcClientManager.ts +27 -3
- package/src/client/TelemetrySession.ts +54 -8
- package/src/consumer/Assignment.ts +40 -0
- package/src/consumer/Assignments.ts +55 -0
- package/src/consumer/ConsumeResult.ts +21 -0
- package/src/consumer/ConsumeService.ts +72 -0
- package/src/consumer/ConsumeTask.ts +39 -0
- package/src/consumer/Consumer.ts +76 -20
- package/src/consumer/FifoConsumeService.ts +146 -0
- package/src/consumer/FilterExpression.ts +17 -0
- package/src/consumer/LitePushConsumer.ts +256 -0
- package/src/consumer/LitePushConsumerImpl.ts +245 -0
- package/src/consumer/LiteSubscriptionManager.ts +352 -0
- package/src/consumer/MessageListener.ts +23 -0
- package/src/consumer/OffsetOption.ts +203 -0
- package/src/consumer/ProcessQueue.ts +339 -0
- package/src/consumer/PushConsumer.ts +563 -0
- package/src/consumer/PushSubscriptionSettings.ts +124 -0
- package/src/consumer/SimpleConsumer.ts +68 -11
- package/src/consumer/SimpleSubscriptionSettings.ts +2 -2
- package/src/consumer/StandardConsumeService.ts +57 -0
- package/src/consumer/index.ts +15 -0
- package/src/exception/InternalErrorException.ts +10 -0
- package/src/exception/LiteSubscriptionQuotaExceededException.ts +28 -0
- package/src/exception/LiteTopicQuotaExceededException.ts +28 -0
- package/src/exception/StatusChecker.ts +3 -0
- package/src/exception/index.ts +2 -0
- package/src/index.ts +1 -0
- package/src/message/Message.ts +46 -5
- package/src/message/MessageId.ts +16 -0
- package/src/message/MessageView.ts +127 -0
- package/src/message/PublishingMessage.ts +20 -4
- package/src/producer/Producer.ts +144 -24
- package/src/producer/PublishingLoadBalancer.ts +21 -0
- package/src/producer/RecallReceipt.ts +32 -0
- package/src/producer/SendReceipt.ts +5 -2
- package/src/producer/Transaction.ts +16 -0
- package/src/producer/index.ts +1 -0
- package/src/route/Broker.ts +20 -0
- package/src/route/Endpoints.ts +32 -0
- package/src/route/MessageQueue.ts +23 -1
- package/src/route/Resource.ts +104 -0
- package/src/route/TopicRouteData.ts +37 -0
- package/src/route/index.ts +1 -0
- package/src/util/index.ts +19 -0
|
@@ -43,6 +43,7 @@ goog.exportSymbol('proto.apache.rocketmq.v2.HeartbeatRequest', null, global);
|
|
|
43
43
|
goog.exportSymbol('proto.apache.rocketmq.v2.HeartbeatResponse', null, global);
|
|
44
44
|
goog.exportSymbol('proto.apache.rocketmq.v2.NotifyClientTerminationRequest', null, global);
|
|
45
45
|
goog.exportSymbol('proto.apache.rocketmq.v2.NotifyClientTerminationResponse', null, global);
|
|
46
|
+
goog.exportSymbol('proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand', null, global);
|
|
46
47
|
goog.exportSymbol('proto.apache.rocketmq.v2.PrintThreadStackTraceCommand', null, global);
|
|
47
48
|
goog.exportSymbol('proto.apache.rocketmq.v2.PullMessageRequest', null, global);
|
|
48
49
|
goog.exportSymbol('proto.apache.rocketmq.v2.PullMessageResponse', null, global);
|
|
@@ -53,13 +54,18 @@ goog.exportSymbol('proto.apache.rocketmq.v2.QueryOffsetRequest', null, global);
|
|
|
53
54
|
goog.exportSymbol('proto.apache.rocketmq.v2.QueryOffsetResponse', null, global);
|
|
54
55
|
goog.exportSymbol('proto.apache.rocketmq.v2.QueryRouteRequest', null, global);
|
|
55
56
|
goog.exportSymbol('proto.apache.rocketmq.v2.QueryRouteResponse', null, global);
|
|
57
|
+
goog.exportSymbol('proto.apache.rocketmq.v2.RecallMessageRequest', null, global);
|
|
58
|
+
goog.exportSymbol('proto.apache.rocketmq.v2.RecallMessageResponse', null, global);
|
|
56
59
|
goog.exportSymbol('proto.apache.rocketmq.v2.ReceiveMessageRequest', null, global);
|
|
57
60
|
goog.exportSymbol('proto.apache.rocketmq.v2.ReceiveMessageResponse', null, global);
|
|
58
61
|
goog.exportSymbol('proto.apache.rocketmq.v2.ReceiveMessageResponse.ContentCase', null, global);
|
|
62
|
+
goog.exportSymbol('proto.apache.rocketmq.v2.ReconnectEndpointsCommand', null, global);
|
|
59
63
|
goog.exportSymbol('proto.apache.rocketmq.v2.RecoverOrphanedTransactionCommand', null, global);
|
|
60
64
|
goog.exportSymbol('proto.apache.rocketmq.v2.SendMessageRequest', null, global);
|
|
61
65
|
goog.exportSymbol('proto.apache.rocketmq.v2.SendMessageResponse', null, global);
|
|
62
66
|
goog.exportSymbol('proto.apache.rocketmq.v2.SendResultEntry', null, global);
|
|
67
|
+
goog.exportSymbol('proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest', null, global);
|
|
68
|
+
goog.exportSymbol('proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse', null, global);
|
|
63
69
|
goog.exportSymbol('proto.apache.rocketmq.v2.TelemetryCommand', null, global);
|
|
64
70
|
goog.exportSymbol('proto.apache.rocketmq.v2.TelemetryCommand.CommandCase', null, global);
|
|
65
71
|
goog.exportSymbol('proto.apache.rocketmq.v2.ThreadStackTrace', null, global);
|
|
@@ -487,6 +493,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
487
493
|
*/
|
|
488
494
|
proto.apache.rocketmq.v2.PrintThreadStackTraceCommand.displayName = 'proto.apache.rocketmq.v2.PrintThreadStackTraceCommand';
|
|
489
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* Generated by JsPbCodeGenerator.
|
|
498
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
499
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
500
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
501
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
502
|
+
* valid.
|
|
503
|
+
* @extends {jspb.Message}
|
|
504
|
+
* @constructor
|
|
505
|
+
*/
|
|
506
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand = function(opt_data) {
|
|
507
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
508
|
+
};
|
|
509
|
+
goog.inherits(proto.apache.rocketmq.v2.ReconnectEndpointsCommand, jspb.Message);
|
|
510
|
+
if (goog.DEBUG && !COMPILED) {
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
* @override
|
|
514
|
+
*/
|
|
515
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.displayName = 'proto.apache.rocketmq.v2.ReconnectEndpointsCommand';
|
|
516
|
+
}
|
|
490
517
|
/**
|
|
491
518
|
* Generated by JsPbCodeGenerator.
|
|
492
519
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -571,6 +598,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
571
598
|
*/
|
|
572
599
|
proto.apache.rocketmq.v2.RecoverOrphanedTransactionCommand.displayName = 'proto.apache.rocketmq.v2.RecoverOrphanedTransactionCommand';
|
|
573
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
* Generated by JsPbCodeGenerator.
|
|
603
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
604
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
605
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
606
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
607
|
+
* valid.
|
|
608
|
+
* @extends {jspb.Message}
|
|
609
|
+
* @constructor
|
|
610
|
+
*/
|
|
611
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand = function(opt_data) {
|
|
612
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
613
|
+
};
|
|
614
|
+
goog.inherits(proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand, jspb.Message);
|
|
615
|
+
if (goog.DEBUG && !COMPILED) {
|
|
616
|
+
/**
|
|
617
|
+
* @public
|
|
618
|
+
* @override
|
|
619
|
+
*/
|
|
620
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.displayName = 'proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand';
|
|
621
|
+
}
|
|
574
622
|
/**
|
|
575
623
|
* Generated by JsPbCodeGenerator.
|
|
576
624
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -844,6 +892,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
844
892
|
*/
|
|
845
893
|
proto.apache.rocketmq.v2.QueryOffsetResponse.displayName = 'proto.apache.rocketmq.v2.QueryOffsetResponse';
|
|
846
894
|
}
|
|
895
|
+
/**
|
|
896
|
+
* Generated by JsPbCodeGenerator.
|
|
897
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
898
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
899
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
900
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
901
|
+
* valid.
|
|
902
|
+
* @extends {jspb.Message}
|
|
903
|
+
* @constructor
|
|
904
|
+
*/
|
|
905
|
+
proto.apache.rocketmq.v2.RecallMessageRequest = function(opt_data) {
|
|
906
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
907
|
+
};
|
|
908
|
+
goog.inherits(proto.apache.rocketmq.v2.RecallMessageRequest, jspb.Message);
|
|
909
|
+
if (goog.DEBUG && !COMPILED) {
|
|
910
|
+
/**
|
|
911
|
+
* @public
|
|
912
|
+
* @override
|
|
913
|
+
*/
|
|
914
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.displayName = 'proto.apache.rocketmq.v2.RecallMessageRequest';
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Generated by JsPbCodeGenerator.
|
|
918
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
919
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
920
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
921
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
922
|
+
* valid.
|
|
923
|
+
* @extends {jspb.Message}
|
|
924
|
+
* @constructor
|
|
925
|
+
*/
|
|
926
|
+
proto.apache.rocketmq.v2.RecallMessageResponse = function(opt_data) {
|
|
927
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
928
|
+
};
|
|
929
|
+
goog.inherits(proto.apache.rocketmq.v2.RecallMessageResponse, jspb.Message);
|
|
930
|
+
if (goog.DEBUG && !COMPILED) {
|
|
931
|
+
/**
|
|
932
|
+
* @public
|
|
933
|
+
* @override
|
|
934
|
+
*/
|
|
935
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.displayName = 'proto.apache.rocketmq.v2.RecallMessageResponse';
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Generated by JsPbCodeGenerator.
|
|
939
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
940
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
941
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
942
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
943
|
+
* valid.
|
|
944
|
+
* @extends {jspb.Message}
|
|
945
|
+
* @constructor
|
|
946
|
+
*/
|
|
947
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest = function(opt_data) {
|
|
948
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.repeatedFields_, null);
|
|
949
|
+
};
|
|
950
|
+
goog.inherits(proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest, jspb.Message);
|
|
951
|
+
if (goog.DEBUG && !COMPILED) {
|
|
952
|
+
/**
|
|
953
|
+
* @public
|
|
954
|
+
* @override
|
|
955
|
+
*/
|
|
956
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.displayName = 'proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest';
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Generated by JsPbCodeGenerator.
|
|
960
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
961
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
962
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
963
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
964
|
+
* valid.
|
|
965
|
+
* @extends {jspb.Message}
|
|
966
|
+
* @constructor
|
|
967
|
+
*/
|
|
968
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse = function(opt_data) {
|
|
969
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
970
|
+
};
|
|
971
|
+
goog.inherits(proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse, jspb.Message);
|
|
972
|
+
if (goog.DEBUG && !COMPILED) {
|
|
973
|
+
/**
|
|
974
|
+
* @public
|
|
975
|
+
* @override
|
|
976
|
+
*/
|
|
977
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.displayName = 'proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse';
|
|
978
|
+
}
|
|
847
979
|
|
|
848
980
|
|
|
849
981
|
|
|
@@ -1452,7 +1584,8 @@ proto.apache.rocketmq.v2.SendResultEntry.toObject = function(includeInstance, ms
|
|
|
1452
1584
|
status: (f = msg.getStatus()) && apache_rocketmq_v2_definition_pb.Status.toObject(includeInstance, f),
|
|
1453
1585
|
messageId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1454
1586
|
transactionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1455
|
-
offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
1587
|
+
offset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1588
|
+
recallHandle: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
1456
1589
|
};
|
|
1457
1590
|
|
|
1458
1591
|
if (includeInstance) {
|
|
@@ -1506,6 +1639,10 @@ proto.apache.rocketmq.v2.SendResultEntry.deserializeBinaryFromReader = function(
|
|
|
1506
1639
|
var value = /** @type {number} */ (reader.readInt64());
|
|
1507
1640
|
msg.setOffset(value);
|
|
1508
1641
|
break;
|
|
1642
|
+
case 5:
|
|
1643
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1644
|
+
msg.setRecallHandle(value);
|
|
1645
|
+
break;
|
|
1509
1646
|
default:
|
|
1510
1647
|
reader.skipField();
|
|
1511
1648
|
break;
|
|
@@ -1564,6 +1701,13 @@ proto.apache.rocketmq.v2.SendResultEntry.serializeBinaryToWriter = function(mess
|
|
|
1564
1701
|
f
|
|
1565
1702
|
);
|
|
1566
1703
|
}
|
|
1704
|
+
f = message.getRecallHandle();
|
|
1705
|
+
if (f.length > 0) {
|
|
1706
|
+
writer.writeString(
|
|
1707
|
+
5,
|
|
1708
|
+
f
|
|
1709
|
+
);
|
|
1710
|
+
}
|
|
1567
1711
|
};
|
|
1568
1712
|
|
|
1569
1713
|
|
|
@@ -1658,6 +1802,24 @@ proto.apache.rocketmq.v2.SendResultEntry.prototype.setOffset = function(value) {
|
|
|
1658
1802
|
};
|
|
1659
1803
|
|
|
1660
1804
|
|
|
1805
|
+
/**
|
|
1806
|
+
* optional string recall_handle = 5;
|
|
1807
|
+
* @return {string}
|
|
1808
|
+
*/
|
|
1809
|
+
proto.apache.rocketmq.v2.SendResultEntry.prototype.getRecallHandle = function() {
|
|
1810
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1811
|
+
};
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* @param {string} value
|
|
1816
|
+
* @return {!proto.apache.rocketmq.v2.SendResultEntry} returns this
|
|
1817
|
+
*/
|
|
1818
|
+
proto.apache.rocketmq.v2.SendResultEntry.prototype.setRecallHandle = function(value) {
|
|
1819
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
|
|
1661
1823
|
|
|
1662
1824
|
/**
|
|
1663
1825
|
* List of repeated fields within this message type.
|
|
@@ -2371,7 +2533,8 @@ proto.apache.rocketmq.v2.ReceiveMessageRequest.toObject = function(includeInstan
|
|
|
2371
2533
|
batchSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2372
2534
|
invisibleDuration: (f = msg.getInvisibleDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
|
|
2373
2535
|
autoRenew: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
2374
|
-
longPollingTimeout: (f = msg.getLongPollingTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
|
|
2536
|
+
longPollingTimeout: (f = msg.getLongPollingTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
|
|
2537
|
+
attemptId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2375
2538
|
};
|
|
2376
2539
|
|
|
2377
2540
|
if (includeInstance) {
|
|
@@ -2441,6 +2604,10 @@ proto.apache.rocketmq.v2.ReceiveMessageRequest.deserializeBinaryFromReader = fun
|
|
|
2441
2604
|
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
|
|
2442
2605
|
msg.setLongPollingTimeout(value);
|
|
2443
2606
|
break;
|
|
2607
|
+
case 8:
|
|
2608
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2609
|
+
msg.setAttemptId(value);
|
|
2610
|
+
break;
|
|
2444
2611
|
default:
|
|
2445
2612
|
reader.skipField();
|
|
2446
2613
|
break;
|
|
@@ -2524,6 +2691,13 @@ proto.apache.rocketmq.v2.ReceiveMessageRequest.serializeBinaryToWriter = functio
|
|
|
2524
2691
|
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
|
|
2525
2692
|
);
|
|
2526
2693
|
}
|
|
2694
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
2695
|
+
if (f != null) {
|
|
2696
|
+
writer.writeString(
|
|
2697
|
+
8,
|
|
2698
|
+
f
|
|
2699
|
+
);
|
|
2700
|
+
}
|
|
2527
2701
|
};
|
|
2528
2702
|
|
|
2529
2703
|
|
|
@@ -2748,6 +2922,42 @@ proto.apache.rocketmq.v2.ReceiveMessageRequest.prototype.hasLongPollingTimeout =
|
|
|
2748
2922
|
};
|
|
2749
2923
|
|
|
2750
2924
|
|
|
2925
|
+
/**
|
|
2926
|
+
* optional string attempt_id = 8;
|
|
2927
|
+
* @return {string}
|
|
2928
|
+
*/
|
|
2929
|
+
proto.apache.rocketmq.v2.ReceiveMessageRequest.prototype.getAttemptId = function() {
|
|
2930
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2931
|
+
};
|
|
2932
|
+
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* @param {string} value
|
|
2936
|
+
* @return {!proto.apache.rocketmq.v2.ReceiveMessageRequest} returns this
|
|
2937
|
+
*/
|
|
2938
|
+
proto.apache.rocketmq.v2.ReceiveMessageRequest.prototype.setAttemptId = function(value) {
|
|
2939
|
+
return jspb.Message.setField(this, 8, value);
|
|
2940
|
+
};
|
|
2941
|
+
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* Clears the field making it undefined.
|
|
2945
|
+
* @return {!proto.apache.rocketmq.v2.ReceiveMessageRequest} returns this
|
|
2946
|
+
*/
|
|
2947
|
+
proto.apache.rocketmq.v2.ReceiveMessageRequest.prototype.clearAttemptId = function() {
|
|
2948
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
2949
|
+
};
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* Returns whether this field is set.
|
|
2954
|
+
* @return {boolean}
|
|
2955
|
+
*/
|
|
2956
|
+
proto.apache.rocketmq.v2.ReceiveMessageRequest.prototype.hasAttemptId = function() {
|
|
2957
|
+
return jspb.Message.getField(this, 8) != null;
|
|
2958
|
+
};
|
|
2959
|
+
|
|
2960
|
+
|
|
2751
2961
|
|
|
2752
2962
|
/**
|
|
2753
2963
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -3061,7 +3271,8 @@ proto.apache.rocketmq.v2.AckMessageEntry.prototype.toObject = function(opt_inclu
|
|
|
3061
3271
|
proto.apache.rocketmq.v2.AckMessageEntry.toObject = function(includeInstance, msg) {
|
|
3062
3272
|
var f, obj = {
|
|
3063
3273
|
messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3064
|
-
receiptHandle: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3274
|
+
receiptHandle: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3275
|
+
liteTopic: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
3065
3276
|
};
|
|
3066
3277
|
|
|
3067
3278
|
if (includeInstance) {
|
|
@@ -3106,6 +3317,10 @@ proto.apache.rocketmq.v2.AckMessageEntry.deserializeBinaryFromReader = function(
|
|
|
3106
3317
|
var value = /** @type {string} */ (reader.readString());
|
|
3107
3318
|
msg.setReceiptHandle(value);
|
|
3108
3319
|
break;
|
|
3320
|
+
case 3:
|
|
3321
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3322
|
+
msg.setLiteTopic(value);
|
|
3323
|
+
break;
|
|
3109
3324
|
default:
|
|
3110
3325
|
reader.skipField();
|
|
3111
3326
|
break;
|
|
@@ -3149,6 +3364,13 @@ proto.apache.rocketmq.v2.AckMessageEntry.serializeBinaryToWriter = function(mess
|
|
|
3149
3364
|
f
|
|
3150
3365
|
);
|
|
3151
3366
|
}
|
|
3367
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
3368
|
+
if (f != null) {
|
|
3369
|
+
writer.writeString(
|
|
3370
|
+
3,
|
|
3371
|
+
f
|
|
3372
|
+
);
|
|
3373
|
+
}
|
|
3152
3374
|
};
|
|
3153
3375
|
|
|
3154
3376
|
|
|
@@ -3188,6 +3410,42 @@ proto.apache.rocketmq.v2.AckMessageEntry.prototype.setReceiptHandle = function(v
|
|
|
3188
3410
|
};
|
|
3189
3411
|
|
|
3190
3412
|
|
|
3413
|
+
/**
|
|
3414
|
+
* optional string lite_topic = 3;
|
|
3415
|
+
* @return {string}
|
|
3416
|
+
*/
|
|
3417
|
+
proto.apache.rocketmq.v2.AckMessageEntry.prototype.getLiteTopic = function() {
|
|
3418
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3419
|
+
};
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
/**
|
|
3423
|
+
* @param {string} value
|
|
3424
|
+
* @return {!proto.apache.rocketmq.v2.AckMessageEntry} returns this
|
|
3425
|
+
*/
|
|
3426
|
+
proto.apache.rocketmq.v2.AckMessageEntry.prototype.setLiteTopic = function(value) {
|
|
3427
|
+
return jspb.Message.setField(this, 3, value);
|
|
3428
|
+
};
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* Clears the field making it undefined.
|
|
3433
|
+
* @return {!proto.apache.rocketmq.v2.AckMessageEntry} returns this
|
|
3434
|
+
*/
|
|
3435
|
+
proto.apache.rocketmq.v2.AckMessageEntry.prototype.clearLiteTopic = function() {
|
|
3436
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
3437
|
+
};
|
|
3438
|
+
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* Returns whether this field is set.
|
|
3442
|
+
* @return {boolean}
|
|
3443
|
+
*/
|
|
3444
|
+
proto.apache.rocketmq.v2.AckMessageEntry.prototype.hasLiteTopic = function() {
|
|
3445
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3446
|
+
};
|
|
3447
|
+
|
|
3448
|
+
|
|
3191
3449
|
|
|
3192
3450
|
/**
|
|
3193
3451
|
* List of repeated fields within this message type.
|
|
@@ -3909,7 +4167,8 @@ proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.toObject = funct
|
|
|
3909
4167
|
receiptHandle: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3910
4168
|
messageId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3911
4169
|
deliveryAttempt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
3912
|
-
maxDeliveryAttempts: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
4170
|
+
maxDeliveryAttempts: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
4171
|
+
liteTopic: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3913
4172
|
};
|
|
3914
4173
|
|
|
3915
4174
|
if (includeInstance) {
|
|
@@ -3972,6 +4231,10 @@ proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.deserializeBinar
|
|
|
3972
4231
|
var value = /** @type {number} */ (reader.readInt32());
|
|
3973
4232
|
msg.setMaxDeliveryAttempts(value);
|
|
3974
4233
|
break;
|
|
4234
|
+
case 7:
|
|
4235
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4236
|
+
msg.setLiteTopic(value);
|
|
4237
|
+
break;
|
|
3975
4238
|
default:
|
|
3976
4239
|
reader.skipField();
|
|
3977
4240
|
break;
|
|
@@ -4045,6 +4308,13 @@ proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.serializeBinaryT
|
|
|
4045
4308
|
f
|
|
4046
4309
|
);
|
|
4047
4310
|
}
|
|
4311
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
4312
|
+
if (f != null) {
|
|
4313
|
+
writer.writeString(
|
|
4314
|
+
7,
|
|
4315
|
+
f
|
|
4316
|
+
);
|
|
4317
|
+
}
|
|
4048
4318
|
};
|
|
4049
4319
|
|
|
4050
4320
|
|
|
@@ -4194,6 +4464,42 @@ proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.prototype.setMax
|
|
|
4194
4464
|
};
|
|
4195
4465
|
|
|
4196
4466
|
|
|
4467
|
+
/**
|
|
4468
|
+
* optional string lite_topic = 7;
|
|
4469
|
+
* @return {string}
|
|
4470
|
+
*/
|
|
4471
|
+
proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.prototype.getLiteTopic = function() {
|
|
4472
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
4473
|
+
};
|
|
4474
|
+
|
|
4475
|
+
|
|
4476
|
+
/**
|
|
4477
|
+
* @param {string} value
|
|
4478
|
+
* @return {!proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest} returns this
|
|
4479
|
+
*/
|
|
4480
|
+
proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.prototype.setLiteTopic = function(value) {
|
|
4481
|
+
return jspb.Message.setField(this, 7, value);
|
|
4482
|
+
};
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
/**
|
|
4486
|
+
* Clears the field making it undefined.
|
|
4487
|
+
* @return {!proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest} returns this
|
|
4488
|
+
*/
|
|
4489
|
+
proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.prototype.clearLiteTopic = function() {
|
|
4490
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
4491
|
+
};
|
|
4492
|
+
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
* Returns whether this field is set.
|
|
4496
|
+
* @return {boolean}
|
|
4497
|
+
*/
|
|
4498
|
+
proto.apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.prototype.hasLiteTopic = function() {
|
|
4499
|
+
return jspb.Message.getField(this, 7) != null;
|
|
4500
|
+
};
|
|
4501
|
+
|
|
4502
|
+
|
|
4197
4503
|
|
|
4198
4504
|
|
|
4199
4505
|
|
|
@@ -5275,8 +5581,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5275
5581
|
* http://goto/soy-param-migration
|
|
5276
5582
|
* @return {!Object}
|
|
5277
5583
|
*/
|
|
5278
|
-
proto.apache.rocketmq.v2.
|
|
5279
|
-
return proto.apache.rocketmq.v2.
|
|
5584
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.prototype.toObject = function(opt_includeInstance) {
|
|
5585
|
+
return proto.apache.rocketmq.v2.ReconnectEndpointsCommand.toObject(opt_includeInstance, this);
|
|
5280
5586
|
};
|
|
5281
5587
|
|
|
5282
5588
|
|
|
@@ -5285,14 +5591,13 @@ proto.apache.rocketmq.v2.ThreadStackTrace.prototype.toObject = function(opt_incl
|
|
|
5285
5591
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5286
5592
|
* the JSPB instance for transitional soy proto support:
|
|
5287
5593
|
* http://goto/soy-param-migration
|
|
5288
|
-
* @param {!proto.apache.rocketmq.v2.
|
|
5594
|
+
* @param {!proto.apache.rocketmq.v2.ReconnectEndpointsCommand} msg The msg instance to transform.
|
|
5289
5595
|
* @return {!Object}
|
|
5290
5596
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5291
5597
|
*/
|
|
5292
|
-
proto.apache.rocketmq.v2.
|
|
5598
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.toObject = function(includeInstance, msg) {
|
|
5293
5599
|
var f, obj = {
|
|
5294
|
-
nonce: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5295
|
-
threadStackTrace: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5600
|
+
nonce: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5296
5601
|
};
|
|
5297
5602
|
|
|
5298
5603
|
if (includeInstance) {
|
|
@@ -5306,21 +5611,152 @@ proto.apache.rocketmq.v2.ThreadStackTrace.toObject = function(includeInstance, m
|
|
|
5306
5611
|
/**
|
|
5307
5612
|
* Deserializes binary data (in protobuf wire format).
|
|
5308
5613
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5309
|
-
* @return {!proto.apache.rocketmq.v2.
|
|
5614
|
+
* @return {!proto.apache.rocketmq.v2.ReconnectEndpointsCommand}
|
|
5310
5615
|
*/
|
|
5311
|
-
proto.apache.rocketmq.v2.
|
|
5616
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.deserializeBinary = function(bytes) {
|
|
5312
5617
|
var reader = new jspb.BinaryReader(bytes);
|
|
5313
|
-
var msg = new proto.apache.rocketmq.v2.
|
|
5314
|
-
return proto.apache.rocketmq.v2.
|
|
5618
|
+
var msg = new proto.apache.rocketmq.v2.ReconnectEndpointsCommand;
|
|
5619
|
+
return proto.apache.rocketmq.v2.ReconnectEndpointsCommand.deserializeBinaryFromReader(msg, reader);
|
|
5315
5620
|
};
|
|
5316
5621
|
|
|
5317
5622
|
|
|
5318
5623
|
/**
|
|
5319
5624
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5320
5625
|
* given reader into the given message object.
|
|
5321
|
-
* @param {!proto.apache.rocketmq.v2.
|
|
5626
|
+
* @param {!proto.apache.rocketmq.v2.ReconnectEndpointsCommand} msg The message object to deserialize into.
|
|
5322
5627
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5323
|
-
* @return {!proto.apache.rocketmq.v2.
|
|
5628
|
+
* @return {!proto.apache.rocketmq.v2.ReconnectEndpointsCommand}
|
|
5629
|
+
*/
|
|
5630
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.deserializeBinaryFromReader = function(msg, reader) {
|
|
5631
|
+
while (reader.nextField()) {
|
|
5632
|
+
if (reader.isEndGroup()) {
|
|
5633
|
+
break;
|
|
5634
|
+
}
|
|
5635
|
+
var field = reader.getFieldNumber();
|
|
5636
|
+
switch (field) {
|
|
5637
|
+
case 1:
|
|
5638
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5639
|
+
msg.setNonce(value);
|
|
5640
|
+
break;
|
|
5641
|
+
default:
|
|
5642
|
+
reader.skipField();
|
|
5643
|
+
break;
|
|
5644
|
+
}
|
|
5645
|
+
}
|
|
5646
|
+
return msg;
|
|
5647
|
+
};
|
|
5648
|
+
|
|
5649
|
+
|
|
5650
|
+
/**
|
|
5651
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5652
|
+
* @return {!Uint8Array}
|
|
5653
|
+
*/
|
|
5654
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.prototype.serializeBinary = function() {
|
|
5655
|
+
var writer = new jspb.BinaryWriter();
|
|
5656
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.serializeBinaryToWriter(this, writer);
|
|
5657
|
+
return writer.getResultBuffer();
|
|
5658
|
+
};
|
|
5659
|
+
|
|
5660
|
+
|
|
5661
|
+
/**
|
|
5662
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5663
|
+
* format), writing to the given BinaryWriter.
|
|
5664
|
+
* @param {!proto.apache.rocketmq.v2.ReconnectEndpointsCommand} message
|
|
5665
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5666
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5667
|
+
*/
|
|
5668
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.serializeBinaryToWriter = function(message, writer) {
|
|
5669
|
+
var f = undefined;
|
|
5670
|
+
f = message.getNonce();
|
|
5671
|
+
if (f.length > 0) {
|
|
5672
|
+
writer.writeString(
|
|
5673
|
+
1,
|
|
5674
|
+
f
|
|
5675
|
+
);
|
|
5676
|
+
}
|
|
5677
|
+
};
|
|
5678
|
+
|
|
5679
|
+
|
|
5680
|
+
/**
|
|
5681
|
+
* optional string nonce = 1;
|
|
5682
|
+
* @return {string}
|
|
5683
|
+
*/
|
|
5684
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.prototype.getNonce = function() {
|
|
5685
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5686
|
+
};
|
|
5687
|
+
|
|
5688
|
+
|
|
5689
|
+
/**
|
|
5690
|
+
* @param {string} value
|
|
5691
|
+
* @return {!proto.apache.rocketmq.v2.ReconnectEndpointsCommand} returns this
|
|
5692
|
+
*/
|
|
5693
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.prototype.setNonce = function(value) {
|
|
5694
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5695
|
+
};
|
|
5696
|
+
|
|
5697
|
+
|
|
5698
|
+
|
|
5699
|
+
|
|
5700
|
+
|
|
5701
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5702
|
+
/**
|
|
5703
|
+
* Creates an object representation of this proto.
|
|
5704
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5705
|
+
* Optional fields that are not set will be set to undefined.
|
|
5706
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5707
|
+
* For the list of reserved names please see:
|
|
5708
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5709
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5710
|
+
* JSPB instance for transitional soy proto support:
|
|
5711
|
+
* http://goto/soy-param-migration
|
|
5712
|
+
* @return {!Object}
|
|
5713
|
+
*/
|
|
5714
|
+
proto.apache.rocketmq.v2.ThreadStackTrace.prototype.toObject = function(opt_includeInstance) {
|
|
5715
|
+
return proto.apache.rocketmq.v2.ThreadStackTrace.toObject(opt_includeInstance, this);
|
|
5716
|
+
};
|
|
5717
|
+
|
|
5718
|
+
|
|
5719
|
+
/**
|
|
5720
|
+
* Static version of the {@see toObject} method.
|
|
5721
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5722
|
+
* the JSPB instance for transitional soy proto support:
|
|
5723
|
+
* http://goto/soy-param-migration
|
|
5724
|
+
* @param {!proto.apache.rocketmq.v2.ThreadStackTrace} msg The msg instance to transform.
|
|
5725
|
+
* @return {!Object}
|
|
5726
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5727
|
+
*/
|
|
5728
|
+
proto.apache.rocketmq.v2.ThreadStackTrace.toObject = function(includeInstance, msg) {
|
|
5729
|
+
var f, obj = {
|
|
5730
|
+
nonce: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5731
|
+
threadStackTrace: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5732
|
+
};
|
|
5733
|
+
|
|
5734
|
+
if (includeInstance) {
|
|
5735
|
+
obj.$jspbMessageInstance = msg;
|
|
5736
|
+
}
|
|
5737
|
+
return obj;
|
|
5738
|
+
};
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
|
|
5742
|
+
/**
|
|
5743
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5744
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5745
|
+
* @return {!proto.apache.rocketmq.v2.ThreadStackTrace}
|
|
5746
|
+
*/
|
|
5747
|
+
proto.apache.rocketmq.v2.ThreadStackTrace.deserializeBinary = function(bytes) {
|
|
5748
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5749
|
+
var msg = new proto.apache.rocketmq.v2.ThreadStackTrace;
|
|
5750
|
+
return proto.apache.rocketmq.v2.ThreadStackTrace.deserializeBinaryFromReader(msg, reader);
|
|
5751
|
+
};
|
|
5752
|
+
|
|
5753
|
+
|
|
5754
|
+
/**
|
|
5755
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5756
|
+
* given reader into the given message object.
|
|
5757
|
+
* @param {!proto.apache.rocketmq.v2.ThreadStackTrace} msg The message object to deserialize into.
|
|
5758
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5759
|
+
* @return {!proto.apache.rocketmq.v2.ThreadStackTrace}
|
|
5324
5760
|
*/
|
|
5325
5761
|
proto.apache.rocketmq.v2.ThreadStackTrace.deserializeBinaryFromReader = function(msg, reader) {
|
|
5326
5762
|
while (reader.nextField()) {
|
|
@@ -5930,6 +6366,136 @@ proto.apache.rocketmq.v2.RecoverOrphanedTransactionCommand.prototype.setTransact
|
|
|
5930
6366
|
|
|
5931
6367
|
|
|
5932
6368
|
|
|
6369
|
+
|
|
6370
|
+
|
|
6371
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6372
|
+
/**
|
|
6373
|
+
* Creates an object representation of this proto.
|
|
6374
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6375
|
+
* Optional fields that are not set will be set to undefined.
|
|
6376
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6377
|
+
* For the list of reserved names please see:
|
|
6378
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6379
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6380
|
+
* JSPB instance for transitional soy proto support:
|
|
6381
|
+
* http://goto/soy-param-migration
|
|
6382
|
+
* @return {!Object}
|
|
6383
|
+
*/
|
|
6384
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.prototype.toObject = function(opt_includeInstance) {
|
|
6385
|
+
return proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.toObject(opt_includeInstance, this);
|
|
6386
|
+
};
|
|
6387
|
+
|
|
6388
|
+
|
|
6389
|
+
/**
|
|
6390
|
+
* Static version of the {@see toObject} method.
|
|
6391
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6392
|
+
* the JSPB instance for transitional soy proto support:
|
|
6393
|
+
* http://goto/soy-param-migration
|
|
6394
|
+
* @param {!proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand} msg The msg instance to transform.
|
|
6395
|
+
* @return {!Object}
|
|
6396
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6397
|
+
*/
|
|
6398
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.toObject = function(includeInstance, msg) {
|
|
6399
|
+
var f, obj = {
|
|
6400
|
+
liteTopic: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6401
|
+
};
|
|
6402
|
+
|
|
6403
|
+
if (includeInstance) {
|
|
6404
|
+
obj.$jspbMessageInstance = msg;
|
|
6405
|
+
}
|
|
6406
|
+
return obj;
|
|
6407
|
+
};
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
|
|
6411
|
+
/**
|
|
6412
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6413
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6414
|
+
* @return {!proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand}
|
|
6415
|
+
*/
|
|
6416
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.deserializeBinary = function(bytes) {
|
|
6417
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6418
|
+
var msg = new proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand;
|
|
6419
|
+
return proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.deserializeBinaryFromReader(msg, reader);
|
|
6420
|
+
};
|
|
6421
|
+
|
|
6422
|
+
|
|
6423
|
+
/**
|
|
6424
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6425
|
+
* given reader into the given message object.
|
|
6426
|
+
* @param {!proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand} msg The message object to deserialize into.
|
|
6427
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6428
|
+
* @return {!proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand}
|
|
6429
|
+
*/
|
|
6430
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.deserializeBinaryFromReader = function(msg, reader) {
|
|
6431
|
+
while (reader.nextField()) {
|
|
6432
|
+
if (reader.isEndGroup()) {
|
|
6433
|
+
break;
|
|
6434
|
+
}
|
|
6435
|
+
var field = reader.getFieldNumber();
|
|
6436
|
+
switch (field) {
|
|
6437
|
+
case 1:
|
|
6438
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6439
|
+
msg.setLiteTopic(value);
|
|
6440
|
+
break;
|
|
6441
|
+
default:
|
|
6442
|
+
reader.skipField();
|
|
6443
|
+
break;
|
|
6444
|
+
}
|
|
6445
|
+
}
|
|
6446
|
+
return msg;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
6449
|
+
|
|
6450
|
+
/**
|
|
6451
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6452
|
+
* @return {!Uint8Array}
|
|
6453
|
+
*/
|
|
6454
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.prototype.serializeBinary = function() {
|
|
6455
|
+
var writer = new jspb.BinaryWriter();
|
|
6456
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.serializeBinaryToWriter(this, writer);
|
|
6457
|
+
return writer.getResultBuffer();
|
|
6458
|
+
};
|
|
6459
|
+
|
|
6460
|
+
|
|
6461
|
+
/**
|
|
6462
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6463
|
+
* format), writing to the given BinaryWriter.
|
|
6464
|
+
* @param {!proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand} message
|
|
6465
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6466
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6467
|
+
*/
|
|
6468
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.serializeBinaryToWriter = function(message, writer) {
|
|
6469
|
+
var f = undefined;
|
|
6470
|
+
f = message.getLiteTopic();
|
|
6471
|
+
if (f.length > 0) {
|
|
6472
|
+
writer.writeString(
|
|
6473
|
+
1,
|
|
6474
|
+
f
|
|
6475
|
+
);
|
|
6476
|
+
}
|
|
6477
|
+
};
|
|
6478
|
+
|
|
6479
|
+
|
|
6480
|
+
/**
|
|
6481
|
+
* optional string lite_topic = 1;
|
|
6482
|
+
* @return {string}
|
|
6483
|
+
*/
|
|
6484
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.prototype.getLiteTopic = function() {
|
|
6485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6486
|
+
};
|
|
6487
|
+
|
|
6488
|
+
|
|
6489
|
+
/**
|
|
6490
|
+
* @param {string} value
|
|
6491
|
+
* @return {!proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand} returns this
|
|
6492
|
+
*/
|
|
6493
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.prototype.setLiteTopic = function(value) {
|
|
6494
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6495
|
+
};
|
|
6496
|
+
|
|
6497
|
+
|
|
6498
|
+
|
|
5933
6499
|
/**
|
|
5934
6500
|
* Oneof group definitions for this message. Each group defines the field
|
|
5935
6501
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -5938,7 +6504,7 @@ proto.apache.rocketmq.v2.RecoverOrphanedTransactionCommand.prototype.setTransact
|
|
|
5938
6504
|
* @private {!Array<!Array<number>>}
|
|
5939
6505
|
* @const
|
|
5940
6506
|
*/
|
|
5941
|
-
proto.apache.rocketmq.v2.TelemetryCommand.oneofGroups_ = [[2,3,4,5,6,7]];
|
|
6507
|
+
proto.apache.rocketmq.v2.TelemetryCommand.oneofGroups_ = [[2,3,4,5,6,7,8,9]];
|
|
5942
6508
|
|
|
5943
6509
|
/**
|
|
5944
6510
|
* @enum {number}
|
|
@@ -5950,7 +6516,9 @@ proto.apache.rocketmq.v2.TelemetryCommand.CommandCase = {
|
|
|
5950
6516
|
VERIFY_MESSAGE_RESULT: 4,
|
|
5951
6517
|
RECOVER_ORPHANED_TRANSACTION_COMMAND: 5,
|
|
5952
6518
|
PRINT_THREAD_STACK_TRACE_COMMAND: 6,
|
|
5953
|
-
VERIFY_MESSAGE_COMMAND: 7
|
|
6519
|
+
VERIFY_MESSAGE_COMMAND: 7,
|
|
6520
|
+
RECONNECT_ENDPOINTS_COMMAND: 8,
|
|
6521
|
+
NOTIFY_UNSUBSCRIBE_LITE_COMMAND: 9
|
|
5954
6522
|
};
|
|
5955
6523
|
|
|
5956
6524
|
/**
|
|
@@ -5997,7 +6565,9 @@ proto.apache.rocketmq.v2.TelemetryCommand.toObject = function(includeInstance, m
|
|
|
5997
6565
|
verifyMessageResult: (f = msg.getVerifyMessageResult()) && proto.apache.rocketmq.v2.VerifyMessageResult.toObject(includeInstance, f),
|
|
5998
6566
|
recoverOrphanedTransactionCommand: (f = msg.getRecoverOrphanedTransactionCommand()) && proto.apache.rocketmq.v2.RecoverOrphanedTransactionCommand.toObject(includeInstance, f),
|
|
5999
6567
|
printThreadStackTraceCommand: (f = msg.getPrintThreadStackTraceCommand()) && proto.apache.rocketmq.v2.PrintThreadStackTraceCommand.toObject(includeInstance, f),
|
|
6000
|
-
verifyMessageCommand: (f = msg.getVerifyMessageCommand()) && proto.apache.rocketmq.v2.VerifyMessageCommand.toObject(includeInstance, f)
|
|
6568
|
+
verifyMessageCommand: (f = msg.getVerifyMessageCommand()) && proto.apache.rocketmq.v2.VerifyMessageCommand.toObject(includeInstance, f),
|
|
6569
|
+
reconnectEndpointsCommand: (f = msg.getReconnectEndpointsCommand()) && proto.apache.rocketmq.v2.ReconnectEndpointsCommand.toObject(includeInstance, f),
|
|
6570
|
+
notifyUnsubscribeLiteCommand: (f = msg.getNotifyUnsubscribeLiteCommand()) && proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.toObject(includeInstance, f)
|
|
6001
6571
|
};
|
|
6002
6572
|
|
|
6003
6573
|
if (includeInstance) {
|
|
@@ -6069,6 +6639,16 @@ proto.apache.rocketmq.v2.TelemetryCommand.deserializeBinaryFromReader = function
|
|
|
6069
6639
|
reader.readMessage(value,proto.apache.rocketmq.v2.VerifyMessageCommand.deserializeBinaryFromReader);
|
|
6070
6640
|
msg.setVerifyMessageCommand(value);
|
|
6071
6641
|
break;
|
|
6642
|
+
case 8:
|
|
6643
|
+
var value = new proto.apache.rocketmq.v2.ReconnectEndpointsCommand;
|
|
6644
|
+
reader.readMessage(value,proto.apache.rocketmq.v2.ReconnectEndpointsCommand.deserializeBinaryFromReader);
|
|
6645
|
+
msg.setReconnectEndpointsCommand(value);
|
|
6646
|
+
break;
|
|
6647
|
+
case 9:
|
|
6648
|
+
var value = new proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand;
|
|
6649
|
+
reader.readMessage(value,proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.deserializeBinaryFromReader);
|
|
6650
|
+
msg.setNotifyUnsubscribeLiteCommand(value);
|
|
6651
|
+
break;
|
|
6072
6652
|
default:
|
|
6073
6653
|
reader.skipField();
|
|
6074
6654
|
break;
|
|
@@ -6154,6 +6734,22 @@ proto.apache.rocketmq.v2.TelemetryCommand.serializeBinaryToWriter = function(mes
|
|
|
6154
6734
|
proto.apache.rocketmq.v2.VerifyMessageCommand.serializeBinaryToWriter
|
|
6155
6735
|
);
|
|
6156
6736
|
}
|
|
6737
|
+
f = message.getReconnectEndpointsCommand();
|
|
6738
|
+
if (f != null) {
|
|
6739
|
+
writer.writeMessage(
|
|
6740
|
+
8,
|
|
6741
|
+
f,
|
|
6742
|
+
proto.apache.rocketmq.v2.ReconnectEndpointsCommand.serializeBinaryToWriter
|
|
6743
|
+
);
|
|
6744
|
+
}
|
|
6745
|
+
f = message.getNotifyUnsubscribeLiteCommand();
|
|
6746
|
+
if (f != null) {
|
|
6747
|
+
writer.writeMessage(
|
|
6748
|
+
9,
|
|
6749
|
+
f,
|
|
6750
|
+
proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand.serializeBinaryToWriter
|
|
6751
|
+
);
|
|
6752
|
+
}
|
|
6157
6753
|
};
|
|
6158
6754
|
|
|
6159
6755
|
|
|
@@ -6416,15 +7012,89 @@ proto.apache.rocketmq.v2.TelemetryCommand.prototype.hasVerifyMessageCommand = fu
|
|
|
6416
7012
|
};
|
|
6417
7013
|
|
|
6418
7014
|
|
|
7015
|
+
/**
|
|
7016
|
+
* optional ReconnectEndpointsCommand reconnect_endpoints_command = 8;
|
|
7017
|
+
* @return {?proto.apache.rocketmq.v2.ReconnectEndpointsCommand}
|
|
7018
|
+
*/
|
|
7019
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.getReconnectEndpointsCommand = function() {
|
|
7020
|
+
return /** @type{?proto.apache.rocketmq.v2.ReconnectEndpointsCommand} */ (
|
|
7021
|
+
jspb.Message.getWrapperField(this, proto.apache.rocketmq.v2.ReconnectEndpointsCommand, 8));
|
|
7022
|
+
};
|
|
7023
|
+
|
|
6419
7024
|
|
|
7025
|
+
/**
|
|
7026
|
+
* @param {?proto.apache.rocketmq.v2.ReconnectEndpointsCommand|undefined} value
|
|
7027
|
+
* @return {!proto.apache.rocketmq.v2.TelemetryCommand} returns this
|
|
7028
|
+
*/
|
|
7029
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.setReconnectEndpointsCommand = function(value) {
|
|
7030
|
+
return jspb.Message.setOneofWrapperField(this, 8, proto.apache.rocketmq.v2.TelemetryCommand.oneofGroups_[0], value);
|
|
7031
|
+
};
|
|
6420
7032
|
|
|
6421
7033
|
|
|
6422
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6423
7034
|
/**
|
|
6424
|
-
*
|
|
6425
|
-
*
|
|
6426
|
-
|
|
6427
|
-
|
|
7035
|
+
* Clears the message field making it undefined.
|
|
7036
|
+
* @return {!proto.apache.rocketmq.v2.TelemetryCommand} returns this
|
|
7037
|
+
*/
|
|
7038
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.clearReconnectEndpointsCommand = function() {
|
|
7039
|
+
return this.setReconnectEndpointsCommand(undefined);
|
|
7040
|
+
};
|
|
7041
|
+
|
|
7042
|
+
|
|
7043
|
+
/**
|
|
7044
|
+
* Returns whether this field is set.
|
|
7045
|
+
* @return {boolean}
|
|
7046
|
+
*/
|
|
7047
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.hasReconnectEndpointsCommand = function() {
|
|
7048
|
+
return jspb.Message.getField(this, 8) != null;
|
|
7049
|
+
};
|
|
7050
|
+
|
|
7051
|
+
|
|
7052
|
+
/**
|
|
7053
|
+
* optional NotifyUnsubscribeLiteCommand notify_unsubscribe_lite_command = 9;
|
|
7054
|
+
* @return {?proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand}
|
|
7055
|
+
*/
|
|
7056
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.getNotifyUnsubscribeLiteCommand = function() {
|
|
7057
|
+
return /** @type{?proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand} */ (
|
|
7058
|
+
jspb.Message.getWrapperField(this, proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand, 9));
|
|
7059
|
+
};
|
|
7060
|
+
|
|
7061
|
+
|
|
7062
|
+
/**
|
|
7063
|
+
* @param {?proto.apache.rocketmq.v2.NotifyUnsubscribeLiteCommand|undefined} value
|
|
7064
|
+
* @return {!proto.apache.rocketmq.v2.TelemetryCommand} returns this
|
|
7065
|
+
*/
|
|
7066
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.setNotifyUnsubscribeLiteCommand = function(value) {
|
|
7067
|
+
return jspb.Message.setOneofWrapperField(this, 9, proto.apache.rocketmq.v2.TelemetryCommand.oneofGroups_[0], value);
|
|
7068
|
+
};
|
|
7069
|
+
|
|
7070
|
+
|
|
7071
|
+
/**
|
|
7072
|
+
* Clears the message field making it undefined.
|
|
7073
|
+
* @return {!proto.apache.rocketmq.v2.TelemetryCommand} returns this
|
|
7074
|
+
*/
|
|
7075
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.clearNotifyUnsubscribeLiteCommand = function() {
|
|
7076
|
+
return this.setNotifyUnsubscribeLiteCommand(undefined);
|
|
7077
|
+
};
|
|
7078
|
+
|
|
7079
|
+
|
|
7080
|
+
/**
|
|
7081
|
+
* Returns whether this field is set.
|
|
7082
|
+
* @return {boolean}
|
|
7083
|
+
*/
|
|
7084
|
+
proto.apache.rocketmq.v2.TelemetryCommand.prototype.hasNotifyUnsubscribeLiteCommand = function() {
|
|
7085
|
+
return jspb.Message.getField(this, 9) != null;
|
|
7086
|
+
};
|
|
7087
|
+
|
|
7088
|
+
|
|
7089
|
+
|
|
7090
|
+
|
|
7091
|
+
|
|
7092
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7093
|
+
/**
|
|
7094
|
+
* Creates an object representation of this proto.
|
|
7095
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7096
|
+
* Optional fields that are not set will be set to undefined.
|
|
7097
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6428
7098
|
* For the list of reserved names please see:
|
|
6429
7099
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6430
7100
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
@@ -6754,7 +7424,9 @@ proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.toObject = function(incl
|
|
|
6754
7424
|
topic: (f = msg.getTopic()) && apache_rocketmq_v2_definition_pb.Resource.toObject(includeInstance, f),
|
|
6755
7425
|
receiptHandle: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6756
7426
|
invisibleDuration: (f = msg.getInvisibleDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
|
|
6757
|
-
messageId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
7427
|
+
messageId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7428
|
+
liteTopic: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
7429
|
+
suspend: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
6758
7430
|
};
|
|
6759
7431
|
|
|
6760
7432
|
if (includeInstance) {
|
|
@@ -6814,6 +7486,14 @@ proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.deserializeBinaryFromRea
|
|
|
6814
7486
|
var value = /** @type {string} */ (reader.readString());
|
|
6815
7487
|
msg.setMessageId(value);
|
|
6816
7488
|
break;
|
|
7489
|
+
case 6:
|
|
7490
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7491
|
+
msg.setLiteTopic(value);
|
|
7492
|
+
break;
|
|
7493
|
+
case 7:
|
|
7494
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7495
|
+
msg.setSuspend(value);
|
|
7496
|
+
break;
|
|
6817
7497
|
default:
|
|
6818
7498
|
reader.skipField();
|
|
6819
7499
|
break;
|
|
@@ -6881,6 +7561,20 @@ proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.serializeBinaryToWriter
|
|
|
6881
7561
|
f
|
|
6882
7562
|
);
|
|
6883
7563
|
}
|
|
7564
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
7565
|
+
if (f != null) {
|
|
7566
|
+
writer.writeString(
|
|
7567
|
+
6,
|
|
7568
|
+
f
|
|
7569
|
+
);
|
|
7570
|
+
}
|
|
7571
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 7));
|
|
7572
|
+
if (f != null) {
|
|
7573
|
+
writer.writeBool(
|
|
7574
|
+
7,
|
|
7575
|
+
f
|
|
7576
|
+
);
|
|
7577
|
+
}
|
|
6884
7578
|
};
|
|
6885
7579
|
|
|
6886
7580
|
|
|
@@ -7031,6 +7725,78 @@ proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.setMessageId =
|
|
|
7031
7725
|
};
|
|
7032
7726
|
|
|
7033
7727
|
|
|
7728
|
+
/**
|
|
7729
|
+
* optional string lite_topic = 6;
|
|
7730
|
+
* @return {string}
|
|
7731
|
+
*/
|
|
7732
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.getLiteTopic = function() {
|
|
7733
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7734
|
+
};
|
|
7735
|
+
|
|
7736
|
+
|
|
7737
|
+
/**
|
|
7738
|
+
* @param {string} value
|
|
7739
|
+
* @return {!proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest} returns this
|
|
7740
|
+
*/
|
|
7741
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.setLiteTopic = function(value) {
|
|
7742
|
+
return jspb.Message.setField(this, 6, value);
|
|
7743
|
+
};
|
|
7744
|
+
|
|
7745
|
+
|
|
7746
|
+
/**
|
|
7747
|
+
* Clears the field making it undefined.
|
|
7748
|
+
* @return {!proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest} returns this
|
|
7749
|
+
*/
|
|
7750
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.clearLiteTopic = function() {
|
|
7751
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7752
|
+
};
|
|
7753
|
+
|
|
7754
|
+
|
|
7755
|
+
/**
|
|
7756
|
+
* Returns whether this field is set.
|
|
7757
|
+
* @return {boolean}
|
|
7758
|
+
*/
|
|
7759
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.hasLiteTopic = function() {
|
|
7760
|
+
return jspb.Message.getField(this, 6) != null;
|
|
7761
|
+
};
|
|
7762
|
+
|
|
7763
|
+
|
|
7764
|
+
/**
|
|
7765
|
+
* optional bool suspend = 7;
|
|
7766
|
+
* @return {boolean}
|
|
7767
|
+
*/
|
|
7768
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.getSuspend = function() {
|
|
7769
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
7770
|
+
};
|
|
7771
|
+
|
|
7772
|
+
|
|
7773
|
+
/**
|
|
7774
|
+
* @param {boolean} value
|
|
7775
|
+
* @return {!proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest} returns this
|
|
7776
|
+
*/
|
|
7777
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.setSuspend = function(value) {
|
|
7778
|
+
return jspb.Message.setField(this, 7, value);
|
|
7779
|
+
};
|
|
7780
|
+
|
|
7781
|
+
|
|
7782
|
+
/**
|
|
7783
|
+
* Clears the field making it undefined.
|
|
7784
|
+
* @return {!proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest} returns this
|
|
7785
|
+
*/
|
|
7786
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.clearSuspend = function() {
|
|
7787
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
7788
|
+
};
|
|
7789
|
+
|
|
7790
|
+
|
|
7791
|
+
/**
|
|
7792
|
+
* Returns whether this field is set.
|
|
7793
|
+
* @return {boolean}
|
|
7794
|
+
*/
|
|
7795
|
+
proto.apache.rocketmq.v2.ChangeInvisibleDurationRequest.prototype.hasSuspend = function() {
|
|
7796
|
+
return jspb.Message.getField(this, 7) != null;
|
|
7797
|
+
};
|
|
7798
|
+
|
|
7799
|
+
|
|
7034
7800
|
|
|
7035
7801
|
|
|
7036
7802
|
|
|
@@ -9032,4 +9798,904 @@ proto.apache.rocketmq.v2.QueryOffsetResponse.prototype.setOffset = function(valu
|
|
|
9032
9798
|
};
|
|
9033
9799
|
|
|
9034
9800
|
|
|
9801
|
+
|
|
9802
|
+
|
|
9803
|
+
|
|
9804
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9805
|
+
/**
|
|
9806
|
+
* Creates an object representation of this proto.
|
|
9807
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9808
|
+
* Optional fields that are not set will be set to undefined.
|
|
9809
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9810
|
+
* For the list of reserved names please see:
|
|
9811
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9812
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9813
|
+
* JSPB instance for transitional soy proto support:
|
|
9814
|
+
* http://goto/soy-param-migration
|
|
9815
|
+
* @return {!Object}
|
|
9816
|
+
*/
|
|
9817
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.toObject = function(opt_includeInstance) {
|
|
9818
|
+
return proto.apache.rocketmq.v2.RecallMessageRequest.toObject(opt_includeInstance, this);
|
|
9819
|
+
};
|
|
9820
|
+
|
|
9821
|
+
|
|
9822
|
+
/**
|
|
9823
|
+
* Static version of the {@see toObject} method.
|
|
9824
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
9825
|
+
* the JSPB instance for transitional soy proto support:
|
|
9826
|
+
* http://goto/soy-param-migration
|
|
9827
|
+
* @param {!proto.apache.rocketmq.v2.RecallMessageRequest} msg The msg instance to transform.
|
|
9828
|
+
* @return {!Object}
|
|
9829
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9830
|
+
*/
|
|
9831
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.toObject = function(includeInstance, msg) {
|
|
9832
|
+
var f, obj = {
|
|
9833
|
+
topic: (f = msg.getTopic()) && apache_rocketmq_v2_definition_pb.Resource.toObject(includeInstance, f),
|
|
9834
|
+
recallHandle: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
9835
|
+
};
|
|
9836
|
+
|
|
9837
|
+
if (includeInstance) {
|
|
9838
|
+
obj.$jspbMessageInstance = msg;
|
|
9839
|
+
}
|
|
9840
|
+
return obj;
|
|
9841
|
+
};
|
|
9842
|
+
}
|
|
9843
|
+
|
|
9844
|
+
|
|
9845
|
+
/**
|
|
9846
|
+
* Deserializes binary data (in protobuf wire format).
|
|
9847
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9848
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageRequest}
|
|
9849
|
+
*/
|
|
9850
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.deserializeBinary = function(bytes) {
|
|
9851
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9852
|
+
var msg = new proto.apache.rocketmq.v2.RecallMessageRequest;
|
|
9853
|
+
return proto.apache.rocketmq.v2.RecallMessageRequest.deserializeBinaryFromReader(msg, reader);
|
|
9854
|
+
};
|
|
9855
|
+
|
|
9856
|
+
|
|
9857
|
+
/**
|
|
9858
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9859
|
+
* given reader into the given message object.
|
|
9860
|
+
* @param {!proto.apache.rocketmq.v2.RecallMessageRequest} msg The message object to deserialize into.
|
|
9861
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9862
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageRequest}
|
|
9863
|
+
*/
|
|
9864
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
9865
|
+
while (reader.nextField()) {
|
|
9866
|
+
if (reader.isEndGroup()) {
|
|
9867
|
+
break;
|
|
9868
|
+
}
|
|
9869
|
+
var field = reader.getFieldNumber();
|
|
9870
|
+
switch (field) {
|
|
9871
|
+
case 1:
|
|
9872
|
+
var value = new apache_rocketmq_v2_definition_pb.Resource;
|
|
9873
|
+
reader.readMessage(value,apache_rocketmq_v2_definition_pb.Resource.deserializeBinaryFromReader);
|
|
9874
|
+
msg.setTopic(value);
|
|
9875
|
+
break;
|
|
9876
|
+
case 2:
|
|
9877
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9878
|
+
msg.setRecallHandle(value);
|
|
9879
|
+
break;
|
|
9880
|
+
default:
|
|
9881
|
+
reader.skipField();
|
|
9882
|
+
break;
|
|
9883
|
+
}
|
|
9884
|
+
}
|
|
9885
|
+
return msg;
|
|
9886
|
+
};
|
|
9887
|
+
|
|
9888
|
+
|
|
9889
|
+
/**
|
|
9890
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9891
|
+
* @return {!Uint8Array}
|
|
9892
|
+
*/
|
|
9893
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.serializeBinary = function() {
|
|
9894
|
+
var writer = new jspb.BinaryWriter();
|
|
9895
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.serializeBinaryToWriter(this, writer);
|
|
9896
|
+
return writer.getResultBuffer();
|
|
9897
|
+
};
|
|
9898
|
+
|
|
9899
|
+
|
|
9900
|
+
/**
|
|
9901
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9902
|
+
* format), writing to the given BinaryWriter.
|
|
9903
|
+
* @param {!proto.apache.rocketmq.v2.RecallMessageRequest} message
|
|
9904
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9905
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9906
|
+
*/
|
|
9907
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.serializeBinaryToWriter = function(message, writer) {
|
|
9908
|
+
var f = undefined;
|
|
9909
|
+
f = message.getTopic();
|
|
9910
|
+
if (f != null) {
|
|
9911
|
+
writer.writeMessage(
|
|
9912
|
+
1,
|
|
9913
|
+
f,
|
|
9914
|
+
apache_rocketmq_v2_definition_pb.Resource.serializeBinaryToWriter
|
|
9915
|
+
);
|
|
9916
|
+
}
|
|
9917
|
+
f = message.getRecallHandle();
|
|
9918
|
+
if (f.length > 0) {
|
|
9919
|
+
writer.writeString(
|
|
9920
|
+
2,
|
|
9921
|
+
f
|
|
9922
|
+
);
|
|
9923
|
+
}
|
|
9924
|
+
};
|
|
9925
|
+
|
|
9926
|
+
|
|
9927
|
+
/**
|
|
9928
|
+
* optional Resource topic = 1;
|
|
9929
|
+
* @return {?proto.apache.rocketmq.v2.Resource}
|
|
9930
|
+
*/
|
|
9931
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.getTopic = function() {
|
|
9932
|
+
return /** @type{?proto.apache.rocketmq.v2.Resource} */ (
|
|
9933
|
+
jspb.Message.getWrapperField(this, apache_rocketmq_v2_definition_pb.Resource, 1));
|
|
9934
|
+
};
|
|
9935
|
+
|
|
9936
|
+
|
|
9937
|
+
/**
|
|
9938
|
+
* @param {?proto.apache.rocketmq.v2.Resource|undefined} value
|
|
9939
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageRequest} returns this
|
|
9940
|
+
*/
|
|
9941
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.setTopic = function(value) {
|
|
9942
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
9943
|
+
};
|
|
9944
|
+
|
|
9945
|
+
|
|
9946
|
+
/**
|
|
9947
|
+
* Clears the message field making it undefined.
|
|
9948
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageRequest} returns this
|
|
9949
|
+
*/
|
|
9950
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.clearTopic = function() {
|
|
9951
|
+
return this.setTopic(undefined);
|
|
9952
|
+
};
|
|
9953
|
+
|
|
9954
|
+
|
|
9955
|
+
/**
|
|
9956
|
+
* Returns whether this field is set.
|
|
9957
|
+
* @return {boolean}
|
|
9958
|
+
*/
|
|
9959
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.hasTopic = function() {
|
|
9960
|
+
return jspb.Message.getField(this, 1) != null;
|
|
9961
|
+
};
|
|
9962
|
+
|
|
9963
|
+
|
|
9964
|
+
/**
|
|
9965
|
+
* optional string recall_handle = 2;
|
|
9966
|
+
* @return {string}
|
|
9967
|
+
*/
|
|
9968
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.getRecallHandle = function() {
|
|
9969
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
9970
|
+
};
|
|
9971
|
+
|
|
9972
|
+
|
|
9973
|
+
/**
|
|
9974
|
+
* @param {string} value
|
|
9975
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageRequest} returns this
|
|
9976
|
+
*/
|
|
9977
|
+
proto.apache.rocketmq.v2.RecallMessageRequest.prototype.setRecallHandle = function(value) {
|
|
9978
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
9979
|
+
};
|
|
9980
|
+
|
|
9981
|
+
|
|
9982
|
+
|
|
9983
|
+
|
|
9984
|
+
|
|
9985
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9986
|
+
/**
|
|
9987
|
+
* Creates an object representation of this proto.
|
|
9988
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9989
|
+
* Optional fields that are not set will be set to undefined.
|
|
9990
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9991
|
+
* For the list of reserved names please see:
|
|
9992
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9993
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9994
|
+
* JSPB instance for transitional soy proto support:
|
|
9995
|
+
* http://goto/soy-param-migration
|
|
9996
|
+
* @return {!Object}
|
|
9997
|
+
*/
|
|
9998
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.toObject = function(opt_includeInstance) {
|
|
9999
|
+
return proto.apache.rocketmq.v2.RecallMessageResponse.toObject(opt_includeInstance, this);
|
|
10000
|
+
};
|
|
10001
|
+
|
|
10002
|
+
|
|
10003
|
+
/**
|
|
10004
|
+
* Static version of the {@see toObject} method.
|
|
10005
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10006
|
+
* the JSPB instance for transitional soy proto support:
|
|
10007
|
+
* http://goto/soy-param-migration
|
|
10008
|
+
* @param {!proto.apache.rocketmq.v2.RecallMessageResponse} msg The msg instance to transform.
|
|
10009
|
+
* @return {!Object}
|
|
10010
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10011
|
+
*/
|
|
10012
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.toObject = function(includeInstance, msg) {
|
|
10013
|
+
var f, obj = {
|
|
10014
|
+
status: (f = msg.getStatus()) && apache_rocketmq_v2_definition_pb.Status.toObject(includeInstance, f),
|
|
10015
|
+
messageId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
10016
|
+
};
|
|
10017
|
+
|
|
10018
|
+
if (includeInstance) {
|
|
10019
|
+
obj.$jspbMessageInstance = msg;
|
|
10020
|
+
}
|
|
10021
|
+
return obj;
|
|
10022
|
+
};
|
|
10023
|
+
}
|
|
10024
|
+
|
|
10025
|
+
|
|
10026
|
+
/**
|
|
10027
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10028
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10029
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageResponse}
|
|
10030
|
+
*/
|
|
10031
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.deserializeBinary = function(bytes) {
|
|
10032
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10033
|
+
var msg = new proto.apache.rocketmq.v2.RecallMessageResponse;
|
|
10034
|
+
return proto.apache.rocketmq.v2.RecallMessageResponse.deserializeBinaryFromReader(msg, reader);
|
|
10035
|
+
};
|
|
10036
|
+
|
|
10037
|
+
|
|
10038
|
+
/**
|
|
10039
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10040
|
+
* given reader into the given message object.
|
|
10041
|
+
* @param {!proto.apache.rocketmq.v2.RecallMessageResponse} msg The message object to deserialize into.
|
|
10042
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10043
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageResponse}
|
|
10044
|
+
*/
|
|
10045
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
10046
|
+
while (reader.nextField()) {
|
|
10047
|
+
if (reader.isEndGroup()) {
|
|
10048
|
+
break;
|
|
10049
|
+
}
|
|
10050
|
+
var field = reader.getFieldNumber();
|
|
10051
|
+
switch (field) {
|
|
10052
|
+
case 1:
|
|
10053
|
+
var value = new apache_rocketmq_v2_definition_pb.Status;
|
|
10054
|
+
reader.readMessage(value,apache_rocketmq_v2_definition_pb.Status.deserializeBinaryFromReader);
|
|
10055
|
+
msg.setStatus(value);
|
|
10056
|
+
break;
|
|
10057
|
+
case 2:
|
|
10058
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10059
|
+
msg.setMessageId(value);
|
|
10060
|
+
break;
|
|
10061
|
+
default:
|
|
10062
|
+
reader.skipField();
|
|
10063
|
+
break;
|
|
10064
|
+
}
|
|
10065
|
+
}
|
|
10066
|
+
return msg;
|
|
10067
|
+
};
|
|
10068
|
+
|
|
10069
|
+
|
|
10070
|
+
/**
|
|
10071
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10072
|
+
* @return {!Uint8Array}
|
|
10073
|
+
*/
|
|
10074
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.serializeBinary = function() {
|
|
10075
|
+
var writer = new jspb.BinaryWriter();
|
|
10076
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.serializeBinaryToWriter(this, writer);
|
|
10077
|
+
return writer.getResultBuffer();
|
|
10078
|
+
};
|
|
10079
|
+
|
|
10080
|
+
|
|
10081
|
+
/**
|
|
10082
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10083
|
+
* format), writing to the given BinaryWriter.
|
|
10084
|
+
* @param {!proto.apache.rocketmq.v2.RecallMessageResponse} message
|
|
10085
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10086
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10087
|
+
*/
|
|
10088
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.serializeBinaryToWriter = function(message, writer) {
|
|
10089
|
+
var f = undefined;
|
|
10090
|
+
f = message.getStatus();
|
|
10091
|
+
if (f != null) {
|
|
10092
|
+
writer.writeMessage(
|
|
10093
|
+
1,
|
|
10094
|
+
f,
|
|
10095
|
+
apache_rocketmq_v2_definition_pb.Status.serializeBinaryToWriter
|
|
10096
|
+
);
|
|
10097
|
+
}
|
|
10098
|
+
f = message.getMessageId();
|
|
10099
|
+
if (f.length > 0) {
|
|
10100
|
+
writer.writeString(
|
|
10101
|
+
2,
|
|
10102
|
+
f
|
|
10103
|
+
);
|
|
10104
|
+
}
|
|
10105
|
+
};
|
|
10106
|
+
|
|
10107
|
+
|
|
10108
|
+
/**
|
|
10109
|
+
* optional Status status = 1;
|
|
10110
|
+
* @return {?proto.apache.rocketmq.v2.Status}
|
|
10111
|
+
*/
|
|
10112
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.getStatus = function() {
|
|
10113
|
+
return /** @type{?proto.apache.rocketmq.v2.Status} */ (
|
|
10114
|
+
jspb.Message.getWrapperField(this, apache_rocketmq_v2_definition_pb.Status, 1));
|
|
10115
|
+
};
|
|
10116
|
+
|
|
10117
|
+
|
|
10118
|
+
/**
|
|
10119
|
+
* @param {?proto.apache.rocketmq.v2.Status|undefined} value
|
|
10120
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageResponse} returns this
|
|
10121
|
+
*/
|
|
10122
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.setStatus = function(value) {
|
|
10123
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
10124
|
+
};
|
|
10125
|
+
|
|
10126
|
+
|
|
10127
|
+
/**
|
|
10128
|
+
* Clears the message field making it undefined.
|
|
10129
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageResponse} returns this
|
|
10130
|
+
*/
|
|
10131
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.clearStatus = function() {
|
|
10132
|
+
return this.setStatus(undefined);
|
|
10133
|
+
};
|
|
10134
|
+
|
|
10135
|
+
|
|
10136
|
+
/**
|
|
10137
|
+
* Returns whether this field is set.
|
|
10138
|
+
* @return {boolean}
|
|
10139
|
+
*/
|
|
10140
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.hasStatus = function() {
|
|
10141
|
+
return jspb.Message.getField(this, 1) != null;
|
|
10142
|
+
};
|
|
10143
|
+
|
|
10144
|
+
|
|
10145
|
+
/**
|
|
10146
|
+
* optional string message_id = 2;
|
|
10147
|
+
* @return {string}
|
|
10148
|
+
*/
|
|
10149
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.getMessageId = function() {
|
|
10150
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10151
|
+
};
|
|
10152
|
+
|
|
10153
|
+
|
|
10154
|
+
/**
|
|
10155
|
+
* @param {string} value
|
|
10156
|
+
* @return {!proto.apache.rocketmq.v2.RecallMessageResponse} returns this
|
|
10157
|
+
*/
|
|
10158
|
+
proto.apache.rocketmq.v2.RecallMessageResponse.prototype.setMessageId = function(value) {
|
|
10159
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10160
|
+
};
|
|
10161
|
+
|
|
10162
|
+
|
|
10163
|
+
|
|
10164
|
+
/**
|
|
10165
|
+
* List of repeated fields within this message type.
|
|
10166
|
+
* @private {!Array<number>}
|
|
10167
|
+
* @const
|
|
10168
|
+
*/
|
|
10169
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.repeatedFields_ = [4];
|
|
10170
|
+
|
|
10171
|
+
|
|
10172
|
+
|
|
10173
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10174
|
+
/**
|
|
10175
|
+
* Creates an object representation of this proto.
|
|
10176
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10177
|
+
* Optional fields that are not set will be set to undefined.
|
|
10178
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10179
|
+
* For the list of reserved names please see:
|
|
10180
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10181
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10182
|
+
* JSPB instance for transitional soy proto support:
|
|
10183
|
+
* http://goto/soy-param-migration
|
|
10184
|
+
* @return {!Object}
|
|
10185
|
+
*/
|
|
10186
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
10187
|
+
return proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.toObject(opt_includeInstance, this);
|
|
10188
|
+
};
|
|
10189
|
+
|
|
10190
|
+
|
|
10191
|
+
/**
|
|
10192
|
+
* Static version of the {@see toObject} method.
|
|
10193
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10194
|
+
* the JSPB instance for transitional soy proto support:
|
|
10195
|
+
* http://goto/soy-param-migration
|
|
10196
|
+
* @param {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} msg The msg instance to transform.
|
|
10197
|
+
* @return {!Object}
|
|
10198
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10199
|
+
*/
|
|
10200
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.toObject = function(includeInstance, msg) {
|
|
10201
|
+
var f, obj = {
|
|
10202
|
+
action: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
10203
|
+
topic: (f = msg.getTopic()) && apache_rocketmq_v2_definition_pb.Resource.toObject(includeInstance, f),
|
|
10204
|
+
group: (f = msg.getGroup()) && apache_rocketmq_v2_definition_pb.Resource.toObject(includeInstance, f),
|
|
10205
|
+
liteTopicSetList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
10206
|
+
version: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
10207
|
+
offsetOption: (f = msg.getOffsetOption()) && apache_rocketmq_v2_definition_pb.OffsetOption.toObject(includeInstance, f)
|
|
10208
|
+
};
|
|
10209
|
+
|
|
10210
|
+
if (includeInstance) {
|
|
10211
|
+
obj.$jspbMessageInstance = msg;
|
|
10212
|
+
}
|
|
10213
|
+
return obj;
|
|
10214
|
+
};
|
|
10215
|
+
}
|
|
10216
|
+
|
|
10217
|
+
|
|
10218
|
+
/**
|
|
10219
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10220
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10221
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest}
|
|
10222
|
+
*/
|
|
10223
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.deserializeBinary = function(bytes) {
|
|
10224
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10225
|
+
var msg = new proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest;
|
|
10226
|
+
return proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.deserializeBinaryFromReader(msg, reader);
|
|
10227
|
+
};
|
|
10228
|
+
|
|
10229
|
+
|
|
10230
|
+
/**
|
|
10231
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10232
|
+
* given reader into the given message object.
|
|
10233
|
+
* @param {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} msg The message object to deserialize into.
|
|
10234
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10235
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest}
|
|
10236
|
+
*/
|
|
10237
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
10238
|
+
while (reader.nextField()) {
|
|
10239
|
+
if (reader.isEndGroup()) {
|
|
10240
|
+
break;
|
|
10241
|
+
}
|
|
10242
|
+
var field = reader.getFieldNumber();
|
|
10243
|
+
switch (field) {
|
|
10244
|
+
case 1:
|
|
10245
|
+
var value = /** @type {!proto.apache.rocketmq.v2.LiteSubscriptionAction} */ (reader.readEnum());
|
|
10246
|
+
msg.setAction(value);
|
|
10247
|
+
break;
|
|
10248
|
+
case 2:
|
|
10249
|
+
var value = new apache_rocketmq_v2_definition_pb.Resource;
|
|
10250
|
+
reader.readMessage(value,apache_rocketmq_v2_definition_pb.Resource.deserializeBinaryFromReader);
|
|
10251
|
+
msg.setTopic(value);
|
|
10252
|
+
break;
|
|
10253
|
+
case 3:
|
|
10254
|
+
var value = new apache_rocketmq_v2_definition_pb.Resource;
|
|
10255
|
+
reader.readMessage(value,apache_rocketmq_v2_definition_pb.Resource.deserializeBinaryFromReader);
|
|
10256
|
+
msg.setGroup(value);
|
|
10257
|
+
break;
|
|
10258
|
+
case 4:
|
|
10259
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10260
|
+
msg.addLiteTopicSet(value);
|
|
10261
|
+
break;
|
|
10262
|
+
case 5:
|
|
10263
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
10264
|
+
msg.setVersion(value);
|
|
10265
|
+
break;
|
|
10266
|
+
case 6:
|
|
10267
|
+
var value = new apache_rocketmq_v2_definition_pb.OffsetOption;
|
|
10268
|
+
reader.readMessage(value,apache_rocketmq_v2_definition_pb.OffsetOption.deserializeBinaryFromReader);
|
|
10269
|
+
msg.setOffsetOption(value);
|
|
10270
|
+
break;
|
|
10271
|
+
default:
|
|
10272
|
+
reader.skipField();
|
|
10273
|
+
break;
|
|
10274
|
+
}
|
|
10275
|
+
}
|
|
10276
|
+
return msg;
|
|
10277
|
+
};
|
|
10278
|
+
|
|
10279
|
+
|
|
10280
|
+
/**
|
|
10281
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10282
|
+
* @return {!Uint8Array}
|
|
10283
|
+
*/
|
|
10284
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.serializeBinary = function() {
|
|
10285
|
+
var writer = new jspb.BinaryWriter();
|
|
10286
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.serializeBinaryToWriter(this, writer);
|
|
10287
|
+
return writer.getResultBuffer();
|
|
10288
|
+
};
|
|
10289
|
+
|
|
10290
|
+
|
|
10291
|
+
/**
|
|
10292
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10293
|
+
* format), writing to the given BinaryWriter.
|
|
10294
|
+
* @param {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} message
|
|
10295
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10296
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10297
|
+
*/
|
|
10298
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
10299
|
+
var f = undefined;
|
|
10300
|
+
f = message.getAction();
|
|
10301
|
+
if (f !== 0.0) {
|
|
10302
|
+
writer.writeEnum(
|
|
10303
|
+
1,
|
|
10304
|
+
f
|
|
10305
|
+
);
|
|
10306
|
+
}
|
|
10307
|
+
f = message.getTopic();
|
|
10308
|
+
if (f != null) {
|
|
10309
|
+
writer.writeMessage(
|
|
10310
|
+
2,
|
|
10311
|
+
f,
|
|
10312
|
+
apache_rocketmq_v2_definition_pb.Resource.serializeBinaryToWriter
|
|
10313
|
+
);
|
|
10314
|
+
}
|
|
10315
|
+
f = message.getGroup();
|
|
10316
|
+
if (f != null) {
|
|
10317
|
+
writer.writeMessage(
|
|
10318
|
+
3,
|
|
10319
|
+
f,
|
|
10320
|
+
apache_rocketmq_v2_definition_pb.Resource.serializeBinaryToWriter
|
|
10321
|
+
);
|
|
10322
|
+
}
|
|
10323
|
+
f = message.getLiteTopicSetList();
|
|
10324
|
+
if (f.length > 0) {
|
|
10325
|
+
writer.writeRepeatedString(
|
|
10326
|
+
4,
|
|
10327
|
+
f
|
|
10328
|
+
);
|
|
10329
|
+
}
|
|
10330
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
10331
|
+
if (f != null) {
|
|
10332
|
+
writer.writeInt64(
|
|
10333
|
+
5,
|
|
10334
|
+
f
|
|
10335
|
+
);
|
|
10336
|
+
}
|
|
10337
|
+
f = message.getOffsetOption();
|
|
10338
|
+
if (f != null) {
|
|
10339
|
+
writer.writeMessage(
|
|
10340
|
+
6,
|
|
10341
|
+
f,
|
|
10342
|
+
apache_rocketmq_v2_definition_pb.OffsetOption.serializeBinaryToWriter
|
|
10343
|
+
);
|
|
10344
|
+
}
|
|
10345
|
+
};
|
|
10346
|
+
|
|
10347
|
+
|
|
10348
|
+
/**
|
|
10349
|
+
* optional LiteSubscriptionAction action = 1;
|
|
10350
|
+
* @return {!proto.apache.rocketmq.v2.LiteSubscriptionAction}
|
|
10351
|
+
*/
|
|
10352
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.getAction = function() {
|
|
10353
|
+
return /** @type {!proto.apache.rocketmq.v2.LiteSubscriptionAction} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
10354
|
+
};
|
|
10355
|
+
|
|
10356
|
+
|
|
10357
|
+
/**
|
|
10358
|
+
* @param {!proto.apache.rocketmq.v2.LiteSubscriptionAction} value
|
|
10359
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10360
|
+
*/
|
|
10361
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.setAction = function(value) {
|
|
10362
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
10363
|
+
};
|
|
10364
|
+
|
|
10365
|
+
|
|
10366
|
+
/**
|
|
10367
|
+
* optional Resource topic = 2;
|
|
10368
|
+
* @return {?proto.apache.rocketmq.v2.Resource}
|
|
10369
|
+
*/
|
|
10370
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.getTopic = function() {
|
|
10371
|
+
return /** @type{?proto.apache.rocketmq.v2.Resource} */ (
|
|
10372
|
+
jspb.Message.getWrapperField(this, apache_rocketmq_v2_definition_pb.Resource, 2));
|
|
10373
|
+
};
|
|
10374
|
+
|
|
10375
|
+
|
|
10376
|
+
/**
|
|
10377
|
+
* @param {?proto.apache.rocketmq.v2.Resource|undefined} value
|
|
10378
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10379
|
+
*/
|
|
10380
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.setTopic = function(value) {
|
|
10381
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
10382
|
+
};
|
|
10383
|
+
|
|
10384
|
+
|
|
10385
|
+
/**
|
|
10386
|
+
* Clears the message field making it undefined.
|
|
10387
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10388
|
+
*/
|
|
10389
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.clearTopic = function() {
|
|
10390
|
+
return this.setTopic(undefined);
|
|
10391
|
+
};
|
|
10392
|
+
|
|
10393
|
+
|
|
10394
|
+
/**
|
|
10395
|
+
* Returns whether this field is set.
|
|
10396
|
+
* @return {boolean}
|
|
10397
|
+
*/
|
|
10398
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.hasTopic = function() {
|
|
10399
|
+
return jspb.Message.getField(this, 2) != null;
|
|
10400
|
+
};
|
|
10401
|
+
|
|
10402
|
+
|
|
10403
|
+
/**
|
|
10404
|
+
* optional Resource group = 3;
|
|
10405
|
+
* @return {?proto.apache.rocketmq.v2.Resource}
|
|
10406
|
+
*/
|
|
10407
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.getGroup = function() {
|
|
10408
|
+
return /** @type{?proto.apache.rocketmq.v2.Resource} */ (
|
|
10409
|
+
jspb.Message.getWrapperField(this, apache_rocketmq_v2_definition_pb.Resource, 3));
|
|
10410
|
+
};
|
|
10411
|
+
|
|
10412
|
+
|
|
10413
|
+
/**
|
|
10414
|
+
* @param {?proto.apache.rocketmq.v2.Resource|undefined} value
|
|
10415
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10416
|
+
*/
|
|
10417
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.setGroup = function(value) {
|
|
10418
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
10419
|
+
};
|
|
10420
|
+
|
|
10421
|
+
|
|
10422
|
+
/**
|
|
10423
|
+
* Clears the message field making it undefined.
|
|
10424
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10425
|
+
*/
|
|
10426
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.clearGroup = function() {
|
|
10427
|
+
return this.setGroup(undefined);
|
|
10428
|
+
};
|
|
10429
|
+
|
|
10430
|
+
|
|
10431
|
+
/**
|
|
10432
|
+
* Returns whether this field is set.
|
|
10433
|
+
* @return {boolean}
|
|
10434
|
+
*/
|
|
10435
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.hasGroup = function() {
|
|
10436
|
+
return jspb.Message.getField(this, 3) != null;
|
|
10437
|
+
};
|
|
10438
|
+
|
|
10439
|
+
|
|
10440
|
+
/**
|
|
10441
|
+
* repeated string lite_topic_set = 4;
|
|
10442
|
+
* @return {!Array<string>}
|
|
10443
|
+
*/
|
|
10444
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.getLiteTopicSetList = function() {
|
|
10445
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
10446
|
+
};
|
|
10447
|
+
|
|
10448
|
+
|
|
10449
|
+
/**
|
|
10450
|
+
* @param {!Array<string>} value
|
|
10451
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10452
|
+
*/
|
|
10453
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.setLiteTopicSetList = function(value) {
|
|
10454
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
10455
|
+
};
|
|
10456
|
+
|
|
10457
|
+
|
|
10458
|
+
/**
|
|
10459
|
+
* @param {string} value
|
|
10460
|
+
* @param {number=} opt_index
|
|
10461
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10462
|
+
*/
|
|
10463
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.addLiteTopicSet = function(value, opt_index) {
|
|
10464
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
10465
|
+
};
|
|
10466
|
+
|
|
10467
|
+
|
|
10468
|
+
/**
|
|
10469
|
+
* Clears the list making it empty but non-null.
|
|
10470
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10471
|
+
*/
|
|
10472
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.clearLiteTopicSetList = function() {
|
|
10473
|
+
return this.setLiteTopicSetList([]);
|
|
10474
|
+
};
|
|
10475
|
+
|
|
10476
|
+
|
|
10477
|
+
/**
|
|
10478
|
+
* optional int64 version = 5;
|
|
10479
|
+
* @return {number}
|
|
10480
|
+
*/
|
|
10481
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.getVersion = function() {
|
|
10482
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
10483
|
+
};
|
|
10484
|
+
|
|
10485
|
+
|
|
10486
|
+
/**
|
|
10487
|
+
* @param {number} value
|
|
10488
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10489
|
+
*/
|
|
10490
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.setVersion = function(value) {
|
|
10491
|
+
return jspb.Message.setField(this, 5, value);
|
|
10492
|
+
};
|
|
10493
|
+
|
|
10494
|
+
|
|
10495
|
+
/**
|
|
10496
|
+
* Clears the field making it undefined.
|
|
10497
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10498
|
+
*/
|
|
10499
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.clearVersion = function() {
|
|
10500
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
10501
|
+
};
|
|
10502
|
+
|
|
10503
|
+
|
|
10504
|
+
/**
|
|
10505
|
+
* Returns whether this field is set.
|
|
10506
|
+
* @return {boolean}
|
|
10507
|
+
*/
|
|
10508
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.hasVersion = function() {
|
|
10509
|
+
return jspb.Message.getField(this, 5) != null;
|
|
10510
|
+
};
|
|
10511
|
+
|
|
10512
|
+
|
|
10513
|
+
/**
|
|
10514
|
+
* optional OffsetOption offset_option = 6;
|
|
10515
|
+
* @return {?proto.apache.rocketmq.v2.OffsetOption}
|
|
10516
|
+
*/
|
|
10517
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.getOffsetOption = function() {
|
|
10518
|
+
return /** @type{?proto.apache.rocketmq.v2.OffsetOption} */ (
|
|
10519
|
+
jspb.Message.getWrapperField(this, apache_rocketmq_v2_definition_pb.OffsetOption, 6));
|
|
10520
|
+
};
|
|
10521
|
+
|
|
10522
|
+
|
|
10523
|
+
/**
|
|
10524
|
+
* @param {?proto.apache.rocketmq.v2.OffsetOption|undefined} value
|
|
10525
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10526
|
+
*/
|
|
10527
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.setOffsetOption = function(value) {
|
|
10528
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
10529
|
+
};
|
|
10530
|
+
|
|
10531
|
+
|
|
10532
|
+
/**
|
|
10533
|
+
* Clears the message field making it undefined.
|
|
10534
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest} returns this
|
|
10535
|
+
*/
|
|
10536
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.clearOffsetOption = function() {
|
|
10537
|
+
return this.setOffsetOption(undefined);
|
|
10538
|
+
};
|
|
10539
|
+
|
|
10540
|
+
|
|
10541
|
+
/**
|
|
10542
|
+
* Returns whether this field is set.
|
|
10543
|
+
* @return {boolean}
|
|
10544
|
+
*/
|
|
10545
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionRequest.prototype.hasOffsetOption = function() {
|
|
10546
|
+
return jspb.Message.getField(this, 6) != null;
|
|
10547
|
+
};
|
|
10548
|
+
|
|
10549
|
+
|
|
10550
|
+
|
|
10551
|
+
|
|
10552
|
+
|
|
10553
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10554
|
+
/**
|
|
10555
|
+
* Creates an object representation of this proto.
|
|
10556
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10557
|
+
* Optional fields that are not set will be set to undefined.
|
|
10558
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10559
|
+
* For the list of reserved names please see:
|
|
10560
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10561
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10562
|
+
* JSPB instance for transitional soy proto support:
|
|
10563
|
+
* http://goto/soy-param-migration
|
|
10564
|
+
* @return {!Object}
|
|
10565
|
+
*/
|
|
10566
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
10567
|
+
return proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.toObject(opt_includeInstance, this);
|
|
10568
|
+
};
|
|
10569
|
+
|
|
10570
|
+
|
|
10571
|
+
/**
|
|
10572
|
+
* Static version of the {@see toObject} method.
|
|
10573
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10574
|
+
* the JSPB instance for transitional soy proto support:
|
|
10575
|
+
* http://goto/soy-param-migration
|
|
10576
|
+
* @param {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse} msg The msg instance to transform.
|
|
10577
|
+
* @return {!Object}
|
|
10578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10579
|
+
*/
|
|
10580
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.toObject = function(includeInstance, msg) {
|
|
10581
|
+
var f, obj = {
|
|
10582
|
+
status: (f = msg.getStatus()) && apache_rocketmq_v2_definition_pb.Status.toObject(includeInstance, f)
|
|
10583
|
+
};
|
|
10584
|
+
|
|
10585
|
+
if (includeInstance) {
|
|
10586
|
+
obj.$jspbMessageInstance = msg;
|
|
10587
|
+
}
|
|
10588
|
+
return obj;
|
|
10589
|
+
};
|
|
10590
|
+
}
|
|
10591
|
+
|
|
10592
|
+
|
|
10593
|
+
/**
|
|
10594
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10595
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10596
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse}
|
|
10597
|
+
*/
|
|
10598
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.deserializeBinary = function(bytes) {
|
|
10599
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10600
|
+
var msg = new proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse;
|
|
10601
|
+
return proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.deserializeBinaryFromReader(msg, reader);
|
|
10602
|
+
};
|
|
10603
|
+
|
|
10604
|
+
|
|
10605
|
+
/**
|
|
10606
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10607
|
+
* given reader into the given message object.
|
|
10608
|
+
* @param {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse} msg The message object to deserialize into.
|
|
10609
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10610
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse}
|
|
10611
|
+
*/
|
|
10612
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
10613
|
+
while (reader.nextField()) {
|
|
10614
|
+
if (reader.isEndGroup()) {
|
|
10615
|
+
break;
|
|
10616
|
+
}
|
|
10617
|
+
var field = reader.getFieldNumber();
|
|
10618
|
+
switch (field) {
|
|
10619
|
+
case 1:
|
|
10620
|
+
var value = new apache_rocketmq_v2_definition_pb.Status;
|
|
10621
|
+
reader.readMessage(value,apache_rocketmq_v2_definition_pb.Status.deserializeBinaryFromReader);
|
|
10622
|
+
msg.setStatus(value);
|
|
10623
|
+
break;
|
|
10624
|
+
default:
|
|
10625
|
+
reader.skipField();
|
|
10626
|
+
break;
|
|
10627
|
+
}
|
|
10628
|
+
}
|
|
10629
|
+
return msg;
|
|
10630
|
+
};
|
|
10631
|
+
|
|
10632
|
+
|
|
10633
|
+
/**
|
|
10634
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10635
|
+
* @return {!Uint8Array}
|
|
10636
|
+
*/
|
|
10637
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.prototype.serializeBinary = function() {
|
|
10638
|
+
var writer = new jspb.BinaryWriter();
|
|
10639
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.serializeBinaryToWriter(this, writer);
|
|
10640
|
+
return writer.getResultBuffer();
|
|
10641
|
+
};
|
|
10642
|
+
|
|
10643
|
+
|
|
10644
|
+
/**
|
|
10645
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10646
|
+
* format), writing to the given BinaryWriter.
|
|
10647
|
+
* @param {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse} message
|
|
10648
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10650
|
+
*/
|
|
10651
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
10652
|
+
var f = undefined;
|
|
10653
|
+
f = message.getStatus();
|
|
10654
|
+
if (f != null) {
|
|
10655
|
+
writer.writeMessage(
|
|
10656
|
+
1,
|
|
10657
|
+
f,
|
|
10658
|
+
apache_rocketmq_v2_definition_pb.Status.serializeBinaryToWriter
|
|
10659
|
+
);
|
|
10660
|
+
}
|
|
10661
|
+
};
|
|
10662
|
+
|
|
10663
|
+
|
|
10664
|
+
/**
|
|
10665
|
+
* optional Status status = 1;
|
|
10666
|
+
* @return {?proto.apache.rocketmq.v2.Status}
|
|
10667
|
+
*/
|
|
10668
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.prototype.getStatus = function() {
|
|
10669
|
+
return /** @type{?proto.apache.rocketmq.v2.Status} */ (
|
|
10670
|
+
jspb.Message.getWrapperField(this, apache_rocketmq_v2_definition_pb.Status, 1));
|
|
10671
|
+
};
|
|
10672
|
+
|
|
10673
|
+
|
|
10674
|
+
/**
|
|
10675
|
+
* @param {?proto.apache.rocketmq.v2.Status|undefined} value
|
|
10676
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse} returns this
|
|
10677
|
+
*/
|
|
10678
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.prototype.setStatus = function(value) {
|
|
10679
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
10680
|
+
};
|
|
10681
|
+
|
|
10682
|
+
|
|
10683
|
+
/**
|
|
10684
|
+
* Clears the message field making it undefined.
|
|
10685
|
+
* @return {!proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse} returns this
|
|
10686
|
+
*/
|
|
10687
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.prototype.clearStatus = function() {
|
|
10688
|
+
return this.setStatus(undefined);
|
|
10689
|
+
};
|
|
10690
|
+
|
|
10691
|
+
|
|
10692
|
+
/**
|
|
10693
|
+
* Returns whether this field is set.
|
|
10694
|
+
* @return {boolean}
|
|
10695
|
+
*/
|
|
10696
|
+
proto.apache.rocketmq.v2.SyncLiteSubscriptionResponse.prototype.hasStatus = function() {
|
|
10697
|
+
return jspb.Message.getField(this, 1) != null;
|
|
10698
|
+
};
|
|
10699
|
+
|
|
10700
|
+
|
|
9035
10701
|
goog.object.extend(exports, proto.apache.rocketmq.v2);
|