@kurrent/kurrentdb-client 1.2.0-alpha.0 → 1.2.0
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/http.d.ts +7 -1
- package/dist/Client/http.js +50 -48
- package/dist/Client/http.js.map +1 -1
- package/dist/Client/index.d.ts +30 -6
- package/dist/Client/index.js +77 -11
- package/dist/Client/index.js.map +1 -1
- package/dist/Client/parseConnectionString.d.ts +2 -2
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +6 -1
- package/dist/constants.js.map +1 -1
- package/dist/events/binaryEvent.js +2 -2
- package/dist/events/binaryEvent.js.map +1 -1
- package/dist/events/jsonEvent.js +2 -2
- package/dist/events/jsonEvent.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/projections/createProjection.d.ts +10 -1
- package/dist/projections/createProjection.js +13 -2
- package/dist/projections/createProjection.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 +2 -2
- package/dist/streams/appendToStream/batchAppend.js.map +1 -1
- package/dist/streams/appendToStream/index.d.ts +9 -1
- package/dist/streams/appendToStream/index.js +8 -0
- package/dist/streams/appendToStream/index.js.map +1 -1
- package/dist/streams/readAll.js +18 -18
- package/dist/streams/readAll.js.map +1 -1
- package/dist/streams/readStream.js +26 -34
- package/dist/streams/readStream.js.map +1 -1
- package/dist/types/index.d.ts +88 -2
- package/dist/types/index.js.map +1 -1
- package/dist/utils/CommandError.d.ts +9 -3
- package/dist/utils/CommandError.js +50 -1
- package/dist/utils/CommandError.js.map +1 -1
- package/dist/utils/convertBridgeError.d.ts +2 -1
- package/dist/utils/convertBridgeError.js +14 -24
- package/dist/utils/convertBridgeError.js.map +1 -1
- package/dist/utils/credentials.d.ts +19 -0
- package/dist/utils/credentials.js +31 -0
- package/dist/utils/credentials.js.map +1 -0
- package/dist/utils/grpcUUID.d.ts +1 -0
- package/dist/utils/grpcUUID.js +12 -12
- package/dist/utils/grpcUUID.js.map +1 -1
- package/generated/kurrentdb/protocols/v1/projectionmanagement_pb.d.ts +3 -0
- package/generated/kurrentdb/protocols/v1/projectionmanagement_pb.js +31 -1
- package/generated/kurrentdb/protocols/v2/core_pb.d.ts +188 -188
- package/generated/kurrentdb/protocols/v2/core_pb.js +1301 -1301
- package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts +43 -43
- package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js +50 -50
- package/generated/kurrentdb/protocols/v2/features/service_pb.d.ts +227 -227
- package/generated/kurrentdb/protocols/v2/features/service_pb.js +1753 -1753
- package/generated/kurrentdb/protocols/v2/streams/errors_pb.d.ts +85 -0
- package/generated/kurrentdb/protocols/v2/streams/errors_pb.js +625 -1
- package/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts +218 -218
- package/generated/kurrentdb/protocols/v2/streams/shared_pb.js +1561 -1561
- package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts +17 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js +53 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts +134 -0
- package/generated/kurrentdb/protocols/v2/streams/streams_pb.js +1041 -1
- package/package.json +64 -66
- package/dist/schemaRegistry/checkSchemaCompatibility.d.ts +0 -12
- package/dist/schemaRegistry/checkSchemaCompatibility.js +0 -60
- package/dist/schemaRegistry/checkSchemaCompatibility.js.map +0 -1
- package/dist/schemaRegistry/createSchema.d.ts +0 -13
- package/dist/schemaRegistry/createSchema.js +0 -36
- package/dist/schemaRegistry/createSchema.js.map +0 -1
- package/dist/schemaRegistry/deleteSchema.d.ts +0 -11
- package/dist/schemaRegistry/deleteSchema.js +0 -23
- package/dist/schemaRegistry/deleteSchema.js.map +0 -1
- package/dist/schemaRegistry/deleteSchemaVersions.d.ts +0 -13
- package/dist/schemaRegistry/deleteSchemaVersions.js +0 -29
- package/dist/schemaRegistry/deleteSchemaVersions.js.map +0 -1
- package/dist/schemaRegistry/getSchema.d.ts +0 -12
- package/dist/schemaRegistry/getSchema.js +0 -28
- package/dist/schemaRegistry/getSchema.js.map +0 -1
- package/dist/schemaRegistry/getSchemaVersion.d.ts +0 -12
- package/dist/schemaRegistry/getSchemaVersion.js +0 -33
- package/dist/schemaRegistry/getSchemaVersion.js.map +0 -1
- package/dist/schemaRegistry/getSchemaVersionById.d.ts +0 -12
- package/dist/schemaRegistry/getSchemaVersionById.js +0 -28
- package/dist/schemaRegistry/getSchemaVersionById.js.map +0 -1
- package/dist/schemaRegistry/index.d.ts +0 -14
- package/dist/schemaRegistry/index.js +0 -35
- package/dist/schemaRegistry/index.js.map +0 -1
- package/dist/schemaRegistry/listRegisteredSchemas.d.ts +0 -11
- package/dist/schemaRegistry/listRegisteredSchemas.js +0 -41
- package/dist/schemaRegistry/listRegisteredSchemas.js.map +0 -1
- package/dist/schemaRegistry/listSchemaVersions.d.ts +0 -12
- package/dist/schemaRegistry/listSchemaVersions.js +0 -28
- package/dist/schemaRegistry/listSchemaVersions.js.map +0 -1
- package/dist/schemaRegistry/listSchemas.d.ts +0 -11
- package/dist/schemaRegistry/listSchemas.js +0 -35
- package/dist/schemaRegistry/listSchemas.js.map +0 -1
- package/dist/schemaRegistry/lookupSchemaName.d.ts +0 -12
- package/dist/schemaRegistry/lookupSchemaName.js +0 -23
- package/dist/schemaRegistry/lookupSchemaName.js.map +0 -1
- package/dist/schemaRegistry/registerSchemaVersion.d.ts +0 -13
- package/dist/schemaRegistry/registerSchemaVersion.js +0 -31
- package/dist/schemaRegistry/registerSchemaVersion.js.map +0 -1
- package/dist/schemaRegistry/types.d.ts +0 -347
- package/dist/schemaRegistry/types.js +0 -3
- package/dist/schemaRegistry/types.js.map +0 -1
- package/dist/schemaRegistry/updateSchema.d.ts +0 -11
- package/dist/schemaRegistry/updateSchema.js +0 -51
- package/dist/schemaRegistry/updateSchema.js.map +0 -1
- package/dist/schemaRegistry/utils/index.d.ts +0 -1
- package/dist/schemaRegistry/utils/index.js +0 -18
- package/dist/schemaRegistry/utils/index.js.map +0 -1
- package/dist/schemaRegistry/utils/mappers.d.ts +0 -24
- package/dist/schemaRegistry/utils/mappers.js +0 -198
- package/dist/schemaRegistry/utils/mappers.js.map +0 -1
- package/generated/kurrentdb/protocols/v2/registry/errors_grpc_pb.js +0 -1
- package/generated/kurrentdb/protocols/v2/registry/errors_pb.d.ts +0 -75
- package/generated/kurrentdb/protocols/v2/registry/errors_pb.js +0 -493
- package/generated/kurrentdb/protocols/v2/registry/events_grpc_pb.js +0 -1
- package/generated/kurrentdb/protocols/v2/registry/events_pb.d.ts +0 -255
- package/generated/kurrentdb/protocols/v2/registry/events_pb.js +0 -2057
- package/generated/kurrentdb/protocols/v2/registry/groups_grpc_pb.js +0 -1
- package/generated/kurrentdb/protocols/v2/registry/groups_pb.d.ts +0 -474
- package/generated/kurrentdb/protocols/v2/registry/groups_pb.js +0 -3593
- package/generated/kurrentdb/protocols/v2/registry/schemas_grpc_pb.js +0 -1
- package/generated/kurrentdb/protocols/v2/registry/schemas_pb.d.ts +0 -825
- package/generated/kurrentdb/protocols/v2/registry/schemas_pb.js +0 -6500
- package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.d.ts +0 -350
- package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.js +0 -654
- package/generated/kurrentdb/protocols/v2/registry/service_pb.d.ts +0 -10
- package/generated/kurrentdb/protocols/v2/registry/service_pb.js +0 -29
- package/generated/kurrentdb/protocols/v2/registry/shared_grpc_pb.js +0 -1
- package/generated/kurrentdb/protocols/v2/registry/shared_pb.d.ts +0 -26
- package/generated/kurrentdb/protocols/v2/registry/shared_pb.js +0 -51
- package/generated/kurrentdb/protocols/v2/registry/validation_grpc_pb.js +0 -1
- package/generated/kurrentdb/protocols/v2/registry/validation_pb.d.ts +0 -247
- package/generated/kurrentdb/protocols/v2/registry/validation_pb.js +0 -1789
|
@@ -24,12 +24,18 @@ var global = (function() {
|
|
|
24
24
|
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_struct_pb);
|
|
26
26
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.AppendRecord', null, global);
|
|
27
|
+
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest', null, global);
|
|
28
|
+
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.AppendRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.AppendResponse', null, global);
|
|
29
31
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.AppendSessionResponse', null, global);
|
|
32
|
+
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.ConsistencyCheck', null, global);
|
|
33
|
+
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck', null, global);
|
|
34
|
+
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.TypeCase', null, global);
|
|
30
35
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.ExpectedRevisionConstants', null, global);
|
|
31
36
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.SchemaFormat', null, global);
|
|
32
37
|
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.SchemaInfo', null, global);
|
|
38
|
+
goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.StreamRevision', null, global);
|
|
33
39
|
/**
|
|
34
40
|
* Generated by JsPbCodeGenerator.
|
|
35
41
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -135,6 +141,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
135
141
|
*/
|
|
136
142
|
proto.kurrentdb.protocol.v2.streams.AppendRecord.displayName = 'proto.kurrentdb.protocol.v2.streams.AppendRecord';
|
|
137
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.kurrentdb.protocol.v2.streams.AppendRecordsRequest = function(opt_data) {
|
|
155
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.repeatedFields_, null);
|
|
156
|
+
};
|
|
157
|
+
goog.inherits(proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest, jspb.Message);
|
|
158
|
+
if (goog.DEBUG && !COMPILED) {
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @override
|
|
162
|
+
*/
|
|
163
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.displayName = 'proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest';
|
|
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.kurrentdb.protocol.v2.streams.AppendRecordsResponse = function(opt_data) {
|
|
176
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.repeatedFields_, null);
|
|
177
|
+
};
|
|
178
|
+
goog.inherits(proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse, jspb.Message);
|
|
179
|
+
if (goog.DEBUG && !COMPILED) {
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
* @override
|
|
183
|
+
*/
|
|
184
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.displayName = 'proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse';
|
|
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.kurrentdb.protocol.v2.streams.ConsistencyCheck = function(opt_data) {
|
|
197
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.oneofGroups_);
|
|
198
|
+
};
|
|
199
|
+
goog.inherits(proto.kurrentdb.protocol.v2.streams.ConsistencyCheck, jspb.Message);
|
|
200
|
+
if (goog.DEBUG && !COMPILED) {
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
* @override
|
|
204
|
+
*/
|
|
205
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.displayName = 'proto.kurrentdb.protocol.v2.streams.ConsistencyCheck';
|
|
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.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck = function(opt_data) {
|
|
218
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
219
|
+
};
|
|
220
|
+
goog.inherits(proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck, jspb.Message);
|
|
221
|
+
if (goog.DEBUG && !COMPILED) {
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
* @override
|
|
225
|
+
*/
|
|
226
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.displayName = 'proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck';
|
|
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.kurrentdb.protocol.v2.streams.StreamRevision = function(opt_data) {
|
|
239
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
240
|
+
};
|
|
241
|
+
goog.inherits(proto.kurrentdb.protocol.v2.streams.StreamRevision, jspb.Message);
|
|
242
|
+
if (goog.DEBUG && !COMPILED) {
|
|
243
|
+
/**
|
|
244
|
+
* @public
|
|
245
|
+
* @override
|
|
246
|
+
*/
|
|
247
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.displayName = 'proto.kurrentdb.protocol.v2.streams.StreamRevision';
|
|
248
|
+
}
|
|
138
249
|
|
|
139
250
|
/**
|
|
140
251
|
* List of repeated fields within this message type.
|
|
@@ -1014,7 +1125,8 @@ proto.kurrentdb.protocol.v2.streams.AppendRecord.toObject = function(includeInst
|
|
|
1014
1125
|
recordId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1015
1126
|
propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
1016
1127
|
schema: (f = msg.getSchema()) && proto.kurrentdb.protocol.v2.streams.SchemaInfo.toObject(includeInstance, f),
|
|
1017
|
-
data: msg.getData_asB64()
|
|
1128
|
+
data: msg.getData_asB64(),
|
|
1129
|
+
stream: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
1018
1130
|
};
|
|
1019
1131
|
|
|
1020
1132
|
if (includeInstance) {
|
|
@@ -1070,6 +1182,10 @@ proto.kurrentdb.protocol.v2.streams.AppendRecord.deserializeBinaryFromReader = f
|
|
|
1070
1182
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1071
1183
|
msg.setData(value);
|
|
1072
1184
|
break;
|
|
1185
|
+
case 5:
|
|
1186
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1187
|
+
msg.setStream(value);
|
|
1188
|
+
break;
|
|
1073
1189
|
default:
|
|
1074
1190
|
reader.skipField();
|
|
1075
1191
|
break;
|
|
@@ -1125,6 +1241,13 @@ proto.kurrentdb.protocol.v2.streams.AppendRecord.serializeBinaryToWriter = funct
|
|
|
1125
1241
|
f
|
|
1126
1242
|
);
|
|
1127
1243
|
}
|
|
1244
|
+
f = message.getStream();
|
|
1245
|
+
if (f.length > 0) {
|
|
1246
|
+
writer.writeString(
|
|
1247
|
+
5,
|
|
1248
|
+
f
|
|
1249
|
+
);
|
|
1250
|
+
}
|
|
1128
1251
|
};
|
|
1129
1252
|
|
|
1130
1253
|
|
|
@@ -1265,6 +1388,923 @@ proto.kurrentdb.protocol.v2.streams.AppendRecord.prototype.setData = function(va
|
|
|
1265
1388
|
};
|
|
1266
1389
|
|
|
1267
1390
|
|
|
1391
|
+
/**
|
|
1392
|
+
* optional string stream = 5;
|
|
1393
|
+
* @return {string}
|
|
1394
|
+
*/
|
|
1395
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecord.prototype.getStream = function() {
|
|
1396
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* @param {string} value
|
|
1402
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecord} returns this
|
|
1403
|
+
*/
|
|
1404
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecord.prototype.setStream = function(value) {
|
|
1405
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* List of repeated fields within this message type.
|
|
1412
|
+
* @private {!Array<number>}
|
|
1413
|
+
* @const
|
|
1414
|
+
*/
|
|
1415
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.repeatedFields_ = [1,2];
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1420
|
+
/**
|
|
1421
|
+
* Creates an object representation of this proto.
|
|
1422
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1423
|
+
* Optional fields that are not set will be set to undefined.
|
|
1424
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1425
|
+
* For the list of reserved names please see:
|
|
1426
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1427
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1428
|
+
* JSPB instance for transitional soy proto support:
|
|
1429
|
+
* http://goto/soy-param-migration
|
|
1430
|
+
* @return {!Object}
|
|
1431
|
+
*/
|
|
1432
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1433
|
+
return proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.toObject(opt_includeInstance, this);
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* Static version of the {@see toObject} method.
|
|
1439
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1440
|
+
* the JSPB instance for transitional soy proto support:
|
|
1441
|
+
* http://goto/soy-param-migration
|
|
1442
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} msg The msg instance to transform.
|
|
1443
|
+
* @return {!Object}
|
|
1444
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1445
|
+
*/
|
|
1446
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.toObject = function(includeInstance, msg) {
|
|
1447
|
+
var f, obj = {
|
|
1448
|
+
recordsList: jspb.Message.toObjectList(msg.getRecordsList(),
|
|
1449
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecord.toObject, includeInstance),
|
|
1450
|
+
checksList: jspb.Message.toObjectList(msg.getChecksList(),
|
|
1451
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.toObject, includeInstance)
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
if (includeInstance) {
|
|
1455
|
+
obj.$jspbMessageInstance = msg;
|
|
1456
|
+
}
|
|
1457
|
+
return obj;
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1464
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1465
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest}
|
|
1466
|
+
*/
|
|
1467
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.deserializeBinary = function(bytes) {
|
|
1468
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1469
|
+
var msg = new proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest;
|
|
1470
|
+
return proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1476
|
+
* given reader into the given message object.
|
|
1477
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} msg The message object to deserialize into.
|
|
1478
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1479
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest}
|
|
1480
|
+
*/
|
|
1481
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1482
|
+
while (reader.nextField()) {
|
|
1483
|
+
if (reader.isEndGroup()) {
|
|
1484
|
+
break;
|
|
1485
|
+
}
|
|
1486
|
+
var field = reader.getFieldNumber();
|
|
1487
|
+
switch (field) {
|
|
1488
|
+
case 1:
|
|
1489
|
+
var value = new proto.kurrentdb.protocol.v2.streams.AppendRecord;
|
|
1490
|
+
reader.readMessage(value,proto.kurrentdb.protocol.v2.streams.AppendRecord.deserializeBinaryFromReader);
|
|
1491
|
+
msg.addRecords(value);
|
|
1492
|
+
break;
|
|
1493
|
+
case 2:
|
|
1494
|
+
var value = new proto.kurrentdb.protocol.v2.streams.ConsistencyCheck;
|
|
1495
|
+
reader.readMessage(value,proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.deserializeBinaryFromReader);
|
|
1496
|
+
msg.addChecks(value);
|
|
1497
|
+
break;
|
|
1498
|
+
default:
|
|
1499
|
+
reader.skipField();
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
return msg;
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1509
|
+
* @return {!Uint8Array}
|
|
1510
|
+
*/
|
|
1511
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.serializeBinary = function() {
|
|
1512
|
+
var writer = new jspb.BinaryWriter();
|
|
1513
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.serializeBinaryToWriter(this, writer);
|
|
1514
|
+
return writer.getResultBuffer();
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1520
|
+
* format), writing to the given BinaryWriter.
|
|
1521
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} message
|
|
1522
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1523
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1524
|
+
*/
|
|
1525
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1526
|
+
var f = undefined;
|
|
1527
|
+
f = message.getRecordsList();
|
|
1528
|
+
if (f.length > 0) {
|
|
1529
|
+
writer.writeRepeatedMessage(
|
|
1530
|
+
1,
|
|
1531
|
+
f,
|
|
1532
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecord.serializeBinaryToWriter
|
|
1533
|
+
);
|
|
1534
|
+
}
|
|
1535
|
+
f = message.getChecksList();
|
|
1536
|
+
if (f.length > 0) {
|
|
1537
|
+
writer.writeRepeatedMessage(
|
|
1538
|
+
2,
|
|
1539
|
+
f,
|
|
1540
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.serializeBinaryToWriter
|
|
1541
|
+
);
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* repeated AppendRecord records = 1;
|
|
1548
|
+
* @return {!Array<!proto.kurrentdb.protocol.v2.streams.AppendRecord>}
|
|
1549
|
+
*/
|
|
1550
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.getRecordsList = function() {
|
|
1551
|
+
return /** @type{!Array<!proto.kurrentdb.protocol.v2.streams.AppendRecord>} */ (
|
|
1552
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.streams.AppendRecord, 1));
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* @param {!Array<!proto.kurrentdb.protocol.v2.streams.AppendRecord>} value
|
|
1558
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} returns this
|
|
1559
|
+
*/
|
|
1560
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.setRecordsList = function(value) {
|
|
1561
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecord=} opt_value
|
|
1567
|
+
* @param {number=} opt_index
|
|
1568
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecord}
|
|
1569
|
+
*/
|
|
1570
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.addRecords = function(opt_value, opt_index) {
|
|
1571
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.streams.AppendRecord, opt_index);
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Clears the list making it empty but non-null.
|
|
1577
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} returns this
|
|
1578
|
+
*/
|
|
1579
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.clearRecordsList = function() {
|
|
1580
|
+
return this.setRecordsList([]);
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* repeated ConsistencyCheck checks = 2;
|
|
1586
|
+
* @return {!Array<!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck>}
|
|
1587
|
+
*/
|
|
1588
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.getChecksList = function() {
|
|
1589
|
+
return /** @type{!Array<!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck>} */ (
|
|
1590
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.streams.ConsistencyCheck, 2));
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* @param {!Array<!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck>} value
|
|
1596
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} returns this
|
|
1597
|
+
*/
|
|
1598
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.setChecksList = function(value) {
|
|
1599
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck=} opt_value
|
|
1605
|
+
* @param {number=} opt_index
|
|
1606
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck}
|
|
1607
|
+
*/
|
|
1608
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.addChecks = function(opt_value, opt_index) {
|
|
1609
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.kurrentdb.protocol.v2.streams.ConsistencyCheck, opt_index);
|
|
1610
|
+
};
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Clears the list making it empty but non-null.
|
|
1615
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest} returns this
|
|
1616
|
+
*/
|
|
1617
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsRequest.prototype.clearChecksList = function() {
|
|
1618
|
+
return this.setChecksList([]);
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* List of repeated fields within this message type.
|
|
1625
|
+
* @private {!Array<number>}
|
|
1626
|
+
* @const
|
|
1627
|
+
*/
|
|
1628
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.repeatedFields_ = [1];
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1633
|
+
/**
|
|
1634
|
+
* Creates an object representation of this proto.
|
|
1635
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1636
|
+
* Optional fields that are not set will be set to undefined.
|
|
1637
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1638
|
+
* For the list of reserved names please see:
|
|
1639
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1640
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1641
|
+
* JSPB instance for transitional soy proto support:
|
|
1642
|
+
* http://goto/soy-param-migration
|
|
1643
|
+
* @return {!Object}
|
|
1644
|
+
*/
|
|
1645
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1646
|
+
return proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.toObject(opt_includeInstance, this);
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Static version of the {@see toObject} method.
|
|
1652
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1653
|
+
* the JSPB instance for transitional soy proto support:
|
|
1654
|
+
* http://goto/soy-param-migration
|
|
1655
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse} msg The msg instance to transform.
|
|
1656
|
+
* @return {!Object}
|
|
1657
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1658
|
+
*/
|
|
1659
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.toObject = function(includeInstance, msg) {
|
|
1660
|
+
var f, obj = {
|
|
1661
|
+
revisionsList: jspb.Message.toObjectList(msg.getRevisionsList(),
|
|
1662
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.toObject, includeInstance),
|
|
1663
|
+
position: jspb.Message.getFieldWithDefault(msg, 2, "0")
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
if (includeInstance) {
|
|
1667
|
+
obj.$jspbMessageInstance = msg;
|
|
1668
|
+
}
|
|
1669
|
+
return obj;
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1676
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1677
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse}
|
|
1678
|
+
*/
|
|
1679
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.deserializeBinary = function(bytes) {
|
|
1680
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1681
|
+
var msg = new proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse;
|
|
1682
|
+
return proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1688
|
+
* given reader into the given message object.
|
|
1689
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse} msg The message object to deserialize into.
|
|
1690
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1691
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse}
|
|
1692
|
+
*/
|
|
1693
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1694
|
+
while (reader.nextField()) {
|
|
1695
|
+
if (reader.isEndGroup()) {
|
|
1696
|
+
break;
|
|
1697
|
+
}
|
|
1698
|
+
var field = reader.getFieldNumber();
|
|
1699
|
+
switch (field) {
|
|
1700
|
+
case 1:
|
|
1701
|
+
var value = new proto.kurrentdb.protocol.v2.streams.StreamRevision;
|
|
1702
|
+
reader.readMessage(value,proto.kurrentdb.protocol.v2.streams.StreamRevision.deserializeBinaryFromReader);
|
|
1703
|
+
msg.addRevisions(value);
|
|
1704
|
+
break;
|
|
1705
|
+
case 2:
|
|
1706
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
1707
|
+
msg.setPosition(value);
|
|
1708
|
+
break;
|
|
1709
|
+
default:
|
|
1710
|
+
reader.skipField();
|
|
1711
|
+
break;
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
return msg;
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1720
|
+
* @return {!Uint8Array}
|
|
1721
|
+
*/
|
|
1722
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.serializeBinary = function() {
|
|
1723
|
+
var writer = new jspb.BinaryWriter();
|
|
1724
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.serializeBinaryToWriter(this, writer);
|
|
1725
|
+
return writer.getResultBuffer();
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1731
|
+
* format), writing to the given BinaryWriter.
|
|
1732
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse} message
|
|
1733
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1734
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1735
|
+
*/
|
|
1736
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1737
|
+
var f = undefined;
|
|
1738
|
+
f = message.getRevisionsList();
|
|
1739
|
+
if (f.length > 0) {
|
|
1740
|
+
writer.writeRepeatedMessage(
|
|
1741
|
+
1,
|
|
1742
|
+
f,
|
|
1743
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.serializeBinaryToWriter
|
|
1744
|
+
);
|
|
1745
|
+
}
|
|
1746
|
+
f = message.getPosition();
|
|
1747
|
+
if (parseInt(f, 10) !== 0) {
|
|
1748
|
+
writer.writeSint64String(
|
|
1749
|
+
2,
|
|
1750
|
+
f
|
|
1751
|
+
);
|
|
1752
|
+
}
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* repeated StreamRevision revisions = 1;
|
|
1758
|
+
* @return {!Array<!proto.kurrentdb.protocol.v2.streams.StreamRevision>}
|
|
1759
|
+
*/
|
|
1760
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.getRevisionsList = function() {
|
|
1761
|
+
return /** @type{!Array<!proto.kurrentdb.protocol.v2.streams.StreamRevision>} */ (
|
|
1762
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.streams.StreamRevision, 1));
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* @param {!Array<!proto.kurrentdb.protocol.v2.streams.StreamRevision>} value
|
|
1768
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse} returns this
|
|
1769
|
+
*/
|
|
1770
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.setRevisionsList = function(value) {
|
|
1771
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.StreamRevision=} opt_value
|
|
1777
|
+
* @param {number=} opt_index
|
|
1778
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.StreamRevision}
|
|
1779
|
+
*/
|
|
1780
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.addRevisions = function(opt_value, opt_index) {
|
|
1781
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.streams.StreamRevision, opt_index);
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* Clears the list making it empty but non-null.
|
|
1787
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse} returns this
|
|
1788
|
+
*/
|
|
1789
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.clearRevisionsList = function() {
|
|
1790
|
+
return this.setRevisionsList([]);
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* optional sint64 position = 2;
|
|
1796
|
+
* @return {string}
|
|
1797
|
+
*/
|
|
1798
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.getPosition = function() {
|
|
1799
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* @param {string} value
|
|
1805
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse} returns this
|
|
1806
|
+
*/
|
|
1807
|
+
proto.kurrentdb.protocol.v2.streams.AppendRecordsResponse.prototype.setPosition = function(value) {
|
|
1808
|
+
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
1815
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
1816
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
1817
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
1818
|
+
* @private {!Array<!Array<number>>}
|
|
1819
|
+
* @const
|
|
1820
|
+
*/
|
|
1821
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.oneofGroups_ = [[1]];
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* @enum {number}
|
|
1825
|
+
*/
|
|
1826
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.TypeCase = {
|
|
1827
|
+
TYPE_NOT_SET: 0,
|
|
1828
|
+
STREAM_STATE: 1
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* @return {proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.TypeCase}
|
|
1833
|
+
*/
|
|
1834
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.getTypeCase = function() {
|
|
1835
|
+
return /** @type {proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.TypeCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.oneofGroups_[0]));
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1841
|
+
/**
|
|
1842
|
+
* Creates an object representation of this proto.
|
|
1843
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1844
|
+
* Optional fields that are not set will be set to undefined.
|
|
1845
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1846
|
+
* For the list of reserved names please see:
|
|
1847
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1848
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1849
|
+
* JSPB instance for transitional soy proto support:
|
|
1850
|
+
* http://goto/soy-param-migration
|
|
1851
|
+
* @return {!Object}
|
|
1852
|
+
*/
|
|
1853
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.toObject = function(opt_includeInstance) {
|
|
1854
|
+
return proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.toObject(opt_includeInstance, this);
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Static version of the {@see toObject} method.
|
|
1860
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1861
|
+
* the JSPB instance for transitional soy proto support:
|
|
1862
|
+
* http://goto/soy-param-migration
|
|
1863
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck} msg The msg instance to transform.
|
|
1864
|
+
* @return {!Object}
|
|
1865
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1866
|
+
*/
|
|
1867
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.toObject = function(includeInstance, msg) {
|
|
1868
|
+
var f, obj = {
|
|
1869
|
+
streamState: (f = msg.getStreamState()) && proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.toObject(includeInstance, f)
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
if (includeInstance) {
|
|
1873
|
+
obj.$jspbMessageInstance = msg;
|
|
1874
|
+
}
|
|
1875
|
+
return obj;
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1882
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1883
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck}
|
|
1884
|
+
*/
|
|
1885
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.deserializeBinary = function(bytes) {
|
|
1886
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1887
|
+
var msg = new proto.kurrentdb.protocol.v2.streams.ConsistencyCheck;
|
|
1888
|
+
return proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.deserializeBinaryFromReader(msg, reader);
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1894
|
+
* given reader into the given message object.
|
|
1895
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck} msg The message object to deserialize into.
|
|
1896
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1897
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck}
|
|
1898
|
+
*/
|
|
1899
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.deserializeBinaryFromReader = function(msg, reader) {
|
|
1900
|
+
while (reader.nextField()) {
|
|
1901
|
+
if (reader.isEndGroup()) {
|
|
1902
|
+
break;
|
|
1903
|
+
}
|
|
1904
|
+
var field = reader.getFieldNumber();
|
|
1905
|
+
switch (field) {
|
|
1906
|
+
case 1:
|
|
1907
|
+
var value = new proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck;
|
|
1908
|
+
reader.readMessage(value,proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.deserializeBinaryFromReader);
|
|
1909
|
+
msg.setStreamState(value);
|
|
1910
|
+
break;
|
|
1911
|
+
default:
|
|
1912
|
+
reader.skipField();
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
return msg;
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1922
|
+
* @return {!Uint8Array}
|
|
1923
|
+
*/
|
|
1924
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.serializeBinary = function() {
|
|
1925
|
+
var writer = new jspb.BinaryWriter();
|
|
1926
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.serializeBinaryToWriter(this, writer);
|
|
1927
|
+
return writer.getResultBuffer();
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1933
|
+
* format), writing to the given BinaryWriter.
|
|
1934
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck} message
|
|
1935
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1936
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1937
|
+
*/
|
|
1938
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.serializeBinaryToWriter = function(message, writer) {
|
|
1939
|
+
var f = undefined;
|
|
1940
|
+
f = message.getStreamState();
|
|
1941
|
+
if (f != null) {
|
|
1942
|
+
writer.writeMessage(
|
|
1943
|
+
1,
|
|
1944
|
+
f,
|
|
1945
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.serializeBinaryToWriter
|
|
1946
|
+
);
|
|
1947
|
+
}
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1955
|
+
/**
|
|
1956
|
+
* Creates an object representation of this proto.
|
|
1957
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1958
|
+
* Optional fields that are not set will be set to undefined.
|
|
1959
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1960
|
+
* For the list of reserved names please see:
|
|
1961
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1962
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1963
|
+
* JSPB instance for transitional soy proto support:
|
|
1964
|
+
* http://goto/soy-param-migration
|
|
1965
|
+
* @return {!Object}
|
|
1966
|
+
*/
|
|
1967
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.prototype.toObject = function(opt_includeInstance) {
|
|
1968
|
+
return proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.toObject(opt_includeInstance, this);
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Static version of the {@see toObject} method.
|
|
1974
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1975
|
+
* the JSPB instance for transitional soy proto support:
|
|
1976
|
+
* http://goto/soy-param-migration
|
|
1977
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck} msg The msg instance to transform.
|
|
1978
|
+
* @return {!Object}
|
|
1979
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1980
|
+
*/
|
|
1981
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.toObject = function(includeInstance, msg) {
|
|
1982
|
+
var f, obj = {
|
|
1983
|
+
stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1984
|
+
expectedState: jspb.Message.getFieldWithDefault(msg, 2, "0")
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
if (includeInstance) {
|
|
1988
|
+
obj.$jspbMessageInstance = msg;
|
|
1989
|
+
}
|
|
1990
|
+
return obj;
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1997
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1998
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck}
|
|
1999
|
+
*/
|
|
2000
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.deserializeBinary = function(bytes) {
|
|
2001
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2002
|
+
var msg = new proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck;
|
|
2003
|
+
return proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.deserializeBinaryFromReader(msg, reader);
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2009
|
+
* given reader into the given message object.
|
|
2010
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck} msg The message object to deserialize into.
|
|
2011
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2012
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck}
|
|
2013
|
+
*/
|
|
2014
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.deserializeBinaryFromReader = function(msg, reader) {
|
|
2015
|
+
while (reader.nextField()) {
|
|
2016
|
+
if (reader.isEndGroup()) {
|
|
2017
|
+
break;
|
|
2018
|
+
}
|
|
2019
|
+
var field = reader.getFieldNumber();
|
|
2020
|
+
switch (field) {
|
|
2021
|
+
case 1:
|
|
2022
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2023
|
+
msg.setStream(value);
|
|
2024
|
+
break;
|
|
2025
|
+
case 2:
|
|
2026
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
2027
|
+
msg.setExpectedState(value);
|
|
2028
|
+
break;
|
|
2029
|
+
default:
|
|
2030
|
+
reader.skipField();
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
return msg;
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2040
|
+
* @return {!Uint8Array}
|
|
2041
|
+
*/
|
|
2042
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.prototype.serializeBinary = function() {
|
|
2043
|
+
var writer = new jspb.BinaryWriter();
|
|
2044
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.serializeBinaryToWriter(this, writer);
|
|
2045
|
+
return writer.getResultBuffer();
|
|
2046
|
+
};
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2051
|
+
* format), writing to the given BinaryWriter.
|
|
2052
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck} message
|
|
2053
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2054
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2055
|
+
*/
|
|
2056
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.serializeBinaryToWriter = function(message, writer) {
|
|
2057
|
+
var f = undefined;
|
|
2058
|
+
f = message.getStream();
|
|
2059
|
+
if (f.length > 0) {
|
|
2060
|
+
writer.writeString(
|
|
2061
|
+
1,
|
|
2062
|
+
f
|
|
2063
|
+
);
|
|
2064
|
+
}
|
|
2065
|
+
f = message.getExpectedState();
|
|
2066
|
+
if (parseInt(f, 10) !== 0) {
|
|
2067
|
+
writer.writeSint64String(
|
|
2068
|
+
2,
|
|
2069
|
+
f
|
|
2070
|
+
);
|
|
2071
|
+
}
|
|
2072
|
+
};
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* optional string stream = 1;
|
|
2077
|
+
* @return {string}
|
|
2078
|
+
*/
|
|
2079
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.prototype.getStream = function() {
|
|
2080
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2081
|
+
};
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
/**
|
|
2085
|
+
* @param {string} value
|
|
2086
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck} returns this
|
|
2087
|
+
*/
|
|
2088
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.prototype.setStream = function(value) {
|
|
2089
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* optional sint64 expected_state = 2;
|
|
2095
|
+
* @return {string}
|
|
2096
|
+
*/
|
|
2097
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.prototype.getExpectedState = function() {
|
|
2098
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* @param {string} value
|
|
2104
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck} returns this
|
|
2105
|
+
*/
|
|
2106
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck.prototype.setExpectedState = function(value) {
|
|
2107
|
+
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* optional StreamStateCheck stream_state = 1;
|
|
2113
|
+
* @return {?proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck}
|
|
2114
|
+
*/
|
|
2115
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.getStreamState = function() {
|
|
2116
|
+
return /** @type{?proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck} */ (
|
|
2117
|
+
jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck, 1));
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* @param {?proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.StreamStateCheck|undefined} value
|
|
2123
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck} returns this
|
|
2124
|
+
*/
|
|
2125
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.setStreamState = function(value) {
|
|
2126
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.oneofGroups_[0], value);
|
|
2127
|
+
};
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* Clears the message field making it undefined.
|
|
2132
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.ConsistencyCheck} returns this
|
|
2133
|
+
*/
|
|
2134
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.clearStreamState = function() {
|
|
2135
|
+
return this.setStreamState(undefined);
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Returns whether this field is set.
|
|
2141
|
+
* @return {boolean}
|
|
2142
|
+
*/
|
|
2143
|
+
proto.kurrentdb.protocol.v2.streams.ConsistencyCheck.prototype.hasStreamState = function() {
|
|
2144
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2145
|
+
};
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2152
|
+
/**
|
|
2153
|
+
* Creates an object representation of this proto.
|
|
2154
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2155
|
+
* Optional fields that are not set will be set to undefined.
|
|
2156
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2157
|
+
* For the list of reserved names please see:
|
|
2158
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2159
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2160
|
+
* JSPB instance for transitional soy proto support:
|
|
2161
|
+
* http://goto/soy-param-migration
|
|
2162
|
+
* @return {!Object}
|
|
2163
|
+
*/
|
|
2164
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.prototype.toObject = function(opt_includeInstance) {
|
|
2165
|
+
return proto.kurrentdb.protocol.v2.streams.StreamRevision.toObject(opt_includeInstance, this);
|
|
2166
|
+
};
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Static version of the {@see toObject} method.
|
|
2171
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2172
|
+
* the JSPB instance for transitional soy proto support:
|
|
2173
|
+
* http://goto/soy-param-migration
|
|
2174
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.StreamRevision} msg The msg instance to transform.
|
|
2175
|
+
* @return {!Object}
|
|
2176
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2177
|
+
*/
|
|
2178
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.toObject = function(includeInstance, msg) {
|
|
2179
|
+
var f, obj = {
|
|
2180
|
+
stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2181
|
+
revision: jspb.Message.getFieldWithDefault(msg, 2, "0")
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
if (includeInstance) {
|
|
2185
|
+
obj.$jspbMessageInstance = msg;
|
|
2186
|
+
}
|
|
2187
|
+
return obj;
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2194
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2195
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.StreamRevision}
|
|
2196
|
+
*/
|
|
2197
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.deserializeBinary = function(bytes) {
|
|
2198
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2199
|
+
var msg = new proto.kurrentdb.protocol.v2.streams.StreamRevision;
|
|
2200
|
+
return proto.kurrentdb.protocol.v2.streams.StreamRevision.deserializeBinaryFromReader(msg, reader);
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2206
|
+
* given reader into the given message object.
|
|
2207
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.StreamRevision} msg The message object to deserialize into.
|
|
2208
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2209
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.StreamRevision}
|
|
2210
|
+
*/
|
|
2211
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.deserializeBinaryFromReader = function(msg, reader) {
|
|
2212
|
+
while (reader.nextField()) {
|
|
2213
|
+
if (reader.isEndGroup()) {
|
|
2214
|
+
break;
|
|
2215
|
+
}
|
|
2216
|
+
var field = reader.getFieldNumber();
|
|
2217
|
+
switch (field) {
|
|
2218
|
+
case 1:
|
|
2219
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2220
|
+
msg.setStream(value);
|
|
2221
|
+
break;
|
|
2222
|
+
case 2:
|
|
2223
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
2224
|
+
msg.setRevision(value);
|
|
2225
|
+
break;
|
|
2226
|
+
default:
|
|
2227
|
+
reader.skipField();
|
|
2228
|
+
break;
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
return msg;
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2237
|
+
* @return {!Uint8Array}
|
|
2238
|
+
*/
|
|
2239
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.prototype.serializeBinary = function() {
|
|
2240
|
+
var writer = new jspb.BinaryWriter();
|
|
2241
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.serializeBinaryToWriter(this, writer);
|
|
2242
|
+
return writer.getResultBuffer();
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2248
|
+
* format), writing to the given BinaryWriter.
|
|
2249
|
+
* @param {!proto.kurrentdb.protocol.v2.streams.StreamRevision} message
|
|
2250
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2251
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2252
|
+
*/
|
|
2253
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.serializeBinaryToWriter = function(message, writer) {
|
|
2254
|
+
var f = undefined;
|
|
2255
|
+
f = message.getStream();
|
|
2256
|
+
if (f.length > 0) {
|
|
2257
|
+
writer.writeString(
|
|
2258
|
+
1,
|
|
2259
|
+
f
|
|
2260
|
+
);
|
|
2261
|
+
}
|
|
2262
|
+
f = message.getRevision();
|
|
2263
|
+
if (parseInt(f, 10) !== 0) {
|
|
2264
|
+
writer.writeSint64String(
|
|
2265
|
+
2,
|
|
2266
|
+
f
|
|
2267
|
+
);
|
|
2268
|
+
}
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* optional string stream = 1;
|
|
2274
|
+
* @return {string}
|
|
2275
|
+
*/
|
|
2276
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.prototype.getStream = function() {
|
|
2277
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* @param {string} value
|
|
2283
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.StreamRevision} returns this
|
|
2284
|
+
*/
|
|
2285
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.prototype.setStream = function(value) {
|
|
2286
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* optional sint64 revision = 2;
|
|
2292
|
+
* @return {string}
|
|
2293
|
+
*/
|
|
2294
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.prototype.getRevision = function() {
|
|
2295
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* @param {string} value
|
|
2301
|
+
* @return {!proto.kurrentdb.protocol.v2.streams.StreamRevision} returns this
|
|
2302
|
+
*/
|
|
2303
|
+
proto.kurrentdb.protocol.v2.streams.StreamRevision.prototype.setRevision = function(value) {
|
|
2304
|
+
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
2305
|
+
};
|
|
2306
|
+
|
|
2307
|
+
|
|
1268
2308
|
/**
|
|
1269
2309
|
* @enum {number}
|
|
1270
2310
|
*/
|