UNPKG

@kurrent/kurrentdb-client

Version:
1,353 lines (1,189 loc) 76.5 kB
// source: kurrentdb/protocols/v2/streams/errors.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { if (this) { return this; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } if (typeof self !== 'undefined') { return self; } return Function('return this')(); }.call(null)); var kurrentdb_protocols_v2_rpc_pb = require('../../../../kurrentdb/protocols/v2/rpc_pb.js'); goog.object.extend(proto, kurrentdb_protocols_v2_rpc_pb); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.AppendConsistencyViolationErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.StreamStateViolation', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.TypeCase', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.streams.errors.StreamsError', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyInAppendSessionErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.AppendConsistencyViolationErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.streams.errors.AppendConsistencyViolationErrorDetails.repeatedFields_, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.AppendConsistencyViolationErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.AppendConsistencyViolationErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.AppendConsistencyViolationErrorDetails'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.oneofGroups_); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.StreamStateViolation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.StreamStateViolation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.StreamStateViolation.displayName = 'proto.kurrentdb.protocol.v2.streams.errors.ConsistencyViolation.StreamStateViolation'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setStream(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStream(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamNotFoundErrorDetails.prototype.setStream = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setStream(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStream(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamAlreadyExistsErrorDetails.prototype.setStream = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setStream(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStream(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamDeletedErrorDetails.prototype.setStream = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setStream(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStream(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamTombstonedErrorDetails.prototype.setStream = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, ""), expectedRevision: jspb.Message.getFieldWithDefault(msg, 2, "0"), actualRevision: jspb.Message.getFieldWithDefault(msg, 3, "0") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setStream(value); break; case 2: var value = /** @type {string} */ (reader.readSint64String()); msg.setExpectedRevision(value); break; case 3: var value = /** @type {string} */ (reader.readSint64String()); msg.setActualRevision(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStream(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getExpectedRevision(); if (parseInt(f, 10) !== 0) { writer.writeSint64String( 2, f ); } f = message.getActualRevision(); if (parseInt(f, 10) !== 0) { writer.writeSint64String( 3, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.setStream = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional sint64 expected_revision = 2; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.getExpectedRevision = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.setExpectedRevision = function(value) { return jspb.Message.setProto3StringIntField(this, 2, value); }; /** * optional sint64 actual_revision = 3; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.getActualRevision = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.StreamRevisionConflictErrorDetails.prototype.setActualRevision = function(value) { return jspb.Message.setProto3StringIntField(this, 3, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, ""), recordId: jspb.Message.getFieldWithDefault(msg, 2, ""), size: jspb.Message.getFieldWithDefault(msg, 3, 0), maxSize: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setStream(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setRecordId(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setSize(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setMaxSize(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStream(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getRecordId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getSize(); if (f !== 0) { writer.writeInt32( 3, f ); } f = message.getMaxSize(); if (f !== 0) { writer.writeInt32( 4, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setStream = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string record_id = 2; * @return {string} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getRecordId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setRecordId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional int32 size = 3; * @return {number} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setSize = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional int32 max_size = 4; * @return {number} */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.getMaxSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.AppendRecordSizeExceededErrorDetails.prototype.setMaxSize = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { size: jspb.Message.getFieldWithDefault(msg, 1, 0), maxSize: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails; return proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setSize(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setMaxSize(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSize(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getMaxSize(); if (f !== 0) { writer.writeInt32( 2, f ); } }; /** * optional int32 size = 1; * @return {number} */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.getSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails} returns this */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.setSize = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 max_size = 2; * @return {number} */ proto.kurrentdb.protocol.v2.streams.errors.AppendTransactionSizeExceededErrorDetails.prototype.getMaxSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.kurrentdb.protocol.v2.strea