@kurrent/kurrentdb-client 1.1.0 → 1.1.2

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.
@@ -1,1561 +1,1561 @@
1
- // source: kurrentdb/protocols/v2/streams/shared.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 google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
- goog.object.extend(proto, google_protobuf_timestamp_pb);
26
- var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
27
- goog.object.extend(proto, google_protobuf_descriptor_pb);
28
- var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js');
29
- goog.object.extend(proto, kurrentdb_protocols_v2_core_pb);
30
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails', null, global);
31
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied', null, global);
32
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound', null, global);
33
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated', null, global);
34
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted', null, global);
35
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound', null, global);
36
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict', null, global);
37
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned', null, global);
38
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global);
39
- goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound', null, global);
40
- /**
41
- * Generated by JsPbCodeGenerator.
42
- * @param {Array=} opt_data Optional initial data array, typically from a
43
- * server response, or constructed directly in Javascript. The array is used
44
- * in place and becomes part of the constructed object. It is not cloned.
45
- * If no data is provided, the constructed object will be empty, but still
46
- * valid.
47
- * @extends {jspb.Message}
48
- * @constructor
49
- */
50
- proto.kurrentdb.protocol.v2.ErrorDetails = function(opt_data) {
51
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
- };
53
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails, jspb.Message);
54
- if (goog.DEBUG && !COMPILED) {
55
- /**
56
- * @public
57
- * @override
58
- */
59
- proto.kurrentdb.protocol.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails';
60
- }
61
- /**
62
- * Generated by JsPbCodeGenerator.
63
- * @param {Array=} opt_data Optional initial data array, typically from a
64
- * server response, or constructed directly in Javascript. The array is used
65
- * in place and becomes part of the constructed object. It is not cloned.
66
- * If no data is provided, the constructed object will be empty, but still
67
- * valid.
68
- * @extends {jspb.Message}
69
- * @constructor
70
- */
71
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied = function(opt_data) {
72
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
- };
74
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, jspb.Message);
75
- if (goog.DEBUG && !COMPILED) {
76
- /**
77
- * @public
78
- * @override
79
- */
80
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied';
81
- }
82
- /**
83
- * Generated by JsPbCodeGenerator.
84
- * @param {Array=} opt_data Optional initial data array, typically from a
85
- * server response, or constructed directly in Javascript. The array is used
86
- * in place and becomes part of the constructed object. It is not cloned.
87
- * If no data is provided, the constructed object will be empty, but still
88
- * valid.
89
- * @extends {jspb.Message}
90
- * @constructor
91
- */
92
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted = function(opt_data) {
93
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
- };
95
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, jspb.Message);
96
- if (goog.DEBUG && !COMPILED) {
97
- /**
98
- * @public
99
- * @override
100
- */
101
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted';
102
- }
103
- /**
104
- * Generated by JsPbCodeGenerator.
105
- * @param {Array=} opt_data Optional initial data array, typically from a
106
- * server response, or constructed directly in Javascript. The array is used
107
- * in place and becomes part of the constructed object. It is not cloned.
108
- * If no data is provided, the constructed object will be empty, but still
109
- * valid.
110
- * @extends {jspb.Message}
111
- * @constructor
112
- */
113
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned = function(opt_data) {
114
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
- };
116
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned, jspb.Message);
117
- if (goog.DEBUG && !COMPILED) {
118
- /**
119
- * @public
120
- * @override
121
- */
122
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned';
123
- }
124
- /**
125
- * Generated by JsPbCodeGenerator.
126
- * @param {Array=} opt_data Optional initial data array, typically from a
127
- * server response, or constructed directly in Javascript. The array is used
128
- * in place and becomes part of the constructed object. It is not cloned.
129
- * If no data is provided, the constructed object will be empty, but still
130
- * valid.
131
- * @extends {jspb.Message}
132
- * @constructor
133
- */
134
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound = function(opt_data) {
135
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
- };
137
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound, jspb.Message);
138
- if (goog.DEBUG && !COMPILED) {
139
- /**
140
- * @public
141
- * @override
142
- */
143
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound';
144
- }
145
- /**
146
- * Generated by JsPbCodeGenerator.
147
- * @param {Array=} opt_data Optional initial data array, typically from a
148
- * server response, or constructed directly in Javascript. The array is used
149
- * in place and becomes part of the constructed object. It is not cloned.
150
- * If no data is provided, the constructed object will be empty, but still
151
- * valid.
152
- * @extends {jspb.Message}
153
- * @constructor
154
- */
155
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict = function(opt_data) {
156
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
- };
158
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict, jspb.Message);
159
- if (goog.DEBUG && !COMPILED) {
160
- /**
161
- * @public
162
- * @override
163
- */
164
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict';
165
- }
166
- /**
167
- * Generated by JsPbCodeGenerator.
168
- * @param {Array=} opt_data Optional initial data array, typically from a
169
- * server response, or constructed directly in Javascript. The array is used
170
- * in place and becomes part of the constructed object. It is not cloned.
171
- * If no data is provided, the constructed object will be empty, but still
172
- * valid.
173
- * @extends {jspb.Message}
174
- * @constructor
175
- */
176
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) {
177
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
- };
179
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message);
180
- if (goog.DEBUG && !COMPILED) {
181
- /**
182
- * @public
183
- * @override
184
- */
185
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded';
186
- }
187
- /**
188
- * Generated by JsPbCodeGenerator.
189
- * @param {Array=} opt_data Optional initial data array, typically from a
190
- * server response, or constructed directly in Javascript. The array is used
191
- * in place and becomes part of the constructed object. It is not cloned.
192
- * If no data is provided, the constructed object will be empty, but still
193
- * valid.
194
- * @extends {jspb.Message}
195
- * @constructor
196
- */
197
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound = function(opt_data) {
198
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
- };
200
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound, jspb.Message);
201
- if (goog.DEBUG && !COMPILED) {
202
- /**
203
- * @public
204
- * @override
205
- */
206
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound';
207
- }
208
- /**
209
- * Generated by JsPbCodeGenerator.
210
- * @param {Array=} opt_data Optional initial data array, typically from a
211
- * server response, or constructed directly in Javascript. The array is used
212
- * in place and becomes part of the constructed object. It is not cloned.
213
- * If no data is provided, the constructed object will be empty, but still
214
- * valid.
215
- * @extends {jspb.Message}
216
- * @constructor
217
- */
218
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated = function(opt_data) {
219
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
- };
221
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated, jspb.Message);
222
- if (goog.DEBUG && !COMPILED) {
223
- /**
224
- * @public
225
- * @override
226
- */
227
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated';
228
- }
229
- /**
230
- * Generated by JsPbCodeGenerator.
231
- * @param {Array=} opt_data Optional initial data array, typically from a
232
- * server response, or constructed directly in Javascript. The array is used
233
- * in place and becomes part of the constructed object. It is not cloned.
234
- * If no data is provided, the constructed object will be empty, but still
235
- * valid.
236
- * @extends {jspb.Message}
237
- * @constructor
238
- */
239
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound = function(opt_data) {
240
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
241
- };
242
- goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound, jspb.Message);
243
- if (goog.DEBUG && !COMPILED) {
244
- /**
245
- * @public
246
- * @override
247
- */
248
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound';
249
- }
250
-
251
-
252
-
253
- if (jspb.Message.GENERATE_TO_OBJECT) {
254
- /**
255
- * Creates an object representation of this proto.
256
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
257
- * Optional fields that are not set will be set to undefined.
258
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
259
- * For the list of reserved names please see:
260
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
261
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
262
- * JSPB instance for transitional soy proto support:
263
- * http://goto/soy-param-migration
264
- * @return {!Object}
265
- */
266
- proto.kurrentdb.protocol.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) {
267
- return proto.kurrentdb.protocol.v2.ErrorDetails.toObject(opt_includeInstance, this);
268
- };
269
-
270
-
271
- /**
272
- * Static version of the {@see toObject} method.
273
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
274
- * the JSPB instance for transitional soy proto support:
275
- * http://goto/soy-param-migration
276
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The msg instance to transform.
277
- * @return {!Object}
278
- * @suppress {unusedLocalVariables} f is only used for nested messages
279
- */
280
- proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, msg) {
281
- var f, obj = {
282
-
283
- };
284
-
285
- if (includeInstance) {
286
- obj.$jspbMessageInstance = msg;
287
- }
288
- return obj;
289
- };
290
- }
291
-
292
-
293
- /**
294
- * Deserializes binary data (in protobuf wire format).
295
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
296
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails}
297
- */
298
- proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinary = function(bytes) {
299
- var reader = new jspb.BinaryReader(bytes);
300
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails;
301
- return proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader);
302
- };
303
-
304
-
305
- /**
306
- * Deserializes binary data (in protobuf wire format) from the
307
- * given reader into the given message object.
308
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The message object to deserialize into.
309
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
310
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails}
311
- */
312
- proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
313
- while (reader.nextField()) {
314
- if (reader.isEndGroup()) {
315
- break;
316
- }
317
- var field = reader.getFieldNumber();
318
- switch (field) {
319
- default:
320
- reader.skipField();
321
- break;
322
- }
323
- }
324
- return msg;
325
- };
326
-
327
-
328
- /**
329
- * Serializes the message to binary data (in protobuf wire format).
330
- * @return {!Uint8Array}
331
- */
332
- proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() {
333
- var writer = new jspb.BinaryWriter();
334
- proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter(this, writer);
335
- return writer.getResultBuffer();
336
- };
337
-
338
-
339
- /**
340
- * Serializes the given message to binary data (in protobuf wire
341
- * format), writing to the given BinaryWriter.
342
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} message
343
- * @param {!jspb.BinaryWriter} writer
344
- * @suppress {unusedLocalVariables} f is only used for nested messages
345
- */
346
- proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) {
347
- var f = undefined;
348
- };
349
-
350
-
351
-
352
-
353
-
354
- if (jspb.Message.GENERATE_TO_OBJECT) {
355
- /**
356
- * Creates an object representation of this proto.
357
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
358
- * Optional fields that are not set will be set to undefined.
359
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
360
- * For the list of reserved names please see:
361
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
362
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
363
- * JSPB instance for transitional soy proto support:
364
- * http://goto/soy-param-migration
365
- * @return {!Object}
366
- */
367
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) {
368
- return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(opt_includeInstance, this);
369
- };
370
-
371
-
372
- /**
373
- * Static version of the {@see toObject} method.
374
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
375
- * the JSPB instance for transitional soy proto support:
376
- * http://goto/soy-param-migration
377
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The msg instance to transform.
378
- * @return {!Object}
379
- * @suppress {unusedLocalVariables} f is only used for nested messages
380
- */
381
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includeInstance, msg) {
382
- var f, obj = {
383
-
384
- };
385
-
386
- if (includeInstance) {
387
- obj.$jspbMessageInstance = msg;
388
- }
389
- return obj;
390
- };
391
- }
392
-
393
-
394
- /**
395
- * Deserializes binary data (in protobuf wire format).
396
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
397
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied}
398
- */
399
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) {
400
- var reader = new jspb.BinaryReader(bytes);
401
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied;
402
- return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader(msg, reader);
403
- };
404
-
405
-
406
- /**
407
- * Deserializes binary data (in protobuf wire format) from the
408
- * given reader into the given message object.
409
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into.
410
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
411
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied}
412
- */
413
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader = function(msg, reader) {
414
- while (reader.nextField()) {
415
- if (reader.isEndGroup()) {
416
- break;
417
- }
418
- var field = reader.getFieldNumber();
419
- switch (field) {
420
- default:
421
- reader.skipField();
422
- break;
423
- }
424
- }
425
- return msg;
426
- };
427
-
428
-
429
- /**
430
- * Serializes the message to binary data (in protobuf wire format).
431
- * @return {!Uint8Array}
432
- */
433
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() {
434
- var writer = new jspb.BinaryWriter();
435
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter(this, writer);
436
- return writer.getResultBuffer();
437
- };
438
-
439
-
440
- /**
441
- * Serializes the given message to binary data (in protobuf wire
442
- * format), writing to the given BinaryWriter.
443
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} message
444
- * @param {!jspb.BinaryWriter} writer
445
- * @suppress {unusedLocalVariables} f is only used for nested messages
446
- */
447
- proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter = function(message, writer) {
448
- var f = undefined;
449
- };
450
-
451
-
452
-
453
-
454
-
455
- if (jspb.Message.GENERATE_TO_OBJECT) {
456
- /**
457
- * Creates an object representation of this proto.
458
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
459
- * Optional fields that are not set will be set to undefined.
460
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
461
- * For the list of reserved names please see:
462
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
463
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
464
- * JSPB instance for transitional soy proto support:
465
- * http://goto/soy-param-migration
466
- * @return {!Object}
467
- */
468
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) {
469
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(opt_includeInstance, this);
470
- };
471
-
472
-
473
- /**
474
- * Static version of the {@see toObject} method.
475
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
476
- * the JSPB instance for transitional soy proto support:
477
- * http://goto/soy-param-migration
478
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The msg instance to transform.
479
- * @return {!Object}
480
- * @suppress {unusedLocalVariables} f is only used for nested messages
481
- */
482
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) {
483
- var f, obj = {
484
- stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
485
- deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
486
- };
487
-
488
- if (includeInstance) {
489
- obj.$jspbMessageInstance = msg;
490
- }
491
- return obj;
492
- };
493
- }
494
-
495
-
496
- /**
497
- * Deserializes binary data (in protobuf wire format).
498
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
499
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted}
500
- */
501
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) {
502
- var reader = new jspb.BinaryReader(bytes);
503
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted;
504
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader(msg, reader);
505
- };
506
-
507
-
508
- /**
509
- * Deserializes binary data (in protobuf wire format) from the
510
- * given reader into the given message object.
511
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into.
512
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
513
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted}
514
- */
515
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) {
516
- while (reader.nextField()) {
517
- if (reader.isEndGroup()) {
518
- break;
519
- }
520
- var field = reader.getFieldNumber();
521
- switch (field) {
522
- case 1:
523
- var value = /** @type {string} */ (reader.readString());
524
- msg.setStream(value);
525
- break;
526
- case 2:
527
- var value = new google_protobuf_timestamp_pb.Timestamp;
528
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
529
- msg.setDeletedAt(value);
530
- break;
531
- default:
532
- reader.skipField();
533
- break;
534
- }
535
- }
536
- return msg;
537
- };
538
-
539
-
540
- /**
541
- * Serializes the message to binary data (in protobuf wire format).
542
- * @return {!Uint8Array}
543
- */
544
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() {
545
- var writer = new jspb.BinaryWriter();
546
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter(this, writer);
547
- return writer.getResultBuffer();
548
- };
549
-
550
-
551
- /**
552
- * Serializes the given message to binary data (in protobuf wire
553
- * format), writing to the given BinaryWriter.
554
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} message
555
- * @param {!jspb.BinaryWriter} writer
556
- * @suppress {unusedLocalVariables} f is only used for nested messages
557
- */
558
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) {
559
- var f = undefined;
560
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
561
- if (f != null) {
562
- writer.writeString(
563
- 1,
564
- f
565
- );
566
- }
567
- f = message.getDeletedAt();
568
- if (f != null) {
569
- writer.writeMessage(
570
- 2,
571
- f,
572
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
573
- );
574
- }
575
- };
576
-
577
-
578
- /**
579
- * optional string stream = 1;
580
- * @return {string}
581
- */
582
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getStream = function() {
583
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
584
- };
585
-
586
-
587
- /**
588
- * @param {string} value
589
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
590
- */
591
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setStream = function(value) {
592
- return jspb.Message.setField(this, 1, value);
593
- };
594
-
595
-
596
- /**
597
- * Clears the field making it undefined.
598
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
599
- */
600
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearStream = function() {
601
- return jspb.Message.setField(this, 1, undefined);
602
- };
603
-
604
-
605
- /**
606
- * Returns whether this field is set.
607
- * @return {boolean}
608
- */
609
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasStream = function() {
610
- return jspb.Message.getField(this, 1) != null;
611
- };
612
-
613
-
614
- /**
615
- * optional google.protobuf.Timestamp deleted_at = 2;
616
- * @return {?proto.google.protobuf.Timestamp}
617
- */
618
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getDeletedAt = function() {
619
- return /** @type{?proto.google.protobuf.Timestamp} */ (
620
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
621
- };
622
-
623
-
624
- /**
625
- * @param {?proto.google.protobuf.Timestamp|undefined} value
626
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
627
- */
628
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setDeletedAt = function(value) {
629
- return jspb.Message.setWrapperField(this, 2, value);
630
- };
631
-
632
-
633
- /**
634
- * Clears the message field making it undefined.
635
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
636
- */
637
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearDeletedAt = function() {
638
- return this.setDeletedAt(undefined);
639
- };
640
-
641
-
642
- /**
643
- * Returns whether this field is set.
644
- * @return {boolean}
645
- */
646
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasDeletedAt = function() {
647
- return jspb.Message.getField(this, 2) != null;
648
- };
649
-
650
-
651
-
652
-
653
-
654
- if (jspb.Message.GENERATE_TO_OBJECT) {
655
- /**
656
- * Creates an object representation of this proto.
657
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
658
- * Optional fields that are not set will be set to undefined.
659
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
660
- * For the list of reserved names please see:
661
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
662
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
663
- * JSPB instance for transitional soy proto support:
664
- * http://goto/soy-param-migration
665
- * @return {!Object}
666
- */
667
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.toObject = function(opt_includeInstance) {
668
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject(opt_includeInstance, this);
669
- };
670
-
671
-
672
- /**
673
- * Static version of the {@see toObject} method.
674
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
675
- * the JSPB instance for transitional soy proto support:
676
- * http://goto/soy-param-migration
677
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The msg instance to transform.
678
- * @return {!Object}
679
- * @suppress {unusedLocalVariables} f is only used for nested messages
680
- */
681
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject = function(includeInstance, msg) {
682
- var f, obj = {
683
- stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
684
- tombstonedAt: (f = msg.getTombstonedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
685
- };
686
-
687
- if (includeInstance) {
688
- obj.$jspbMessageInstance = msg;
689
- }
690
- return obj;
691
- };
692
- }
693
-
694
-
695
- /**
696
- * Deserializes binary data (in protobuf wire format).
697
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
698
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned}
699
- */
700
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinary = function(bytes) {
701
- var reader = new jspb.BinaryReader(bytes);
702
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned;
703
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader(msg, reader);
704
- };
705
-
706
-
707
- /**
708
- * Deserializes binary data (in protobuf wire format) from the
709
- * given reader into the given message object.
710
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The message object to deserialize into.
711
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
712
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned}
713
- */
714
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader = function(msg, reader) {
715
- while (reader.nextField()) {
716
- if (reader.isEndGroup()) {
717
- break;
718
- }
719
- var field = reader.getFieldNumber();
720
- switch (field) {
721
- case 1:
722
- var value = /** @type {string} */ (reader.readString());
723
- msg.setStream(value);
724
- break;
725
- case 2:
726
- var value = new google_protobuf_timestamp_pb.Timestamp;
727
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
728
- msg.setTombstonedAt(value);
729
- break;
730
- default:
731
- reader.skipField();
732
- break;
733
- }
734
- }
735
- return msg;
736
- };
737
-
738
-
739
- /**
740
- * Serializes the message to binary data (in protobuf wire format).
741
- * @return {!Uint8Array}
742
- */
743
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.serializeBinary = function() {
744
- var writer = new jspb.BinaryWriter();
745
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter(this, writer);
746
- return writer.getResultBuffer();
747
- };
748
-
749
-
750
- /**
751
- * Serializes the given message to binary data (in protobuf wire
752
- * format), writing to the given BinaryWriter.
753
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} message
754
- * @param {!jspb.BinaryWriter} writer
755
- * @suppress {unusedLocalVariables} f is only used for nested messages
756
- */
757
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter = function(message, writer) {
758
- var f = undefined;
759
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
760
- if (f != null) {
761
- writer.writeString(
762
- 1,
763
- f
764
- );
765
- }
766
- f = message.getTombstonedAt();
767
- if (f != null) {
768
- writer.writeMessage(
769
- 2,
770
- f,
771
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
772
- );
773
- }
774
- };
775
-
776
-
777
- /**
778
- * optional string stream = 1;
779
- * @return {string}
780
- */
781
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getStream = function() {
782
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
783
- };
784
-
785
-
786
- /**
787
- * @param {string} value
788
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
789
- */
790
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setStream = function(value) {
791
- return jspb.Message.setField(this, 1, value);
792
- };
793
-
794
-
795
- /**
796
- * Clears the field making it undefined.
797
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
798
- */
799
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearStream = function() {
800
- return jspb.Message.setField(this, 1, undefined);
801
- };
802
-
803
-
804
- /**
805
- * Returns whether this field is set.
806
- * @return {boolean}
807
- */
808
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasStream = function() {
809
- return jspb.Message.getField(this, 1) != null;
810
- };
811
-
812
-
813
- /**
814
- * optional google.protobuf.Timestamp tombstoned_at = 2;
815
- * @return {?proto.google.protobuf.Timestamp}
816
- */
817
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getTombstonedAt = function() {
818
- return /** @type{?proto.google.protobuf.Timestamp} */ (
819
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
820
- };
821
-
822
-
823
- /**
824
- * @param {?proto.google.protobuf.Timestamp|undefined} value
825
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
826
- */
827
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setTombstonedAt = function(value) {
828
- return jspb.Message.setWrapperField(this, 2, value);
829
- };
830
-
831
-
832
- /**
833
- * Clears the message field making it undefined.
834
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
835
- */
836
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearTombstonedAt = function() {
837
- return this.setTombstonedAt(undefined);
838
- };
839
-
840
-
841
- /**
842
- * Returns whether this field is set.
843
- * @return {boolean}
844
- */
845
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasTombstonedAt = function() {
846
- return jspb.Message.getField(this, 2) != null;
847
- };
848
-
849
-
850
-
851
-
852
-
853
- if (jspb.Message.GENERATE_TO_OBJECT) {
854
- /**
855
- * Creates an object representation of this proto.
856
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
857
- * Optional fields that are not set will be set to undefined.
858
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
859
- * For the list of reserved names please see:
860
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
861
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
862
- * JSPB instance for transitional soy proto support:
863
- * http://goto/soy-param-migration
864
- * @return {!Object}
865
- */
866
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.toObject = function(opt_includeInstance) {
867
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.toObject(opt_includeInstance, this);
868
- };
869
-
870
-
871
- /**
872
- * Static version of the {@see toObject} method.
873
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
874
- * the JSPB instance for transitional soy proto support:
875
- * http://goto/soy-param-migration
876
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The msg instance to transform.
877
- * @return {!Object}
878
- * @suppress {unusedLocalVariables} f is only used for nested messages
879
- */
880
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.toObject = function(includeInstance, msg) {
881
- var f, obj = {
882
- stream: jspb.Message.getFieldWithDefault(msg, 1, "")
883
- };
884
-
885
- if (includeInstance) {
886
- obj.$jspbMessageInstance = msg;
887
- }
888
- return obj;
889
- };
890
- }
891
-
892
-
893
- /**
894
- * Deserializes binary data (in protobuf wire format).
895
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
896
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound}
897
- */
898
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinary = function(bytes) {
899
- var reader = new jspb.BinaryReader(bytes);
900
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound;
901
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader(msg, reader);
902
- };
903
-
904
-
905
- /**
906
- * Deserializes binary data (in protobuf wire format) from the
907
- * given reader into the given message object.
908
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The message object to deserialize into.
909
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
910
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound}
911
- */
912
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader = function(msg, reader) {
913
- while (reader.nextField()) {
914
- if (reader.isEndGroup()) {
915
- break;
916
- }
917
- var field = reader.getFieldNumber();
918
- switch (field) {
919
- case 1:
920
- var value = /** @type {string} */ (reader.readString());
921
- msg.setStream(value);
922
- break;
923
- default:
924
- reader.skipField();
925
- break;
926
- }
927
- }
928
- return msg;
929
- };
930
-
931
-
932
- /**
933
- * Serializes the message to binary data (in protobuf wire format).
934
- * @return {!Uint8Array}
935
- */
936
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.serializeBinary = function() {
937
- var writer = new jspb.BinaryWriter();
938
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter(this, writer);
939
- return writer.getResultBuffer();
940
- };
941
-
942
-
943
- /**
944
- * Serializes the given message to binary data (in protobuf wire
945
- * format), writing to the given BinaryWriter.
946
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} message
947
- * @param {!jspb.BinaryWriter} writer
948
- * @suppress {unusedLocalVariables} f is only used for nested messages
949
- */
950
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter = function(message, writer) {
951
- var f = undefined;
952
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
953
- if (f != null) {
954
- writer.writeString(
955
- 1,
956
- f
957
- );
958
- }
959
- };
960
-
961
-
962
- /**
963
- * optional string stream = 1;
964
- * @return {string}
965
- */
966
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.getStream = function() {
967
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
968
- };
969
-
970
-
971
- /**
972
- * @param {string} value
973
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this
974
- */
975
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.setStream = function(value) {
976
- return jspb.Message.setField(this, 1, value);
977
- };
978
-
979
-
980
- /**
981
- * Clears the field making it undefined.
982
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this
983
- */
984
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.clearStream = function() {
985
- return jspb.Message.setField(this, 1, undefined);
986
- };
987
-
988
-
989
- /**
990
- * Returns whether this field is set.
991
- * @return {boolean}
992
- */
993
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.hasStream = function() {
994
- return jspb.Message.getField(this, 1) != null;
995
- };
996
-
997
-
998
-
999
-
1000
-
1001
- if (jspb.Message.GENERATE_TO_OBJECT) {
1002
- /**
1003
- * Creates an object representation of this proto.
1004
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1005
- * Optional fields that are not set will be set to undefined.
1006
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1007
- * For the list of reserved names please see:
1008
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1009
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1010
- * JSPB instance for transitional soy proto support:
1011
- * http://goto/soy-param-migration
1012
- * @return {!Object}
1013
- */
1014
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.toObject = function(opt_includeInstance) {
1015
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject(opt_includeInstance, this);
1016
- };
1017
-
1018
-
1019
- /**
1020
- * Static version of the {@see toObject} method.
1021
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1022
- * the JSPB instance for transitional soy proto support:
1023
- * http://goto/soy-param-migration
1024
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The msg instance to transform.
1025
- * @return {!Object}
1026
- * @suppress {unusedLocalVariables} f is only used for nested messages
1027
- */
1028
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject = function(includeInstance, msg) {
1029
- var f, obj = {
1030
- streamRevision: jspb.Message.getFieldWithDefault(msg, 1, "0")
1031
- };
1032
-
1033
- if (includeInstance) {
1034
- obj.$jspbMessageInstance = msg;
1035
- }
1036
- return obj;
1037
- };
1038
- }
1039
-
1040
-
1041
- /**
1042
- * Deserializes binary data (in protobuf wire format).
1043
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1044
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict}
1045
- */
1046
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinary = function(bytes) {
1047
- var reader = new jspb.BinaryReader(bytes);
1048
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict;
1049
- return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader(msg, reader);
1050
- };
1051
-
1052
-
1053
- /**
1054
- * Deserializes binary data (in protobuf wire format) from the
1055
- * given reader into the given message object.
1056
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The message object to deserialize into.
1057
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1058
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict}
1059
- */
1060
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader = function(msg, reader) {
1061
- while (reader.nextField()) {
1062
- if (reader.isEndGroup()) {
1063
- break;
1064
- }
1065
- var field = reader.getFieldNumber();
1066
- switch (field) {
1067
- case 1:
1068
- var value = /** @type {string} */ (reader.readInt64String());
1069
- msg.setStreamRevision(value);
1070
- break;
1071
- default:
1072
- reader.skipField();
1073
- break;
1074
- }
1075
- }
1076
- return msg;
1077
- };
1078
-
1079
-
1080
- /**
1081
- * Serializes the message to binary data (in protobuf wire format).
1082
- * @return {!Uint8Array}
1083
- */
1084
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.serializeBinary = function() {
1085
- var writer = new jspb.BinaryWriter();
1086
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter(this, writer);
1087
- return writer.getResultBuffer();
1088
- };
1089
-
1090
-
1091
- /**
1092
- * Serializes the given message to binary data (in protobuf wire
1093
- * format), writing to the given BinaryWriter.
1094
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} message
1095
- * @param {!jspb.BinaryWriter} writer
1096
- * @suppress {unusedLocalVariables} f is only used for nested messages
1097
- */
1098
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter = function(message, writer) {
1099
- var f = undefined;
1100
- f = message.getStreamRevision();
1101
- if (parseInt(f, 10) !== 0) {
1102
- writer.writeInt64String(
1103
- 1,
1104
- f
1105
- );
1106
- }
1107
- };
1108
-
1109
-
1110
- /**
1111
- * optional int64 stream_revision = 1;
1112
- * @return {string}
1113
- */
1114
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.getStreamRevision = function() {
1115
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
1116
- };
1117
-
1118
-
1119
- /**
1120
- * @param {string} value
1121
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} returns this
1122
- */
1123
- proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.setStreamRevision = function(value) {
1124
- return jspb.Message.setProto3StringIntField(this, 1, value);
1125
- };
1126
-
1127
-
1128
-
1129
-
1130
-
1131
- if (jspb.Message.GENERATE_TO_OBJECT) {
1132
- /**
1133
- * Creates an object representation of this proto.
1134
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1135
- * Optional fields that are not set will be set to undefined.
1136
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1137
- * For the list of reserved names please see:
1138
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1139
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1140
- * JSPB instance for transitional soy proto support:
1141
- * http://goto/soy-param-migration
1142
- * @return {!Object}
1143
- */
1144
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) {
1145
- return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(opt_includeInstance, this);
1146
- };
1147
-
1148
-
1149
- /**
1150
- * Static version of the {@see toObject} method.
1151
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1152
- * the JSPB instance for transitional soy proto support:
1153
- * http://goto/soy-param-migration
1154
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform.
1155
- * @return {!Object}
1156
- * @suppress {unusedLocalVariables} f is only used for nested messages
1157
- */
1158
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = function(includeInstance, msg) {
1159
- var f, obj = {
1160
- maxSize: jspb.Message.getFieldWithDefault(msg, 1, 0)
1161
- };
1162
-
1163
- if (includeInstance) {
1164
- obj.$jspbMessageInstance = msg;
1165
- }
1166
- return obj;
1167
- };
1168
- }
1169
-
1170
-
1171
- /**
1172
- * Deserializes binary data (in protobuf wire format).
1173
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1174
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded}
1175
- */
1176
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) {
1177
- var reader = new jspb.BinaryReader(bytes);
1178
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded;
1179
- return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader(msg, reader);
1180
- };
1181
-
1182
-
1183
- /**
1184
- * Deserializes binary data (in protobuf wire format) from the
1185
- * given reader into the given message object.
1186
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into.
1187
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1188
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded}
1189
- */
1190
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader = function(msg, reader) {
1191
- while (reader.nextField()) {
1192
- if (reader.isEndGroup()) {
1193
- break;
1194
- }
1195
- var field = reader.getFieldNumber();
1196
- switch (field) {
1197
- case 1:
1198
- var value = /** @type {number} */ (reader.readUint32());
1199
- msg.setMaxSize(value);
1200
- break;
1201
- default:
1202
- reader.skipField();
1203
- break;
1204
- }
1205
- }
1206
- return msg;
1207
- };
1208
-
1209
-
1210
- /**
1211
- * Serializes the message to binary data (in protobuf wire format).
1212
- * @return {!Uint8Array}
1213
- */
1214
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() {
1215
- var writer = new jspb.BinaryWriter();
1216
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter(this, writer);
1217
- return writer.getResultBuffer();
1218
- };
1219
-
1220
-
1221
- /**
1222
- * Serializes the given message to binary data (in protobuf wire
1223
- * format), writing to the given BinaryWriter.
1224
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} message
1225
- * @param {!jspb.BinaryWriter} writer
1226
- * @suppress {unusedLocalVariables} f is only used for nested messages
1227
- */
1228
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter = function(message, writer) {
1229
- var f = undefined;
1230
- f = message.getMaxSize();
1231
- if (f !== 0) {
1232
- writer.writeUint32(
1233
- 1,
1234
- f
1235
- );
1236
- }
1237
- };
1238
-
1239
-
1240
- /**
1241
- * optional uint32 max_size = 1;
1242
- * @return {number}
1243
- */
1244
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() {
1245
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1246
- };
1247
-
1248
-
1249
- /**
1250
- * @param {number} value
1251
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this
1252
- */
1253
- proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) {
1254
- return jspb.Message.setProto3IntField(this, 1, value);
1255
- };
1256
-
1257
-
1258
-
1259
-
1260
-
1261
- if (jspb.Message.GENERATE_TO_OBJECT) {
1262
- /**
1263
- * Creates an object representation of this proto.
1264
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1265
- * Optional fields that are not set will be set to undefined.
1266
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1267
- * For the list of reserved names please see:
1268
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1269
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1270
- * JSPB instance for transitional soy proto support:
1271
- * http://goto/soy-param-migration
1272
- * @return {!Object}
1273
- */
1274
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.toObject = function(opt_includeInstance) {
1275
- return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject(opt_includeInstance, this);
1276
- };
1277
-
1278
-
1279
- /**
1280
- * Static version of the {@see toObject} method.
1281
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1282
- * the JSPB instance for transitional soy proto support:
1283
- * http://goto/soy-param-migration
1284
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The msg instance to transform.
1285
- * @return {!Object}
1286
- * @suppress {unusedLocalVariables} f is only used for nested messages
1287
- */
1288
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject = function(includeInstance, msg) {
1289
- var f, obj = {
1290
-
1291
- };
1292
-
1293
- if (includeInstance) {
1294
- obj.$jspbMessageInstance = msg;
1295
- }
1296
- return obj;
1297
- };
1298
- }
1299
-
1300
-
1301
- /**
1302
- * Deserializes binary data (in protobuf wire format).
1303
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1304
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound}
1305
- */
1306
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinary = function(bytes) {
1307
- var reader = new jspb.BinaryReader(bytes);
1308
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound;
1309
- return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader(msg, reader);
1310
- };
1311
-
1312
-
1313
- /**
1314
- * Deserializes binary data (in protobuf wire format) from the
1315
- * given reader into the given message object.
1316
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The message object to deserialize into.
1317
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1318
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound}
1319
- */
1320
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader = function(msg, reader) {
1321
- while (reader.nextField()) {
1322
- if (reader.isEndGroup()) {
1323
- break;
1324
- }
1325
- var field = reader.getFieldNumber();
1326
- switch (field) {
1327
- default:
1328
- reader.skipField();
1329
- break;
1330
- }
1331
- }
1332
- return msg;
1333
- };
1334
-
1335
-
1336
- /**
1337
- * Serializes the message to binary data (in protobuf wire format).
1338
- * @return {!Uint8Array}
1339
- */
1340
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.serializeBinary = function() {
1341
- var writer = new jspb.BinaryWriter();
1342
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter(this, writer);
1343
- return writer.getResultBuffer();
1344
- };
1345
-
1346
-
1347
- /**
1348
- * Serializes the given message to binary data (in protobuf wire
1349
- * format), writing to the given BinaryWriter.
1350
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} message
1351
- * @param {!jspb.BinaryWriter} writer
1352
- * @suppress {unusedLocalVariables} f is only used for nested messages
1353
- */
1354
- proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter = function(message, writer) {
1355
- var f = undefined;
1356
- };
1357
-
1358
-
1359
-
1360
-
1361
-
1362
- if (jspb.Message.GENERATE_TO_OBJECT) {
1363
- /**
1364
- * Creates an object representation of this proto.
1365
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1366
- * Optional fields that are not set will be set to undefined.
1367
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1368
- * For the list of reserved names please see:
1369
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1370
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1371
- * JSPB instance for transitional soy proto support:
1372
- * http://goto/soy-param-migration
1373
- * @return {!Object}
1374
- */
1375
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.prototype.toObject = function(opt_includeInstance) {
1376
- return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject(opt_includeInstance, this);
1377
- };
1378
-
1379
-
1380
- /**
1381
- * Static version of the {@see toObject} method.
1382
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1383
- * the JSPB instance for transitional soy proto support:
1384
- * http://goto/soy-param-migration
1385
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The msg instance to transform.
1386
- * @return {!Object}
1387
- * @suppress {unusedLocalVariables} f is only used for nested messages
1388
- */
1389
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject = function(includeInstance, msg) {
1390
- var f, obj = {
1391
-
1392
- };
1393
-
1394
- if (includeInstance) {
1395
- obj.$jspbMessageInstance = msg;
1396
- }
1397
- return obj;
1398
- };
1399
- }
1400
-
1401
-
1402
- /**
1403
- * Deserializes binary data (in protobuf wire format).
1404
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1405
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated}
1406
- */
1407
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinary = function(bytes) {
1408
- var reader = new jspb.BinaryReader(bytes);
1409
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated;
1410
- return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader(msg, reader);
1411
- };
1412
-
1413
-
1414
- /**
1415
- * Deserializes binary data (in protobuf wire format) from the
1416
- * given reader into the given message object.
1417
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The message object to deserialize into.
1418
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1419
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated}
1420
- */
1421
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader = function(msg, reader) {
1422
- while (reader.nextField()) {
1423
- if (reader.isEndGroup()) {
1424
- break;
1425
- }
1426
- var field = reader.getFieldNumber();
1427
- switch (field) {
1428
- default:
1429
- reader.skipField();
1430
- break;
1431
- }
1432
- }
1433
- return msg;
1434
- };
1435
-
1436
-
1437
- /**
1438
- * Serializes the message to binary data (in protobuf wire format).
1439
- * @return {!Uint8Array}
1440
- */
1441
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.prototype.serializeBinary = function() {
1442
- var writer = new jspb.BinaryWriter();
1443
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.serializeBinaryToWriter(this, writer);
1444
- return writer.getResultBuffer();
1445
- };
1446
-
1447
-
1448
- /**
1449
- * Serializes the given message to binary data (in protobuf wire
1450
- * format), writing to the given BinaryWriter.
1451
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} message
1452
- * @param {!jspb.BinaryWriter} writer
1453
- * @suppress {unusedLocalVariables} f is only used for nested messages
1454
- */
1455
- proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.serializeBinaryToWriter = function(message, writer) {
1456
- var f = undefined;
1457
- };
1458
-
1459
-
1460
-
1461
-
1462
-
1463
- if (jspb.Message.GENERATE_TO_OBJECT) {
1464
- /**
1465
- * Creates an object representation of this proto.
1466
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1467
- * Optional fields that are not set will be set to undefined.
1468
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1469
- * For the list of reserved names please see:
1470
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1471
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1472
- * JSPB instance for transitional soy proto support:
1473
- * http://goto/soy-param-migration
1474
- * @return {!Object}
1475
- */
1476
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.prototype.toObject = function(opt_includeInstance) {
1477
- return proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.toObject(opt_includeInstance, this);
1478
- };
1479
-
1480
-
1481
- /**
1482
- * Static version of the {@see toObject} method.
1483
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1484
- * the JSPB instance for transitional soy proto support:
1485
- * http://goto/soy-param-migration
1486
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} msg The msg instance to transform.
1487
- * @return {!Object}
1488
- * @suppress {unusedLocalVariables} f is only used for nested messages
1489
- */
1490
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.toObject = function(includeInstance, msg) {
1491
- var f, obj = {
1492
-
1493
- };
1494
-
1495
- if (includeInstance) {
1496
- obj.$jspbMessageInstance = msg;
1497
- }
1498
- return obj;
1499
- };
1500
- }
1501
-
1502
-
1503
- /**
1504
- * Deserializes binary data (in protobuf wire format).
1505
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1506
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound}
1507
- */
1508
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinary = function(bytes) {
1509
- var reader = new jspb.BinaryReader(bytes);
1510
- var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound;
1511
- return proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinaryFromReader(msg, reader);
1512
- };
1513
-
1514
-
1515
- /**
1516
- * Deserializes binary data (in protobuf wire format) from the
1517
- * given reader into the given message object.
1518
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} msg The message object to deserialize into.
1519
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1520
- * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound}
1521
- */
1522
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinaryFromReader = function(msg, reader) {
1523
- while (reader.nextField()) {
1524
- if (reader.isEndGroup()) {
1525
- break;
1526
- }
1527
- var field = reader.getFieldNumber();
1528
- switch (field) {
1529
- default:
1530
- reader.skipField();
1531
- break;
1532
- }
1533
- }
1534
- return msg;
1535
- };
1536
-
1537
-
1538
- /**
1539
- * Serializes the message to binary data (in protobuf wire format).
1540
- * @return {!Uint8Array}
1541
- */
1542
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.prototype.serializeBinary = function() {
1543
- var writer = new jspb.BinaryWriter();
1544
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.serializeBinaryToWriter(this, writer);
1545
- return writer.getResultBuffer();
1546
- };
1547
-
1548
-
1549
- /**
1550
- * Serializes the given message to binary data (in protobuf wire
1551
- * format), writing to the given BinaryWriter.
1552
- * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} message
1553
- * @param {!jspb.BinaryWriter} writer
1554
- * @suppress {unusedLocalVariables} f is only used for nested messages
1555
- */
1556
- proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.serializeBinaryToWriter = function(message, writer) {
1557
- var f = undefined;
1558
- };
1559
-
1560
-
1561
- goog.object.extend(exports, proto.kurrentdb.protocol.v2);
1
+ // source: kurrentdb/protocols/v2/streams/shared.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 google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
27
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
28
+ var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js');
29
+ goog.object.extend(proto, kurrentdb_protocols_v2_core_pb);
30
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails', null, global);
31
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied', null, global);
32
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound', null, global);
33
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated', null, global);
34
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted', null, global);
35
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound', null, global);
36
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict', null, global);
37
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned', null, global);
38
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global);
39
+ goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.kurrentdb.protocol.v2.ErrorDetails = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ };
53
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.kurrentdb.protocol.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
+ };
137
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
+ };
158
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
+ };
179
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
+ };
200
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound';
207
+ }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
+ };
221
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated';
228
+ }
229
+ /**
230
+ * Generated by JsPbCodeGenerator.
231
+ * @param {Array=} opt_data Optional initial data array, typically from a
232
+ * server response, or constructed directly in Javascript. The array is used
233
+ * in place and becomes part of the constructed object. It is not cloned.
234
+ * If no data is provided, the constructed object will be empty, but still
235
+ * valid.
236
+ * @extends {jspb.Message}
237
+ * @constructor
238
+ */
239
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound = function(opt_data) {
240
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
241
+ };
242
+ goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound, jspb.Message);
243
+ if (goog.DEBUG && !COMPILED) {
244
+ /**
245
+ * @public
246
+ * @override
247
+ */
248
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound';
249
+ }
250
+
251
+
252
+
253
+ if (jspb.Message.GENERATE_TO_OBJECT) {
254
+ /**
255
+ * Creates an object representation of this proto.
256
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
257
+ * Optional fields that are not set will be set to undefined.
258
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
259
+ * For the list of reserved names please see:
260
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
261
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
262
+ * JSPB instance for transitional soy proto support:
263
+ * http://goto/soy-param-migration
264
+ * @return {!Object}
265
+ */
266
+ proto.kurrentdb.protocol.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) {
267
+ return proto.kurrentdb.protocol.v2.ErrorDetails.toObject(opt_includeInstance, this);
268
+ };
269
+
270
+
271
+ /**
272
+ * Static version of the {@see toObject} method.
273
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
274
+ * the JSPB instance for transitional soy proto support:
275
+ * http://goto/soy-param-migration
276
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The msg instance to transform.
277
+ * @return {!Object}
278
+ * @suppress {unusedLocalVariables} f is only used for nested messages
279
+ */
280
+ proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, msg) {
281
+ var f, obj = {
282
+
283
+ };
284
+
285
+ if (includeInstance) {
286
+ obj.$jspbMessageInstance = msg;
287
+ }
288
+ return obj;
289
+ };
290
+ }
291
+
292
+
293
+ /**
294
+ * Deserializes binary data (in protobuf wire format).
295
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
296
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails}
297
+ */
298
+ proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinary = function(bytes) {
299
+ var reader = new jspb.BinaryReader(bytes);
300
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails;
301
+ return proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader);
302
+ };
303
+
304
+
305
+ /**
306
+ * Deserializes binary data (in protobuf wire format) from the
307
+ * given reader into the given message object.
308
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The message object to deserialize into.
309
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
310
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails}
311
+ */
312
+ proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) {
313
+ while (reader.nextField()) {
314
+ if (reader.isEndGroup()) {
315
+ break;
316
+ }
317
+ var field = reader.getFieldNumber();
318
+ switch (field) {
319
+ default:
320
+ reader.skipField();
321
+ break;
322
+ }
323
+ }
324
+ return msg;
325
+ };
326
+
327
+
328
+ /**
329
+ * Serializes the message to binary data (in protobuf wire format).
330
+ * @return {!Uint8Array}
331
+ */
332
+ proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() {
333
+ var writer = new jspb.BinaryWriter();
334
+ proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter(this, writer);
335
+ return writer.getResultBuffer();
336
+ };
337
+
338
+
339
+ /**
340
+ * Serializes the given message to binary data (in protobuf wire
341
+ * format), writing to the given BinaryWriter.
342
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} message
343
+ * @param {!jspb.BinaryWriter} writer
344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
345
+ */
346
+ proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) {
347
+ var f = undefined;
348
+ };
349
+
350
+
351
+
352
+
353
+
354
+ if (jspb.Message.GENERATE_TO_OBJECT) {
355
+ /**
356
+ * Creates an object representation of this proto.
357
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
358
+ * Optional fields that are not set will be set to undefined.
359
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
360
+ * For the list of reserved names please see:
361
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
362
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
363
+ * JSPB instance for transitional soy proto support:
364
+ * http://goto/soy-param-migration
365
+ * @return {!Object}
366
+ */
367
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) {
368
+ return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(opt_includeInstance, this);
369
+ };
370
+
371
+
372
+ /**
373
+ * Static version of the {@see toObject} method.
374
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
375
+ * the JSPB instance for transitional soy proto support:
376
+ * http://goto/soy-param-migration
377
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The msg instance to transform.
378
+ * @return {!Object}
379
+ * @suppress {unusedLocalVariables} f is only used for nested messages
380
+ */
381
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includeInstance, msg) {
382
+ var f, obj = {
383
+
384
+ };
385
+
386
+ if (includeInstance) {
387
+ obj.$jspbMessageInstance = msg;
388
+ }
389
+ return obj;
390
+ };
391
+ }
392
+
393
+
394
+ /**
395
+ * Deserializes binary data (in protobuf wire format).
396
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
397
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied}
398
+ */
399
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) {
400
+ var reader = new jspb.BinaryReader(bytes);
401
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied;
402
+ return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader(msg, reader);
403
+ };
404
+
405
+
406
+ /**
407
+ * Deserializes binary data (in protobuf wire format) from the
408
+ * given reader into the given message object.
409
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into.
410
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
411
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied}
412
+ */
413
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader = function(msg, reader) {
414
+ while (reader.nextField()) {
415
+ if (reader.isEndGroup()) {
416
+ break;
417
+ }
418
+ var field = reader.getFieldNumber();
419
+ switch (field) {
420
+ default:
421
+ reader.skipField();
422
+ break;
423
+ }
424
+ }
425
+ return msg;
426
+ };
427
+
428
+
429
+ /**
430
+ * Serializes the message to binary data (in protobuf wire format).
431
+ * @return {!Uint8Array}
432
+ */
433
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() {
434
+ var writer = new jspb.BinaryWriter();
435
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter(this, writer);
436
+ return writer.getResultBuffer();
437
+ };
438
+
439
+
440
+ /**
441
+ * Serializes the given message to binary data (in protobuf wire
442
+ * format), writing to the given BinaryWriter.
443
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} message
444
+ * @param {!jspb.BinaryWriter} writer
445
+ * @suppress {unusedLocalVariables} f is only used for nested messages
446
+ */
447
+ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter = function(message, writer) {
448
+ var f = undefined;
449
+ };
450
+
451
+
452
+
453
+
454
+
455
+ if (jspb.Message.GENERATE_TO_OBJECT) {
456
+ /**
457
+ * Creates an object representation of this proto.
458
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
459
+ * Optional fields that are not set will be set to undefined.
460
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
461
+ * For the list of reserved names please see:
462
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
463
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
464
+ * JSPB instance for transitional soy proto support:
465
+ * http://goto/soy-param-migration
466
+ * @return {!Object}
467
+ */
468
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) {
469
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(opt_includeInstance, this);
470
+ };
471
+
472
+
473
+ /**
474
+ * Static version of the {@see toObject} method.
475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
476
+ * the JSPB instance for transitional soy proto support:
477
+ * http://goto/soy-param-migration
478
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The msg instance to transform.
479
+ * @return {!Object}
480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
481
+ */
482
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) {
483
+ var f, obj = {
484
+ stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
485
+ deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
486
+ };
487
+
488
+ if (includeInstance) {
489
+ obj.$jspbMessageInstance = msg;
490
+ }
491
+ return obj;
492
+ };
493
+ }
494
+
495
+
496
+ /**
497
+ * Deserializes binary data (in protobuf wire format).
498
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
499
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted}
500
+ */
501
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) {
502
+ var reader = new jspb.BinaryReader(bytes);
503
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted;
504
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader(msg, reader);
505
+ };
506
+
507
+
508
+ /**
509
+ * Deserializes binary data (in protobuf wire format) from the
510
+ * given reader into the given message object.
511
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into.
512
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
513
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted}
514
+ */
515
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) {
516
+ while (reader.nextField()) {
517
+ if (reader.isEndGroup()) {
518
+ break;
519
+ }
520
+ var field = reader.getFieldNumber();
521
+ switch (field) {
522
+ case 1:
523
+ var value = /** @type {string} */ (reader.readString());
524
+ msg.setStream(value);
525
+ break;
526
+ case 2:
527
+ var value = new google_protobuf_timestamp_pb.Timestamp;
528
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
529
+ msg.setDeletedAt(value);
530
+ break;
531
+ default:
532
+ reader.skipField();
533
+ break;
534
+ }
535
+ }
536
+ return msg;
537
+ };
538
+
539
+
540
+ /**
541
+ * Serializes the message to binary data (in protobuf wire format).
542
+ * @return {!Uint8Array}
543
+ */
544
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() {
545
+ var writer = new jspb.BinaryWriter();
546
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter(this, writer);
547
+ return writer.getResultBuffer();
548
+ };
549
+
550
+
551
+ /**
552
+ * Serializes the given message to binary data (in protobuf wire
553
+ * format), writing to the given BinaryWriter.
554
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} message
555
+ * @param {!jspb.BinaryWriter} writer
556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
557
+ */
558
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) {
559
+ var f = undefined;
560
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
561
+ if (f != null) {
562
+ writer.writeString(
563
+ 1,
564
+ f
565
+ );
566
+ }
567
+ f = message.getDeletedAt();
568
+ if (f != null) {
569
+ writer.writeMessage(
570
+ 2,
571
+ f,
572
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
573
+ );
574
+ }
575
+ };
576
+
577
+
578
+ /**
579
+ * optional string stream = 1;
580
+ * @return {string}
581
+ */
582
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getStream = function() {
583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
584
+ };
585
+
586
+
587
+ /**
588
+ * @param {string} value
589
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
590
+ */
591
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setStream = function(value) {
592
+ return jspb.Message.setField(this, 1, value);
593
+ };
594
+
595
+
596
+ /**
597
+ * Clears the field making it undefined.
598
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
599
+ */
600
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearStream = function() {
601
+ return jspb.Message.setField(this, 1, undefined);
602
+ };
603
+
604
+
605
+ /**
606
+ * Returns whether this field is set.
607
+ * @return {boolean}
608
+ */
609
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasStream = function() {
610
+ return jspb.Message.getField(this, 1) != null;
611
+ };
612
+
613
+
614
+ /**
615
+ * optional google.protobuf.Timestamp deleted_at = 2;
616
+ * @return {?proto.google.protobuf.Timestamp}
617
+ */
618
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getDeletedAt = function() {
619
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
620
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
621
+ };
622
+
623
+
624
+ /**
625
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
626
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
627
+ */
628
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setDeletedAt = function(value) {
629
+ return jspb.Message.setWrapperField(this, 2, value);
630
+ };
631
+
632
+
633
+ /**
634
+ * Clears the message field making it undefined.
635
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this
636
+ */
637
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearDeletedAt = function() {
638
+ return this.setDeletedAt(undefined);
639
+ };
640
+
641
+
642
+ /**
643
+ * Returns whether this field is set.
644
+ * @return {boolean}
645
+ */
646
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasDeletedAt = function() {
647
+ return jspb.Message.getField(this, 2) != null;
648
+ };
649
+
650
+
651
+
652
+
653
+
654
+ if (jspb.Message.GENERATE_TO_OBJECT) {
655
+ /**
656
+ * Creates an object representation of this proto.
657
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
658
+ * Optional fields that are not set will be set to undefined.
659
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
660
+ * For the list of reserved names please see:
661
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
662
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
663
+ * JSPB instance for transitional soy proto support:
664
+ * http://goto/soy-param-migration
665
+ * @return {!Object}
666
+ */
667
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.toObject = function(opt_includeInstance) {
668
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject(opt_includeInstance, this);
669
+ };
670
+
671
+
672
+ /**
673
+ * Static version of the {@see toObject} method.
674
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
675
+ * the JSPB instance for transitional soy proto support:
676
+ * http://goto/soy-param-migration
677
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The msg instance to transform.
678
+ * @return {!Object}
679
+ * @suppress {unusedLocalVariables} f is only used for nested messages
680
+ */
681
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject = function(includeInstance, msg) {
682
+ var f, obj = {
683
+ stream: jspb.Message.getFieldWithDefault(msg, 1, ""),
684
+ tombstonedAt: (f = msg.getTombstonedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
685
+ };
686
+
687
+ if (includeInstance) {
688
+ obj.$jspbMessageInstance = msg;
689
+ }
690
+ return obj;
691
+ };
692
+ }
693
+
694
+
695
+ /**
696
+ * Deserializes binary data (in protobuf wire format).
697
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
698
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned}
699
+ */
700
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinary = function(bytes) {
701
+ var reader = new jspb.BinaryReader(bytes);
702
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned;
703
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader(msg, reader);
704
+ };
705
+
706
+
707
+ /**
708
+ * Deserializes binary data (in protobuf wire format) from the
709
+ * given reader into the given message object.
710
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The message object to deserialize into.
711
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
712
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned}
713
+ */
714
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader = function(msg, reader) {
715
+ while (reader.nextField()) {
716
+ if (reader.isEndGroup()) {
717
+ break;
718
+ }
719
+ var field = reader.getFieldNumber();
720
+ switch (field) {
721
+ case 1:
722
+ var value = /** @type {string} */ (reader.readString());
723
+ msg.setStream(value);
724
+ break;
725
+ case 2:
726
+ var value = new google_protobuf_timestamp_pb.Timestamp;
727
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
728
+ msg.setTombstonedAt(value);
729
+ break;
730
+ default:
731
+ reader.skipField();
732
+ break;
733
+ }
734
+ }
735
+ return msg;
736
+ };
737
+
738
+
739
+ /**
740
+ * Serializes the message to binary data (in protobuf wire format).
741
+ * @return {!Uint8Array}
742
+ */
743
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.serializeBinary = function() {
744
+ var writer = new jspb.BinaryWriter();
745
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter(this, writer);
746
+ return writer.getResultBuffer();
747
+ };
748
+
749
+
750
+ /**
751
+ * Serializes the given message to binary data (in protobuf wire
752
+ * format), writing to the given BinaryWriter.
753
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} message
754
+ * @param {!jspb.BinaryWriter} writer
755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
756
+ */
757
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter = function(message, writer) {
758
+ var f = undefined;
759
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
760
+ if (f != null) {
761
+ writer.writeString(
762
+ 1,
763
+ f
764
+ );
765
+ }
766
+ f = message.getTombstonedAt();
767
+ if (f != null) {
768
+ writer.writeMessage(
769
+ 2,
770
+ f,
771
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
772
+ );
773
+ }
774
+ };
775
+
776
+
777
+ /**
778
+ * optional string stream = 1;
779
+ * @return {string}
780
+ */
781
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getStream = function() {
782
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
783
+ };
784
+
785
+
786
+ /**
787
+ * @param {string} value
788
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
789
+ */
790
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setStream = function(value) {
791
+ return jspb.Message.setField(this, 1, value);
792
+ };
793
+
794
+
795
+ /**
796
+ * Clears the field making it undefined.
797
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
798
+ */
799
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearStream = function() {
800
+ return jspb.Message.setField(this, 1, undefined);
801
+ };
802
+
803
+
804
+ /**
805
+ * Returns whether this field is set.
806
+ * @return {boolean}
807
+ */
808
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasStream = function() {
809
+ return jspb.Message.getField(this, 1) != null;
810
+ };
811
+
812
+
813
+ /**
814
+ * optional google.protobuf.Timestamp tombstoned_at = 2;
815
+ * @return {?proto.google.protobuf.Timestamp}
816
+ */
817
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getTombstonedAt = function() {
818
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
819
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
820
+ };
821
+
822
+
823
+ /**
824
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
825
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
826
+ */
827
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setTombstonedAt = function(value) {
828
+ return jspb.Message.setWrapperField(this, 2, value);
829
+ };
830
+
831
+
832
+ /**
833
+ * Clears the message field making it undefined.
834
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this
835
+ */
836
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearTombstonedAt = function() {
837
+ return this.setTombstonedAt(undefined);
838
+ };
839
+
840
+
841
+ /**
842
+ * Returns whether this field is set.
843
+ * @return {boolean}
844
+ */
845
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasTombstonedAt = function() {
846
+ return jspb.Message.getField(this, 2) != null;
847
+ };
848
+
849
+
850
+
851
+
852
+
853
+ if (jspb.Message.GENERATE_TO_OBJECT) {
854
+ /**
855
+ * Creates an object representation of this proto.
856
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
857
+ * Optional fields that are not set will be set to undefined.
858
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
859
+ * For the list of reserved names please see:
860
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
861
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
862
+ * JSPB instance for transitional soy proto support:
863
+ * http://goto/soy-param-migration
864
+ * @return {!Object}
865
+ */
866
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.toObject = function(opt_includeInstance) {
867
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.toObject(opt_includeInstance, this);
868
+ };
869
+
870
+
871
+ /**
872
+ * Static version of the {@see toObject} method.
873
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
874
+ * the JSPB instance for transitional soy proto support:
875
+ * http://goto/soy-param-migration
876
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The msg instance to transform.
877
+ * @return {!Object}
878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
879
+ */
880
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.toObject = function(includeInstance, msg) {
881
+ var f, obj = {
882
+ stream: jspb.Message.getFieldWithDefault(msg, 1, "")
883
+ };
884
+
885
+ if (includeInstance) {
886
+ obj.$jspbMessageInstance = msg;
887
+ }
888
+ return obj;
889
+ };
890
+ }
891
+
892
+
893
+ /**
894
+ * Deserializes binary data (in protobuf wire format).
895
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
896
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound}
897
+ */
898
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinary = function(bytes) {
899
+ var reader = new jspb.BinaryReader(bytes);
900
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound;
901
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader(msg, reader);
902
+ };
903
+
904
+
905
+ /**
906
+ * Deserializes binary data (in protobuf wire format) from the
907
+ * given reader into the given message object.
908
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The message object to deserialize into.
909
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
910
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound}
911
+ */
912
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader = function(msg, reader) {
913
+ while (reader.nextField()) {
914
+ if (reader.isEndGroup()) {
915
+ break;
916
+ }
917
+ var field = reader.getFieldNumber();
918
+ switch (field) {
919
+ case 1:
920
+ var value = /** @type {string} */ (reader.readString());
921
+ msg.setStream(value);
922
+ break;
923
+ default:
924
+ reader.skipField();
925
+ break;
926
+ }
927
+ }
928
+ return msg;
929
+ };
930
+
931
+
932
+ /**
933
+ * Serializes the message to binary data (in protobuf wire format).
934
+ * @return {!Uint8Array}
935
+ */
936
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.serializeBinary = function() {
937
+ var writer = new jspb.BinaryWriter();
938
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter(this, writer);
939
+ return writer.getResultBuffer();
940
+ };
941
+
942
+
943
+ /**
944
+ * Serializes the given message to binary data (in protobuf wire
945
+ * format), writing to the given BinaryWriter.
946
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} message
947
+ * @param {!jspb.BinaryWriter} writer
948
+ * @suppress {unusedLocalVariables} f is only used for nested messages
949
+ */
950
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter = function(message, writer) {
951
+ var f = undefined;
952
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
953
+ if (f != null) {
954
+ writer.writeString(
955
+ 1,
956
+ f
957
+ );
958
+ }
959
+ };
960
+
961
+
962
+ /**
963
+ * optional string stream = 1;
964
+ * @return {string}
965
+ */
966
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.getStream = function() {
967
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
968
+ };
969
+
970
+
971
+ /**
972
+ * @param {string} value
973
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this
974
+ */
975
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.setStream = function(value) {
976
+ return jspb.Message.setField(this, 1, value);
977
+ };
978
+
979
+
980
+ /**
981
+ * Clears the field making it undefined.
982
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this
983
+ */
984
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.clearStream = function() {
985
+ return jspb.Message.setField(this, 1, undefined);
986
+ };
987
+
988
+
989
+ /**
990
+ * Returns whether this field is set.
991
+ * @return {boolean}
992
+ */
993
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.hasStream = function() {
994
+ return jspb.Message.getField(this, 1) != null;
995
+ };
996
+
997
+
998
+
999
+
1000
+
1001
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1002
+ /**
1003
+ * Creates an object representation of this proto.
1004
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1005
+ * Optional fields that are not set will be set to undefined.
1006
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1007
+ * For the list of reserved names please see:
1008
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1009
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1010
+ * JSPB instance for transitional soy proto support:
1011
+ * http://goto/soy-param-migration
1012
+ * @return {!Object}
1013
+ */
1014
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.toObject = function(opt_includeInstance) {
1015
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject(opt_includeInstance, this);
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * Static version of the {@see toObject} method.
1021
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1022
+ * the JSPB instance for transitional soy proto support:
1023
+ * http://goto/soy-param-migration
1024
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The msg instance to transform.
1025
+ * @return {!Object}
1026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1027
+ */
1028
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject = function(includeInstance, msg) {
1029
+ var f, obj = {
1030
+ streamRevision: jspb.Message.getFieldWithDefault(msg, 1, "0")
1031
+ };
1032
+
1033
+ if (includeInstance) {
1034
+ obj.$jspbMessageInstance = msg;
1035
+ }
1036
+ return obj;
1037
+ };
1038
+ }
1039
+
1040
+
1041
+ /**
1042
+ * Deserializes binary data (in protobuf wire format).
1043
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1044
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict}
1045
+ */
1046
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinary = function(bytes) {
1047
+ var reader = new jspb.BinaryReader(bytes);
1048
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict;
1049
+ return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader(msg, reader);
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * Deserializes binary data (in protobuf wire format) from the
1055
+ * given reader into the given message object.
1056
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The message object to deserialize into.
1057
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1058
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict}
1059
+ */
1060
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader = function(msg, reader) {
1061
+ while (reader.nextField()) {
1062
+ if (reader.isEndGroup()) {
1063
+ break;
1064
+ }
1065
+ var field = reader.getFieldNumber();
1066
+ switch (field) {
1067
+ case 1:
1068
+ var value = /** @type {string} */ (reader.readInt64String());
1069
+ msg.setStreamRevision(value);
1070
+ break;
1071
+ default:
1072
+ reader.skipField();
1073
+ break;
1074
+ }
1075
+ }
1076
+ return msg;
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * Serializes the message to binary data (in protobuf wire format).
1082
+ * @return {!Uint8Array}
1083
+ */
1084
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.serializeBinary = function() {
1085
+ var writer = new jspb.BinaryWriter();
1086
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter(this, writer);
1087
+ return writer.getResultBuffer();
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * Serializes the given message to binary data (in protobuf wire
1093
+ * format), writing to the given BinaryWriter.
1094
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} message
1095
+ * @param {!jspb.BinaryWriter} writer
1096
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1097
+ */
1098
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter = function(message, writer) {
1099
+ var f = undefined;
1100
+ f = message.getStreamRevision();
1101
+ if (parseInt(f, 10) !== 0) {
1102
+ writer.writeInt64String(
1103
+ 1,
1104
+ f
1105
+ );
1106
+ }
1107
+ };
1108
+
1109
+
1110
+ /**
1111
+ * optional int64 stream_revision = 1;
1112
+ * @return {string}
1113
+ */
1114
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.getStreamRevision = function() {
1115
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * @param {string} value
1121
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} returns this
1122
+ */
1123
+ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.setStreamRevision = function(value) {
1124
+ return jspb.Message.setProto3StringIntField(this, 1, value);
1125
+ };
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1132
+ /**
1133
+ * Creates an object representation of this proto.
1134
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1135
+ * Optional fields that are not set will be set to undefined.
1136
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1137
+ * For the list of reserved names please see:
1138
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1139
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1140
+ * JSPB instance for transitional soy proto support:
1141
+ * http://goto/soy-param-migration
1142
+ * @return {!Object}
1143
+ */
1144
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) {
1145
+ return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(opt_includeInstance, this);
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Static version of the {@see toObject} method.
1151
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1152
+ * the JSPB instance for transitional soy proto support:
1153
+ * http://goto/soy-param-migration
1154
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform.
1155
+ * @return {!Object}
1156
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1157
+ */
1158
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = function(includeInstance, msg) {
1159
+ var f, obj = {
1160
+ maxSize: jspb.Message.getFieldWithDefault(msg, 1, 0)
1161
+ };
1162
+
1163
+ if (includeInstance) {
1164
+ obj.$jspbMessageInstance = msg;
1165
+ }
1166
+ return obj;
1167
+ };
1168
+ }
1169
+
1170
+
1171
+ /**
1172
+ * Deserializes binary data (in protobuf wire format).
1173
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1174
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded}
1175
+ */
1176
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) {
1177
+ var reader = new jspb.BinaryReader(bytes);
1178
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded;
1179
+ return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader(msg, reader);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * Deserializes binary data (in protobuf wire format) from the
1185
+ * given reader into the given message object.
1186
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into.
1187
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1188
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded}
1189
+ */
1190
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader = function(msg, reader) {
1191
+ while (reader.nextField()) {
1192
+ if (reader.isEndGroup()) {
1193
+ break;
1194
+ }
1195
+ var field = reader.getFieldNumber();
1196
+ switch (field) {
1197
+ case 1:
1198
+ var value = /** @type {number} */ (reader.readUint32());
1199
+ msg.setMaxSize(value);
1200
+ break;
1201
+ default:
1202
+ reader.skipField();
1203
+ break;
1204
+ }
1205
+ }
1206
+ return msg;
1207
+ };
1208
+
1209
+
1210
+ /**
1211
+ * Serializes the message to binary data (in protobuf wire format).
1212
+ * @return {!Uint8Array}
1213
+ */
1214
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() {
1215
+ var writer = new jspb.BinaryWriter();
1216
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter(this, writer);
1217
+ return writer.getResultBuffer();
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * Serializes the given message to binary data (in protobuf wire
1223
+ * format), writing to the given BinaryWriter.
1224
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} message
1225
+ * @param {!jspb.BinaryWriter} writer
1226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1227
+ */
1228
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter = function(message, writer) {
1229
+ var f = undefined;
1230
+ f = message.getMaxSize();
1231
+ if (f !== 0) {
1232
+ writer.writeUint32(
1233
+ 1,
1234
+ f
1235
+ );
1236
+ }
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * optional uint32 max_size = 1;
1242
+ * @return {number}
1243
+ */
1244
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() {
1245
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * @param {number} value
1251
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this
1252
+ */
1253
+ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) {
1254
+ return jspb.Message.setProto3IntField(this, 1, value);
1255
+ };
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1262
+ /**
1263
+ * Creates an object representation of this proto.
1264
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1265
+ * Optional fields that are not set will be set to undefined.
1266
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1267
+ * For the list of reserved names please see:
1268
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1269
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1270
+ * JSPB instance for transitional soy proto support:
1271
+ * http://goto/soy-param-migration
1272
+ * @return {!Object}
1273
+ */
1274
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.toObject = function(opt_includeInstance) {
1275
+ return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject(opt_includeInstance, this);
1276
+ };
1277
+
1278
+
1279
+ /**
1280
+ * Static version of the {@see toObject} method.
1281
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1282
+ * the JSPB instance for transitional soy proto support:
1283
+ * http://goto/soy-param-migration
1284
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The msg instance to transform.
1285
+ * @return {!Object}
1286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1287
+ */
1288
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject = function(includeInstance, msg) {
1289
+ var f, obj = {
1290
+
1291
+ };
1292
+
1293
+ if (includeInstance) {
1294
+ obj.$jspbMessageInstance = msg;
1295
+ }
1296
+ return obj;
1297
+ };
1298
+ }
1299
+
1300
+
1301
+ /**
1302
+ * Deserializes binary data (in protobuf wire format).
1303
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1304
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound}
1305
+ */
1306
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinary = function(bytes) {
1307
+ var reader = new jspb.BinaryReader(bytes);
1308
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound;
1309
+ return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader(msg, reader);
1310
+ };
1311
+
1312
+
1313
+ /**
1314
+ * Deserializes binary data (in protobuf wire format) from the
1315
+ * given reader into the given message object.
1316
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The message object to deserialize into.
1317
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1318
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound}
1319
+ */
1320
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader = function(msg, reader) {
1321
+ while (reader.nextField()) {
1322
+ if (reader.isEndGroup()) {
1323
+ break;
1324
+ }
1325
+ var field = reader.getFieldNumber();
1326
+ switch (field) {
1327
+ default:
1328
+ reader.skipField();
1329
+ break;
1330
+ }
1331
+ }
1332
+ return msg;
1333
+ };
1334
+
1335
+
1336
+ /**
1337
+ * Serializes the message to binary data (in protobuf wire format).
1338
+ * @return {!Uint8Array}
1339
+ */
1340
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.serializeBinary = function() {
1341
+ var writer = new jspb.BinaryWriter();
1342
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter(this, writer);
1343
+ return writer.getResultBuffer();
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * Serializes the given message to binary data (in protobuf wire
1349
+ * format), writing to the given BinaryWriter.
1350
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} message
1351
+ * @param {!jspb.BinaryWriter} writer
1352
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1353
+ */
1354
+ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter = function(message, writer) {
1355
+ var f = undefined;
1356
+ };
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1363
+ /**
1364
+ * Creates an object representation of this proto.
1365
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1366
+ * Optional fields that are not set will be set to undefined.
1367
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1368
+ * For the list of reserved names please see:
1369
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1370
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1371
+ * JSPB instance for transitional soy proto support:
1372
+ * http://goto/soy-param-migration
1373
+ * @return {!Object}
1374
+ */
1375
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.prototype.toObject = function(opt_includeInstance) {
1376
+ return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject(opt_includeInstance, this);
1377
+ };
1378
+
1379
+
1380
+ /**
1381
+ * Static version of the {@see toObject} method.
1382
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1383
+ * the JSPB instance for transitional soy proto support:
1384
+ * http://goto/soy-param-migration
1385
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The msg instance to transform.
1386
+ * @return {!Object}
1387
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1388
+ */
1389
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject = function(includeInstance, msg) {
1390
+ var f, obj = {
1391
+
1392
+ };
1393
+
1394
+ if (includeInstance) {
1395
+ obj.$jspbMessageInstance = msg;
1396
+ }
1397
+ return obj;
1398
+ };
1399
+ }
1400
+
1401
+
1402
+ /**
1403
+ * Deserializes binary data (in protobuf wire format).
1404
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1405
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated}
1406
+ */
1407
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinary = function(bytes) {
1408
+ var reader = new jspb.BinaryReader(bytes);
1409
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated;
1410
+ return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader(msg, reader);
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * Deserializes binary data (in protobuf wire format) from the
1416
+ * given reader into the given message object.
1417
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The message object to deserialize into.
1418
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1419
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated}
1420
+ */
1421
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader = function(msg, reader) {
1422
+ while (reader.nextField()) {
1423
+ if (reader.isEndGroup()) {
1424
+ break;
1425
+ }
1426
+ var field = reader.getFieldNumber();
1427
+ switch (field) {
1428
+ default:
1429
+ reader.skipField();
1430
+ break;
1431
+ }
1432
+ }
1433
+ return msg;
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * Serializes the message to binary data (in protobuf wire format).
1439
+ * @return {!Uint8Array}
1440
+ */
1441
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.prototype.serializeBinary = function() {
1442
+ var writer = new jspb.BinaryWriter();
1443
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.serializeBinaryToWriter(this, writer);
1444
+ return writer.getResultBuffer();
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * Serializes the given message to binary data (in protobuf wire
1450
+ * format), writing to the given BinaryWriter.
1451
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} message
1452
+ * @param {!jspb.BinaryWriter} writer
1453
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1454
+ */
1455
+ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.serializeBinaryToWriter = function(message, writer) {
1456
+ var f = undefined;
1457
+ };
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1464
+ /**
1465
+ * Creates an object representation of this proto.
1466
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1467
+ * Optional fields that are not set will be set to undefined.
1468
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1469
+ * For the list of reserved names please see:
1470
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1471
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1472
+ * JSPB instance for transitional soy proto support:
1473
+ * http://goto/soy-param-migration
1474
+ * @return {!Object}
1475
+ */
1476
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.prototype.toObject = function(opt_includeInstance) {
1477
+ return proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.toObject(opt_includeInstance, this);
1478
+ };
1479
+
1480
+
1481
+ /**
1482
+ * Static version of the {@see toObject} method.
1483
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1484
+ * the JSPB instance for transitional soy proto support:
1485
+ * http://goto/soy-param-migration
1486
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} msg The msg instance to transform.
1487
+ * @return {!Object}
1488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1489
+ */
1490
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.toObject = function(includeInstance, msg) {
1491
+ var f, obj = {
1492
+
1493
+ };
1494
+
1495
+ if (includeInstance) {
1496
+ obj.$jspbMessageInstance = msg;
1497
+ }
1498
+ return obj;
1499
+ };
1500
+ }
1501
+
1502
+
1503
+ /**
1504
+ * Deserializes binary data (in protobuf wire format).
1505
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1506
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound}
1507
+ */
1508
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinary = function(bytes) {
1509
+ var reader = new jspb.BinaryReader(bytes);
1510
+ var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound;
1511
+ return proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinaryFromReader(msg, reader);
1512
+ };
1513
+
1514
+
1515
+ /**
1516
+ * Deserializes binary data (in protobuf wire format) from the
1517
+ * given reader into the given message object.
1518
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} msg The message object to deserialize into.
1519
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1520
+ * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound}
1521
+ */
1522
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinaryFromReader = function(msg, reader) {
1523
+ while (reader.nextField()) {
1524
+ if (reader.isEndGroup()) {
1525
+ break;
1526
+ }
1527
+ var field = reader.getFieldNumber();
1528
+ switch (field) {
1529
+ default:
1530
+ reader.skipField();
1531
+ break;
1532
+ }
1533
+ }
1534
+ return msg;
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * Serializes the message to binary data (in protobuf wire format).
1540
+ * @return {!Uint8Array}
1541
+ */
1542
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.prototype.serializeBinary = function() {
1543
+ var writer = new jspb.BinaryWriter();
1544
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.serializeBinaryToWriter(this, writer);
1545
+ return writer.getResultBuffer();
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Serializes the given message to binary data (in protobuf wire
1551
+ * format), writing to the given BinaryWriter.
1552
+ * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} message
1553
+ * @param {!jspb.BinaryWriter} writer
1554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1555
+ */
1556
+ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.serializeBinaryToWriter = function(message, writer) {
1557
+ var f = undefined;
1558
+ };
1559
+
1560
+
1561
+ goog.object.extend(exports, proto.kurrentdb.protocol.v2);