UNPKG

@kurrent/kurrentdb-client

Version:
1,321 lines (1,234 loc) 204 kB
// source: projections.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_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); goog.object.extend(proto, google_protobuf_struct_pb); var shared_pb = require('./shared_pb.js'); goog.object.extend(proto, shared_pb); goog.exportSymbol('proto.event_store.client.projections.CreateReq', null, global); goog.exportSymbol('proto.event_store.client.projections.CreateReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.CreateReq.Options.Continuous', null, global); goog.exportSymbol('proto.event_store.client.projections.CreateReq.Options.ModeCase', null, global); goog.exportSymbol('proto.event_store.client.projections.CreateReq.Options.Transient', null, global); goog.exportSymbol('proto.event_store.client.projections.CreateResp', null, global); goog.exportSymbol('proto.event_store.client.projections.DeleteReq', null, global); goog.exportSymbol('proto.event_store.client.projections.DeleteReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.DeleteResp', null, global); goog.exportSymbol('proto.event_store.client.projections.DisableReq', null, global); goog.exportSymbol('proto.event_store.client.projections.DisableReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.DisableResp', null, global); goog.exportSymbol('proto.event_store.client.projections.EnableReq', null, global); goog.exportSymbol('proto.event_store.client.projections.EnableReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.EnableResp', null, global); goog.exportSymbol('proto.event_store.client.projections.ResetReq', null, global); goog.exportSymbol('proto.event_store.client.projections.ResetReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.ResetResp', null, global); goog.exportSymbol('proto.event_store.client.projections.ResultReq', null, global); goog.exportSymbol('proto.event_store.client.projections.ResultReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.ResultResp', null, global); goog.exportSymbol('proto.event_store.client.projections.StateReq', null, global); goog.exportSymbol('proto.event_store.client.projections.StateReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.StateResp', null, global); goog.exportSymbol('proto.event_store.client.projections.StatisticsReq', null, global); goog.exportSymbol('proto.event_store.client.projections.StatisticsReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.StatisticsReq.Options.ModeCase', null, global); goog.exportSymbol('proto.event_store.client.projections.StatisticsResp', null, global); goog.exportSymbol('proto.event_store.client.projections.StatisticsResp.Details', null, global); goog.exportSymbol('proto.event_store.client.projections.UpdateReq', null, global); goog.exportSymbol('proto.event_store.client.projections.UpdateReq.Options', null, global); goog.exportSymbol('proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase', null, global); goog.exportSymbol('proto.event_store.client.projections.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.projections.CreateReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.CreateReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.CreateReq.displayName = 'proto.event_store.client.projections.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.projections.CreateReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.projections.CreateReq.Options.oneofGroups_); }; goog.inherits(proto.event_store.client.projections.CreateReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.CreateReq.Options.displayName = 'proto.event_store.client.projections.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.projections.CreateReq.Options.Transient = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.CreateReq.Options.Transient, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.CreateReq.Options.Transient.displayName = 'proto.event_store.client.projections.CreateReq.Options.Transient'; } /** * 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.projections.CreateReq.Options.Continuous = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.CreateReq.Options.Continuous, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.CreateReq.Options.Continuous.displayName = 'proto.event_store.client.projections.CreateReq.Options.Continuous'; } /** * 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.projections.CreateResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.CreateResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.CreateResp.displayName = 'proto.event_store.client.projections.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.projections.UpdateReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.UpdateReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.UpdateReq.displayName = 'proto.event_store.client.projections.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.projections.UpdateReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_); }; goog.inherits(proto.event_store.client.projections.UpdateReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.UpdateReq.Options.displayName = 'proto.event_store.client.projections.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.projections.UpdateResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.UpdateResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.UpdateResp.displayName = 'proto.event_store.client.projections.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.projections.DeleteReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.DeleteReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.DeleteReq.displayName = 'proto.event_store.client.projections.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.projections.DeleteReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.DeleteReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.DeleteReq.Options.displayName = 'proto.event_store.client.projections.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.projections.DeleteResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.DeleteResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.DeleteResp.displayName = 'proto.event_store.client.projections.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.projections.StatisticsReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.StatisticsReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StatisticsReq.displayName = 'proto.event_store.client.projections.StatisticsReq'; } /** * 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.projections.StatisticsReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_); }; goog.inherits(proto.event_store.client.projections.StatisticsReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StatisticsReq.Options.displayName = 'proto.event_store.client.projections.StatisticsReq.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.projections.StatisticsResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.StatisticsResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StatisticsResp.displayName = 'proto.event_store.client.projections.StatisticsResp'; } /** * 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.projections.StatisticsResp.Details = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.StatisticsResp.Details, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StatisticsResp.Details.displayName = 'proto.event_store.client.projections.StatisticsResp.Details'; } /** * 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.projections.StateReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.StateReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StateReq.displayName = 'proto.event_store.client.projections.StateReq'; } /** * 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.projections.StateReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.StateReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StateReq.Options.displayName = 'proto.event_store.client.projections.StateReq.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.projections.StateResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.StateResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.StateResp.displayName = 'proto.event_store.client.projections.StateResp'; } /** * 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.projections.ResultReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.ResultReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.ResultReq.displayName = 'proto.event_store.client.projections.ResultReq'; } /** * 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.projections.ResultReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.ResultReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.ResultReq.Options.displayName = 'proto.event_store.client.projections.ResultReq.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.projections.ResultResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.ResultResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.ResultResp.displayName = 'proto.event_store.client.projections.ResultResp'; } /** * 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.projections.ResetReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.ResetReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.ResetReq.displayName = 'proto.event_store.client.projections.ResetReq'; } /** * 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.projections.ResetReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.ResetReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.ResetReq.Options.displayName = 'proto.event_store.client.projections.ResetReq.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.projections.ResetResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.ResetResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.ResetResp.displayName = 'proto.event_store.client.projections.ResetResp'; } /** * 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.projections.EnableReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.EnableReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.EnableReq.displayName = 'proto.event_store.client.projections.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.projections.EnableReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.EnableReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.EnableReq.Options.displayName = 'proto.event_store.client.projections.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.projections.EnableResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.EnableResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.EnableResp.displayName = 'proto.event_store.client.projections.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.projections.DisableReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.DisableReq, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.DisableReq.displayName = 'proto.event_store.client.projections.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.projections.DisableReq.Options = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.DisableReq.Options, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.DisableReq.Options.displayName = 'proto.event_store.client.projections.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.projections.DisableResp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.event_store.client.projections.DisableResp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.event_store.client.projections.DisableResp.displayName = 'proto.event_store.client.projections.DisableResp'; } 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.projections.CreateReq.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.projections.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.projections.CreateReq} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.toObject = function(includeInstance, msg) { var f, obj = { options: (f = msg.getOptions()) && proto.event_store.client.projections.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.projections.CreateReq} */ proto.event_store.client.projections.CreateReq.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.projections.CreateReq; return proto.event_store.client.projections.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.projections.CreateReq} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.projections.CreateReq} */ proto.event_store.client.projections.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.projections.CreateReq.Options; reader.readMessage(value,proto.event_store.client.projections.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.projections.CreateReq.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.projections.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.projections.CreateReq} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOptions(); if (f != null) { writer.writeMessage( 1, f, proto.event_store.client.projections.CreateReq.Options.serializeBinaryToWriter ); } }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.event_store.client.projections.CreateReq.Options.oneofGroups_ = [[1,2,3]]; /** * @enum {number} */ proto.event_store.client.projections.CreateReq.Options.ModeCase = { MODE_NOT_SET: 0, ONE_TIME: 1, TRANSIENT: 2, CONTINUOUS: 3 }; /** * @return {proto.event_store.client.projections.CreateReq.Options.ModeCase} */ proto.event_store.client.projections.CreateReq.Options.prototype.getModeCase = function() { return /** @type {proto.event_store.client.projections.CreateReq.Options.ModeCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.projections.CreateReq.Options.oneofGroups_[0])); }; 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.projections.CreateReq.Options.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.projections.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.projections.CreateReq.Options} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.Options.toObject = function(includeInstance, msg) { var f, obj = { oneTime: (f = msg.getOneTime()) && shared_pb.Empty.toObject(includeInstance, f), pb_transient: (f = msg.getTransient()) && proto.event_store.client.projections.CreateReq.Options.Transient.toObject(includeInstance, f), continuous: (f = msg.getContinuous()) && proto.event_store.client.projections.CreateReq.Options.Continuous.toObject(includeInstance, f), query: jspb.Message.getFieldWithDefault(msg, 4, "") }; 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.projections.CreateReq.Options} */ proto.event_store.client.projections.CreateReq.Options.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.projections.CreateReq.Options; return proto.event_store.client.projections.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.projections.CreateReq.Options} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.projections.CreateReq.Options} */ proto.event_store.client.projections.CreateReq.Options.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new shared_pb.Empty; reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); msg.setOneTime(value); break; case 2: var value = new proto.event_store.client.projections.CreateReq.Options.Transient; reader.readMessage(value,proto.event_store.client.projections.CreateReq.Options.Transient.deserializeBinaryFromReader); msg.setTransient(value); break; case 3: var value = new proto.event_store.client.projections.CreateReq.Options.Continuous; reader.readMessage(value,proto.event_store.client.projections.CreateReq.Options.Continuous.deserializeBinaryFromReader); msg.setContinuous(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setQuery(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.projections.CreateReq.Options.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.projections.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.projections.CreateReq.Options} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.Options.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOneTime(); if (f != null) { writer.writeMessage( 1, f, shared_pb.Empty.serializeBinaryToWriter ); } f = message.getTransient(); if (f != null) { writer.writeMessage( 2, f, proto.event_store.client.projections.CreateReq.Options.Transient.serializeBinaryToWriter ); } f = message.getContinuous(); if (f != null) { writer.writeMessage( 3, f, proto.event_store.client.projections.CreateReq.Options.Continuous.serializeBinaryToWriter ); } f = message.getQuery(); if (f.length > 0) { writer.writeString( 4, f ); } }; 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.projections.CreateReq.Options.Transient.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.projections.CreateReq.Options.Transient.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.projections.CreateReq.Options.Transient} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.Options.Transient.toObject = function(includeInstance, msg) { var f, obj = { name: 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.event_store.client.projections.CreateReq.Options.Transient} */ proto.event_store.client.projections.CreateReq.Options.Transient.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.projections.CreateReq.Options.Transient; return proto.event_store.client.projections.CreateReq.Options.Transient.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.projections.CreateReq.Options.Transient} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.projections.CreateReq.Options.Transient} */ proto.event_store.client.projections.CreateReq.Options.Transient.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.setName(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.projections.CreateReq.Options.Transient.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.projections.CreateReq.Options.Transient.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.projections.CreateReq.Options.Transient} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.Options.Transient.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string name = 1; * @return {string} */ proto.event_store.client.projections.CreateReq.Options.Transient.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.event_store.client.projections.CreateReq.Options.Transient} returns this */ proto.event_store.client.projections.CreateReq.Options.Transient.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.toObject = function(opt_includeInstance) { return proto.event_store.client.projections.CreateReq.Options.Continuous.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.projections.CreateReq.Options.Continuous} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.Options.Continuous.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), emitEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), trackEmittedStreams: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; 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.projections.CreateReq.Options.Continuous} */ proto.event_store.client.projections.CreateReq.Options.Continuous.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.event_store.client.projections.CreateReq.Options.Continuous; return proto.event_store.client.projections.CreateReq.Options.Continuous.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.event_store.client.projections.CreateReq.Options.Continuous} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.event_store.client.projections.CreateReq.Options.Continuous} */ proto.event_store.client.projections.CreateReq.Options.Continuous.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.setName(value); break; case 2: var value = /** @type {boolean} */ (reader.readBool()); msg.setEmitEnabled(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setTrackEmittedStreams(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.event_store.client.projections.CreateReq.Options.Continuous.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.projections.CreateReq.Options.Continuous} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.event_store.client.projections.CreateReq.Options.Continuous.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getEmitEnabled(); if (f) { writer.writeBool( 2, f ); } f = message.getTrackEmittedStreams(); if (f) { writer.writeBool( 3, f ); } }; /** * optional string name = 1; * @return {string} */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.event_store.client.projections.CreateReq.Options.Continuous} returns this */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool emit_enabled = 2; * @return {boolean} */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.getEmitEnabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value * @return {!proto.event_store.client.projections.CreateReq.Options.Continuous} returns this */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.setEmitEnabled = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** * optional bool track_emitted_streams = 3; * @return {boolean} */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.getTrackEmittedStreams = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.event_store.client.projections.CreateReq.Options.Continuous} returns this */ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.setTrackEmittedStreams = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional event_store.client.Empty one_time = 1; * @return {?proto.event_store.client.Empty} */ proto.event_store.client.projections.CreateReq.Options.prototype.getOneTime = function() { return /** @type{?proto.event_store.client.Empty} */ ( jspb.Message.getWrapperField(this, shared_pb.Empty, 1)); }; /** * @param {?proto.event_store.client.Empty|undefined} value * @return {!proto.event_store.client.projections.CreateReq.Options} returns this */ proto.event_store.client.projections.CreateReq.Options.prototype.setOneTime = function(value) { return jspb.Message.setOneofWrapperField(this, 1, proto.event_s