UNPKG

@kurrent/kurrentdb-client

Version:
1,424 lines (1,232 loc) 54.6 kB
// source: kurrentdb/protocols/v2/streams/shared.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 google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); goog.object.extend(proto, google_protobuf_descriptor_pb); var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js'); goog.object.extend(proto, kurrentdb_protocols_v2_core_pb); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound', 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.ErrorDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails'; } /** * 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.ErrorDetails.AccessDenied = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied'; } /** * 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.ErrorDetails.StreamDeleted = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted'; } /** * 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.ErrorDetails.StreamTombstoned = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned'; } /** * 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.ErrorDetails.StreamNotFound = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound'; } /** * 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.ErrorDetails.StreamRevisionConflict = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict'; } /** * 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.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded'; } /** * 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.ErrorDetails.UserNotFound = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound'; } /** * 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.ErrorDetails.NotAuthenticated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated'; } /** * 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.ErrorDetails.LogPositionNotFound = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound'; } 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.ErrorDetails.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.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.ErrorDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, msg) { var f, obj = { }; 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.ErrorDetails} */ proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails; return proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} */ proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.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.ErrorDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; 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.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.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.ErrorDetails.AccessDenied} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includeInstance, msg) { var f, obj = { }; 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.ErrorDetails.AccessDenied} */ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied; return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} */ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.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.ErrorDetails.AccessDenied} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; 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.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.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.ErrorDetails.StreamDeleted} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, ""), deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; 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.ErrorDetails.StreamDeleted} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted; return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.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 = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setDeletedAt(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.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.ErrorDetails.StreamDeleted} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = message.getDeletedAt(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setStream = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearStream = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasStream = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional google.protobuf.Timestamp deleted_at = 2; * @return {?proto.google.protobuf.Timestamp} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getDeletedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setDeletedAt = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearDeletedAt = function() { return this.setDeletedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasDeletedAt = function() { return jspb.Message.getField(this, 2) != null; }; 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.ErrorDetails.StreamTombstoned.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.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.ErrorDetails.StreamTombstoned} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, ""), tombstonedAt: (f = msg.getTombstonedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; 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.ErrorDetails.StreamTombstoned} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned; return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.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 = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setTombstonedAt(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.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.ErrorDetails.StreamTombstoned} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = message.getTombstonedAt(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setStream = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearStream = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasStream = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional google.protobuf.Timestamp tombstoned_at = 2; * @return {?proto.google.protobuf.Timestamp} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getTombstonedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setTombstonedAt = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearTombstonedAt = function() { return this.setTombstonedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasTombstonedAt = function() { return jspb.Message.getField(this, 2) != null; }; 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.ErrorDetails.StreamNotFound.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.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.ErrorDetails.StreamNotFound} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.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.ErrorDetails.StreamNotFound} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound; return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.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.ErrorDetails.StreamNotFound.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.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.ErrorDetails.StreamNotFound} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } }; /** * optional string stream = 1; * @return {string} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.getStream = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.setStream = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.clearStream = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.hasStream = function() { return jspb.Message.getField(this, 1) != null; }; 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.ErrorDetails.StreamRevisionConflict.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.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.ErrorDetails.StreamRevisionConflict} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject = function(includeInstance, msg) { var f, obj = { streamRevision: jspb.Message.getFieldWithDefault(msg, 1, "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.ErrorDetails.StreamRevisionConflict} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict; return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readInt64String()); msg.setStreamRevision(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.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.ErrorDetails.StreamRevisionConflict} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStreamRevision(); if (parseInt(f, 10) !== 0) { writer.writeInt64String( 1, f ); } }; /** * optional int64 stream_revision = 1; * @return {string} */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.getStreamRevision = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** * @param {string} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.setStreamRevision = function(value) { return jspb.Message.setProto3StringIntField(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.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.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.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = function(includeInstance, msg) { var f, obj = { maxSize: jspb.Message.getFieldWithDefault(msg, 1, 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.ErrorDetails.TransactionMaxSizeExceeded} */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded; return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); 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.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.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.ErrorDetails.TransactionMaxSizeExceeded} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMaxSize(); if (f !== 0) { writer.writeUint32( 1, f ); } }; /** * optional uint32 max_size = 1; * @return {number} */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this */ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) { return jspb.Message.setProto3IntField(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.ErrorDetails.UserNotFound.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.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.ErrorDetails.UserNotFound} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject = function(includeInstance, msg) { var f, obj = { }; 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.ErrorDetails.UserNotFound} */ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound; return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} */ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.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.ErrorDetails.UserNotFound} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; 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.ErrorDetails.NotAuthenticated.prototype.toObject = function(opt_includeInstance) { return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.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.ErrorDetails.NotAuthenticated} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject = function(includeInstance, msg) { var f, obj = { }; 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.ErrorDetails.NotAuthenticated} */ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated; return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} */ proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break;