@kurrent/kurrentdb-client 1.0.4 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client/ServerFeatures.d.ts +2 -2
- package/dist/Client/ServerFeatures.js +2 -2
- package/dist/Client/ServerFeatures.js.map +1 -1
- package/dist/Client/discovery.js +2 -2
- package/dist/Client/discovery.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/events/binaryEvent.d.ts +1 -5
- package/dist/persistentSubscription/createPersistentSubscriptionToAll.js +22 -12
- package/dist/persistentSubscription/createPersistentSubscriptionToAll.js.map +1 -1
- package/dist/persistentSubscription/createPersistentSubscriptionToStream.js +16 -6
- package/dist/persistentSubscription/createPersistentSubscriptionToStream.js.map +1 -1
- package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js +7 -7
- package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js.map +1 -1
- package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js +5 -5
- package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js.map +1 -1
- package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js +7 -7
- package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js.map +1 -1
- package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js +6 -6
- package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js.map +1 -1
- package/dist/persistentSubscription/listAllPersistentSubscriptions.js +7 -7
- package/dist/persistentSubscription/listAllPersistentSubscriptions.js.map +1 -1
- package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js +8 -8
- package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js.map +1 -1
- package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js +7 -7
- package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js.map +1 -1
- package/dist/persistentSubscription/replayParkedMessagesToAll.js +7 -7
- package/dist/persistentSubscription/replayParkedMessagesToAll.js.map +1 -1
- package/dist/persistentSubscription/replayParkedMessagesToStream.js +7 -7
- package/dist/persistentSubscription/replayParkedMessagesToStream.js.map +1 -1
- package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js +4 -4
- package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js.map +1 -1
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js +8 -8
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js.map +1 -1
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js +7 -7
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js.map +1 -1
- package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js +10 -10
- package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js.map +1 -1
- package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js +6 -6
- package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js.map +1 -1
- package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.d.ts +1 -1
- package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js +9 -9
- package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js.map +1 -1
- package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.d.ts +1 -1
- package/dist/persistentSubscription/utils/settingsToGRPC.d.ts +1 -1
- package/dist/persistentSubscription/utils/settingsToGRPC.js +13 -4
- package/dist/persistentSubscription/utils/settingsToGRPC.js.map +1 -1
- package/dist/projections/createProjection.js +7 -7
- package/dist/projections/createProjection.js.map +1 -1
- package/dist/projections/deleteProjection.js +5 -5
- package/dist/projections/deleteProjection.js.map +1 -1
- package/dist/projections/disableProjection.js +5 -5
- package/dist/projections/disableProjection.js.map +1 -1
- package/dist/projections/enableProjection.js +5 -5
- package/dist/projections/enableProjection.js.map +1 -1
- package/dist/projections/getProjectionResult.js +5 -5
- package/dist/projections/getProjectionResult.js.map +1 -1
- package/dist/projections/getProjectionState.js +5 -5
- package/dist/projections/getProjectionState.js.map +1 -1
- package/dist/projections/getProjectionStatus.js +5 -5
- package/dist/projections/getProjectionStatus.js.map +1 -1
- package/dist/projections/listProjections.js +6 -6
- package/dist/projections/listProjections.js.map +1 -1
- package/dist/projections/resetProjection.js +5 -5
- package/dist/projections/resetProjection.js.map +1 -1
- package/dist/projections/restartSubsystem.js +3 -3
- package/dist/projections/restartSubsystem.js.map +1 -1
- package/dist/projections/updateProjection.js +6 -6
- package/dist/projections/updateProjection.js.map +1 -1
- package/dist/projections/utils/mapGrpcProjectionDetails.d.ts +1 -1
- package/dist/streams/appendToStream/append.js +3 -3
- package/dist/streams/appendToStream/append.js.map +1 -1
- package/dist/streams/appendToStream/appendRecords.d.ts +3 -0
- package/dist/streams/appendToStream/appendRecords.js +132 -0
- package/dist/streams/appendToStream/appendRecords.js.map +1 -0
- package/dist/streams/appendToStream/batchAppend.js +3 -3
- package/dist/streams/appendToStream/batchAppend.js.map +1 -1
- package/dist/streams/appendToStream/index.d.ts +2 -1
- package/dist/streams/appendToStream/index.js +10 -1
- package/dist/streams/appendToStream/index.js.map +1 -1
- package/dist/streams/appendToStream/multiStreamAppend.d.ts +3 -0
- package/dist/streams/appendToStream/multiStreamAppend.js +130 -0
- package/dist/streams/appendToStream/multiStreamAppend.js.map +1 -0
- package/dist/streams/appendToStream/unpackError.d.ts +2 -2
- package/dist/streams/appendToStream/unpackError.js +1 -1
- package/dist/streams/appendToStream/unpackError.js.map +1 -1
- package/dist/streams/deleteStream.js +3 -3
- package/dist/streams/deleteStream.js.map +1 -1
- package/dist/streams/subscribeToAll.js +3 -3
- package/dist/streams/subscribeToAll.js.map +1 -1
- package/dist/streams/subscribeToStream.js +3 -3
- package/dist/streams/subscribeToStream.js.map +1 -1
- package/dist/streams/tombstoneStream.js +3 -3
- package/dist/streams/tombstoneStream.js.map +1 -1
- package/dist/streams/utils/ReadStream.d.ts +1 -1
- package/dist/streams/utils/Subscription.d.ts +1 -1
- package/dist/types/index.d.ts +35 -4
- package/dist/types/index.js +5 -2
- package/dist/types/index.js.map +1 -1
- package/dist/utils/CommandError.d.ts +26 -2
- package/dist/utils/CommandError.js +106 -3
- package/dist/utils/CommandError.js.map +1 -1
- package/dist/utils/convertGrpcEvent.d.ts +2 -2
- package/dist/utils/getGrpcStatusDetails.d.ts +5 -0
- package/dist/utils/getGrpcStatusDetails.js +17 -0
- package/dist/utils/getGrpcStatusDetails.js.map +1 -0
- package/dist/utils/grpcStreamIdentifier.d.ts +1 -1
- package/dist/utils/grpcStreamIdentifier.js +1 -1
- package/dist/utils/grpcStreamIdentifier.js.map +1 -1
- package/dist/utils/grpcUUID.d.ts +1 -1
- package/dist/utils/grpcUUID.js +1 -1
- package/dist/utils/grpcUUID.js.map +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/mapToValue.d.ts +3 -0
- package/dist/utils/mapToValue.js +19 -0
- package/dist/utils/mapToValue.js.map +1 -0
- package/dist/utils/schema.d.ts +7 -0
- package/dist/utils/schema.js +21 -0
- package/dist/utils/schema.js.map +1 -0
- package/generated/{code_pb.d.ts → kurrentdb/protocols/v1/code_pb.d.ts} +1 -1
- package/generated/{code_pb.js → kurrentdb/protocols/v1/code_pb.js} +1 -1
- package/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts +42 -0
- package/generated/{gossip_grpc_pb.js → kurrentdb/protocols/v1/gossip_grpc_pb.js} +8 -8
- package/generated/{gossip_pb.d.ts → kurrentdb/protocols/v1/gossip_pb.d.ts} +5 -5
- package/generated/{gossip_pb.js → kurrentdb/protocols/v1/gossip_pb.js} +8 -8
- package/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts +144 -0
- package/generated/{operations_grpc_pb.js → kurrentdb/protocols/v1/operations_grpc_pb.js} +26 -26
- package/generated/{operations_pb.d.ts → kurrentdb/protocols/v1/operations_pb.d.ts} +2 -2
- package/generated/{operations_pb.js → kurrentdb/protocols/v1/operations_pb.js} +3 -3
- package/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts +160 -0
- package/generated/{persistent_grpc_pb.js → kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.js} +48 -48
- package/generated/{persistent_pb.d.ts → kurrentdb/protocols/v1/persistentsubscriptions_pb.d.ts} +106 -106
- package/generated/{persistent_pb.js → kurrentdb/protocols/v1/persistentsubscriptions_pb.js} +173 -173
- package/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts +194 -0
- package/generated/{projections_grpc_pb.js → kurrentdb/protocols/v1/projectionmanagement_grpc_pb.js} +60 -60
- package/generated/{projections_pb.d.ts → kurrentdb/protocols/v1/projectionmanagement_pb.d.ts} +20 -20
- package/generated/{projections_pb.js → kurrentdb/protocols/v1/projectionmanagement_pb.js} +33 -33
- package/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts +42 -0
- package/generated/{serverfeatures_grpc_pb.js → kurrentdb/protocols/v1/serverfeatures_grpc_pb.js} +8 -8
- package/generated/{serverfeatures_pb.d.ts → kurrentdb/protocols/v1/serverfeatures_pb.d.ts} +2 -2
- package/generated/{serverfeatures_pb.js → kurrentdb/protocols/v1/serverfeatures_pb.js} +3 -3
- package/generated/{shared_pb.d.ts → kurrentdb/protocols/v1/shared_pb.d.ts} +1 -1
- package/generated/{shared_pb.js → kurrentdb/protocols/v1/shared_pb.js} +1 -1
- package/generated/{status_pb.d.ts → kurrentdb/protocols/v1/status_pb.d.ts} +5 -5
- package/generated/{status_pb.js → kurrentdb/protocols/v1/status_pb.js} +3 -3
- package/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts +113 -0
- package/generated/{streams_grpc_pb.js → kurrentdb/protocols/v1/streams_grpc_pb.js} +33 -33
- package/generated/{streams_pb.d.ts → kurrentdb/protocols/v1/streams_pb.d.ts} +138 -138
- package/generated/{streams_pb.js → kurrentdb/protocols/v1/streams_pb.js} +230 -230
- package/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts +158 -0
- package/generated/{users_grpc_pb.js → kurrentdb/protocols/v1/usermanagement_grpc_pb.js} +49 -49
- package/generated/{users_pb.d.ts → kurrentdb/protocols/v1/usermanagement_pb.d.ts} +1 -1
- package/generated/{users_pb.js → kurrentdb/protocols/v1/usermanagement_pb.js} +1 -1
- package/generated/kurrentdb/protocols/v2/core_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/core_pb.d.ts +188 -0
- package/generated/kurrentdb/protocols/v2/core_pb.js +1301 -0
- package/generated/kurrentdb/protocols/v2/errors_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/errors_pb.d.ts +105 -0
- package/generated/kurrentdb/protocols/v2/errors_pb.js +692 -0
- package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts +43 -0
- package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js +50 -0
- package/generated/kurrentdb/protocols/v2/features/service_pb.d.ts +227 -0
- package/generated/kurrentdb/protocols/v2/features/service_pb.js +1753 -0
- package/generated/kurrentdb/protocols/v2/rpc_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/rpc_pb.d.ts +34 -0
- package/generated/kurrentdb/protocols/v2/rpc_pb.js +236 -0
- package/generated/kurrentdb/protocols/v2/streams/errors_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/streams/errors_pb.d.ts +199 -0
- package/generated/kurrentdb/protocols/v2/streams/errors_pb.js +1439 -0
- package/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts +218 -0
- package/generated/kurrentdb/protocols/v2/streams/shared_pb.js +1561 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts +44 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js +69 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts +176 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_pb.js +1289 -0
- package/package.json +8 -6
- package/generated/cluster_grpc_pb.d.ts +0 -211
- package/generated/cluster_grpc_pb.js +0 -247
- package/generated/cluster_pb.d.ts +0 -546
- package/generated/cluster_pb.js +0 -4357
- package/generated/gossip_grpc_pb.d.ts +0 -42
- package/generated/monitoring_grpc_pb.d.ts +0 -39
- package/generated/monitoring_grpc_pb.js +0 -44
- package/generated/monitoring_pb.d.ts +0 -52
- package/generated/monitoring_pb.js +0 -361
- package/generated/operations_grpc_pb.d.ts +0 -144
- package/generated/persistent_grpc_pb.d.ts +0 -160
- package/generated/projections_grpc_pb.d.ts +0 -194
- package/generated/serverfeatures_grpc_pb.d.ts +0 -42
- package/generated/streams_grpc_pb.d.ts +0 -113
- package/generated/users_grpc_pb.d.ts +0 -158
- /package/generated/{code_grpc_pb.js → kurrentdb/protocols/v1/code_grpc_pb.js} +0 -0
- /package/generated/{shared_grpc_pb.js → kurrentdb/protocols/v1/shared_grpc_pb.js} +0 -0
- /package/generated/{status_grpc_pb.js → kurrentdb/protocols/v1/status_grpc_pb.js} +0 -0
package/generated/cluster_pb.js
DELETED
|
@@ -1,4357 +0,0 @@
|
|
|
1
|
-
// source: cluster.proto
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview
|
|
4
|
-
* @enhanceable
|
|
5
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
// @ts-nocheck
|
|
13
|
-
|
|
14
|
-
var jspb = require('google-protobuf');
|
|
15
|
-
var goog = jspb;
|
|
16
|
-
var global = (function() {
|
|
17
|
-
if (this) { return this; }
|
|
18
|
-
if (typeof window !== 'undefined') { return window; }
|
|
19
|
-
if (typeof global !== 'undefined') { return global; }
|
|
20
|
-
if (typeof self !== 'undefined') { return self; }
|
|
21
|
-
return Function('return this')();
|
|
22
|
-
}.call(null));
|
|
23
|
-
|
|
24
|
-
var shared_pb = require('./shared_pb.js');
|
|
25
|
-
goog.object.extend(proto, shared_pb);
|
|
26
|
-
goog.exportSymbol('proto.event_store.cluster.AcceptRequest', null, global);
|
|
27
|
-
goog.exportSymbol('proto.event_store.cluster.ClusterInfo', null, global);
|
|
28
|
-
goog.exportSymbol('proto.event_store.cluster.EndPoint', null, global);
|
|
29
|
-
goog.exportSymbol('proto.event_store.cluster.GossipRequest', null, global);
|
|
30
|
-
goog.exportSymbol('proto.event_store.cluster.LeaderIsResigningOkRequest', null, global);
|
|
31
|
-
goog.exportSymbol('proto.event_store.cluster.LeaderIsResigningRequest', null, global);
|
|
32
|
-
goog.exportSymbol('proto.event_store.cluster.MemberInfo', null, global);
|
|
33
|
-
goog.exportSymbol('proto.event_store.cluster.MemberInfo.VNodeState', null, global);
|
|
34
|
-
goog.exportSymbol('proto.event_store.cluster.PrepareOkRequest', null, global);
|
|
35
|
-
goog.exportSymbol('proto.event_store.cluster.PrepareRequest', null, global);
|
|
36
|
-
goog.exportSymbol('proto.event_store.cluster.ProposalRequest', null, global);
|
|
37
|
-
goog.exportSymbol('proto.event_store.cluster.ViewChangeProofRequest', null, global);
|
|
38
|
-
goog.exportSymbol('proto.event_store.cluster.ViewChangeRequest', null, global);
|
|
39
|
-
/**
|
|
40
|
-
* Generated by JsPbCodeGenerator.
|
|
41
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
42
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
43
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
44
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
45
|
-
* valid.
|
|
46
|
-
* @extends {jspb.Message}
|
|
47
|
-
* @constructor
|
|
48
|
-
*/
|
|
49
|
-
proto.event_store.cluster.GossipRequest = function(opt_data) {
|
|
50
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
51
|
-
};
|
|
52
|
-
goog.inherits(proto.event_store.cluster.GossipRequest, jspb.Message);
|
|
53
|
-
if (goog.DEBUG && !COMPILED) {
|
|
54
|
-
/**
|
|
55
|
-
* @public
|
|
56
|
-
* @override
|
|
57
|
-
*/
|
|
58
|
-
proto.event_store.cluster.GossipRequest.displayName = 'proto.event_store.cluster.GossipRequest';
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Generated by JsPbCodeGenerator.
|
|
62
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
63
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
64
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
65
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
66
|
-
* valid.
|
|
67
|
-
* @extends {jspb.Message}
|
|
68
|
-
* @constructor
|
|
69
|
-
*/
|
|
70
|
-
proto.event_store.cluster.ViewChangeRequest = function(opt_data) {
|
|
71
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
72
|
-
};
|
|
73
|
-
goog.inherits(proto.event_store.cluster.ViewChangeRequest, jspb.Message);
|
|
74
|
-
if (goog.DEBUG && !COMPILED) {
|
|
75
|
-
/**
|
|
76
|
-
* @public
|
|
77
|
-
* @override
|
|
78
|
-
*/
|
|
79
|
-
proto.event_store.cluster.ViewChangeRequest.displayName = 'proto.event_store.cluster.ViewChangeRequest';
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Generated by JsPbCodeGenerator.
|
|
83
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
84
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
85
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
86
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
87
|
-
* valid.
|
|
88
|
-
* @extends {jspb.Message}
|
|
89
|
-
* @constructor
|
|
90
|
-
*/
|
|
91
|
-
proto.event_store.cluster.ViewChangeProofRequest = function(opt_data) {
|
|
92
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
93
|
-
};
|
|
94
|
-
goog.inherits(proto.event_store.cluster.ViewChangeProofRequest, jspb.Message);
|
|
95
|
-
if (goog.DEBUG && !COMPILED) {
|
|
96
|
-
/**
|
|
97
|
-
* @public
|
|
98
|
-
* @override
|
|
99
|
-
*/
|
|
100
|
-
proto.event_store.cluster.ViewChangeProofRequest.displayName = 'proto.event_store.cluster.ViewChangeProofRequest';
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Generated by JsPbCodeGenerator.
|
|
104
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
105
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
106
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
107
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
108
|
-
* valid.
|
|
109
|
-
* @extends {jspb.Message}
|
|
110
|
-
* @constructor
|
|
111
|
-
*/
|
|
112
|
-
proto.event_store.cluster.PrepareRequest = function(opt_data) {
|
|
113
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
114
|
-
};
|
|
115
|
-
goog.inherits(proto.event_store.cluster.PrepareRequest, jspb.Message);
|
|
116
|
-
if (goog.DEBUG && !COMPILED) {
|
|
117
|
-
/**
|
|
118
|
-
* @public
|
|
119
|
-
* @override
|
|
120
|
-
*/
|
|
121
|
-
proto.event_store.cluster.PrepareRequest.displayName = 'proto.event_store.cluster.PrepareRequest';
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Generated by JsPbCodeGenerator.
|
|
125
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
126
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
127
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
128
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
129
|
-
* valid.
|
|
130
|
-
* @extends {jspb.Message}
|
|
131
|
-
* @constructor
|
|
132
|
-
*/
|
|
133
|
-
proto.event_store.cluster.PrepareOkRequest = function(opt_data) {
|
|
134
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
135
|
-
};
|
|
136
|
-
goog.inherits(proto.event_store.cluster.PrepareOkRequest, jspb.Message);
|
|
137
|
-
if (goog.DEBUG && !COMPILED) {
|
|
138
|
-
/**
|
|
139
|
-
* @public
|
|
140
|
-
* @override
|
|
141
|
-
*/
|
|
142
|
-
proto.event_store.cluster.PrepareOkRequest.displayName = 'proto.event_store.cluster.PrepareOkRequest';
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Generated by JsPbCodeGenerator.
|
|
146
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
147
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
148
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
149
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
150
|
-
* valid.
|
|
151
|
-
* @extends {jspb.Message}
|
|
152
|
-
* @constructor
|
|
153
|
-
*/
|
|
154
|
-
proto.event_store.cluster.ProposalRequest = function(opt_data) {
|
|
155
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
156
|
-
};
|
|
157
|
-
goog.inherits(proto.event_store.cluster.ProposalRequest, jspb.Message);
|
|
158
|
-
if (goog.DEBUG && !COMPILED) {
|
|
159
|
-
/**
|
|
160
|
-
* @public
|
|
161
|
-
* @override
|
|
162
|
-
*/
|
|
163
|
-
proto.event_store.cluster.ProposalRequest.displayName = 'proto.event_store.cluster.ProposalRequest';
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Generated by JsPbCodeGenerator.
|
|
167
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
168
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
169
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
170
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
171
|
-
* valid.
|
|
172
|
-
* @extends {jspb.Message}
|
|
173
|
-
* @constructor
|
|
174
|
-
*/
|
|
175
|
-
proto.event_store.cluster.AcceptRequest = function(opt_data) {
|
|
176
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
177
|
-
};
|
|
178
|
-
goog.inherits(proto.event_store.cluster.AcceptRequest, jspb.Message);
|
|
179
|
-
if (goog.DEBUG && !COMPILED) {
|
|
180
|
-
/**
|
|
181
|
-
* @public
|
|
182
|
-
* @override
|
|
183
|
-
*/
|
|
184
|
-
proto.event_store.cluster.AcceptRequest.displayName = 'proto.event_store.cluster.AcceptRequest';
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Generated by JsPbCodeGenerator.
|
|
188
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
189
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
190
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
191
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
192
|
-
* valid.
|
|
193
|
-
* @extends {jspb.Message}
|
|
194
|
-
* @constructor
|
|
195
|
-
*/
|
|
196
|
-
proto.event_store.cluster.LeaderIsResigningRequest = function(opt_data) {
|
|
197
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
198
|
-
};
|
|
199
|
-
goog.inherits(proto.event_store.cluster.LeaderIsResigningRequest, jspb.Message);
|
|
200
|
-
if (goog.DEBUG && !COMPILED) {
|
|
201
|
-
/**
|
|
202
|
-
* @public
|
|
203
|
-
* @override
|
|
204
|
-
*/
|
|
205
|
-
proto.event_store.cluster.LeaderIsResigningRequest.displayName = 'proto.event_store.cluster.LeaderIsResigningRequest';
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Generated by JsPbCodeGenerator.
|
|
209
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
210
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
211
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
212
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
213
|
-
* valid.
|
|
214
|
-
* @extends {jspb.Message}
|
|
215
|
-
* @constructor
|
|
216
|
-
*/
|
|
217
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest = function(opt_data) {
|
|
218
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
219
|
-
};
|
|
220
|
-
goog.inherits(proto.event_store.cluster.LeaderIsResigningOkRequest, jspb.Message);
|
|
221
|
-
if (goog.DEBUG && !COMPILED) {
|
|
222
|
-
/**
|
|
223
|
-
* @public
|
|
224
|
-
* @override
|
|
225
|
-
*/
|
|
226
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.displayName = 'proto.event_store.cluster.LeaderIsResigningOkRequest';
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Generated by JsPbCodeGenerator.
|
|
230
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
231
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
232
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
233
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
234
|
-
* valid.
|
|
235
|
-
* @extends {jspb.Message}
|
|
236
|
-
* @constructor
|
|
237
|
-
*/
|
|
238
|
-
proto.event_store.cluster.ClusterInfo = function(opt_data) {
|
|
239
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.cluster.ClusterInfo.repeatedFields_, null);
|
|
240
|
-
};
|
|
241
|
-
goog.inherits(proto.event_store.cluster.ClusterInfo, jspb.Message);
|
|
242
|
-
if (goog.DEBUG && !COMPILED) {
|
|
243
|
-
/**
|
|
244
|
-
* @public
|
|
245
|
-
* @override
|
|
246
|
-
*/
|
|
247
|
-
proto.event_store.cluster.ClusterInfo.displayName = 'proto.event_store.cluster.ClusterInfo';
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Generated by JsPbCodeGenerator.
|
|
251
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
252
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
253
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
254
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
255
|
-
* valid.
|
|
256
|
-
* @extends {jspb.Message}
|
|
257
|
-
* @constructor
|
|
258
|
-
*/
|
|
259
|
-
proto.event_store.cluster.EndPoint = function(opt_data) {
|
|
260
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
261
|
-
};
|
|
262
|
-
goog.inherits(proto.event_store.cluster.EndPoint, jspb.Message);
|
|
263
|
-
if (goog.DEBUG && !COMPILED) {
|
|
264
|
-
/**
|
|
265
|
-
* @public
|
|
266
|
-
* @override
|
|
267
|
-
*/
|
|
268
|
-
proto.event_store.cluster.EndPoint.displayName = 'proto.event_store.cluster.EndPoint';
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Generated by JsPbCodeGenerator.
|
|
272
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
273
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
274
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
275
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
276
|
-
* valid.
|
|
277
|
-
* @extends {jspb.Message}
|
|
278
|
-
* @constructor
|
|
279
|
-
*/
|
|
280
|
-
proto.event_store.cluster.MemberInfo = function(opt_data) {
|
|
281
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
282
|
-
};
|
|
283
|
-
goog.inherits(proto.event_store.cluster.MemberInfo, jspb.Message);
|
|
284
|
-
if (goog.DEBUG && !COMPILED) {
|
|
285
|
-
/**
|
|
286
|
-
* @public
|
|
287
|
-
* @override
|
|
288
|
-
*/
|
|
289
|
-
proto.event_store.cluster.MemberInfo.displayName = 'proto.event_store.cluster.MemberInfo';
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
295
|
-
/**
|
|
296
|
-
* Creates an object representation of this proto.
|
|
297
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
298
|
-
* Optional fields that are not set will be set to undefined.
|
|
299
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
300
|
-
* For the list of reserved names please see:
|
|
301
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
302
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
303
|
-
* JSPB instance for transitional soy proto support:
|
|
304
|
-
* http://goto/soy-param-migration
|
|
305
|
-
* @return {!Object}
|
|
306
|
-
*/
|
|
307
|
-
proto.event_store.cluster.GossipRequest.prototype.toObject = function(opt_includeInstance) {
|
|
308
|
-
return proto.event_store.cluster.GossipRequest.toObject(opt_includeInstance, this);
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Static version of the {@see toObject} method.
|
|
314
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
315
|
-
* the JSPB instance for transitional soy proto support:
|
|
316
|
-
* http://goto/soy-param-migration
|
|
317
|
-
* @param {!proto.event_store.cluster.GossipRequest} msg The msg instance to transform.
|
|
318
|
-
* @return {!Object}
|
|
319
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
320
|
-
*/
|
|
321
|
-
proto.event_store.cluster.GossipRequest.toObject = function(includeInstance, msg) {
|
|
322
|
-
var f, obj = {
|
|
323
|
-
info: (f = msg.getInfo()) && proto.event_store.cluster.ClusterInfo.toObject(includeInstance, f),
|
|
324
|
-
server: (f = msg.getServer()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f)
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
if (includeInstance) {
|
|
328
|
-
obj.$jspbMessageInstance = msg;
|
|
329
|
-
}
|
|
330
|
-
return obj;
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Deserializes binary data (in protobuf wire format).
|
|
337
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
338
|
-
* @return {!proto.event_store.cluster.GossipRequest}
|
|
339
|
-
*/
|
|
340
|
-
proto.event_store.cluster.GossipRequest.deserializeBinary = function(bytes) {
|
|
341
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
342
|
-
var msg = new proto.event_store.cluster.GossipRequest;
|
|
343
|
-
return proto.event_store.cluster.GossipRequest.deserializeBinaryFromReader(msg, reader);
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
349
|
-
* given reader into the given message object.
|
|
350
|
-
* @param {!proto.event_store.cluster.GossipRequest} msg The message object to deserialize into.
|
|
351
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
352
|
-
* @return {!proto.event_store.cluster.GossipRequest}
|
|
353
|
-
*/
|
|
354
|
-
proto.event_store.cluster.GossipRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
355
|
-
while (reader.nextField()) {
|
|
356
|
-
if (reader.isEndGroup()) {
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
var field = reader.getFieldNumber();
|
|
360
|
-
switch (field) {
|
|
361
|
-
case 1:
|
|
362
|
-
var value = new proto.event_store.cluster.ClusterInfo;
|
|
363
|
-
reader.readMessage(value,proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader);
|
|
364
|
-
msg.setInfo(value);
|
|
365
|
-
break;
|
|
366
|
-
case 2:
|
|
367
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
368
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
369
|
-
msg.setServer(value);
|
|
370
|
-
break;
|
|
371
|
-
default:
|
|
372
|
-
reader.skipField();
|
|
373
|
-
break;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
return msg;
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
382
|
-
* @return {!Uint8Array}
|
|
383
|
-
*/
|
|
384
|
-
proto.event_store.cluster.GossipRequest.prototype.serializeBinary = function() {
|
|
385
|
-
var writer = new jspb.BinaryWriter();
|
|
386
|
-
proto.event_store.cluster.GossipRequest.serializeBinaryToWriter(this, writer);
|
|
387
|
-
return writer.getResultBuffer();
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
393
|
-
* format), writing to the given BinaryWriter.
|
|
394
|
-
* @param {!proto.event_store.cluster.GossipRequest} message
|
|
395
|
-
* @param {!jspb.BinaryWriter} writer
|
|
396
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
397
|
-
*/
|
|
398
|
-
proto.event_store.cluster.GossipRequest.serializeBinaryToWriter = function(message, writer) {
|
|
399
|
-
var f = undefined;
|
|
400
|
-
f = message.getInfo();
|
|
401
|
-
if (f != null) {
|
|
402
|
-
writer.writeMessage(
|
|
403
|
-
1,
|
|
404
|
-
f,
|
|
405
|
-
proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter
|
|
406
|
-
);
|
|
407
|
-
}
|
|
408
|
-
f = message.getServer();
|
|
409
|
-
if (f != null) {
|
|
410
|
-
writer.writeMessage(
|
|
411
|
-
2,
|
|
412
|
-
f,
|
|
413
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
414
|
-
);
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* optional ClusterInfo info = 1;
|
|
421
|
-
* @return {?proto.event_store.cluster.ClusterInfo}
|
|
422
|
-
*/
|
|
423
|
-
proto.event_store.cluster.GossipRequest.prototype.getInfo = function() {
|
|
424
|
-
return /** @type{?proto.event_store.cluster.ClusterInfo} */ (
|
|
425
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.ClusterInfo, 1));
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* @param {?proto.event_store.cluster.ClusterInfo|undefined} value
|
|
431
|
-
* @return {!proto.event_store.cluster.GossipRequest} returns this
|
|
432
|
-
*/
|
|
433
|
-
proto.event_store.cluster.GossipRequest.prototype.setInfo = function(value) {
|
|
434
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Clears the message field making it undefined.
|
|
440
|
-
* @return {!proto.event_store.cluster.GossipRequest} returns this
|
|
441
|
-
*/
|
|
442
|
-
proto.event_store.cluster.GossipRequest.prototype.clearInfo = function() {
|
|
443
|
-
return this.setInfo(undefined);
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Returns whether this field is set.
|
|
449
|
-
* @return {boolean}
|
|
450
|
-
*/
|
|
451
|
-
proto.event_store.cluster.GossipRequest.prototype.hasInfo = function() {
|
|
452
|
-
return jspb.Message.getField(this, 1) != null;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* optional EndPoint server = 2;
|
|
458
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
459
|
-
*/
|
|
460
|
-
proto.event_store.cluster.GossipRequest.prototype.getServer = function() {
|
|
461
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
462
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
468
|
-
* @return {!proto.event_store.cluster.GossipRequest} returns this
|
|
469
|
-
*/
|
|
470
|
-
proto.event_store.cluster.GossipRequest.prototype.setServer = function(value) {
|
|
471
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Clears the message field making it undefined.
|
|
477
|
-
* @return {!proto.event_store.cluster.GossipRequest} returns this
|
|
478
|
-
*/
|
|
479
|
-
proto.event_store.cluster.GossipRequest.prototype.clearServer = function() {
|
|
480
|
-
return this.setServer(undefined);
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Returns whether this field is set.
|
|
486
|
-
* @return {boolean}
|
|
487
|
-
*/
|
|
488
|
-
proto.event_store.cluster.GossipRequest.prototype.hasServer = function() {
|
|
489
|
-
return jspb.Message.getField(this, 2) != null;
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
497
|
-
/**
|
|
498
|
-
* Creates an object representation of this proto.
|
|
499
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
500
|
-
* Optional fields that are not set will be set to undefined.
|
|
501
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
502
|
-
* For the list of reserved names please see:
|
|
503
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
504
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
505
|
-
* JSPB instance for transitional soy proto support:
|
|
506
|
-
* http://goto/soy-param-migration
|
|
507
|
-
* @return {!Object}
|
|
508
|
-
*/
|
|
509
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
510
|
-
return proto.event_store.cluster.ViewChangeRequest.toObject(opt_includeInstance, this);
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Static version of the {@see toObject} method.
|
|
516
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
517
|
-
* the JSPB instance for transitional soy proto support:
|
|
518
|
-
* http://goto/soy-param-migration
|
|
519
|
-
* @param {!proto.event_store.cluster.ViewChangeRequest} msg The msg instance to transform.
|
|
520
|
-
* @return {!Object}
|
|
521
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
522
|
-
*/
|
|
523
|
-
proto.event_store.cluster.ViewChangeRequest.toObject = function(includeInstance, msg) {
|
|
524
|
-
var f, obj = {
|
|
525
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
526
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
527
|
-
attemptedView: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
if (includeInstance) {
|
|
531
|
-
obj.$jspbMessageInstance = msg;
|
|
532
|
-
}
|
|
533
|
-
return obj;
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Deserializes binary data (in protobuf wire format).
|
|
540
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
541
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest}
|
|
542
|
-
*/
|
|
543
|
-
proto.event_store.cluster.ViewChangeRequest.deserializeBinary = function(bytes) {
|
|
544
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
545
|
-
var msg = new proto.event_store.cluster.ViewChangeRequest;
|
|
546
|
-
return proto.event_store.cluster.ViewChangeRequest.deserializeBinaryFromReader(msg, reader);
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
552
|
-
* given reader into the given message object.
|
|
553
|
-
* @param {!proto.event_store.cluster.ViewChangeRequest} msg The message object to deserialize into.
|
|
554
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
555
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest}
|
|
556
|
-
*/
|
|
557
|
-
proto.event_store.cluster.ViewChangeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
558
|
-
while (reader.nextField()) {
|
|
559
|
-
if (reader.isEndGroup()) {
|
|
560
|
-
break;
|
|
561
|
-
}
|
|
562
|
-
var field = reader.getFieldNumber();
|
|
563
|
-
switch (field) {
|
|
564
|
-
case 1:
|
|
565
|
-
var value = new shared_pb.UUID;
|
|
566
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
567
|
-
msg.setServerId(value);
|
|
568
|
-
break;
|
|
569
|
-
case 2:
|
|
570
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
571
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
572
|
-
msg.setServerHttp(value);
|
|
573
|
-
break;
|
|
574
|
-
case 3:
|
|
575
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
576
|
-
msg.setAttemptedView(value);
|
|
577
|
-
break;
|
|
578
|
-
default:
|
|
579
|
-
reader.skipField();
|
|
580
|
-
break;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return msg;
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
589
|
-
* @return {!Uint8Array}
|
|
590
|
-
*/
|
|
591
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.serializeBinary = function() {
|
|
592
|
-
var writer = new jspb.BinaryWriter();
|
|
593
|
-
proto.event_store.cluster.ViewChangeRequest.serializeBinaryToWriter(this, writer);
|
|
594
|
-
return writer.getResultBuffer();
|
|
595
|
-
};
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
600
|
-
* format), writing to the given BinaryWriter.
|
|
601
|
-
* @param {!proto.event_store.cluster.ViewChangeRequest} message
|
|
602
|
-
* @param {!jspb.BinaryWriter} writer
|
|
603
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
604
|
-
*/
|
|
605
|
-
proto.event_store.cluster.ViewChangeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
606
|
-
var f = undefined;
|
|
607
|
-
f = message.getServerId();
|
|
608
|
-
if (f != null) {
|
|
609
|
-
writer.writeMessage(
|
|
610
|
-
1,
|
|
611
|
-
f,
|
|
612
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
613
|
-
);
|
|
614
|
-
}
|
|
615
|
-
f = message.getServerHttp();
|
|
616
|
-
if (f != null) {
|
|
617
|
-
writer.writeMessage(
|
|
618
|
-
2,
|
|
619
|
-
f,
|
|
620
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
621
|
-
);
|
|
622
|
-
}
|
|
623
|
-
f = message.getAttemptedView();
|
|
624
|
-
if (f !== 0) {
|
|
625
|
-
writer.writeInt32(
|
|
626
|
-
3,
|
|
627
|
-
f
|
|
628
|
-
);
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* optional event_store.client.UUID server_id = 1;
|
|
635
|
-
* @return {?proto.event_store.client.UUID}
|
|
636
|
-
*/
|
|
637
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.getServerId = function() {
|
|
638
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
639
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
645
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest} returns this
|
|
646
|
-
*/
|
|
647
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.setServerId = function(value) {
|
|
648
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* Clears the message field making it undefined.
|
|
654
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest} returns this
|
|
655
|
-
*/
|
|
656
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.clearServerId = function() {
|
|
657
|
-
return this.setServerId(undefined);
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Returns whether this field is set.
|
|
663
|
-
* @return {boolean}
|
|
664
|
-
*/
|
|
665
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.hasServerId = function() {
|
|
666
|
-
return jspb.Message.getField(this, 1) != null;
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* optional EndPoint server_http = 2;
|
|
672
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
673
|
-
*/
|
|
674
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.getServerHttp = function() {
|
|
675
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
676
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
682
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest} returns this
|
|
683
|
-
*/
|
|
684
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.setServerHttp = function(value) {
|
|
685
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* Clears the message field making it undefined.
|
|
691
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest} returns this
|
|
692
|
-
*/
|
|
693
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.clearServerHttp = function() {
|
|
694
|
-
return this.setServerHttp(undefined);
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* Returns whether this field is set.
|
|
700
|
-
* @return {boolean}
|
|
701
|
-
*/
|
|
702
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.hasServerHttp = function() {
|
|
703
|
-
return jspb.Message.getField(this, 2) != null;
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* optional int32 attempted_view = 3;
|
|
709
|
-
* @return {number}
|
|
710
|
-
*/
|
|
711
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.getAttemptedView = function() {
|
|
712
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
713
|
-
};
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* @param {number} value
|
|
718
|
-
* @return {!proto.event_store.cluster.ViewChangeRequest} returns this
|
|
719
|
-
*/
|
|
720
|
-
proto.event_store.cluster.ViewChangeRequest.prototype.setAttemptedView = function(value) {
|
|
721
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
729
|
-
/**
|
|
730
|
-
* Creates an object representation of this proto.
|
|
731
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
732
|
-
* Optional fields that are not set will be set to undefined.
|
|
733
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
734
|
-
* For the list of reserved names please see:
|
|
735
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
736
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
737
|
-
* JSPB instance for transitional soy proto support:
|
|
738
|
-
* http://goto/soy-param-migration
|
|
739
|
-
* @return {!Object}
|
|
740
|
-
*/
|
|
741
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.toObject = function(opt_includeInstance) {
|
|
742
|
-
return proto.event_store.cluster.ViewChangeProofRequest.toObject(opt_includeInstance, this);
|
|
743
|
-
};
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* Static version of the {@see toObject} method.
|
|
748
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
749
|
-
* the JSPB instance for transitional soy proto support:
|
|
750
|
-
* http://goto/soy-param-migration
|
|
751
|
-
* @param {!proto.event_store.cluster.ViewChangeProofRequest} msg The msg instance to transform.
|
|
752
|
-
* @return {!Object}
|
|
753
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
754
|
-
*/
|
|
755
|
-
proto.event_store.cluster.ViewChangeProofRequest.toObject = function(includeInstance, msg) {
|
|
756
|
-
var f, obj = {
|
|
757
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
758
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
759
|
-
installedView: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
if (includeInstance) {
|
|
763
|
-
obj.$jspbMessageInstance = msg;
|
|
764
|
-
}
|
|
765
|
-
return obj;
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* Deserializes binary data (in protobuf wire format).
|
|
772
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
773
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest}
|
|
774
|
-
*/
|
|
775
|
-
proto.event_store.cluster.ViewChangeProofRequest.deserializeBinary = function(bytes) {
|
|
776
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
777
|
-
var msg = new proto.event_store.cluster.ViewChangeProofRequest;
|
|
778
|
-
return proto.event_store.cluster.ViewChangeProofRequest.deserializeBinaryFromReader(msg, reader);
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
784
|
-
* given reader into the given message object.
|
|
785
|
-
* @param {!proto.event_store.cluster.ViewChangeProofRequest} msg The message object to deserialize into.
|
|
786
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
787
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest}
|
|
788
|
-
*/
|
|
789
|
-
proto.event_store.cluster.ViewChangeProofRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
790
|
-
while (reader.nextField()) {
|
|
791
|
-
if (reader.isEndGroup()) {
|
|
792
|
-
break;
|
|
793
|
-
}
|
|
794
|
-
var field = reader.getFieldNumber();
|
|
795
|
-
switch (field) {
|
|
796
|
-
case 1:
|
|
797
|
-
var value = new shared_pb.UUID;
|
|
798
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
799
|
-
msg.setServerId(value);
|
|
800
|
-
break;
|
|
801
|
-
case 2:
|
|
802
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
803
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
804
|
-
msg.setServerHttp(value);
|
|
805
|
-
break;
|
|
806
|
-
case 3:
|
|
807
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
808
|
-
msg.setInstalledView(value);
|
|
809
|
-
break;
|
|
810
|
-
default:
|
|
811
|
-
reader.skipField();
|
|
812
|
-
break;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
return msg;
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
821
|
-
* @return {!Uint8Array}
|
|
822
|
-
*/
|
|
823
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.serializeBinary = function() {
|
|
824
|
-
var writer = new jspb.BinaryWriter();
|
|
825
|
-
proto.event_store.cluster.ViewChangeProofRequest.serializeBinaryToWriter(this, writer);
|
|
826
|
-
return writer.getResultBuffer();
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
832
|
-
* format), writing to the given BinaryWriter.
|
|
833
|
-
* @param {!proto.event_store.cluster.ViewChangeProofRequest} message
|
|
834
|
-
* @param {!jspb.BinaryWriter} writer
|
|
835
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
836
|
-
*/
|
|
837
|
-
proto.event_store.cluster.ViewChangeProofRequest.serializeBinaryToWriter = function(message, writer) {
|
|
838
|
-
var f = undefined;
|
|
839
|
-
f = message.getServerId();
|
|
840
|
-
if (f != null) {
|
|
841
|
-
writer.writeMessage(
|
|
842
|
-
1,
|
|
843
|
-
f,
|
|
844
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
f = message.getServerHttp();
|
|
848
|
-
if (f != null) {
|
|
849
|
-
writer.writeMessage(
|
|
850
|
-
2,
|
|
851
|
-
f,
|
|
852
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
853
|
-
);
|
|
854
|
-
}
|
|
855
|
-
f = message.getInstalledView();
|
|
856
|
-
if (f !== 0) {
|
|
857
|
-
writer.writeInt32(
|
|
858
|
-
3,
|
|
859
|
-
f
|
|
860
|
-
);
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* optional event_store.client.UUID server_id = 1;
|
|
867
|
-
* @return {?proto.event_store.client.UUID}
|
|
868
|
-
*/
|
|
869
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.getServerId = function() {
|
|
870
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
871
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
872
|
-
};
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
877
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this
|
|
878
|
-
*/
|
|
879
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.setServerId = function(value) {
|
|
880
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* Clears the message field making it undefined.
|
|
886
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this
|
|
887
|
-
*/
|
|
888
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.clearServerId = function() {
|
|
889
|
-
return this.setServerId(undefined);
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* Returns whether this field is set.
|
|
895
|
-
* @return {boolean}
|
|
896
|
-
*/
|
|
897
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.hasServerId = function() {
|
|
898
|
-
return jspb.Message.getField(this, 1) != null;
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* optional EndPoint server_http = 2;
|
|
904
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
905
|
-
*/
|
|
906
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.getServerHttp = function() {
|
|
907
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
908
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
/**
|
|
913
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
914
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this
|
|
915
|
-
*/
|
|
916
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.setServerHttp = function(value) {
|
|
917
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
* Clears the message field making it undefined.
|
|
923
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this
|
|
924
|
-
*/
|
|
925
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.clearServerHttp = function() {
|
|
926
|
-
return this.setServerHttp(undefined);
|
|
927
|
-
};
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* Returns whether this field is set.
|
|
932
|
-
* @return {boolean}
|
|
933
|
-
*/
|
|
934
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.hasServerHttp = function() {
|
|
935
|
-
return jspb.Message.getField(this, 2) != null;
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* optional int32 installed_view = 3;
|
|
941
|
-
* @return {number}
|
|
942
|
-
*/
|
|
943
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.getInstalledView = function() {
|
|
944
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* @param {number} value
|
|
950
|
-
* @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this
|
|
951
|
-
*/
|
|
952
|
-
proto.event_store.cluster.ViewChangeProofRequest.prototype.setInstalledView = function(value) {
|
|
953
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
954
|
-
};
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
961
|
-
/**
|
|
962
|
-
* Creates an object representation of this proto.
|
|
963
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
964
|
-
* Optional fields that are not set will be set to undefined.
|
|
965
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
966
|
-
* For the list of reserved names please see:
|
|
967
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
968
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
969
|
-
* JSPB instance for transitional soy proto support:
|
|
970
|
-
* http://goto/soy-param-migration
|
|
971
|
-
* @return {!Object}
|
|
972
|
-
*/
|
|
973
|
-
proto.event_store.cluster.PrepareRequest.prototype.toObject = function(opt_includeInstance) {
|
|
974
|
-
return proto.event_store.cluster.PrepareRequest.toObject(opt_includeInstance, this);
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
/**
|
|
979
|
-
* Static version of the {@see toObject} method.
|
|
980
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
981
|
-
* the JSPB instance for transitional soy proto support:
|
|
982
|
-
* http://goto/soy-param-migration
|
|
983
|
-
* @param {!proto.event_store.cluster.PrepareRequest} msg The msg instance to transform.
|
|
984
|
-
* @return {!Object}
|
|
985
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
986
|
-
*/
|
|
987
|
-
proto.event_store.cluster.PrepareRequest.toObject = function(includeInstance, msg) {
|
|
988
|
-
var f, obj = {
|
|
989
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
990
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
991
|
-
view: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
if (includeInstance) {
|
|
995
|
-
obj.$jspbMessageInstance = msg;
|
|
996
|
-
}
|
|
997
|
-
return obj;
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
/**
|
|
1003
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1004
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1005
|
-
* @return {!proto.event_store.cluster.PrepareRequest}
|
|
1006
|
-
*/
|
|
1007
|
-
proto.event_store.cluster.PrepareRequest.deserializeBinary = function(bytes) {
|
|
1008
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1009
|
-
var msg = new proto.event_store.cluster.PrepareRequest;
|
|
1010
|
-
return proto.event_store.cluster.PrepareRequest.deserializeBinaryFromReader(msg, reader);
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
/**
|
|
1015
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1016
|
-
* given reader into the given message object.
|
|
1017
|
-
* @param {!proto.event_store.cluster.PrepareRequest} msg The message object to deserialize into.
|
|
1018
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1019
|
-
* @return {!proto.event_store.cluster.PrepareRequest}
|
|
1020
|
-
*/
|
|
1021
|
-
proto.event_store.cluster.PrepareRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1022
|
-
while (reader.nextField()) {
|
|
1023
|
-
if (reader.isEndGroup()) {
|
|
1024
|
-
break;
|
|
1025
|
-
}
|
|
1026
|
-
var field = reader.getFieldNumber();
|
|
1027
|
-
switch (field) {
|
|
1028
|
-
case 1:
|
|
1029
|
-
var value = new shared_pb.UUID;
|
|
1030
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1031
|
-
msg.setServerId(value);
|
|
1032
|
-
break;
|
|
1033
|
-
case 2:
|
|
1034
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
1035
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
1036
|
-
msg.setServerHttp(value);
|
|
1037
|
-
break;
|
|
1038
|
-
case 3:
|
|
1039
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1040
|
-
msg.setView(value);
|
|
1041
|
-
break;
|
|
1042
|
-
default:
|
|
1043
|
-
reader.skipField();
|
|
1044
|
-
break;
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
return msg;
|
|
1048
|
-
};
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1053
|
-
* @return {!Uint8Array}
|
|
1054
|
-
*/
|
|
1055
|
-
proto.event_store.cluster.PrepareRequest.prototype.serializeBinary = function() {
|
|
1056
|
-
var writer = new jspb.BinaryWriter();
|
|
1057
|
-
proto.event_store.cluster.PrepareRequest.serializeBinaryToWriter(this, writer);
|
|
1058
|
-
return writer.getResultBuffer();
|
|
1059
|
-
};
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1064
|
-
* format), writing to the given BinaryWriter.
|
|
1065
|
-
* @param {!proto.event_store.cluster.PrepareRequest} message
|
|
1066
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1067
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1068
|
-
*/
|
|
1069
|
-
proto.event_store.cluster.PrepareRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1070
|
-
var f = undefined;
|
|
1071
|
-
f = message.getServerId();
|
|
1072
|
-
if (f != null) {
|
|
1073
|
-
writer.writeMessage(
|
|
1074
|
-
1,
|
|
1075
|
-
f,
|
|
1076
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1077
|
-
);
|
|
1078
|
-
}
|
|
1079
|
-
f = message.getServerHttp();
|
|
1080
|
-
if (f != null) {
|
|
1081
|
-
writer.writeMessage(
|
|
1082
|
-
2,
|
|
1083
|
-
f,
|
|
1084
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
1085
|
-
);
|
|
1086
|
-
}
|
|
1087
|
-
f = message.getView();
|
|
1088
|
-
if (f !== 0) {
|
|
1089
|
-
writer.writeInt32(
|
|
1090
|
-
3,
|
|
1091
|
-
f
|
|
1092
|
-
);
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* optional event_store.client.UUID server_id = 1;
|
|
1099
|
-
* @return {?proto.event_store.client.UUID}
|
|
1100
|
-
*/
|
|
1101
|
-
proto.event_store.cluster.PrepareRequest.prototype.getServerId = function() {
|
|
1102
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
1103
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
/**
|
|
1108
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
1109
|
-
* @return {!proto.event_store.cluster.PrepareRequest} returns this
|
|
1110
|
-
*/
|
|
1111
|
-
proto.event_store.cluster.PrepareRequest.prototype.setServerId = function(value) {
|
|
1112
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* Clears the message field making it undefined.
|
|
1118
|
-
* @return {!proto.event_store.cluster.PrepareRequest} returns this
|
|
1119
|
-
*/
|
|
1120
|
-
proto.event_store.cluster.PrepareRequest.prototype.clearServerId = function() {
|
|
1121
|
-
return this.setServerId(undefined);
|
|
1122
|
-
};
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* Returns whether this field is set.
|
|
1127
|
-
* @return {boolean}
|
|
1128
|
-
*/
|
|
1129
|
-
proto.event_store.cluster.PrepareRequest.prototype.hasServerId = function() {
|
|
1130
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1131
|
-
};
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
* optional EndPoint server_http = 2;
|
|
1136
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
1137
|
-
*/
|
|
1138
|
-
proto.event_store.cluster.PrepareRequest.prototype.getServerHttp = function() {
|
|
1139
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
1140
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
1141
|
-
};
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
1146
|
-
* @return {!proto.event_store.cluster.PrepareRequest} returns this
|
|
1147
|
-
*/
|
|
1148
|
-
proto.event_store.cluster.PrepareRequest.prototype.setServerHttp = function(value) {
|
|
1149
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
/**
|
|
1154
|
-
* Clears the message field making it undefined.
|
|
1155
|
-
* @return {!proto.event_store.cluster.PrepareRequest} returns this
|
|
1156
|
-
*/
|
|
1157
|
-
proto.event_store.cluster.PrepareRequest.prototype.clearServerHttp = function() {
|
|
1158
|
-
return this.setServerHttp(undefined);
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
* Returns whether this field is set.
|
|
1164
|
-
* @return {boolean}
|
|
1165
|
-
*/
|
|
1166
|
-
proto.event_store.cluster.PrepareRequest.prototype.hasServerHttp = function() {
|
|
1167
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* optional int32 view = 3;
|
|
1173
|
-
* @return {number}
|
|
1174
|
-
*/
|
|
1175
|
-
proto.event_store.cluster.PrepareRequest.prototype.getView = function() {
|
|
1176
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* @param {number} value
|
|
1182
|
-
* @return {!proto.event_store.cluster.PrepareRequest} returns this
|
|
1183
|
-
*/
|
|
1184
|
-
proto.event_store.cluster.PrepareRequest.prototype.setView = function(value) {
|
|
1185
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1186
|
-
};
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1193
|
-
/**
|
|
1194
|
-
* Creates an object representation of this proto.
|
|
1195
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1196
|
-
* Optional fields that are not set will be set to undefined.
|
|
1197
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1198
|
-
* For the list of reserved names please see:
|
|
1199
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1200
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1201
|
-
* JSPB instance for transitional soy proto support:
|
|
1202
|
-
* http://goto/soy-param-migration
|
|
1203
|
-
* @return {!Object}
|
|
1204
|
-
*/
|
|
1205
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1206
|
-
return proto.event_store.cluster.PrepareOkRequest.toObject(opt_includeInstance, this);
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* Static version of the {@see toObject} method.
|
|
1212
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1213
|
-
* the JSPB instance for transitional soy proto support:
|
|
1214
|
-
* http://goto/soy-param-migration
|
|
1215
|
-
* @param {!proto.event_store.cluster.PrepareOkRequest} msg The msg instance to transform.
|
|
1216
|
-
* @return {!Object}
|
|
1217
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1218
|
-
*/
|
|
1219
|
-
proto.event_store.cluster.PrepareOkRequest.toObject = function(includeInstance, msg) {
|
|
1220
|
-
var f, obj = {
|
|
1221
|
-
view: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1222
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1223
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
1224
|
-
epochNumber: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1225
|
-
epochPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"),
|
|
1226
|
-
epochId: (f = msg.getEpochId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1227
|
-
epochLeaderInstanceId: (f = msg.getEpochLeaderInstanceId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1228
|
-
lastCommitPosition: jspb.Message.getFieldWithDefault(msg, 8, "0"),
|
|
1229
|
-
writerCheckpoint: jspb.Message.getFieldWithDefault(msg, 9, "0"),
|
|
1230
|
-
chaserCheckpoint: jspb.Message.getFieldWithDefault(msg, 10, "0"),
|
|
1231
|
-
nodePriority: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
1232
|
-
clusterInfo: (f = msg.getClusterInfo()) && proto.event_store.cluster.ClusterInfo.toObject(includeInstance, f)
|
|
1233
|
-
};
|
|
1234
|
-
|
|
1235
|
-
if (includeInstance) {
|
|
1236
|
-
obj.$jspbMessageInstance = msg;
|
|
1237
|
-
}
|
|
1238
|
-
return obj;
|
|
1239
|
-
};
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
/**
|
|
1244
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1245
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1246
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest}
|
|
1247
|
-
*/
|
|
1248
|
-
proto.event_store.cluster.PrepareOkRequest.deserializeBinary = function(bytes) {
|
|
1249
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1250
|
-
var msg = new proto.event_store.cluster.PrepareOkRequest;
|
|
1251
|
-
return proto.event_store.cluster.PrepareOkRequest.deserializeBinaryFromReader(msg, reader);
|
|
1252
|
-
};
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1257
|
-
* given reader into the given message object.
|
|
1258
|
-
* @param {!proto.event_store.cluster.PrepareOkRequest} msg The message object to deserialize into.
|
|
1259
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1260
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest}
|
|
1261
|
-
*/
|
|
1262
|
-
proto.event_store.cluster.PrepareOkRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1263
|
-
while (reader.nextField()) {
|
|
1264
|
-
if (reader.isEndGroup()) {
|
|
1265
|
-
break;
|
|
1266
|
-
}
|
|
1267
|
-
var field = reader.getFieldNumber();
|
|
1268
|
-
switch (field) {
|
|
1269
|
-
case 1:
|
|
1270
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1271
|
-
msg.setView(value);
|
|
1272
|
-
break;
|
|
1273
|
-
case 2:
|
|
1274
|
-
var value = new shared_pb.UUID;
|
|
1275
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1276
|
-
msg.setServerId(value);
|
|
1277
|
-
break;
|
|
1278
|
-
case 3:
|
|
1279
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
1280
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
1281
|
-
msg.setServerHttp(value);
|
|
1282
|
-
break;
|
|
1283
|
-
case 4:
|
|
1284
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1285
|
-
msg.setEpochNumber(value);
|
|
1286
|
-
break;
|
|
1287
|
-
case 5:
|
|
1288
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1289
|
-
msg.setEpochPosition(value);
|
|
1290
|
-
break;
|
|
1291
|
-
case 6:
|
|
1292
|
-
var value = new shared_pb.UUID;
|
|
1293
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1294
|
-
msg.setEpochId(value);
|
|
1295
|
-
break;
|
|
1296
|
-
case 7:
|
|
1297
|
-
var value = new shared_pb.UUID;
|
|
1298
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1299
|
-
msg.setEpochLeaderInstanceId(value);
|
|
1300
|
-
break;
|
|
1301
|
-
case 8:
|
|
1302
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1303
|
-
msg.setLastCommitPosition(value);
|
|
1304
|
-
break;
|
|
1305
|
-
case 9:
|
|
1306
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1307
|
-
msg.setWriterCheckpoint(value);
|
|
1308
|
-
break;
|
|
1309
|
-
case 10:
|
|
1310
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1311
|
-
msg.setChaserCheckpoint(value);
|
|
1312
|
-
break;
|
|
1313
|
-
case 11:
|
|
1314
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1315
|
-
msg.setNodePriority(value);
|
|
1316
|
-
break;
|
|
1317
|
-
case 12:
|
|
1318
|
-
var value = new proto.event_store.cluster.ClusterInfo;
|
|
1319
|
-
reader.readMessage(value,proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader);
|
|
1320
|
-
msg.setClusterInfo(value);
|
|
1321
|
-
break;
|
|
1322
|
-
default:
|
|
1323
|
-
reader.skipField();
|
|
1324
|
-
break;
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
return msg;
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
/**
|
|
1332
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1333
|
-
* @return {!Uint8Array}
|
|
1334
|
-
*/
|
|
1335
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.serializeBinary = function() {
|
|
1336
|
-
var writer = new jspb.BinaryWriter();
|
|
1337
|
-
proto.event_store.cluster.PrepareOkRequest.serializeBinaryToWriter(this, writer);
|
|
1338
|
-
return writer.getResultBuffer();
|
|
1339
|
-
};
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1344
|
-
* format), writing to the given BinaryWriter.
|
|
1345
|
-
* @param {!proto.event_store.cluster.PrepareOkRequest} message
|
|
1346
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1347
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1348
|
-
*/
|
|
1349
|
-
proto.event_store.cluster.PrepareOkRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1350
|
-
var f = undefined;
|
|
1351
|
-
f = message.getView();
|
|
1352
|
-
if (f !== 0) {
|
|
1353
|
-
writer.writeInt32(
|
|
1354
|
-
1,
|
|
1355
|
-
f
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
f = message.getServerId();
|
|
1359
|
-
if (f != null) {
|
|
1360
|
-
writer.writeMessage(
|
|
1361
|
-
2,
|
|
1362
|
-
f,
|
|
1363
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1364
|
-
);
|
|
1365
|
-
}
|
|
1366
|
-
f = message.getServerHttp();
|
|
1367
|
-
if (f != null) {
|
|
1368
|
-
writer.writeMessage(
|
|
1369
|
-
3,
|
|
1370
|
-
f,
|
|
1371
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
1372
|
-
);
|
|
1373
|
-
}
|
|
1374
|
-
f = message.getEpochNumber();
|
|
1375
|
-
if (f !== 0) {
|
|
1376
|
-
writer.writeInt32(
|
|
1377
|
-
4,
|
|
1378
|
-
f
|
|
1379
|
-
);
|
|
1380
|
-
}
|
|
1381
|
-
f = message.getEpochPosition();
|
|
1382
|
-
if (parseInt(f, 10) !== 0) {
|
|
1383
|
-
writer.writeInt64String(
|
|
1384
|
-
5,
|
|
1385
|
-
f
|
|
1386
|
-
);
|
|
1387
|
-
}
|
|
1388
|
-
f = message.getEpochId();
|
|
1389
|
-
if (f != null) {
|
|
1390
|
-
writer.writeMessage(
|
|
1391
|
-
6,
|
|
1392
|
-
f,
|
|
1393
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1394
|
-
);
|
|
1395
|
-
}
|
|
1396
|
-
f = message.getEpochLeaderInstanceId();
|
|
1397
|
-
if (f != null) {
|
|
1398
|
-
writer.writeMessage(
|
|
1399
|
-
7,
|
|
1400
|
-
f,
|
|
1401
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1402
|
-
);
|
|
1403
|
-
}
|
|
1404
|
-
f = message.getLastCommitPosition();
|
|
1405
|
-
if (parseInt(f, 10) !== 0) {
|
|
1406
|
-
writer.writeInt64String(
|
|
1407
|
-
8,
|
|
1408
|
-
f
|
|
1409
|
-
);
|
|
1410
|
-
}
|
|
1411
|
-
f = message.getWriterCheckpoint();
|
|
1412
|
-
if (parseInt(f, 10) !== 0) {
|
|
1413
|
-
writer.writeInt64String(
|
|
1414
|
-
9,
|
|
1415
|
-
f
|
|
1416
|
-
);
|
|
1417
|
-
}
|
|
1418
|
-
f = message.getChaserCheckpoint();
|
|
1419
|
-
if (parseInt(f, 10) !== 0) {
|
|
1420
|
-
writer.writeInt64String(
|
|
1421
|
-
10,
|
|
1422
|
-
f
|
|
1423
|
-
);
|
|
1424
|
-
}
|
|
1425
|
-
f = message.getNodePriority();
|
|
1426
|
-
if (f !== 0) {
|
|
1427
|
-
writer.writeInt32(
|
|
1428
|
-
11,
|
|
1429
|
-
f
|
|
1430
|
-
);
|
|
1431
|
-
}
|
|
1432
|
-
f = message.getClusterInfo();
|
|
1433
|
-
if (f != null) {
|
|
1434
|
-
writer.writeMessage(
|
|
1435
|
-
12,
|
|
1436
|
-
f,
|
|
1437
|
-
proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter
|
|
1438
|
-
);
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
/**
|
|
1444
|
-
* optional int32 view = 1;
|
|
1445
|
-
* @return {number}
|
|
1446
|
-
*/
|
|
1447
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getView = function() {
|
|
1448
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1449
|
-
};
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* @param {number} value
|
|
1454
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1455
|
-
*/
|
|
1456
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setView = function(value) {
|
|
1457
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1458
|
-
};
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
/**
|
|
1462
|
-
* optional event_store.client.UUID server_id = 2;
|
|
1463
|
-
* @return {?proto.event_store.client.UUID}
|
|
1464
|
-
*/
|
|
1465
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getServerId = function() {
|
|
1466
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
1467
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 2));
|
|
1468
|
-
};
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
1473
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1474
|
-
*/
|
|
1475
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setServerId = function(value) {
|
|
1476
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
1477
|
-
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
/**
|
|
1481
|
-
* Clears the message field making it undefined.
|
|
1482
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1483
|
-
*/
|
|
1484
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.clearServerId = function() {
|
|
1485
|
-
return this.setServerId(undefined);
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* Returns whether this field is set.
|
|
1491
|
-
* @return {boolean}
|
|
1492
|
-
*/
|
|
1493
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.hasServerId = function() {
|
|
1494
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1495
|
-
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* optional EndPoint server_http = 3;
|
|
1500
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
1501
|
-
*/
|
|
1502
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getServerHttp = function() {
|
|
1503
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
1504
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 3));
|
|
1505
|
-
};
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
1510
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1511
|
-
*/
|
|
1512
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setServerHttp = function(value) {
|
|
1513
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
1514
|
-
};
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* Clears the message field making it undefined.
|
|
1519
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1520
|
-
*/
|
|
1521
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.clearServerHttp = function() {
|
|
1522
|
-
return this.setServerHttp(undefined);
|
|
1523
|
-
};
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
/**
|
|
1527
|
-
* Returns whether this field is set.
|
|
1528
|
-
* @return {boolean}
|
|
1529
|
-
*/
|
|
1530
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.hasServerHttp = function() {
|
|
1531
|
-
return jspb.Message.getField(this, 3) != null;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* optional int32 epoch_number = 4;
|
|
1537
|
-
* @return {number}
|
|
1538
|
-
*/
|
|
1539
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getEpochNumber = function() {
|
|
1540
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1541
|
-
};
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* @param {number} value
|
|
1546
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1547
|
-
*/
|
|
1548
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setEpochNumber = function(value) {
|
|
1549
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
1550
|
-
};
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
/**
|
|
1554
|
-
* optional int64 epoch_position = 5;
|
|
1555
|
-
* @return {string}
|
|
1556
|
-
*/
|
|
1557
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getEpochPosition = function() {
|
|
1558
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0"));
|
|
1559
|
-
};
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* @param {string} value
|
|
1564
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1565
|
-
*/
|
|
1566
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setEpochPosition = function(value) {
|
|
1567
|
-
return jspb.Message.setProto3StringIntField(this, 5, value);
|
|
1568
|
-
};
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
/**
|
|
1572
|
-
* optional event_store.client.UUID epoch_id = 6;
|
|
1573
|
-
* @return {?proto.event_store.client.UUID}
|
|
1574
|
-
*/
|
|
1575
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getEpochId = function() {
|
|
1576
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
1577
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 6));
|
|
1578
|
-
};
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
/**
|
|
1582
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
1583
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1584
|
-
*/
|
|
1585
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setEpochId = function(value) {
|
|
1586
|
-
return jspb.Message.setWrapperField(this, 6, value);
|
|
1587
|
-
};
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* Clears the message field making it undefined.
|
|
1592
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1593
|
-
*/
|
|
1594
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.clearEpochId = function() {
|
|
1595
|
-
return this.setEpochId(undefined);
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* Returns whether this field is set.
|
|
1601
|
-
* @return {boolean}
|
|
1602
|
-
*/
|
|
1603
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.hasEpochId = function() {
|
|
1604
|
-
return jspb.Message.getField(this, 6) != null;
|
|
1605
|
-
};
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
/**
|
|
1609
|
-
* optional event_store.client.UUID epoch_leader_instance_id = 7;
|
|
1610
|
-
* @return {?proto.event_store.client.UUID}
|
|
1611
|
-
*/
|
|
1612
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getEpochLeaderInstanceId = function() {
|
|
1613
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
1614
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 7));
|
|
1615
|
-
};
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
/**
|
|
1619
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
1620
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1621
|
-
*/
|
|
1622
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setEpochLeaderInstanceId = function(value) {
|
|
1623
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
1624
|
-
};
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
/**
|
|
1628
|
-
* Clears the message field making it undefined.
|
|
1629
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1630
|
-
*/
|
|
1631
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.clearEpochLeaderInstanceId = function() {
|
|
1632
|
-
return this.setEpochLeaderInstanceId(undefined);
|
|
1633
|
-
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
/**
|
|
1637
|
-
* Returns whether this field is set.
|
|
1638
|
-
* @return {boolean}
|
|
1639
|
-
*/
|
|
1640
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.hasEpochLeaderInstanceId = function() {
|
|
1641
|
-
return jspb.Message.getField(this, 7) != null;
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
/**
|
|
1646
|
-
* optional int64 last_commit_position = 8;
|
|
1647
|
-
* @return {string}
|
|
1648
|
-
*/
|
|
1649
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getLastCommitPosition = function() {
|
|
1650
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0"));
|
|
1651
|
-
};
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* @param {string} value
|
|
1656
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1657
|
-
*/
|
|
1658
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setLastCommitPosition = function(value) {
|
|
1659
|
-
return jspb.Message.setProto3StringIntField(this, 8, value);
|
|
1660
|
-
};
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
/**
|
|
1664
|
-
* optional int64 writer_checkpoint = 9;
|
|
1665
|
-
* @return {string}
|
|
1666
|
-
*/
|
|
1667
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getWriterCheckpoint = function() {
|
|
1668
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0"));
|
|
1669
|
-
};
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* @param {string} value
|
|
1674
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1675
|
-
*/
|
|
1676
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setWriterCheckpoint = function(value) {
|
|
1677
|
-
return jspb.Message.setProto3StringIntField(this, 9, value);
|
|
1678
|
-
};
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
/**
|
|
1682
|
-
* optional int64 chaser_checkpoint = 10;
|
|
1683
|
-
* @return {string}
|
|
1684
|
-
*/
|
|
1685
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getChaserCheckpoint = function() {
|
|
1686
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0"));
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* @param {string} value
|
|
1692
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1693
|
-
*/
|
|
1694
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setChaserCheckpoint = function(value) {
|
|
1695
|
-
return jspb.Message.setProto3StringIntField(this, 10, value);
|
|
1696
|
-
};
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
/**
|
|
1700
|
-
* optional int32 node_priority = 11;
|
|
1701
|
-
* @return {number}
|
|
1702
|
-
*/
|
|
1703
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getNodePriority = function() {
|
|
1704
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
1705
|
-
};
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
/**
|
|
1709
|
-
* @param {number} value
|
|
1710
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1711
|
-
*/
|
|
1712
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setNodePriority = function(value) {
|
|
1713
|
-
return jspb.Message.setProto3IntField(this, 11, value);
|
|
1714
|
-
};
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
/**
|
|
1718
|
-
* optional ClusterInfo cluster_info = 12;
|
|
1719
|
-
* @return {?proto.event_store.cluster.ClusterInfo}
|
|
1720
|
-
*/
|
|
1721
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.getClusterInfo = function() {
|
|
1722
|
-
return /** @type{?proto.event_store.cluster.ClusterInfo} */ (
|
|
1723
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.ClusterInfo, 12));
|
|
1724
|
-
};
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* @param {?proto.event_store.cluster.ClusterInfo|undefined} value
|
|
1729
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1730
|
-
*/
|
|
1731
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.setClusterInfo = function(value) {
|
|
1732
|
-
return jspb.Message.setWrapperField(this, 12, value);
|
|
1733
|
-
};
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
/**
|
|
1737
|
-
* Clears the message field making it undefined.
|
|
1738
|
-
* @return {!proto.event_store.cluster.PrepareOkRequest} returns this
|
|
1739
|
-
*/
|
|
1740
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.clearClusterInfo = function() {
|
|
1741
|
-
return this.setClusterInfo(undefined);
|
|
1742
|
-
};
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
/**
|
|
1746
|
-
* Returns whether this field is set.
|
|
1747
|
-
* @return {boolean}
|
|
1748
|
-
*/
|
|
1749
|
-
proto.event_store.cluster.PrepareOkRequest.prototype.hasClusterInfo = function() {
|
|
1750
|
-
return jspb.Message.getField(this, 12) != null;
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1758
|
-
/**
|
|
1759
|
-
* Creates an object representation of this proto.
|
|
1760
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1761
|
-
* Optional fields that are not set will be set to undefined.
|
|
1762
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1763
|
-
* For the list of reserved names please see:
|
|
1764
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1765
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1766
|
-
* JSPB instance for transitional soy proto support:
|
|
1767
|
-
* http://goto/soy-param-migration
|
|
1768
|
-
* @return {!Object}
|
|
1769
|
-
*/
|
|
1770
|
-
proto.event_store.cluster.ProposalRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1771
|
-
return proto.event_store.cluster.ProposalRequest.toObject(opt_includeInstance, this);
|
|
1772
|
-
};
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
/**
|
|
1776
|
-
* Static version of the {@see toObject} method.
|
|
1777
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1778
|
-
* the JSPB instance for transitional soy proto support:
|
|
1779
|
-
* http://goto/soy-param-migration
|
|
1780
|
-
* @param {!proto.event_store.cluster.ProposalRequest} msg The msg instance to transform.
|
|
1781
|
-
* @return {!Object}
|
|
1782
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1783
|
-
*/
|
|
1784
|
-
proto.event_store.cluster.ProposalRequest.toObject = function(includeInstance, msg) {
|
|
1785
|
-
var f, obj = {
|
|
1786
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1787
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
1788
|
-
leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1789
|
-
leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
1790
|
-
view: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
1791
|
-
epochNumber: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
1792
|
-
epochPosition: jspb.Message.getFieldWithDefault(msg, 7, "0"),
|
|
1793
|
-
epochId: (f = msg.getEpochId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1794
|
-
epochLeaderInstanceId: (f = msg.getEpochLeaderInstanceId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
1795
|
-
lastCommitPosition: jspb.Message.getFieldWithDefault(msg, 10, "0"),
|
|
1796
|
-
writerCheckpoint: jspb.Message.getFieldWithDefault(msg, 11, "0"),
|
|
1797
|
-
chaserCheckpoint: jspb.Message.getFieldWithDefault(msg, 12, "0"),
|
|
1798
|
-
nodePriority: jspb.Message.getFieldWithDefault(msg, 13, 0)
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
if (includeInstance) {
|
|
1802
|
-
obj.$jspbMessageInstance = msg;
|
|
1803
|
-
}
|
|
1804
|
-
return obj;
|
|
1805
|
-
};
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1811
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1812
|
-
* @return {!proto.event_store.cluster.ProposalRequest}
|
|
1813
|
-
*/
|
|
1814
|
-
proto.event_store.cluster.ProposalRequest.deserializeBinary = function(bytes) {
|
|
1815
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1816
|
-
var msg = new proto.event_store.cluster.ProposalRequest;
|
|
1817
|
-
return proto.event_store.cluster.ProposalRequest.deserializeBinaryFromReader(msg, reader);
|
|
1818
|
-
};
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
/**
|
|
1822
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1823
|
-
* given reader into the given message object.
|
|
1824
|
-
* @param {!proto.event_store.cluster.ProposalRequest} msg The message object to deserialize into.
|
|
1825
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1826
|
-
* @return {!proto.event_store.cluster.ProposalRequest}
|
|
1827
|
-
*/
|
|
1828
|
-
proto.event_store.cluster.ProposalRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1829
|
-
while (reader.nextField()) {
|
|
1830
|
-
if (reader.isEndGroup()) {
|
|
1831
|
-
break;
|
|
1832
|
-
}
|
|
1833
|
-
var field = reader.getFieldNumber();
|
|
1834
|
-
switch (field) {
|
|
1835
|
-
case 1:
|
|
1836
|
-
var value = new shared_pb.UUID;
|
|
1837
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1838
|
-
msg.setServerId(value);
|
|
1839
|
-
break;
|
|
1840
|
-
case 2:
|
|
1841
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
1842
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
1843
|
-
msg.setServerHttp(value);
|
|
1844
|
-
break;
|
|
1845
|
-
case 3:
|
|
1846
|
-
var value = new shared_pb.UUID;
|
|
1847
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1848
|
-
msg.setLeaderId(value);
|
|
1849
|
-
break;
|
|
1850
|
-
case 4:
|
|
1851
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
1852
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
1853
|
-
msg.setLeaderHttp(value);
|
|
1854
|
-
break;
|
|
1855
|
-
case 5:
|
|
1856
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1857
|
-
msg.setView(value);
|
|
1858
|
-
break;
|
|
1859
|
-
case 6:
|
|
1860
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1861
|
-
msg.setEpochNumber(value);
|
|
1862
|
-
break;
|
|
1863
|
-
case 7:
|
|
1864
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1865
|
-
msg.setEpochPosition(value);
|
|
1866
|
-
break;
|
|
1867
|
-
case 8:
|
|
1868
|
-
var value = new shared_pb.UUID;
|
|
1869
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1870
|
-
msg.setEpochId(value);
|
|
1871
|
-
break;
|
|
1872
|
-
case 9:
|
|
1873
|
-
var value = new shared_pb.UUID;
|
|
1874
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
1875
|
-
msg.setEpochLeaderInstanceId(value);
|
|
1876
|
-
break;
|
|
1877
|
-
case 10:
|
|
1878
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1879
|
-
msg.setLastCommitPosition(value);
|
|
1880
|
-
break;
|
|
1881
|
-
case 11:
|
|
1882
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1883
|
-
msg.setWriterCheckpoint(value);
|
|
1884
|
-
break;
|
|
1885
|
-
case 12:
|
|
1886
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
1887
|
-
msg.setChaserCheckpoint(value);
|
|
1888
|
-
break;
|
|
1889
|
-
case 13:
|
|
1890
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
1891
|
-
msg.setNodePriority(value);
|
|
1892
|
-
break;
|
|
1893
|
-
default:
|
|
1894
|
-
reader.skipField();
|
|
1895
|
-
break;
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
return msg;
|
|
1899
|
-
};
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
/**
|
|
1903
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1904
|
-
* @return {!Uint8Array}
|
|
1905
|
-
*/
|
|
1906
|
-
proto.event_store.cluster.ProposalRequest.prototype.serializeBinary = function() {
|
|
1907
|
-
var writer = new jspb.BinaryWriter();
|
|
1908
|
-
proto.event_store.cluster.ProposalRequest.serializeBinaryToWriter(this, writer);
|
|
1909
|
-
return writer.getResultBuffer();
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
/**
|
|
1914
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1915
|
-
* format), writing to the given BinaryWriter.
|
|
1916
|
-
* @param {!proto.event_store.cluster.ProposalRequest} message
|
|
1917
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1918
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1919
|
-
*/
|
|
1920
|
-
proto.event_store.cluster.ProposalRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1921
|
-
var f = undefined;
|
|
1922
|
-
f = message.getServerId();
|
|
1923
|
-
if (f != null) {
|
|
1924
|
-
writer.writeMessage(
|
|
1925
|
-
1,
|
|
1926
|
-
f,
|
|
1927
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1928
|
-
);
|
|
1929
|
-
}
|
|
1930
|
-
f = message.getServerHttp();
|
|
1931
|
-
if (f != null) {
|
|
1932
|
-
writer.writeMessage(
|
|
1933
|
-
2,
|
|
1934
|
-
f,
|
|
1935
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
1936
|
-
);
|
|
1937
|
-
}
|
|
1938
|
-
f = message.getLeaderId();
|
|
1939
|
-
if (f != null) {
|
|
1940
|
-
writer.writeMessage(
|
|
1941
|
-
3,
|
|
1942
|
-
f,
|
|
1943
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1944
|
-
);
|
|
1945
|
-
}
|
|
1946
|
-
f = message.getLeaderHttp();
|
|
1947
|
-
if (f != null) {
|
|
1948
|
-
writer.writeMessage(
|
|
1949
|
-
4,
|
|
1950
|
-
f,
|
|
1951
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
1952
|
-
);
|
|
1953
|
-
}
|
|
1954
|
-
f = message.getView();
|
|
1955
|
-
if (f !== 0) {
|
|
1956
|
-
writer.writeInt32(
|
|
1957
|
-
5,
|
|
1958
|
-
f
|
|
1959
|
-
);
|
|
1960
|
-
}
|
|
1961
|
-
f = message.getEpochNumber();
|
|
1962
|
-
if (f !== 0) {
|
|
1963
|
-
writer.writeInt32(
|
|
1964
|
-
6,
|
|
1965
|
-
f
|
|
1966
|
-
);
|
|
1967
|
-
}
|
|
1968
|
-
f = message.getEpochPosition();
|
|
1969
|
-
if (parseInt(f, 10) !== 0) {
|
|
1970
|
-
writer.writeInt64String(
|
|
1971
|
-
7,
|
|
1972
|
-
f
|
|
1973
|
-
);
|
|
1974
|
-
}
|
|
1975
|
-
f = message.getEpochId();
|
|
1976
|
-
if (f != null) {
|
|
1977
|
-
writer.writeMessage(
|
|
1978
|
-
8,
|
|
1979
|
-
f,
|
|
1980
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1981
|
-
);
|
|
1982
|
-
}
|
|
1983
|
-
f = message.getEpochLeaderInstanceId();
|
|
1984
|
-
if (f != null) {
|
|
1985
|
-
writer.writeMessage(
|
|
1986
|
-
9,
|
|
1987
|
-
f,
|
|
1988
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
1989
|
-
);
|
|
1990
|
-
}
|
|
1991
|
-
f = message.getLastCommitPosition();
|
|
1992
|
-
if (parseInt(f, 10) !== 0) {
|
|
1993
|
-
writer.writeInt64String(
|
|
1994
|
-
10,
|
|
1995
|
-
f
|
|
1996
|
-
);
|
|
1997
|
-
}
|
|
1998
|
-
f = message.getWriterCheckpoint();
|
|
1999
|
-
if (parseInt(f, 10) !== 0) {
|
|
2000
|
-
writer.writeInt64String(
|
|
2001
|
-
11,
|
|
2002
|
-
f
|
|
2003
|
-
);
|
|
2004
|
-
}
|
|
2005
|
-
f = message.getChaserCheckpoint();
|
|
2006
|
-
if (parseInt(f, 10) !== 0) {
|
|
2007
|
-
writer.writeInt64String(
|
|
2008
|
-
12,
|
|
2009
|
-
f
|
|
2010
|
-
);
|
|
2011
|
-
}
|
|
2012
|
-
f = message.getNodePriority();
|
|
2013
|
-
if (f !== 0) {
|
|
2014
|
-
writer.writeInt32(
|
|
2015
|
-
13,
|
|
2016
|
-
f
|
|
2017
|
-
);
|
|
2018
|
-
}
|
|
2019
|
-
};
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
/**
|
|
2023
|
-
* optional event_store.client.UUID server_id = 1;
|
|
2024
|
-
* @return {?proto.event_store.client.UUID}
|
|
2025
|
-
*/
|
|
2026
|
-
proto.event_store.cluster.ProposalRequest.prototype.getServerId = function() {
|
|
2027
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2028
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
2029
|
-
};
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
/**
|
|
2033
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2034
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2035
|
-
*/
|
|
2036
|
-
proto.event_store.cluster.ProposalRequest.prototype.setServerId = function(value) {
|
|
2037
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2038
|
-
};
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
/**
|
|
2042
|
-
* Clears the message field making it undefined.
|
|
2043
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2044
|
-
*/
|
|
2045
|
-
proto.event_store.cluster.ProposalRequest.prototype.clearServerId = function() {
|
|
2046
|
-
return this.setServerId(undefined);
|
|
2047
|
-
};
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
/**
|
|
2051
|
-
* Returns whether this field is set.
|
|
2052
|
-
* @return {boolean}
|
|
2053
|
-
*/
|
|
2054
|
-
proto.event_store.cluster.ProposalRequest.prototype.hasServerId = function() {
|
|
2055
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2056
|
-
};
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
/**
|
|
2060
|
-
* optional EndPoint server_http = 2;
|
|
2061
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
2062
|
-
*/
|
|
2063
|
-
proto.event_store.cluster.ProposalRequest.prototype.getServerHttp = function() {
|
|
2064
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
2065
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
/**
|
|
2070
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
2071
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2072
|
-
*/
|
|
2073
|
-
proto.event_store.cluster.ProposalRequest.prototype.setServerHttp = function(value) {
|
|
2074
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2075
|
-
};
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
/**
|
|
2079
|
-
* Clears the message field making it undefined.
|
|
2080
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2081
|
-
*/
|
|
2082
|
-
proto.event_store.cluster.ProposalRequest.prototype.clearServerHttp = function() {
|
|
2083
|
-
return this.setServerHttp(undefined);
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
/**
|
|
2088
|
-
* Returns whether this field is set.
|
|
2089
|
-
* @return {boolean}
|
|
2090
|
-
*/
|
|
2091
|
-
proto.event_store.cluster.ProposalRequest.prototype.hasServerHttp = function() {
|
|
2092
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2093
|
-
};
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* optional event_store.client.UUID leader_id = 3;
|
|
2098
|
-
* @return {?proto.event_store.client.UUID}
|
|
2099
|
-
*/
|
|
2100
|
-
proto.event_store.cluster.ProposalRequest.prototype.getLeaderId = function() {
|
|
2101
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2102
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 3));
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
/**
|
|
2107
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2108
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2109
|
-
*/
|
|
2110
|
-
proto.event_store.cluster.ProposalRequest.prototype.setLeaderId = function(value) {
|
|
2111
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
2112
|
-
};
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
/**
|
|
2116
|
-
* Clears the message field making it undefined.
|
|
2117
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2118
|
-
*/
|
|
2119
|
-
proto.event_store.cluster.ProposalRequest.prototype.clearLeaderId = function() {
|
|
2120
|
-
return this.setLeaderId(undefined);
|
|
2121
|
-
};
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
/**
|
|
2125
|
-
* Returns whether this field is set.
|
|
2126
|
-
* @return {boolean}
|
|
2127
|
-
*/
|
|
2128
|
-
proto.event_store.cluster.ProposalRequest.prototype.hasLeaderId = function() {
|
|
2129
|
-
return jspb.Message.getField(this, 3) != null;
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
/**
|
|
2134
|
-
* optional EndPoint leader_http = 4;
|
|
2135
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
2136
|
-
*/
|
|
2137
|
-
proto.event_store.cluster.ProposalRequest.prototype.getLeaderHttp = function() {
|
|
2138
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
2139
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 4));
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
/**
|
|
2144
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
2145
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2146
|
-
*/
|
|
2147
|
-
proto.event_store.cluster.ProposalRequest.prototype.setLeaderHttp = function(value) {
|
|
2148
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
2149
|
-
};
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
/**
|
|
2153
|
-
* Clears the message field making it undefined.
|
|
2154
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2155
|
-
*/
|
|
2156
|
-
proto.event_store.cluster.ProposalRequest.prototype.clearLeaderHttp = function() {
|
|
2157
|
-
return this.setLeaderHttp(undefined);
|
|
2158
|
-
};
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
/**
|
|
2162
|
-
* Returns whether this field is set.
|
|
2163
|
-
* @return {boolean}
|
|
2164
|
-
*/
|
|
2165
|
-
proto.event_store.cluster.ProposalRequest.prototype.hasLeaderHttp = function() {
|
|
2166
|
-
return jspb.Message.getField(this, 4) != null;
|
|
2167
|
-
};
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
/**
|
|
2171
|
-
* optional int32 view = 5;
|
|
2172
|
-
* @return {number}
|
|
2173
|
-
*/
|
|
2174
|
-
proto.event_store.cluster.ProposalRequest.prototype.getView = function() {
|
|
2175
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
2176
|
-
};
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* @param {number} value
|
|
2181
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2182
|
-
*/
|
|
2183
|
-
proto.event_store.cluster.ProposalRequest.prototype.setView = function(value) {
|
|
2184
|
-
return jspb.Message.setProto3IntField(this, 5, value);
|
|
2185
|
-
};
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
/**
|
|
2189
|
-
* optional int32 epoch_number = 6;
|
|
2190
|
-
* @return {number}
|
|
2191
|
-
*/
|
|
2192
|
-
proto.event_store.cluster.ProposalRequest.prototype.getEpochNumber = function() {
|
|
2193
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
2194
|
-
};
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
/**
|
|
2198
|
-
* @param {number} value
|
|
2199
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2200
|
-
*/
|
|
2201
|
-
proto.event_store.cluster.ProposalRequest.prototype.setEpochNumber = function(value) {
|
|
2202
|
-
return jspb.Message.setProto3IntField(this, 6, value);
|
|
2203
|
-
};
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
/**
|
|
2207
|
-
* optional int64 epoch_position = 7;
|
|
2208
|
-
* @return {string}
|
|
2209
|
-
*/
|
|
2210
|
-
proto.event_store.cluster.ProposalRequest.prototype.getEpochPosition = function() {
|
|
2211
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0"));
|
|
2212
|
-
};
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* @param {string} value
|
|
2217
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2218
|
-
*/
|
|
2219
|
-
proto.event_store.cluster.ProposalRequest.prototype.setEpochPosition = function(value) {
|
|
2220
|
-
return jspb.Message.setProto3StringIntField(this, 7, value);
|
|
2221
|
-
};
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
/**
|
|
2225
|
-
* optional event_store.client.UUID epoch_id = 8;
|
|
2226
|
-
* @return {?proto.event_store.client.UUID}
|
|
2227
|
-
*/
|
|
2228
|
-
proto.event_store.cluster.ProposalRequest.prototype.getEpochId = function() {
|
|
2229
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2230
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 8));
|
|
2231
|
-
};
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
/**
|
|
2235
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2236
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2237
|
-
*/
|
|
2238
|
-
proto.event_store.cluster.ProposalRequest.prototype.setEpochId = function(value) {
|
|
2239
|
-
return jspb.Message.setWrapperField(this, 8, value);
|
|
2240
|
-
};
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
/**
|
|
2244
|
-
* Clears the message field making it undefined.
|
|
2245
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2246
|
-
*/
|
|
2247
|
-
proto.event_store.cluster.ProposalRequest.prototype.clearEpochId = function() {
|
|
2248
|
-
return this.setEpochId(undefined);
|
|
2249
|
-
};
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* Returns whether this field is set.
|
|
2254
|
-
* @return {boolean}
|
|
2255
|
-
*/
|
|
2256
|
-
proto.event_store.cluster.ProposalRequest.prototype.hasEpochId = function() {
|
|
2257
|
-
return jspb.Message.getField(this, 8) != null;
|
|
2258
|
-
};
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
/**
|
|
2262
|
-
* optional event_store.client.UUID epoch_leader_instance_id = 9;
|
|
2263
|
-
* @return {?proto.event_store.client.UUID}
|
|
2264
|
-
*/
|
|
2265
|
-
proto.event_store.cluster.ProposalRequest.prototype.getEpochLeaderInstanceId = function() {
|
|
2266
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2267
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 9));
|
|
2268
|
-
};
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
/**
|
|
2272
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2273
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2274
|
-
*/
|
|
2275
|
-
proto.event_store.cluster.ProposalRequest.prototype.setEpochLeaderInstanceId = function(value) {
|
|
2276
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
|
2277
|
-
};
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* Clears the message field making it undefined.
|
|
2282
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2283
|
-
*/
|
|
2284
|
-
proto.event_store.cluster.ProposalRequest.prototype.clearEpochLeaderInstanceId = function() {
|
|
2285
|
-
return this.setEpochLeaderInstanceId(undefined);
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
/**
|
|
2290
|
-
* Returns whether this field is set.
|
|
2291
|
-
* @return {boolean}
|
|
2292
|
-
*/
|
|
2293
|
-
proto.event_store.cluster.ProposalRequest.prototype.hasEpochLeaderInstanceId = function() {
|
|
2294
|
-
return jspb.Message.getField(this, 9) != null;
|
|
2295
|
-
};
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* optional int64 last_commit_position = 10;
|
|
2300
|
-
* @return {string}
|
|
2301
|
-
*/
|
|
2302
|
-
proto.event_store.cluster.ProposalRequest.prototype.getLastCommitPosition = function() {
|
|
2303
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0"));
|
|
2304
|
-
};
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
/**
|
|
2308
|
-
* @param {string} value
|
|
2309
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2310
|
-
*/
|
|
2311
|
-
proto.event_store.cluster.ProposalRequest.prototype.setLastCommitPosition = function(value) {
|
|
2312
|
-
return jspb.Message.setProto3StringIntField(this, 10, value);
|
|
2313
|
-
};
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
/**
|
|
2317
|
-
* optional int64 writer_checkpoint = 11;
|
|
2318
|
-
* @return {string}
|
|
2319
|
-
*/
|
|
2320
|
-
proto.event_store.cluster.ProposalRequest.prototype.getWriterCheckpoint = function() {
|
|
2321
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "0"));
|
|
2322
|
-
};
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
/**
|
|
2326
|
-
* @param {string} value
|
|
2327
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2328
|
-
*/
|
|
2329
|
-
proto.event_store.cluster.ProposalRequest.prototype.setWriterCheckpoint = function(value) {
|
|
2330
|
-
return jspb.Message.setProto3StringIntField(this, 11, value);
|
|
2331
|
-
};
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
/**
|
|
2335
|
-
* optional int64 chaser_checkpoint = 12;
|
|
2336
|
-
* @return {string}
|
|
2337
|
-
*/
|
|
2338
|
-
proto.event_store.cluster.ProposalRequest.prototype.getChaserCheckpoint = function() {
|
|
2339
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "0"));
|
|
2340
|
-
};
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
/**
|
|
2344
|
-
* @param {string} value
|
|
2345
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2346
|
-
*/
|
|
2347
|
-
proto.event_store.cluster.ProposalRequest.prototype.setChaserCheckpoint = function(value) {
|
|
2348
|
-
return jspb.Message.setProto3StringIntField(this, 12, value);
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* optional int32 node_priority = 13;
|
|
2354
|
-
* @return {number}
|
|
2355
|
-
*/
|
|
2356
|
-
proto.event_store.cluster.ProposalRequest.prototype.getNodePriority = function() {
|
|
2357
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
2358
|
-
};
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
/**
|
|
2362
|
-
* @param {number} value
|
|
2363
|
-
* @return {!proto.event_store.cluster.ProposalRequest} returns this
|
|
2364
|
-
*/
|
|
2365
|
-
proto.event_store.cluster.ProposalRequest.prototype.setNodePriority = function(value) {
|
|
2366
|
-
return jspb.Message.setProto3IntField(this, 13, value);
|
|
2367
|
-
};
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2374
|
-
/**
|
|
2375
|
-
* Creates an object representation of this proto.
|
|
2376
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2377
|
-
* Optional fields that are not set will be set to undefined.
|
|
2378
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2379
|
-
* For the list of reserved names please see:
|
|
2380
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2381
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2382
|
-
* JSPB instance for transitional soy proto support:
|
|
2383
|
-
* http://goto/soy-param-migration
|
|
2384
|
-
* @return {!Object}
|
|
2385
|
-
*/
|
|
2386
|
-
proto.event_store.cluster.AcceptRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2387
|
-
return proto.event_store.cluster.AcceptRequest.toObject(opt_includeInstance, this);
|
|
2388
|
-
};
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
/**
|
|
2392
|
-
* Static version of the {@see toObject} method.
|
|
2393
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2394
|
-
* the JSPB instance for transitional soy proto support:
|
|
2395
|
-
* http://goto/soy-param-migration
|
|
2396
|
-
* @param {!proto.event_store.cluster.AcceptRequest} msg The msg instance to transform.
|
|
2397
|
-
* @return {!Object}
|
|
2398
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2399
|
-
*/
|
|
2400
|
-
proto.event_store.cluster.AcceptRequest.toObject = function(includeInstance, msg) {
|
|
2401
|
-
var f, obj = {
|
|
2402
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
2403
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
2404
|
-
leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
2405
|
-
leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
2406
|
-
view: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
2407
|
-
};
|
|
2408
|
-
|
|
2409
|
-
if (includeInstance) {
|
|
2410
|
-
obj.$jspbMessageInstance = msg;
|
|
2411
|
-
}
|
|
2412
|
-
return obj;
|
|
2413
|
-
};
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
/**
|
|
2418
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2419
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2420
|
-
* @return {!proto.event_store.cluster.AcceptRequest}
|
|
2421
|
-
*/
|
|
2422
|
-
proto.event_store.cluster.AcceptRequest.deserializeBinary = function(bytes) {
|
|
2423
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2424
|
-
var msg = new proto.event_store.cluster.AcceptRequest;
|
|
2425
|
-
return proto.event_store.cluster.AcceptRequest.deserializeBinaryFromReader(msg, reader);
|
|
2426
|
-
};
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
/**
|
|
2430
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2431
|
-
* given reader into the given message object.
|
|
2432
|
-
* @param {!proto.event_store.cluster.AcceptRequest} msg The message object to deserialize into.
|
|
2433
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2434
|
-
* @return {!proto.event_store.cluster.AcceptRequest}
|
|
2435
|
-
*/
|
|
2436
|
-
proto.event_store.cluster.AcceptRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2437
|
-
while (reader.nextField()) {
|
|
2438
|
-
if (reader.isEndGroup()) {
|
|
2439
|
-
break;
|
|
2440
|
-
}
|
|
2441
|
-
var field = reader.getFieldNumber();
|
|
2442
|
-
switch (field) {
|
|
2443
|
-
case 1:
|
|
2444
|
-
var value = new shared_pb.UUID;
|
|
2445
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
2446
|
-
msg.setServerId(value);
|
|
2447
|
-
break;
|
|
2448
|
-
case 2:
|
|
2449
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
2450
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
2451
|
-
msg.setServerHttp(value);
|
|
2452
|
-
break;
|
|
2453
|
-
case 3:
|
|
2454
|
-
var value = new shared_pb.UUID;
|
|
2455
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
2456
|
-
msg.setLeaderId(value);
|
|
2457
|
-
break;
|
|
2458
|
-
case 4:
|
|
2459
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
2460
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
2461
|
-
msg.setLeaderHttp(value);
|
|
2462
|
-
break;
|
|
2463
|
-
case 5:
|
|
2464
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
2465
|
-
msg.setView(value);
|
|
2466
|
-
break;
|
|
2467
|
-
default:
|
|
2468
|
-
reader.skipField();
|
|
2469
|
-
break;
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
return msg;
|
|
2473
|
-
};
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
/**
|
|
2477
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2478
|
-
* @return {!Uint8Array}
|
|
2479
|
-
*/
|
|
2480
|
-
proto.event_store.cluster.AcceptRequest.prototype.serializeBinary = function() {
|
|
2481
|
-
var writer = new jspb.BinaryWriter();
|
|
2482
|
-
proto.event_store.cluster.AcceptRequest.serializeBinaryToWriter(this, writer);
|
|
2483
|
-
return writer.getResultBuffer();
|
|
2484
|
-
};
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
/**
|
|
2488
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2489
|
-
* format), writing to the given BinaryWriter.
|
|
2490
|
-
* @param {!proto.event_store.cluster.AcceptRequest} message
|
|
2491
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2492
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2493
|
-
*/
|
|
2494
|
-
proto.event_store.cluster.AcceptRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2495
|
-
var f = undefined;
|
|
2496
|
-
f = message.getServerId();
|
|
2497
|
-
if (f != null) {
|
|
2498
|
-
writer.writeMessage(
|
|
2499
|
-
1,
|
|
2500
|
-
f,
|
|
2501
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
2502
|
-
);
|
|
2503
|
-
}
|
|
2504
|
-
f = message.getServerHttp();
|
|
2505
|
-
if (f != null) {
|
|
2506
|
-
writer.writeMessage(
|
|
2507
|
-
2,
|
|
2508
|
-
f,
|
|
2509
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
2510
|
-
);
|
|
2511
|
-
}
|
|
2512
|
-
f = message.getLeaderId();
|
|
2513
|
-
if (f != null) {
|
|
2514
|
-
writer.writeMessage(
|
|
2515
|
-
3,
|
|
2516
|
-
f,
|
|
2517
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
2518
|
-
);
|
|
2519
|
-
}
|
|
2520
|
-
f = message.getLeaderHttp();
|
|
2521
|
-
if (f != null) {
|
|
2522
|
-
writer.writeMessage(
|
|
2523
|
-
4,
|
|
2524
|
-
f,
|
|
2525
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
2526
|
-
);
|
|
2527
|
-
}
|
|
2528
|
-
f = message.getView();
|
|
2529
|
-
if (f !== 0) {
|
|
2530
|
-
writer.writeInt32(
|
|
2531
|
-
5,
|
|
2532
|
-
f
|
|
2533
|
-
);
|
|
2534
|
-
}
|
|
2535
|
-
};
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
/**
|
|
2539
|
-
* optional event_store.client.UUID server_id = 1;
|
|
2540
|
-
* @return {?proto.event_store.client.UUID}
|
|
2541
|
-
*/
|
|
2542
|
-
proto.event_store.cluster.AcceptRequest.prototype.getServerId = function() {
|
|
2543
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2544
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
2545
|
-
};
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
/**
|
|
2549
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2550
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2551
|
-
*/
|
|
2552
|
-
proto.event_store.cluster.AcceptRequest.prototype.setServerId = function(value) {
|
|
2553
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
/**
|
|
2558
|
-
* Clears the message field making it undefined.
|
|
2559
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2560
|
-
*/
|
|
2561
|
-
proto.event_store.cluster.AcceptRequest.prototype.clearServerId = function() {
|
|
2562
|
-
return this.setServerId(undefined);
|
|
2563
|
-
};
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
/**
|
|
2567
|
-
* Returns whether this field is set.
|
|
2568
|
-
* @return {boolean}
|
|
2569
|
-
*/
|
|
2570
|
-
proto.event_store.cluster.AcceptRequest.prototype.hasServerId = function() {
|
|
2571
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
/**
|
|
2576
|
-
* optional EndPoint server_http = 2;
|
|
2577
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
2578
|
-
*/
|
|
2579
|
-
proto.event_store.cluster.AcceptRequest.prototype.getServerHttp = function() {
|
|
2580
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
2581
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
2582
|
-
};
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
/**
|
|
2586
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
2587
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2588
|
-
*/
|
|
2589
|
-
proto.event_store.cluster.AcceptRequest.prototype.setServerHttp = function(value) {
|
|
2590
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2591
|
-
};
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
/**
|
|
2595
|
-
* Clears the message field making it undefined.
|
|
2596
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2597
|
-
*/
|
|
2598
|
-
proto.event_store.cluster.AcceptRequest.prototype.clearServerHttp = function() {
|
|
2599
|
-
return this.setServerHttp(undefined);
|
|
2600
|
-
};
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
/**
|
|
2604
|
-
* Returns whether this field is set.
|
|
2605
|
-
* @return {boolean}
|
|
2606
|
-
*/
|
|
2607
|
-
proto.event_store.cluster.AcceptRequest.prototype.hasServerHttp = function() {
|
|
2608
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2609
|
-
};
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
/**
|
|
2613
|
-
* optional event_store.client.UUID leader_id = 3;
|
|
2614
|
-
* @return {?proto.event_store.client.UUID}
|
|
2615
|
-
*/
|
|
2616
|
-
proto.event_store.cluster.AcceptRequest.prototype.getLeaderId = function() {
|
|
2617
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2618
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 3));
|
|
2619
|
-
};
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
/**
|
|
2623
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2624
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2625
|
-
*/
|
|
2626
|
-
proto.event_store.cluster.AcceptRequest.prototype.setLeaderId = function(value) {
|
|
2627
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
2628
|
-
};
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
/**
|
|
2632
|
-
* Clears the message field making it undefined.
|
|
2633
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2634
|
-
*/
|
|
2635
|
-
proto.event_store.cluster.AcceptRequest.prototype.clearLeaderId = function() {
|
|
2636
|
-
return this.setLeaderId(undefined);
|
|
2637
|
-
};
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
/**
|
|
2641
|
-
* Returns whether this field is set.
|
|
2642
|
-
* @return {boolean}
|
|
2643
|
-
*/
|
|
2644
|
-
proto.event_store.cluster.AcceptRequest.prototype.hasLeaderId = function() {
|
|
2645
|
-
return jspb.Message.getField(this, 3) != null;
|
|
2646
|
-
};
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
/**
|
|
2650
|
-
* optional EndPoint leader_http = 4;
|
|
2651
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
2652
|
-
*/
|
|
2653
|
-
proto.event_store.cluster.AcceptRequest.prototype.getLeaderHttp = function() {
|
|
2654
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
2655
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 4));
|
|
2656
|
-
};
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
/**
|
|
2660
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
2661
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2662
|
-
*/
|
|
2663
|
-
proto.event_store.cluster.AcceptRequest.prototype.setLeaderHttp = function(value) {
|
|
2664
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
2665
|
-
};
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
/**
|
|
2669
|
-
* Clears the message field making it undefined.
|
|
2670
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2671
|
-
*/
|
|
2672
|
-
proto.event_store.cluster.AcceptRequest.prototype.clearLeaderHttp = function() {
|
|
2673
|
-
return this.setLeaderHttp(undefined);
|
|
2674
|
-
};
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
/**
|
|
2678
|
-
* Returns whether this field is set.
|
|
2679
|
-
* @return {boolean}
|
|
2680
|
-
*/
|
|
2681
|
-
proto.event_store.cluster.AcceptRequest.prototype.hasLeaderHttp = function() {
|
|
2682
|
-
return jspb.Message.getField(this, 4) != null;
|
|
2683
|
-
};
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
/**
|
|
2687
|
-
* optional int32 view = 5;
|
|
2688
|
-
* @return {number}
|
|
2689
|
-
*/
|
|
2690
|
-
proto.event_store.cluster.AcceptRequest.prototype.getView = function() {
|
|
2691
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
2692
|
-
};
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
/**
|
|
2696
|
-
* @param {number} value
|
|
2697
|
-
* @return {!proto.event_store.cluster.AcceptRequest} returns this
|
|
2698
|
-
*/
|
|
2699
|
-
proto.event_store.cluster.AcceptRequest.prototype.setView = function(value) {
|
|
2700
|
-
return jspb.Message.setProto3IntField(this, 5, value);
|
|
2701
|
-
};
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2708
|
-
/**
|
|
2709
|
-
* Creates an object representation of this proto.
|
|
2710
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2711
|
-
* Optional fields that are not set will be set to undefined.
|
|
2712
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2713
|
-
* For the list of reserved names please see:
|
|
2714
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2715
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2716
|
-
* JSPB instance for transitional soy proto support:
|
|
2717
|
-
* http://goto/soy-param-migration
|
|
2718
|
-
* @return {!Object}
|
|
2719
|
-
*/
|
|
2720
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2721
|
-
return proto.event_store.cluster.LeaderIsResigningRequest.toObject(opt_includeInstance, this);
|
|
2722
|
-
};
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
/**
|
|
2726
|
-
* Static version of the {@see toObject} method.
|
|
2727
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2728
|
-
* the JSPB instance for transitional soy proto support:
|
|
2729
|
-
* http://goto/soy-param-migration
|
|
2730
|
-
* @param {!proto.event_store.cluster.LeaderIsResigningRequest} msg The msg instance to transform.
|
|
2731
|
-
* @return {!Object}
|
|
2732
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2733
|
-
*/
|
|
2734
|
-
proto.event_store.cluster.LeaderIsResigningRequest.toObject = function(includeInstance, msg) {
|
|
2735
|
-
var f, obj = {
|
|
2736
|
-
leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
2737
|
-
leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f)
|
|
2738
|
-
};
|
|
2739
|
-
|
|
2740
|
-
if (includeInstance) {
|
|
2741
|
-
obj.$jspbMessageInstance = msg;
|
|
2742
|
-
}
|
|
2743
|
-
return obj;
|
|
2744
|
-
};
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
/**
|
|
2749
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2750
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2751
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningRequest}
|
|
2752
|
-
*/
|
|
2753
|
-
proto.event_store.cluster.LeaderIsResigningRequest.deserializeBinary = function(bytes) {
|
|
2754
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2755
|
-
var msg = new proto.event_store.cluster.LeaderIsResigningRequest;
|
|
2756
|
-
return proto.event_store.cluster.LeaderIsResigningRequest.deserializeBinaryFromReader(msg, reader);
|
|
2757
|
-
};
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
/**
|
|
2761
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2762
|
-
* given reader into the given message object.
|
|
2763
|
-
* @param {!proto.event_store.cluster.LeaderIsResigningRequest} msg The message object to deserialize into.
|
|
2764
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2765
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningRequest}
|
|
2766
|
-
*/
|
|
2767
|
-
proto.event_store.cluster.LeaderIsResigningRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2768
|
-
while (reader.nextField()) {
|
|
2769
|
-
if (reader.isEndGroup()) {
|
|
2770
|
-
break;
|
|
2771
|
-
}
|
|
2772
|
-
var field = reader.getFieldNumber();
|
|
2773
|
-
switch (field) {
|
|
2774
|
-
case 1:
|
|
2775
|
-
var value = new shared_pb.UUID;
|
|
2776
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
2777
|
-
msg.setLeaderId(value);
|
|
2778
|
-
break;
|
|
2779
|
-
case 2:
|
|
2780
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
2781
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
2782
|
-
msg.setLeaderHttp(value);
|
|
2783
|
-
break;
|
|
2784
|
-
default:
|
|
2785
|
-
reader.skipField();
|
|
2786
|
-
break;
|
|
2787
|
-
}
|
|
2788
|
-
}
|
|
2789
|
-
return msg;
|
|
2790
|
-
};
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
/**
|
|
2794
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2795
|
-
* @return {!Uint8Array}
|
|
2796
|
-
*/
|
|
2797
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.serializeBinary = function() {
|
|
2798
|
-
var writer = new jspb.BinaryWriter();
|
|
2799
|
-
proto.event_store.cluster.LeaderIsResigningRequest.serializeBinaryToWriter(this, writer);
|
|
2800
|
-
return writer.getResultBuffer();
|
|
2801
|
-
};
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
/**
|
|
2805
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2806
|
-
* format), writing to the given BinaryWriter.
|
|
2807
|
-
* @param {!proto.event_store.cluster.LeaderIsResigningRequest} message
|
|
2808
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2809
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2810
|
-
*/
|
|
2811
|
-
proto.event_store.cluster.LeaderIsResigningRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2812
|
-
var f = undefined;
|
|
2813
|
-
f = message.getLeaderId();
|
|
2814
|
-
if (f != null) {
|
|
2815
|
-
writer.writeMessage(
|
|
2816
|
-
1,
|
|
2817
|
-
f,
|
|
2818
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
2819
|
-
);
|
|
2820
|
-
}
|
|
2821
|
-
f = message.getLeaderHttp();
|
|
2822
|
-
if (f != null) {
|
|
2823
|
-
writer.writeMessage(
|
|
2824
|
-
2,
|
|
2825
|
-
f,
|
|
2826
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
2827
|
-
);
|
|
2828
|
-
}
|
|
2829
|
-
};
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
/**
|
|
2833
|
-
* optional event_store.client.UUID leader_id = 1;
|
|
2834
|
-
* @return {?proto.event_store.client.UUID}
|
|
2835
|
-
*/
|
|
2836
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.getLeaderId = function() {
|
|
2837
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
2838
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
2839
|
-
};
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
/**
|
|
2843
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
2844
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this
|
|
2845
|
-
*/
|
|
2846
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.setLeaderId = function(value) {
|
|
2847
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2848
|
-
};
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
/**
|
|
2852
|
-
* Clears the message field making it undefined.
|
|
2853
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this
|
|
2854
|
-
*/
|
|
2855
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.clearLeaderId = function() {
|
|
2856
|
-
return this.setLeaderId(undefined);
|
|
2857
|
-
};
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
/**
|
|
2861
|
-
* Returns whether this field is set.
|
|
2862
|
-
* @return {boolean}
|
|
2863
|
-
*/
|
|
2864
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.hasLeaderId = function() {
|
|
2865
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2866
|
-
};
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
/**
|
|
2870
|
-
* optional EndPoint leader_http = 2;
|
|
2871
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
2872
|
-
*/
|
|
2873
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.getLeaderHttp = function() {
|
|
2874
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
2875
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
2876
|
-
};
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
/**
|
|
2880
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
2881
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this
|
|
2882
|
-
*/
|
|
2883
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.setLeaderHttp = function(value) {
|
|
2884
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2885
|
-
};
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
/**
|
|
2889
|
-
* Clears the message field making it undefined.
|
|
2890
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this
|
|
2891
|
-
*/
|
|
2892
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.clearLeaderHttp = function() {
|
|
2893
|
-
return this.setLeaderHttp(undefined);
|
|
2894
|
-
};
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
/**
|
|
2898
|
-
* Returns whether this field is set.
|
|
2899
|
-
* @return {boolean}
|
|
2900
|
-
*/
|
|
2901
|
-
proto.event_store.cluster.LeaderIsResigningRequest.prototype.hasLeaderHttp = function() {
|
|
2902
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2903
|
-
};
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2910
|
-
/**
|
|
2911
|
-
* Creates an object representation of this proto.
|
|
2912
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2913
|
-
* Optional fields that are not set will be set to undefined.
|
|
2914
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2915
|
-
* For the list of reserved names please see:
|
|
2916
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2917
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2918
|
-
* JSPB instance for transitional soy proto support:
|
|
2919
|
-
* http://goto/soy-param-migration
|
|
2920
|
-
* @return {!Object}
|
|
2921
|
-
*/
|
|
2922
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2923
|
-
return proto.event_store.cluster.LeaderIsResigningOkRequest.toObject(opt_includeInstance, this);
|
|
2924
|
-
};
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
/**
|
|
2928
|
-
* Static version of the {@see toObject} method.
|
|
2929
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2930
|
-
* the JSPB instance for transitional soy proto support:
|
|
2931
|
-
* http://goto/soy-param-migration
|
|
2932
|
-
* @param {!proto.event_store.cluster.LeaderIsResigningOkRequest} msg The msg instance to transform.
|
|
2933
|
-
* @return {!Object}
|
|
2934
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2935
|
-
*/
|
|
2936
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.toObject = function(includeInstance, msg) {
|
|
2937
|
-
var f, obj = {
|
|
2938
|
-
leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
2939
|
-
leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
2940
|
-
serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
2941
|
-
serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f)
|
|
2942
|
-
};
|
|
2943
|
-
|
|
2944
|
-
if (includeInstance) {
|
|
2945
|
-
obj.$jspbMessageInstance = msg;
|
|
2946
|
-
}
|
|
2947
|
-
return obj;
|
|
2948
|
-
};
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
/**
|
|
2953
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2954
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2955
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest}
|
|
2956
|
-
*/
|
|
2957
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.deserializeBinary = function(bytes) {
|
|
2958
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2959
|
-
var msg = new proto.event_store.cluster.LeaderIsResigningOkRequest;
|
|
2960
|
-
return proto.event_store.cluster.LeaderIsResigningOkRequest.deserializeBinaryFromReader(msg, reader);
|
|
2961
|
-
};
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
/**
|
|
2965
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2966
|
-
* given reader into the given message object.
|
|
2967
|
-
* @param {!proto.event_store.cluster.LeaderIsResigningOkRequest} msg The message object to deserialize into.
|
|
2968
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2969
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest}
|
|
2970
|
-
*/
|
|
2971
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2972
|
-
while (reader.nextField()) {
|
|
2973
|
-
if (reader.isEndGroup()) {
|
|
2974
|
-
break;
|
|
2975
|
-
}
|
|
2976
|
-
var field = reader.getFieldNumber();
|
|
2977
|
-
switch (field) {
|
|
2978
|
-
case 1:
|
|
2979
|
-
var value = new shared_pb.UUID;
|
|
2980
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
2981
|
-
msg.setLeaderId(value);
|
|
2982
|
-
break;
|
|
2983
|
-
case 2:
|
|
2984
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
2985
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
2986
|
-
msg.setLeaderHttp(value);
|
|
2987
|
-
break;
|
|
2988
|
-
case 3:
|
|
2989
|
-
var value = new shared_pb.UUID;
|
|
2990
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
2991
|
-
msg.setServerId(value);
|
|
2992
|
-
break;
|
|
2993
|
-
case 4:
|
|
2994
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
2995
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
2996
|
-
msg.setServerHttp(value);
|
|
2997
|
-
break;
|
|
2998
|
-
default:
|
|
2999
|
-
reader.skipField();
|
|
3000
|
-
break;
|
|
3001
|
-
}
|
|
3002
|
-
}
|
|
3003
|
-
return msg;
|
|
3004
|
-
};
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
/**
|
|
3008
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3009
|
-
* @return {!Uint8Array}
|
|
3010
|
-
*/
|
|
3011
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.serializeBinary = function() {
|
|
3012
|
-
var writer = new jspb.BinaryWriter();
|
|
3013
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.serializeBinaryToWriter(this, writer);
|
|
3014
|
-
return writer.getResultBuffer();
|
|
3015
|
-
};
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
/**
|
|
3019
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3020
|
-
* format), writing to the given BinaryWriter.
|
|
3021
|
-
* @param {!proto.event_store.cluster.LeaderIsResigningOkRequest} message
|
|
3022
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3023
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3024
|
-
*/
|
|
3025
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3026
|
-
var f = undefined;
|
|
3027
|
-
f = message.getLeaderId();
|
|
3028
|
-
if (f != null) {
|
|
3029
|
-
writer.writeMessage(
|
|
3030
|
-
1,
|
|
3031
|
-
f,
|
|
3032
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
3033
|
-
);
|
|
3034
|
-
}
|
|
3035
|
-
f = message.getLeaderHttp();
|
|
3036
|
-
if (f != null) {
|
|
3037
|
-
writer.writeMessage(
|
|
3038
|
-
2,
|
|
3039
|
-
f,
|
|
3040
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
3041
|
-
);
|
|
3042
|
-
}
|
|
3043
|
-
f = message.getServerId();
|
|
3044
|
-
if (f != null) {
|
|
3045
|
-
writer.writeMessage(
|
|
3046
|
-
3,
|
|
3047
|
-
f,
|
|
3048
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
3049
|
-
);
|
|
3050
|
-
}
|
|
3051
|
-
f = message.getServerHttp();
|
|
3052
|
-
if (f != null) {
|
|
3053
|
-
writer.writeMessage(
|
|
3054
|
-
4,
|
|
3055
|
-
f,
|
|
3056
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
3057
|
-
);
|
|
3058
|
-
}
|
|
3059
|
-
};
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
/**
|
|
3063
|
-
* optional event_store.client.UUID leader_id = 1;
|
|
3064
|
-
* @return {?proto.event_store.client.UUID}
|
|
3065
|
-
*/
|
|
3066
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getLeaderId = function() {
|
|
3067
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
3068
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
3069
|
-
};
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
/**
|
|
3073
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
3074
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3075
|
-
*/
|
|
3076
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setLeaderId = function(value) {
|
|
3077
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3078
|
-
};
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
/**
|
|
3082
|
-
* Clears the message field making it undefined.
|
|
3083
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3084
|
-
*/
|
|
3085
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearLeaderId = function() {
|
|
3086
|
-
return this.setLeaderId(undefined);
|
|
3087
|
-
};
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
/**
|
|
3091
|
-
* Returns whether this field is set.
|
|
3092
|
-
* @return {boolean}
|
|
3093
|
-
*/
|
|
3094
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasLeaderId = function() {
|
|
3095
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3096
|
-
};
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
/**
|
|
3100
|
-
* optional EndPoint leader_http = 2;
|
|
3101
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
3102
|
-
*/
|
|
3103
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getLeaderHttp = function() {
|
|
3104
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
3105
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2));
|
|
3106
|
-
};
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
/**
|
|
3110
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
3111
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3112
|
-
*/
|
|
3113
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setLeaderHttp = function(value) {
|
|
3114
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3115
|
-
};
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
/**
|
|
3119
|
-
* Clears the message field making it undefined.
|
|
3120
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3121
|
-
*/
|
|
3122
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearLeaderHttp = function() {
|
|
3123
|
-
return this.setLeaderHttp(undefined);
|
|
3124
|
-
};
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
/**
|
|
3128
|
-
* Returns whether this field is set.
|
|
3129
|
-
* @return {boolean}
|
|
3130
|
-
*/
|
|
3131
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasLeaderHttp = function() {
|
|
3132
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3133
|
-
};
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
/**
|
|
3137
|
-
* optional event_store.client.UUID server_id = 3;
|
|
3138
|
-
* @return {?proto.event_store.client.UUID}
|
|
3139
|
-
*/
|
|
3140
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getServerId = function() {
|
|
3141
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
3142
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 3));
|
|
3143
|
-
};
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
/**
|
|
3147
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
3148
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3149
|
-
*/
|
|
3150
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setServerId = function(value) {
|
|
3151
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
3152
|
-
};
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
/**
|
|
3156
|
-
* Clears the message field making it undefined.
|
|
3157
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3158
|
-
*/
|
|
3159
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearServerId = function() {
|
|
3160
|
-
return this.setServerId(undefined);
|
|
3161
|
-
};
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
/**
|
|
3165
|
-
* Returns whether this field is set.
|
|
3166
|
-
* @return {boolean}
|
|
3167
|
-
*/
|
|
3168
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasServerId = function() {
|
|
3169
|
-
return jspb.Message.getField(this, 3) != null;
|
|
3170
|
-
};
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
/**
|
|
3174
|
-
* optional EndPoint server_http = 4;
|
|
3175
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
3176
|
-
*/
|
|
3177
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getServerHttp = function() {
|
|
3178
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
3179
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 4));
|
|
3180
|
-
};
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
/**
|
|
3184
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
3185
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3186
|
-
*/
|
|
3187
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setServerHttp = function(value) {
|
|
3188
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
3189
|
-
};
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
/**
|
|
3193
|
-
* Clears the message field making it undefined.
|
|
3194
|
-
* @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this
|
|
3195
|
-
*/
|
|
3196
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearServerHttp = function() {
|
|
3197
|
-
return this.setServerHttp(undefined);
|
|
3198
|
-
};
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
/**
|
|
3202
|
-
* Returns whether this field is set.
|
|
3203
|
-
* @return {boolean}
|
|
3204
|
-
*/
|
|
3205
|
-
proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasServerHttp = function() {
|
|
3206
|
-
return jspb.Message.getField(this, 4) != null;
|
|
3207
|
-
};
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
/**
|
|
3212
|
-
* List of repeated fields within this message type.
|
|
3213
|
-
* @private {!Array<number>}
|
|
3214
|
-
* @const
|
|
3215
|
-
*/
|
|
3216
|
-
proto.event_store.cluster.ClusterInfo.repeatedFields_ = [1];
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3221
|
-
/**
|
|
3222
|
-
* Creates an object representation of this proto.
|
|
3223
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3224
|
-
* Optional fields that are not set will be set to undefined.
|
|
3225
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3226
|
-
* For the list of reserved names please see:
|
|
3227
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3228
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3229
|
-
* JSPB instance for transitional soy proto support:
|
|
3230
|
-
* http://goto/soy-param-migration
|
|
3231
|
-
* @return {!Object}
|
|
3232
|
-
*/
|
|
3233
|
-
proto.event_store.cluster.ClusterInfo.prototype.toObject = function(opt_includeInstance) {
|
|
3234
|
-
return proto.event_store.cluster.ClusterInfo.toObject(opt_includeInstance, this);
|
|
3235
|
-
};
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
/**
|
|
3239
|
-
* Static version of the {@see toObject} method.
|
|
3240
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3241
|
-
* the JSPB instance for transitional soy proto support:
|
|
3242
|
-
* http://goto/soy-param-migration
|
|
3243
|
-
* @param {!proto.event_store.cluster.ClusterInfo} msg The msg instance to transform.
|
|
3244
|
-
* @return {!Object}
|
|
3245
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3246
|
-
*/
|
|
3247
|
-
proto.event_store.cluster.ClusterInfo.toObject = function(includeInstance, msg) {
|
|
3248
|
-
var f, obj = {
|
|
3249
|
-
membersList: jspb.Message.toObjectList(msg.getMembersList(),
|
|
3250
|
-
proto.event_store.cluster.MemberInfo.toObject, includeInstance)
|
|
3251
|
-
};
|
|
3252
|
-
|
|
3253
|
-
if (includeInstance) {
|
|
3254
|
-
obj.$jspbMessageInstance = msg;
|
|
3255
|
-
}
|
|
3256
|
-
return obj;
|
|
3257
|
-
};
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
/**
|
|
3262
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3263
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3264
|
-
* @return {!proto.event_store.cluster.ClusterInfo}
|
|
3265
|
-
*/
|
|
3266
|
-
proto.event_store.cluster.ClusterInfo.deserializeBinary = function(bytes) {
|
|
3267
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3268
|
-
var msg = new proto.event_store.cluster.ClusterInfo;
|
|
3269
|
-
return proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader(msg, reader);
|
|
3270
|
-
};
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
/**
|
|
3274
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3275
|
-
* given reader into the given message object.
|
|
3276
|
-
* @param {!proto.event_store.cluster.ClusterInfo} msg The message object to deserialize into.
|
|
3277
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3278
|
-
* @return {!proto.event_store.cluster.ClusterInfo}
|
|
3279
|
-
*/
|
|
3280
|
-
proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
3281
|
-
while (reader.nextField()) {
|
|
3282
|
-
if (reader.isEndGroup()) {
|
|
3283
|
-
break;
|
|
3284
|
-
}
|
|
3285
|
-
var field = reader.getFieldNumber();
|
|
3286
|
-
switch (field) {
|
|
3287
|
-
case 1:
|
|
3288
|
-
var value = new proto.event_store.cluster.MemberInfo;
|
|
3289
|
-
reader.readMessage(value,proto.event_store.cluster.MemberInfo.deserializeBinaryFromReader);
|
|
3290
|
-
msg.addMembers(value);
|
|
3291
|
-
break;
|
|
3292
|
-
default:
|
|
3293
|
-
reader.skipField();
|
|
3294
|
-
break;
|
|
3295
|
-
}
|
|
3296
|
-
}
|
|
3297
|
-
return msg;
|
|
3298
|
-
};
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
/**
|
|
3302
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3303
|
-
* @return {!Uint8Array}
|
|
3304
|
-
*/
|
|
3305
|
-
proto.event_store.cluster.ClusterInfo.prototype.serializeBinary = function() {
|
|
3306
|
-
var writer = new jspb.BinaryWriter();
|
|
3307
|
-
proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter(this, writer);
|
|
3308
|
-
return writer.getResultBuffer();
|
|
3309
|
-
};
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
/**
|
|
3313
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3314
|
-
* format), writing to the given BinaryWriter.
|
|
3315
|
-
* @param {!proto.event_store.cluster.ClusterInfo} message
|
|
3316
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3317
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3318
|
-
*/
|
|
3319
|
-
proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter = function(message, writer) {
|
|
3320
|
-
var f = undefined;
|
|
3321
|
-
f = message.getMembersList();
|
|
3322
|
-
if (f.length > 0) {
|
|
3323
|
-
writer.writeRepeatedMessage(
|
|
3324
|
-
1,
|
|
3325
|
-
f,
|
|
3326
|
-
proto.event_store.cluster.MemberInfo.serializeBinaryToWriter
|
|
3327
|
-
);
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
/**
|
|
3333
|
-
* repeated MemberInfo members = 1;
|
|
3334
|
-
* @return {!Array<!proto.event_store.cluster.MemberInfo>}
|
|
3335
|
-
*/
|
|
3336
|
-
proto.event_store.cluster.ClusterInfo.prototype.getMembersList = function() {
|
|
3337
|
-
return /** @type{!Array<!proto.event_store.cluster.MemberInfo>} */ (
|
|
3338
|
-
jspb.Message.getRepeatedWrapperField(this, proto.event_store.cluster.MemberInfo, 1));
|
|
3339
|
-
};
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
/**
|
|
3343
|
-
* @param {!Array<!proto.event_store.cluster.MemberInfo>} value
|
|
3344
|
-
* @return {!proto.event_store.cluster.ClusterInfo} returns this
|
|
3345
|
-
*/
|
|
3346
|
-
proto.event_store.cluster.ClusterInfo.prototype.setMembersList = function(value) {
|
|
3347
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3348
|
-
};
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
/**
|
|
3352
|
-
* @param {!proto.event_store.cluster.MemberInfo=} opt_value
|
|
3353
|
-
* @param {number=} opt_index
|
|
3354
|
-
* @return {!proto.event_store.cluster.MemberInfo}
|
|
3355
|
-
*/
|
|
3356
|
-
proto.event_store.cluster.ClusterInfo.prototype.addMembers = function(opt_value, opt_index) {
|
|
3357
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.event_store.cluster.MemberInfo, opt_index);
|
|
3358
|
-
};
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
/**
|
|
3362
|
-
* Clears the list making it empty but non-null.
|
|
3363
|
-
* @return {!proto.event_store.cluster.ClusterInfo} returns this
|
|
3364
|
-
*/
|
|
3365
|
-
proto.event_store.cluster.ClusterInfo.prototype.clearMembersList = function() {
|
|
3366
|
-
return this.setMembersList([]);
|
|
3367
|
-
};
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3374
|
-
/**
|
|
3375
|
-
* Creates an object representation of this proto.
|
|
3376
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3377
|
-
* Optional fields that are not set will be set to undefined.
|
|
3378
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3379
|
-
* For the list of reserved names please see:
|
|
3380
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3381
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3382
|
-
* JSPB instance for transitional soy proto support:
|
|
3383
|
-
* http://goto/soy-param-migration
|
|
3384
|
-
* @return {!Object}
|
|
3385
|
-
*/
|
|
3386
|
-
proto.event_store.cluster.EndPoint.prototype.toObject = function(opt_includeInstance) {
|
|
3387
|
-
return proto.event_store.cluster.EndPoint.toObject(opt_includeInstance, this);
|
|
3388
|
-
};
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
/**
|
|
3392
|
-
* Static version of the {@see toObject} method.
|
|
3393
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3394
|
-
* the JSPB instance for transitional soy proto support:
|
|
3395
|
-
* http://goto/soy-param-migration
|
|
3396
|
-
* @param {!proto.event_store.cluster.EndPoint} msg The msg instance to transform.
|
|
3397
|
-
* @return {!Object}
|
|
3398
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3399
|
-
*/
|
|
3400
|
-
proto.event_store.cluster.EndPoint.toObject = function(includeInstance, msg) {
|
|
3401
|
-
var f, obj = {
|
|
3402
|
-
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3403
|
-
port: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3404
|
-
};
|
|
3405
|
-
|
|
3406
|
-
if (includeInstance) {
|
|
3407
|
-
obj.$jspbMessageInstance = msg;
|
|
3408
|
-
}
|
|
3409
|
-
return obj;
|
|
3410
|
-
};
|
|
3411
|
-
}
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
/**
|
|
3415
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3416
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3417
|
-
* @return {!proto.event_store.cluster.EndPoint}
|
|
3418
|
-
*/
|
|
3419
|
-
proto.event_store.cluster.EndPoint.deserializeBinary = function(bytes) {
|
|
3420
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3421
|
-
var msg = new proto.event_store.cluster.EndPoint;
|
|
3422
|
-
return proto.event_store.cluster.EndPoint.deserializeBinaryFromReader(msg, reader);
|
|
3423
|
-
};
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
/**
|
|
3427
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3428
|
-
* given reader into the given message object.
|
|
3429
|
-
* @param {!proto.event_store.cluster.EndPoint} msg The message object to deserialize into.
|
|
3430
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3431
|
-
* @return {!proto.event_store.cluster.EndPoint}
|
|
3432
|
-
*/
|
|
3433
|
-
proto.event_store.cluster.EndPoint.deserializeBinaryFromReader = function(msg, reader) {
|
|
3434
|
-
while (reader.nextField()) {
|
|
3435
|
-
if (reader.isEndGroup()) {
|
|
3436
|
-
break;
|
|
3437
|
-
}
|
|
3438
|
-
var field = reader.getFieldNumber();
|
|
3439
|
-
switch (field) {
|
|
3440
|
-
case 1:
|
|
3441
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3442
|
-
msg.setAddress(value);
|
|
3443
|
-
break;
|
|
3444
|
-
case 2:
|
|
3445
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
3446
|
-
msg.setPort(value);
|
|
3447
|
-
break;
|
|
3448
|
-
default:
|
|
3449
|
-
reader.skipField();
|
|
3450
|
-
break;
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
return msg;
|
|
3454
|
-
};
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
/**
|
|
3458
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3459
|
-
* @return {!Uint8Array}
|
|
3460
|
-
*/
|
|
3461
|
-
proto.event_store.cluster.EndPoint.prototype.serializeBinary = function() {
|
|
3462
|
-
var writer = new jspb.BinaryWriter();
|
|
3463
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter(this, writer);
|
|
3464
|
-
return writer.getResultBuffer();
|
|
3465
|
-
};
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
/**
|
|
3469
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3470
|
-
* format), writing to the given BinaryWriter.
|
|
3471
|
-
* @param {!proto.event_store.cluster.EndPoint} message
|
|
3472
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3473
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3474
|
-
*/
|
|
3475
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter = function(message, writer) {
|
|
3476
|
-
var f = undefined;
|
|
3477
|
-
f = message.getAddress();
|
|
3478
|
-
if (f.length > 0) {
|
|
3479
|
-
writer.writeString(
|
|
3480
|
-
1,
|
|
3481
|
-
f
|
|
3482
|
-
);
|
|
3483
|
-
}
|
|
3484
|
-
f = message.getPort();
|
|
3485
|
-
if (f !== 0) {
|
|
3486
|
-
writer.writeUint32(
|
|
3487
|
-
2,
|
|
3488
|
-
f
|
|
3489
|
-
);
|
|
3490
|
-
}
|
|
3491
|
-
};
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
/**
|
|
3495
|
-
* optional string address = 1;
|
|
3496
|
-
* @return {string}
|
|
3497
|
-
*/
|
|
3498
|
-
proto.event_store.cluster.EndPoint.prototype.getAddress = function() {
|
|
3499
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3500
|
-
};
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
/**
|
|
3504
|
-
* @param {string} value
|
|
3505
|
-
* @return {!proto.event_store.cluster.EndPoint} returns this
|
|
3506
|
-
*/
|
|
3507
|
-
proto.event_store.cluster.EndPoint.prototype.setAddress = function(value) {
|
|
3508
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3509
|
-
};
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
/**
|
|
3513
|
-
* optional uint32 port = 2;
|
|
3514
|
-
* @return {number}
|
|
3515
|
-
*/
|
|
3516
|
-
proto.event_store.cluster.EndPoint.prototype.getPort = function() {
|
|
3517
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3518
|
-
};
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
/**
|
|
3522
|
-
* @param {number} value
|
|
3523
|
-
* @return {!proto.event_store.cluster.EndPoint} returns this
|
|
3524
|
-
*/
|
|
3525
|
-
proto.event_store.cluster.EndPoint.prototype.setPort = function(value) {
|
|
3526
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3527
|
-
};
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3534
|
-
/**
|
|
3535
|
-
* Creates an object representation of this proto.
|
|
3536
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3537
|
-
* Optional fields that are not set will be set to undefined.
|
|
3538
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3539
|
-
* For the list of reserved names please see:
|
|
3540
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3541
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3542
|
-
* JSPB instance for transitional soy proto support:
|
|
3543
|
-
* http://goto/soy-param-migration
|
|
3544
|
-
* @return {!Object}
|
|
3545
|
-
*/
|
|
3546
|
-
proto.event_store.cluster.MemberInfo.prototype.toObject = function(opt_includeInstance) {
|
|
3547
|
-
return proto.event_store.cluster.MemberInfo.toObject(opt_includeInstance, this);
|
|
3548
|
-
};
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
/**
|
|
3552
|
-
* Static version of the {@see toObject} method.
|
|
3553
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3554
|
-
* the JSPB instance for transitional soy proto support:
|
|
3555
|
-
* http://goto/soy-param-migration
|
|
3556
|
-
* @param {!proto.event_store.cluster.MemberInfo} msg The msg instance to transform.
|
|
3557
|
-
* @return {!Object}
|
|
3558
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3559
|
-
*/
|
|
3560
|
-
proto.event_store.cluster.MemberInfo.toObject = function(includeInstance, msg) {
|
|
3561
|
-
var f, obj = {
|
|
3562
|
-
instanceId: (f = msg.getInstanceId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
3563
|
-
timeStamp: jspb.Message.getFieldWithDefault(msg, 2, "0"),
|
|
3564
|
-
state: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3565
|
-
isAlive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
3566
|
-
httpEndPoint: (f = msg.getHttpEndPoint()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
3567
|
-
internalTcp: (f = msg.getInternalTcp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
3568
|
-
externalTcp: (f = msg.getExternalTcp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f),
|
|
3569
|
-
internalTcpUsesTls: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
|
3570
|
-
externalTcpUsesTls: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
3571
|
-
lastCommitPosition: jspb.Message.getFieldWithDefault(msg, 10, "0"),
|
|
3572
|
-
writerCheckpoint: jspb.Message.getFieldWithDefault(msg, 11, "0"),
|
|
3573
|
-
chaserCheckpoint: jspb.Message.getFieldWithDefault(msg, 12, "0"),
|
|
3574
|
-
epochPosition: jspb.Message.getFieldWithDefault(msg, 13, "0"),
|
|
3575
|
-
epochNumber: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
3576
|
-
epochId: (f = msg.getEpochId()) && shared_pb.UUID.toObject(includeInstance, f),
|
|
3577
|
-
nodePriority: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
3578
|
-
isReadOnlyReplica: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
3579
|
-
advertiseHostToClientAs: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
3580
|
-
advertiseHttpPortToClientAs: jspb.Message.getFieldWithDefault(msg, 19, 0),
|
|
3581
|
-
advertiseTcpPortToClientAs: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
if (includeInstance) {
|
|
3585
|
-
obj.$jspbMessageInstance = msg;
|
|
3586
|
-
}
|
|
3587
|
-
return obj;
|
|
3588
|
-
};
|
|
3589
|
-
}
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
/**
|
|
3593
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3594
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3595
|
-
* @return {!proto.event_store.cluster.MemberInfo}
|
|
3596
|
-
*/
|
|
3597
|
-
proto.event_store.cluster.MemberInfo.deserializeBinary = function(bytes) {
|
|
3598
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3599
|
-
var msg = new proto.event_store.cluster.MemberInfo;
|
|
3600
|
-
return proto.event_store.cluster.MemberInfo.deserializeBinaryFromReader(msg, reader);
|
|
3601
|
-
};
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
/**
|
|
3605
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3606
|
-
* given reader into the given message object.
|
|
3607
|
-
* @param {!proto.event_store.cluster.MemberInfo} msg The message object to deserialize into.
|
|
3608
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3609
|
-
* @return {!proto.event_store.cluster.MemberInfo}
|
|
3610
|
-
*/
|
|
3611
|
-
proto.event_store.cluster.MemberInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
3612
|
-
while (reader.nextField()) {
|
|
3613
|
-
if (reader.isEndGroup()) {
|
|
3614
|
-
break;
|
|
3615
|
-
}
|
|
3616
|
-
var field = reader.getFieldNumber();
|
|
3617
|
-
switch (field) {
|
|
3618
|
-
case 1:
|
|
3619
|
-
var value = new shared_pb.UUID;
|
|
3620
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
3621
|
-
msg.setInstanceId(value);
|
|
3622
|
-
break;
|
|
3623
|
-
case 2:
|
|
3624
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
3625
|
-
msg.setTimeStamp(value);
|
|
3626
|
-
break;
|
|
3627
|
-
case 3:
|
|
3628
|
-
var value = /** @type {!proto.event_store.cluster.MemberInfo.VNodeState} */ (reader.readEnum());
|
|
3629
|
-
msg.setState(value);
|
|
3630
|
-
break;
|
|
3631
|
-
case 4:
|
|
3632
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3633
|
-
msg.setIsAlive(value);
|
|
3634
|
-
break;
|
|
3635
|
-
case 5:
|
|
3636
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
3637
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
3638
|
-
msg.setHttpEndPoint(value);
|
|
3639
|
-
break;
|
|
3640
|
-
case 6:
|
|
3641
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
3642
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
3643
|
-
msg.setInternalTcp(value);
|
|
3644
|
-
break;
|
|
3645
|
-
case 7:
|
|
3646
|
-
var value = new proto.event_store.cluster.EndPoint;
|
|
3647
|
-
reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader);
|
|
3648
|
-
msg.setExternalTcp(value);
|
|
3649
|
-
break;
|
|
3650
|
-
case 8:
|
|
3651
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3652
|
-
msg.setInternalTcpUsesTls(value);
|
|
3653
|
-
break;
|
|
3654
|
-
case 9:
|
|
3655
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3656
|
-
msg.setExternalTcpUsesTls(value);
|
|
3657
|
-
break;
|
|
3658
|
-
case 10:
|
|
3659
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
3660
|
-
msg.setLastCommitPosition(value);
|
|
3661
|
-
break;
|
|
3662
|
-
case 11:
|
|
3663
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
3664
|
-
msg.setWriterCheckpoint(value);
|
|
3665
|
-
break;
|
|
3666
|
-
case 12:
|
|
3667
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
3668
|
-
msg.setChaserCheckpoint(value);
|
|
3669
|
-
break;
|
|
3670
|
-
case 13:
|
|
3671
|
-
var value = /** @type {string} */ (reader.readInt64String());
|
|
3672
|
-
msg.setEpochPosition(value);
|
|
3673
|
-
break;
|
|
3674
|
-
case 14:
|
|
3675
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
3676
|
-
msg.setEpochNumber(value);
|
|
3677
|
-
break;
|
|
3678
|
-
case 15:
|
|
3679
|
-
var value = new shared_pb.UUID;
|
|
3680
|
-
reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader);
|
|
3681
|
-
msg.setEpochId(value);
|
|
3682
|
-
break;
|
|
3683
|
-
case 16:
|
|
3684
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
3685
|
-
msg.setNodePriority(value);
|
|
3686
|
-
break;
|
|
3687
|
-
case 17:
|
|
3688
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3689
|
-
msg.setIsReadOnlyReplica(value);
|
|
3690
|
-
break;
|
|
3691
|
-
case 18:
|
|
3692
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3693
|
-
msg.setAdvertiseHostToClientAs(value);
|
|
3694
|
-
break;
|
|
3695
|
-
case 19:
|
|
3696
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
3697
|
-
msg.setAdvertiseHttpPortToClientAs(value);
|
|
3698
|
-
break;
|
|
3699
|
-
case 20:
|
|
3700
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
3701
|
-
msg.setAdvertiseTcpPortToClientAs(value);
|
|
3702
|
-
break;
|
|
3703
|
-
default:
|
|
3704
|
-
reader.skipField();
|
|
3705
|
-
break;
|
|
3706
|
-
}
|
|
3707
|
-
}
|
|
3708
|
-
return msg;
|
|
3709
|
-
};
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
/**
|
|
3713
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3714
|
-
* @return {!Uint8Array}
|
|
3715
|
-
*/
|
|
3716
|
-
proto.event_store.cluster.MemberInfo.prototype.serializeBinary = function() {
|
|
3717
|
-
var writer = new jspb.BinaryWriter();
|
|
3718
|
-
proto.event_store.cluster.MemberInfo.serializeBinaryToWriter(this, writer);
|
|
3719
|
-
return writer.getResultBuffer();
|
|
3720
|
-
};
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
/**
|
|
3724
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3725
|
-
* format), writing to the given BinaryWriter.
|
|
3726
|
-
* @param {!proto.event_store.cluster.MemberInfo} message
|
|
3727
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3728
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3729
|
-
*/
|
|
3730
|
-
proto.event_store.cluster.MemberInfo.serializeBinaryToWriter = function(message, writer) {
|
|
3731
|
-
var f = undefined;
|
|
3732
|
-
f = message.getInstanceId();
|
|
3733
|
-
if (f != null) {
|
|
3734
|
-
writer.writeMessage(
|
|
3735
|
-
1,
|
|
3736
|
-
f,
|
|
3737
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
3738
|
-
);
|
|
3739
|
-
}
|
|
3740
|
-
f = message.getTimeStamp();
|
|
3741
|
-
if (parseInt(f, 10) !== 0) {
|
|
3742
|
-
writer.writeInt64String(
|
|
3743
|
-
2,
|
|
3744
|
-
f
|
|
3745
|
-
);
|
|
3746
|
-
}
|
|
3747
|
-
f = message.getState();
|
|
3748
|
-
if (f !== 0.0) {
|
|
3749
|
-
writer.writeEnum(
|
|
3750
|
-
3,
|
|
3751
|
-
f
|
|
3752
|
-
);
|
|
3753
|
-
}
|
|
3754
|
-
f = message.getIsAlive();
|
|
3755
|
-
if (f) {
|
|
3756
|
-
writer.writeBool(
|
|
3757
|
-
4,
|
|
3758
|
-
f
|
|
3759
|
-
);
|
|
3760
|
-
}
|
|
3761
|
-
f = message.getHttpEndPoint();
|
|
3762
|
-
if (f != null) {
|
|
3763
|
-
writer.writeMessage(
|
|
3764
|
-
5,
|
|
3765
|
-
f,
|
|
3766
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
3767
|
-
);
|
|
3768
|
-
}
|
|
3769
|
-
f = message.getInternalTcp();
|
|
3770
|
-
if (f != null) {
|
|
3771
|
-
writer.writeMessage(
|
|
3772
|
-
6,
|
|
3773
|
-
f,
|
|
3774
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
3775
|
-
);
|
|
3776
|
-
}
|
|
3777
|
-
f = message.getExternalTcp();
|
|
3778
|
-
if (f != null) {
|
|
3779
|
-
writer.writeMessage(
|
|
3780
|
-
7,
|
|
3781
|
-
f,
|
|
3782
|
-
proto.event_store.cluster.EndPoint.serializeBinaryToWriter
|
|
3783
|
-
);
|
|
3784
|
-
}
|
|
3785
|
-
f = message.getInternalTcpUsesTls();
|
|
3786
|
-
if (f) {
|
|
3787
|
-
writer.writeBool(
|
|
3788
|
-
8,
|
|
3789
|
-
f
|
|
3790
|
-
);
|
|
3791
|
-
}
|
|
3792
|
-
f = message.getExternalTcpUsesTls();
|
|
3793
|
-
if (f) {
|
|
3794
|
-
writer.writeBool(
|
|
3795
|
-
9,
|
|
3796
|
-
f
|
|
3797
|
-
);
|
|
3798
|
-
}
|
|
3799
|
-
f = message.getLastCommitPosition();
|
|
3800
|
-
if (parseInt(f, 10) !== 0) {
|
|
3801
|
-
writer.writeInt64String(
|
|
3802
|
-
10,
|
|
3803
|
-
f
|
|
3804
|
-
);
|
|
3805
|
-
}
|
|
3806
|
-
f = message.getWriterCheckpoint();
|
|
3807
|
-
if (parseInt(f, 10) !== 0) {
|
|
3808
|
-
writer.writeInt64String(
|
|
3809
|
-
11,
|
|
3810
|
-
f
|
|
3811
|
-
);
|
|
3812
|
-
}
|
|
3813
|
-
f = message.getChaserCheckpoint();
|
|
3814
|
-
if (parseInt(f, 10) !== 0) {
|
|
3815
|
-
writer.writeInt64String(
|
|
3816
|
-
12,
|
|
3817
|
-
f
|
|
3818
|
-
);
|
|
3819
|
-
}
|
|
3820
|
-
f = message.getEpochPosition();
|
|
3821
|
-
if (parseInt(f, 10) !== 0) {
|
|
3822
|
-
writer.writeInt64String(
|
|
3823
|
-
13,
|
|
3824
|
-
f
|
|
3825
|
-
);
|
|
3826
|
-
}
|
|
3827
|
-
f = message.getEpochNumber();
|
|
3828
|
-
if (f !== 0) {
|
|
3829
|
-
writer.writeInt32(
|
|
3830
|
-
14,
|
|
3831
|
-
f
|
|
3832
|
-
);
|
|
3833
|
-
}
|
|
3834
|
-
f = message.getEpochId();
|
|
3835
|
-
if (f != null) {
|
|
3836
|
-
writer.writeMessage(
|
|
3837
|
-
15,
|
|
3838
|
-
f,
|
|
3839
|
-
shared_pb.UUID.serializeBinaryToWriter
|
|
3840
|
-
);
|
|
3841
|
-
}
|
|
3842
|
-
f = message.getNodePriority();
|
|
3843
|
-
if (f !== 0) {
|
|
3844
|
-
writer.writeInt32(
|
|
3845
|
-
16,
|
|
3846
|
-
f
|
|
3847
|
-
);
|
|
3848
|
-
}
|
|
3849
|
-
f = message.getIsReadOnlyReplica();
|
|
3850
|
-
if (f) {
|
|
3851
|
-
writer.writeBool(
|
|
3852
|
-
17,
|
|
3853
|
-
f
|
|
3854
|
-
);
|
|
3855
|
-
}
|
|
3856
|
-
f = message.getAdvertiseHostToClientAs();
|
|
3857
|
-
if (f.length > 0) {
|
|
3858
|
-
writer.writeString(
|
|
3859
|
-
18,
|
|
3860
|
-
f
|
|
3861
|
-
);
|
|
3862
|
-
}
|
|
3863
|
-
f = message.getAdvertiseHttpPortToClientAs();
|
|
3864
|
-
if (f !== 0) {
|
|
3865
|
-
writer.writeUint32(
|
|
3866
|
-
19,
|
|
3867
|
-
f
|
|
3868
|
-
);
|
|
3869
|
-
}
|
|
3870
|
-
f = message.getAdvertiseTcpPortToClientAs();
|
|
3871
|
-
if (f !== 0) {
|
|
3872
|
-
writer.writeUint32(
|
|
3873
|
-
20,
|
|
3874
|
-
f
|
|
3875
|
-
);
|
|
3876
|
-
}
|
|
3877
|
-
};
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
/**
|
|
3881
|
-
* @enum {number}
|
|
3882
|
-
*/
|
|
3883
|
-
proto.event_store.cluster.MemberInfo.VNodeState = {
|
|
3884
|
-
INITIALIZING: 0,
|
|
3885
|
-
DISCOVERLEADER: 1,
|
|
3886
|
-
UNKNOWN: 2,
|
|
3887
|
-
PREREPLICA: 3,
|
|
3888
|
-
CATCHINGUP: 4,
|
|
3889
|
-
CLONE: 5,
|
|
3890
|
-
FOLLOWER: 6,
|
|
3891
|
-
PRELEADER: 7,
|
|
3892
|
-
LEADER: 8,
|
|
3893
|
-
MANAGER: 9,
|
|
3894
|
-
SHUTTINGDOWN: 10,
|
|
3895
|
-
SHUTDOWN: 11,
|
|
3896
|
-
READONLYLEADERLESS: 12,
|
|
3897
|
-
PREREADONLYREPLICA: 13,
|
|
3898
|
-
READONLYREPLICA: 14,
|
|
3899
|
-
RESIGNINGLEADER: 15
|
|
3900
|
-
};
|
|
3901
|
-
|
|
3902
|
-
/**
|
|
3903
|
-
* optional event_store.client.UUID instance_id = 1;
|
|
3904
|
-
* @return {?proto.event_store.client.UUID}
|
|
3905
|
-
*/
|
|
3906
|
-
proto.event_store.cluster.MemberInfo.prototype.getInstanceId = function() {
|
|
3907
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
3908
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 1));
|
|
3909
|
-
};
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
/**
|
|
3913
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
3914
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
3915
|
-
*/
|
|
3916
|
-
proto.event_store.cluster.MemberInfo.prototype.setInstanceId = function(value) {
|
|
3917
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3918
|
-
};
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
/**
|
|
3922
|
-
* Clears the message field making it undefined.
|
|
3923
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
3924
|
-
*/
|
|
3925
|
-
proto.event_store.cluster.MemberInfo.prototype.clearInstanceId = function() {
|
|
3926
|
-
return this.setInstanceId(undefined);
|
|
3927
|
-
};
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
/**
|
|
3931
|
-
* Returns whether this field is set.
|
|
3932
|
-
* @return {boolean}
|
|
3933
|
-
*/
|
|
3934
|
-
proto.event_store.cluster.MemberInfo.prototype.hasInstanceId = function() {
|
|
3935
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3936
|
-
};
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
/**
|
|
3940
|
-
* optional int64 time_stamp = 2;
|
|
3941
|
-
* @return {string}
|
|
3942
|
-
*/
|
|
3943
|
-
proto.event_store.cluster.MemberInfo.prototype.getTimeStamp = function() {
|
|
3944
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
|
3945
|
-
};
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
/**
|
|
3949
|
-
* @param {string} value
|
|
3950
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
3951
|
-
*/
|
|
3952
|
-
proto.event_store.cluster.MemberInfo.prototype.setTimeStamp = function(value) {
|
|
3953
|
-
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
3954
|
-
};
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
/**
|
|
3958
|
-
* optional VNodeState state = 3;
|
|
3959
|
-
* @return {!proto.event_store.cluster.MemberInfo.VNodeState}
|
|
3960
|
-
*/
|
|
3961
|
-
proto.event_store.cluster.MemberInfo.prototype.getState = function() {
|
|
3962
|
-
return /** @type {!proto.event_store.cluster.MemberInfo.VNodeState} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3963
|
-
};
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
/**
|
|
3967
|
-
* @param {!proto.event_store.cluster.MemberInfo.VNodeState} value
|
|
3968
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
3969
|
-
*/
|
|
3970
|
-
proto.event_store.cluster.MemberInfo.prototype.setState = function(value) {
|
|
3971
|
-
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
3972
|
-
};
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
/**
|
|
3976
|
-
* optional bool is_alive = 4;
|
|
3977
|
-
* @return {boolean}
|
|
3978
|
-
*/
|
|
3979
|
-
proto.event_store.cluster.MemberInfo.prototype.getIsAlive = function() {
|
|
3980
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
3981
|
-
};
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
/**
|
|
3985
|
-
* @param {boolean} value
|
|
3986
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
3987
|
-
*/
|
|
3988
|
-
proto.event_store.cluster.MemberInfo.prototype.setIsAlive = function(value) {
|
|
3989
|
-
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
3990
|
-
};
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
/**
|
|
3994
|
-
* optional EndPoint http_end_point = 5;
|
|
3995
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
3996
|
-
*/
|
|
3997
|
-
proto.event_store.cluster.MemberInfo.prototype.getHttpEndPoint = function() {
|
|
3998
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
3999
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 5));
|
|
4000
|
-
};
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
/**
|
|
4004
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
4005
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4006
|
-
*/
|
|
4007
|
-
proto.event_store.cluster.MemberInfo.prototype.setHttpEndPoint = function(value) {
|
|
4008
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
4009
|
-
};
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
/**
|
|
4013
|
-
* Clears the message field making it undefined.
|
|
4014
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4015
|
-
*/
|
|
4016
|
-
proto.event_store.cluster.MemberInfo.prototype.clearHttpEndPoint = function() {
|
|
4017
|
-
return this.setHttpEndPoint(undefined);
|
|
4018
|
-
};
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
/**
|
|
4022
|
-
* Returns whether this field is set.
|
|
4023
|
-
* @return {boolean}
|
|
4024
|
-
*/
|
|
4025
|
-
proto.event_store.cluster.MemberInfo.prototype.hasHttpEndPoint = function() {
|
|
4026
|
-
return jspb.Message.getField(this, 5) != null;
|
|
4027
|
-
};
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
/**
|
|
4031
|
-
* optional EndPoint internal_tcp = 6;
|
|
4032
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
4033
|
-
*/
|
|
4034
|
-
proto.event_store.cluster.MemberInfo.prototype.getInternalTcp = function() {
|
|
4035
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
4036
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 6));
|
|
4037
|
-
};
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
/**
|
|
4041
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
4042
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4043
|
-
*/
|
|
4044
|
-
proto.event_store.cluster.MemberInfo.prototype.setInternalTcp = function(value) {
|
|
4045
|
-
return jspb.Message.setWrapperField(this, 6, value);
|
|
4046
|
-
};
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
/**
|
|
4050
|
-
* Clears the message field making it undefined.
|
|
4051
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4052
|
-
*/
|
|
4053
|
-
proto.event_store.cluster.MemberInfo.prototype.clearInternalTcp = function() {
|
|
4054
|
-
return this.setInternalTcp(undefined);
|
|
4055
|
-
};
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
/**
|
|
4059
|
-
* Returns whether this field is set.
|
|
4060
|
-
* @return {boolean}
|
|
4061
|
-
*/
|
|
4062
|
-
proto.event_store.cluster.MemberInfo.prototype.hasInternalTcp = function() {
|
|
4063
|
-
return jspb.Message.getField(this, 6) != null;
|
|
4064
|
-
};
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
/**
|
|
4068
|
-
* optional EndPoint external_tcp = 7;
|
|
4069
|
-
* @return {?proto.event_store.cluster.EndPoint}
|
|
4070
|
-
*/
|
|
4071
|
-
proto.event_store.cluster.MemberInfo.prototype.getExternalTcp = function() {
|
|
4072
|
-
return /** @type{?proto.event_store.cluster.EndPoint} */ (
|
|
4073
|
-
jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 7));
|
|
4074
|
-
};
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
/**
|
|
4078
|
-
* @param {?proto.event_store.cluster.EndPoint|undefined} value
|
|
4079
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4080
|
-
*/
|
|
4081
|
-
proto.event_store.cluster.MemberInfo.prototype.setExternalTcp = function(value) {
|
|
4082
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
4083
|
-
};
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
/**
|
|
4087
|
-
* Clears the message field making it undefined.
|
|
4088
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4089
|
-
*/
|
|
4090
|
-
proto.event_store.cluster.MemberInfo.prototype.clearExternalTcp = function() {
|
|
4091
|
-
return this.setExternalTcp(undefined);
|
|
4092
|
-
};
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
/**
|
|
4096
|
-
* Returns whether this field is set.
|
|
4097
|
-
* @return {boolean}
|
|
4098
|
-
*/
|
|
4099
|
-
proto.event_store.cluster.MemberInfo.prototype.hasExternalTcp = function() {
|
|
4100
|
-
return jspb.Message.getField(this, 7) != null;
|
|
4101
|
-
};
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
/**
|
|
4105
|
-
* optional bool internal_tcp_uses_tls = 8;
|
|
4106
|
-
* @return {boolean}
|
|
4107
|
-
*/
|
|
4108
|
-
proto.event_store.cluster.MemberInfo.prototype.getInternalTcpUsesTls = function() {
|
|
4109
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
4110
|
-
};
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
/**
|
|
4114
|
-
* @param {boolean} value
|
|
4115
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4116
|
-
*/
|
|
4117
|
-
proto.event_store.cluster.MemberInfo.prototype.setInternalTcpUsesTls = function(value) {
|
|
4118
|
-
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
4119
|
-
};
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
/**
|
|
4123
|
-
* optional bool external_tcp_uses_tls = 9;
|
|
4124
|
-
* @return {boolean}
|
|
4125
|
-
*/
|
|
4126
|
-
proto.event_store.cluster.MemberInfo.prototype.getExternalTcpUsesTls = function() {
|
|
4127
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
4128
|
-
};
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
/**
|
|
4132
|
-
* @param {boolean} value
|
|
4133
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4134
|
-
*/
|
|
4135
|
-
proto.event_store.cluster.MemberInfo.prototype.setExternalTcpUsesTls = function(value) {
|
|
4136
|
-
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
4137
|
-
};
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
/**
|
|
4141
|
-
* optional int64 last_commit_position = 10;
|
|
4142
|
-
* @return {string}
|
|
4143
|
-
*/
|
|
4144
|
-
proto.event_store.cluster.MemberInfo.prototype.getLastCommitPosition = function() {
|
|
4145
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0"));
|
|
4146
|
-
};
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
/**
|
|
4150
|
-
* @param {string} value
|
|
4151
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4152
|
-
*/
|
|
4153
|
-
proto.event_store.cluster.MemberInfo.prototype.setLastCommitPosition = function(value) {
|
|
4154
|
-
return jspb.Message.setProto3StringIntField(this, 10, value);
|
|
4155
|
-
};
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
/**
|
|
4159
|
-
* optional int64 writer_checkpoint = 11;
|
|
4160
|
-
* @return {string}
|
|
4161
|
-
*/
|
|
4162
|
-
proto.event_store.cluster.MemberInfo.prototype.getWriterCheckpoint = function() {
|
|
4163
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "0"));
|
|
4164
|
-
};
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
/**
|
|
4168
|
-
* @param {string} value
|
|
4169
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4170
|
-
*/
|
|
4171
|
-
proto.event_store.cluster.MemberInfo.prototype.setWriterCheckpoint = function(value) {
|
|
4172
|
-
return jspb.Message.setProto3StringIntField(this, 11, value);
|
|
4173
|
-
};
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
/**
|
|
4177
|
-
* optional int64 chaser_checkpoint = 12;
|
|
4178
|
-
* @return {string}
|
|
4179
|
-
*/
|
|
4180
|
-
proto.event_store.cluster.MemberInfo.prototype.getChaserCheckpoint = function() {
|
|
4181
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "0"));
|
|
4182
|
-
};
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
/**
|
|
4186
|
-
* @param {string} value
|
|
4187
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4188
|
-
*/
|
|
4189
|
-
proto.event_store.cluster.MemberInfo.prototype.setChaserCheckpoint = function(value) {
|
|
4190
|
-
return jspb.Message.setProto3StringIntField(this, 12, value);
|
|
4191
|
-
};
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
/**
|
|
4195
|
-
* optional int64 epoch_position = 13;
|
|
4196
|
-
* @return {string}
|
|
4197
|
-
*/
|
|
4198
|
-
proto.event_store.cluster.MemberInfo.prototype.getEpochPosition = function() {
|
|
4199
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0"));
|
|
4200
|
-
};
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
/**
|
|
4204
|
-
* @param {string} value
|
|
4205
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4206
|
-
*/
|
|
4207
|
-
proto.event_store.cluster.MemberInfo.prototype.setEpochPosition = function(value) {
|
|
4208
|
-
return jspb.Message.setProto3StringIntField(this, 13, value);
|
|
4209
|
-
};
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
/**
|
|
4213
|
-
* optional int32 epoch_number = 14;
|
|
4214
|
-
* @return {number}
|
|
4215
|
-
*/
|
|
4216
|
-
proto.event_store.cluster.MemberInfo.prototype.getEpochNumber = function() {
|
|
4217
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
4218
|
-
};
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
/**
|
|
4222
|
-
* @param {number} value
|
|
4223
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4224
|
-
*/
|
|
4225
|
-
proto.event_store.cluster.MemberInfo.prototype.setEpochNumber = function(value) {
|
|
4226
|
-
return jspb.Message.setProto3IntField(this, 14, value);
|
|
4227
|
-
};
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
/**
|
|
4231
|
-
* optional event_store.client.UUID epoch_id = 15;
|
|
4232
|
-
* @return {?proto.event_store.client.UUID}
|
|
4233
|
-
*/
|
|
4234
|
-
proto.event_store.cluster.MemberInfo.prototype.getEpochId = function() {
|
|
4235
|
-
return /** @type{?proto.event_store.client.UUID} */ (
|
|
4236
|
-
jspb.Message.getWrapperField(this, shared_pb.UUID, 15));
|
|
4237
|
-
};
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
/**
|
|
4241
|
-
* @param {?proto.event_store.client.UUID|undefined} value
|
|
4242
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4243
|
-
*/
|
|
4244
|
-
proto.event_store.cluster.MemberInfo.prototype.setEpochId = function(value) {
|
|
4245
|
-
return jspb.Message.setWrapperField(this, 15, value);
|
|
4246
|
-
};
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
/**
|
|
4250
|
-
* Clears the message field making it undefined.
|
|
4251
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4252
|
-
*/
|
|
4253
|
-
proto.event_store.cluster.MemberInfo.prototype.clearEpochId = function() {
|
|
4254
|
-
return this.setEpochId(undefined);
|
|
4255
|
-
};
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
/**
|
|
4259
|
-
* Returns whether this field is set.
|
|
4260
|
-
* @return {boolean}
|
|
4261
|
-
*/
|
|
4262
|
-
proto.event_store.cluster.MemberInfo.prototype.hasEpochId = function() {
|
|
4263
|
-
return jspb.Message.getField(this, 15) != null;
|
|
4264
|
-
};
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
/**
|
|
4268
|
-
* optional int32 node_priority = 16;
|
|
4269
|
-
* @return {number}
|
|
4270
|
-
*/
|
|
4271
|
-
proto.event_store.cluster.MemberInfo.prototype.getNodePriority = function() {
|
|
4272
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
|
4273
|
-
};
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
/**
|
|
4277
|
-
* @param {number} value
|
|
4278
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4279
|
-
*/
|
|
4280
|
-
proto.event_store.cluster.MemberInfo.prototype.setNodePriority = function(value) {
|
|
4281
|
-
return jspb.Message.setProto3IntField(this, 16, value);
|
|
4282
|
-
};
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
/**
|
|
4286
|
-
* optional bool is_read_only_replica = 17;
|
|
4287
|
-
* @return {boolean}
|
|
4288
|
-
*/
|
|
4289
|
-
proto.event_store.cluster.MemberInfo.prototype.getIsReadOnlyReplica = function() {
|
|
4290
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
|
|
4291
|
-
};
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
/**
|
|
4295
|
-
* @param {boolean} value
|
|
4296
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4297
|
-
*/
|
|
4298
|
-
proto.event_store.cluster.MemberInfo.prototype.setIsReadOnlyReplica = function(value) {
|
|
4299
|
-
return jspb.Message.setProto3BooleanField(this, 17, value);
|
|
4300
|
-
};
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
/**
|
|
4304
|
-
* optional string advertise_host_to_client_as = 18;
|
|
4305
|
-
* @return {string}
|
|
4306
|
-
*/
|
|
4307
|
-
proto.event_store.cluster.MemberInfo.prototype.getAdvertiseHostToClientAs = function() {
|
|
4308
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
4309
|
-
};
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
/**
|
|
4313
|
-
* @param {string} value
|
|
4314
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4315
|
-
*/
|
|
4316
|
-
proto.event_store.cluster.MemberInfo.prototype.setAdvertiseHostToClientAs = function(value) {
|
|
4317
|
-
return jspb.Message.setProto3StringField(this, 18, value);
|
|
4318
|
-
};
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
/**
|
|
4322
|
-
* optional uint32 advertise_http_port_to_client_as = 19;
|
|
4323
|
-
* @return {number}
|
|
4324
|
-
*/
|
|
4325
|
-
proto.event_store.cluster.MemberInfo.prototype.getAdvertiseHttpPortToClientAs = function() {
|
|
4326
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
|
|
4327
|
-
};
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
/**
|
|
4331
|
-
* @param {number} value
|
|
4332
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4333
|
-
*/
|
|
4334
|
-
proto.event_store.cluster.MemberInfo.prototype.setAdvertiseHttpPortToClientAs = function(value) {
|
|
4335
|
-
return jspb.Message.setProto3IntField(this, 19, value);
|
|
4336
|
-
};
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
/**
|
|
4340
|
-
* optional uint32 advertise_tcp_port_to_client_as = 20;
|
|
4341
|
-
* @return {number}
|
|
4342
|
-
*/
|
|
4343
|
-
proto.event_store.cluster.MemberInfo.prototype.getAdvertiseTcpPortToClientAs = function() {
|
|
4344
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
|
4345
|
-
};
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
/**
|
|
4349
|
-
* @param {number} value
|
|
4350
|
-
* @return {!proto.event_store.cluster.MemberInfo} returns this
|
|
4351
|
-
*/
|
|
4352
|
-
proto.event_store.cluster.MemberInfo.prototype.setAdvertiseTcpPortToClientAs = function(value) {
|
|
4353
|
-
return jspb.Message.setProto3IntField(this, 20, value);
|
|
4354
|
-
};
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
goog.object.extend(exports, proto.event_store.cluster);
|