UNPKG

@kurrent/kurrentdb-client

Version:
1,441 lines (1,312 loc) 148 kB
// source: users.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)); goog.exportSymbol('proto.event_store.client.users.ChangePasswordReq', null, global); goog.exportSymbol('proto.event_store.client.users.ChangePasswordReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.ChangePasswordResp', null, global); goog.exportSymbol('proto.event_store.client.users.CreateReq', null, global); goog.exportSymbol('proto.event_store.client.users.CreateReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.CreateResp', null, global); goog.exportSymbol('proto.event_store.client.users.DeleteReq', null, global); goog.exportSymbol('proto.event_store.client.users.DeleteReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.DeleteResp', null, global); goog.exportSymbol('proto.event_store.client.users.DetailsReq', null, global); goog.exportSymbol('proto.event_store.client.users.DetailsReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.DetailsResp', null, global); goog.exportSymbol('proto.event_store.client.users.DetailsResp.UserDetails', null, global); goog.exportSymbol('proto.event_store.client.users.DetailsResp.UserDetails.DateTime', null, global); goog.exportSymbol('proto.event_store.client.users.DisableReq', null, global); goog.exportSymbol('proto.event_store.client.users.DisableReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.DisableResp', null, global); goog.exportSymbol('proto.event_store.client.users.EnableReq', null, global); goog.exportSymbol('proto.event_store.client.users.EnableReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.EnableResp', null, global); goog.exportSymbol('proto.event_store.client.users.ResetPasswordReq', null, global); goog.exportSymbol('proto.event_store.client.users.ResetPasswordReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.ResetPasswordResp', null, global); goog.exportSymbol('proto.event_store.client.users.UpdateReq', null, global); goog.exportSymbol('proto.event_store.client.users.UpdateReq.Options', null, global); goog.exportSymbol('proto.event_store.client.users.UpdateResp', 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.event_store.client.users.CreateReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.CreateReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.CreateReq.displayName = 'proto.event_store.client.users.CreateReq'; } /** * 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.event_store.client.users.CreateReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.users.CreateReq.Options.repeatedFields_, null); }; goog.inherits(proto.event_store.client.users.CreateReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.CreateReq.Options.displayName = 'proto.event_store.client.users.CreateReq.Options'; } /** * 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.event_store.client.users.CreateResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.CreateResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.CreateResp.displayName = 'proto.event_store.client.users.CreateResp'; } /** * 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.event_store.client.users.UpdateReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.UpdateReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.UpdateReq.displayName = 'proto.event_store.client.users.UpdateReq'; } /** * 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.event_store.client.users.UpdateReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.users.UpdateReq.Options.repeatedFields_, null); }; goog.inherits(proto.event_store.client.users.UpdateReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.UpdateReq.Options.displayName = 'proto.event_store.client.users.UpdateReq.Options'; } /** * 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.event_store.client.users.UpdateResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.UpdateResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.UpdateResp.displayName = 'proto.event_store.client.users.UpdateResp'; } /** * 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.event_store.client.users.DeleteReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DeleteReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DeleteReq.displayName = 'proto.event_store.client.users.DeleteReq'; } /** * 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.event_store.client.users.DeleteReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DeleteReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DeleteReq.Options.displayName = 'proto.event_store.client.users.DeleteReq.Options'; } /** * 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.event_store.client.users.DeleteResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DeleteResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DeleteResp.displayName = 'proto.event_store.client.users.DeleteResp'; } /** * 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.event_store.client.users.EnableReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.EnableReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.EnableReq.displayName = 'proto.event_store.client.users.EnableReq'; } /** * 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.event_store.client.users.EnableReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.EnableReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.EnableReq.Options.displayName = 'proto.event_store.client.users.EnableReq.Options'; } /** * 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.event_store.client.users.EnableResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.EnableResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.EnableResp.displayName = 'proto.event_store.client.users.EnableResp'; } /** * 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.event_store.client.users.DisableReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DisableReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DisableReq.displayName = 'proto.event_store.client.users.DisableReq'; } /** * 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.event_store.client.users.DisableReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DisableReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DisableReq.Options.displayName = 'proto.event_store.client.users.DisableReq.Options'; } /** * 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.event_store.client.users.DisableResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DisableResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DisableResp.displayName = 'proto.event_store.client.users.DisableResp'; } /** * 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.event_store.client.users.DetailsReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DetailsReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DetailsReq.displayName = 'proto.event_store.client.users.DetailsReq'; } /** * 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.event_store.client.users.DetailsReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DetailsReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DetailsReq.Options.displayName = 'proto.event_store.client.users.DetailsReq.Options'; } /** * 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.event_store.client.users.DetailsResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DetailsResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DetailsResp.displayName = 'proto.event_store.client.users.DetailsResp'; } /** * 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.event_store.client.users.DetailsResp.UserDetails = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.users.DetailsResp.UserDetails.repeatedFields_, null); }; goog.inherits(proto.event_store.client.users.DetailsResp.UserDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DetailsResp.UserDetails.displayName = 'proto.event_store.client.users.DetailsResp.UserDetails'; } /** * 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.event_store.client.users.DetailsResp.UserDetails.DateTime = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.DetailsResp.UserDetails.DateTime, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.DetailsResp.UserDetails.DateTime.displayName = 'proto.event_store.client.users.DetailsResp.UserDetails.DateTime'; } /** * 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.event_store.client.users.ChangePasswordReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.ChangePasswordReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.ChangePasswordReq.displayName = 'proto.event_store.client.users.ChangePasswordReq'; } /** * 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.event_store.client.users.ChangePasswordReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.ChangePasswordReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.ChangePasswordReq.Options.displayName = 'proto.event_store.client.users.ChangePasswordReq.Options'; } /** * 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.event_store.client.users.ChangePasswordResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.ChangePasswordResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.ChangePasswordResp.displayName = 'proto.event_store.client.users.ChangePasswordResp'; } /** * 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.event_store.client.users.ResetPasswordReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.ResetPasswordReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.ResetPasswordReq.displayName = 'proto.event_store.client.users.ResetPasswordReq'; } /** * 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.event_store.client.users.ResetPasswordReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.ResetPasswordReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.ResetPasswordReq.Options.displayName = 'proto.event_store.client.users.ResetPasswordReq.Options'; } /** * 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.event_store.client.users.ResetPasswordResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.users.ResetPasswordResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.users.ResetPasswordResp.displayName = 'proto.event_store.client.users.ResetPasswordResp'; } 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.event_store.client.users.CreateReq.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.users.CreateReq.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.event_store.client.users.CreateReq} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.CreateReq.toObject = function(includeInstance, msg) { var f, obj = { options: (f = msg.getOptions()) && proto.event_store.client.users.CreateReq.Options.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.event_store.client.users.CreateReq} */ proto.event_store.client.users.CreateReq.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.users.CreateReq; return proto.event_store.client.users.CreateReq.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.users.CreateReq} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.users.CreateReq} */ proto.event_store.client.users.CreateReq.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.event_store.client.users.CreateReq.Options; reader.readMessage(value,proto.event_store.client.users.CreateReq.Options.deserializeBinaryFromReader); msg.setOptions(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.users.CreateReq.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.users.CreateReq.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.event_store.client.users.CreateReq} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.CreateReq.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOptions(); if (f != null) { writer.writeMessage( 1, f, proto.event_store.client.users.CreateReq.Options.serializeBinaryToWriter ); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.event_store.client.users.CreateReq.Options.repeatedFields_ = [4]; 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.event_store.client.users.CreateReq.Options.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.users.CreateReq.Options.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.event_store.client.users.CreateReq.Options} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.CreateReq.Options.toObject = function(includeInstance, msg) { var f, obj = { loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), password: jspb.Message.getFieldWithDefault(msg, 2, ""), fullName: jspb.Message.getFieldWithDefault(msg, 3, ""), groupsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : 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.event_store.client.users.CreateReq.Options} */ proto.event_store.client.users.CreateReq.Options.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.users.CreateReq.Options; return proto.event_store.client.users.CreateReq.Options.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.users.CreateReq.Options} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.users.CreateReq.Options} */ proto.event_store.client.users.CreateReq.Options.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.setLoginName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setPassword(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setFullName(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.addGroups(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.users.CreateReq.Options.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.users.CreateReq.Options.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.event_store.client.users.CreateReq.Options} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.CreateReq.Options.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getLoginName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getPassword(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getFullName(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getGroupsList(); if (f.length > 0) { writer.writeRepeatedString( 4, f ); } }; /** * optional string login_name = 1; * @return {string} */ proto.event_store.client.users.CreateReq.Options.prototype.getLoginName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.event_store.client.users.CreateReq.Options} returns this */ proto.event_store.client.users.CreateReq.Options.prototype.setLoginName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string password = 2; * @return {string} */ proto.event_store.client.users.CreateReq.Options.prototype.getPassword = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.event_store.client.users.CreateReq.Options} returns this */ proto.event_store.client.users.CreateReq.Options.prototype.setPassword = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string full_name = 3; * @return {string} */ proto.event_store.client.users.CreateReq.Options.prototype.getFullName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.event_store.client.users.CreateReq.Options} returns this */ proto.event_store.client.users.CreateReq.Options.prototype.setFullName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * repeated string groups = 4; * @return {!Array<string>} */ proto.event_store.client.users.CreateReq.Options.prototype.getGroupsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array<string>} value * @return {!proto.event_store.client.users.CreateReq.Options} returns this */ proto.event_store.client.users.CreateReq.Options.prototype.setGroupsList = function(value) { return jspb.Message.setField(this, 4, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.event_store.client.users.CreateReq.Options} returns this */ proto.event_store.client.users.CreateReq.Options.prototype.addGroups = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.event_store.client.users.CreateReq.Options} returns this */ proto.event_store.client.users.CreateReq.Options.prototype.clearGroupsList = function() { return this.setGroupsList([]); }; /** * optional Options options = 1; * @return {?proto.event_store.client.users.CreateReq.Options} */ proto.event_store.client.users.CreateReq.prototype.getOptions = function() { return /** @type{?proto.event_store.client.users.CreateReq.Options} */ ( jspb.Message.getWrapperField(this, proto.event_store.client.users.CreateReq.Options, 1)); }; /** * @param {?proto.event_store.client.users.CreateReq.Options|undefined} value * @return {!proto.event_store.client.users.CreateReq} returns this */ proto.event_store.client.users.CreateReq.prototype.setOptions = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.event_store.client.users.CreateReq} returns this */ proto.event_store.client.users.CreateReq.prototype.clearOptions = function() { return this.setOptions(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.event_store.client.users.CreateReq.prototype.hasOptions = 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.event_store.client.users.CreateResp.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.users.CreateResp.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.event_store.client.users.CreateResp} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.CreateResp.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.event_store.client.users.CreateResp} */ proto.event_store.client.users.CreateResp.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.users.CreateResp; return proto.event_store.client.users.CreateResp.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.users.CreateResp} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.users.CreateResp} */ proto.event_store.client.users.CreateResp.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.event_store.client.users.CreateResp.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.users.CreateResp.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.event_store.client.users.CreateResp} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.CreateResp.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.event_store.client.users.UpdateReq.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.users.UpdateReq.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.event_store.client.users.UpdateReq} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.UpdateReq.toObject = function(includeInstance, msg) { var f, obj = { options: (f = msg.getOptions()) && proto.event_store.client.users.UpdateReq.Options.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.event_store.client.users.UpdateReq} */ proto.event_store.client.users.UpdateReq.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.users.UpdateReq; return proto.event_store.client.users.UpdateReq.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.users.UpdateReq} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.users.UpdateReq} */ proto.event_store.client.users.UpdateReq.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.event_store.client.users.UpdateReq.Options; reader.readMessage(value,proto.event_store.client.users.UpdateReq.Options.deserializeBinaryFromReader); msg.setOptions(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.users.UpdateReq.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.users.UpdateReq.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.event_store.client.users.UpdateReq} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.UpdateReq.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOptions(); if (f != null) { writer.writeMessage( 1, f, proto.event_store.client.users.UpdateReq.Options.serializeBinaryToWriter ); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.event_store.client.users.UpdateReq.Options.repeatedFields_ = [4]; 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.event_store.client.users.UpdateReq.Options.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.users.UpdateReq.Options.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.event_store.client.users.UpdateReq.Options} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.UpdateReq.Options.toObject = function(includeInstance, msg) { var f, obj = { loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), password: jspb.Message.getFieldWithDefault(msg, 2, ""), fullName: jspb.Message.getFieldWithDefault(msg, 3, ""), groupsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : 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.event_store.client.users.UpdateReq.Options} */ proto.event_store.client.users.UpdateReq.Options.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.users.UpdateReq.Options; return proto.event_store.client.users.UpdateReq.Options.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.users.UpdateReq.Options} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.users.UpdateReq.Options} */ proto.event_store.client.users.UpdateReq.Options.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.setLoginName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setPassword(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setFullName(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.addGroups(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.users.UpdateReq.Options.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.users.UpdateReq.Options.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.event_store.client.users.UpdateReq.Options} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.users.UpdateReq.Options.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getLoginName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getPassword(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getFullName(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getGroupsList(); if (f.length > 0) { writer.writeRepeatedString( 4, f ); } }; /** * optional string login_name = 1; * @return {string} */ proto.event_store.client.users.UpdateReq.Options.prototype.getLoginName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.event_store.client.users.UpdateReq.Options} returns this */ proto.event_store.client.users.UpdateReq.Options.prototype.setLoginName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string password = 2; * @return {string} */ proto.event_store.client.users.UpdateReq.Options.prototype.getPassword = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.event_store.client.users.UpdateReq.Options} returns this */ proto.event_store.client.users.UpdateReq.Options.prototype.setPassword = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string full_name = 3; * @return {string} */ proto.event_store.client.users.UpdateReq.Options.prototype.getFullName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.event_store.client.users.UpdateReq.Options} returns this */ proto.event_store.client.users.UpdateReq.Options.prototype.setFullName = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * repeated string groups = 4; * @return {!Array<string>} */ proto.event_store.client.users.UpdateReq.Options.prototype.getGroupsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array<string>} value * @return {!proto.event_store.client.users.UpdateReq.Options} returns this */ proto.event_store.client.users.UpdateReq.Options.prototype.setGroupsList = function(value) { return jspb.Message.setField(this, 4, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.event_store.client.users.UpdateReq.Options} returns this */ proto.event_store.client.users.UpdateReq.Options.prototype.addGroups = function(value, opt_index) { return jspb.Message.a