From 6fa8ea409f7d34b9913d6c7056489bf7b8c487db Mon Sep 17 00:00:00 2001 From: YoEight Date: Tue, 17 Jun 2025 22:52:18 -0400 Subject: [PATCH 01/18] feat: add multi stream append feature --- .../generated/dynamic-value_grpc_pb.js | 1 + .../db-client/generated/dynamic-value_pb.d.ts | 106 + .../db-client/generated/dynamic-value_pb.js | 697 ++++ .../generated/streams.v2_grpc_pb.d.ts | 61 + .../db-client/generated/streams.v2_grpc_pb.js | 76 + .../db-client/generated/streams.v2_pb.d.ts | 400 +++ packages/db-client/generated/streams.v2_pb.js | 2901 +++++++++++++++++ packages/db-client/protos/dynamic-value.proto | 42 + packages/db-client/protos/streams.v2.proto | 170 + packages/db-client/src/types/index.ts | 37 +- 10 files changed, 4490 insertions(+), 1 deletion(-) create mode 100644 packages/db-client/generated/dynamic-value_grpc_pb.js create mode 100644 packages/db-client/generated/dynamic-value_pb.d.ts create mode 100644 packages/db-client/generated/dynamic-value_pb.js create mode 100644 packages/db-client/generated/streams.v2_grpc_pb.d.ts create mode 100644 packages/db-client/generated/streams.v2_grpc_pb.js create mode 100644 packages/db-client/generated/streams.v2_pb.d.ts create mode 100644 packages/db-client/generated/streams.v2_pb.js create mode 100644 packages/db-client/protos/dynamic-value.proto create mode 100644 packages/db-client/protos/streams.v2.proto diff --git a/packages/db-client/generated/dynamic-value_grpc_pb.js b/packages/db-client/generated/dynamic-value_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/dynamic-value_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/packages/db-client/generated/dynamic-value_pb.d.ts b/packages/db-client/generated/dynamic-value_pb.d.ts new file mode 100644 index 00000000..0166e105 --- /dev/null +++ b/packages/db-client/generated/dynamic-value_pb.d.ts @@ -0,0 +1,106 @@ +// package: kurrentdb.protobuf +// file: dynamic-value.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +export class DynamicValue extends jspb.Message { + + hasNullValue(): boolean; + clearNullValue(): void; + getNullValue(): google_protobuf_struct_pb.NullValue; + setNullValue(value: google_protobuf_struct_pb.NullValue): DynamicValue; + + hasInt32Value(): boolean; + clearInt32Value(): void; + getInt32Value(): number; + setInt32Value(value: number): DynamicValue; + + hasInt64Value(): boolean; + clearInt64Value(): void; + getInt64Value(): number; + setInt64Value(value: number): DynamicValue; + + hasBytesValue(): boolean; + clearBytesValue(): void; + getBytesValue(): Uint8Array | string; + getBytesValue_asU8(): Uint8Array; + getBytesValue_asB64(): string; + setBytesValue(value: Uint8Array | string): DynamicValue; + + hasDoubleValue(): boolean; + clearDoubleValue(): void; + getDoubleValue(): number; + setDoubleValue(value: number): DynamicValue; + + hasFloatValue(): boolean; + clearFloatValue(): void; + getFloatValue(): number; + setFloatValue(value: number): DynamicValue; + + hasStringValue(): boolean; + clearStringValue(): void; + getStringValue(): string; + setStringValue(value: string): DynamicValue; + + hasBooleanValue(): boolean; + clearBooleanValue(): void; + getBooleanValue(): boolean; + setBooleanValue(value: boolean): DynamicValue; + + hasTimestampValue(): boolean; + clearTimestampValue(): void; + getTimestampValue(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTimestampValue(value?: google_protobuf_timestamp_pb.Timestamp): DynamicValue; + + hasDurationValue(): boolean; + clearDurationValue(): void; + getDurationValue(): google_protobuf_duration_pb.Duration | undefined; + setDurationValue(value?: google_protobuf_duration_pb.Duration): DynamicValue; + + getKindCase(): DynamicValue.KindCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DynamicValue.AsObject; + static toObject(includeInstance: boolean, msg: DynamicValue): DynamicValue.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DynamicValue, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DynamicValue; + static deserializeBinaryFromReader(message: DynamicValue, reader: jspb.BinaryReader): DynamicValue; +} + +export namespace DynamicValue { + export type AsObject = { + nullValue: google_protobuf_struct_pb.NullValue, + int32Value: number, + int64Value: number, + bytesValue: Uint8Array | string, + doubleValue: number, + floatValue: number, + stringValue: string, + booleanValue: boolean, + timestampValue?: google_protobuf_timestamp_pb.Timestamp.AsObject, + durationValue?: google_protobuf_duration_pb.Duration.AsObject, + } + + export enum KindCase { + KIND_NOT_SET = 0, + NULL_VALUE = 1, + INT32_VALUE = 2, + INT64_VALUE = 3, + BYTES_VALUE = 4, + DOUBLE_VALUE = 5, + FLOAT_VALUE = 6, + STRING_VALUE = 7, + BOOLEAN_VALUE = 8, + TIMESTAMP_VALUE = 9, + DURATION_VALUE = 10, + } + +} diff --git a/packages/db-client/generated/dynamic-value_pb.js b/packages/db-client/generated/dynamic-value_pb.js new file mode 100644 index 00000000..2ed364ca --- /dev/null +++ b/packages/db-client/generated/dynamic-value_pb.js @@ -0,0 +1,697 @@ +// source: dynamic-value.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_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.kurrentdb.protobuf.DynamicValue', null, global); +goog.exportSymbol('proto.kurrentdb.protobuf.DynamicValue.KindCase', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protobuf.DynamicValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protobuf.DynamicValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protobuf.DynamicValue.displayName = 'proto.kurrentdb.protobuf.DynamicValue'; +} + +/** + * 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>} + * @const + */ +proto.kurrentdb.protobuf.DynamicValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protobuf.DynamicValue.KindCase = { + KIND_NOT_SET: 0, + NULL_VALUE: 1, + INT32_VALUE: 2, + INT64_VALUE: 3, + BYTES_VALUE: 4, + DOUBLE_VALUE: 5, + FLOAT_VALUE: 6, + STRING_VALUE: 7, + BOOLEAN_VALUE: 8, + TIMESTAMP_VALUE: 9, + DURATION_VALUE: 10 +}; + +/** + * @return {proto.kurrentdb.protobuf.DynamicValue.KindCase} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getKindCase = function() { + return /** @type {proto.kurrentdb.protobuf.DynamicValue.KindCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protobuf.DynamicValue.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protobuf.DynamicValue.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protobuf.DynamicValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protobuf.DynamicValue.toObject = function(includeInstance, msg) { + var f, obj = { + nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0), + int32Value: jspb.Message.getFieldWithDefault(msg, 2, 0), + int64Value: jspb.Message.getFieldWithDefault(msg, 3, 0), + bytesValue: msg.getBytesValue_asB64(), + doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), + stringValue: jspb.Message.getFieldWithDefault(msg, 7, ""), + booleanValue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + timestampValue: (f = msg.getTimestampValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + durationValue: (f = msg.getDurationValue()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protobuf.DynamicValue} + */ +proto.kurrentdb.protobuf.DynamicValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protobuf.DynamicValue; + return proto.kurrentdb.protobuf.DynamicValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protobuf.DynamicValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protobuf.DynamicValue} + */ +proto.kurrentdb.protobuf.DynamicValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum()); + msg.setNullValue(value); + break; + case 2: + var value = /** @type {number} */ (reader.readSint32()); + msg.setInt32Value(value); + break; + case 3: + var value = /** @type {number} */ (reader.readSint64()); + msg.setInt64Value(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBytesValue(value); + break; + case 5: + var value = /** @type {number} */ (reader.readDouble()); + msg.setDoubleValue(value); + break; + case 6: + var value = /** @type {number} */ (reader.readFloat()); + msg.setFloatValue(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setStringValue(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBooleanValue(value); + break; + case 9: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTimestampValue(value); + break; + case 10: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setDurationValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protobuf.DynamicValue.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protobuf.DynamicValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protobuf.DynamicValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeEnum( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeSint32( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeSint64( + 3, + f + ); + } + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeBytes( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeDouble( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeFloat( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( + 8, + f + ); + } + f = message.getTimestampValue(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDurationValue(); + if (f != null) { + writer.writeMessage( + 10, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.NullValue null_value = 1; + * @return {!proto.google.protobuf.NullValue} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getNullValue = function() { + return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.google.protobuf.NullValue} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setNullValue = function(value) { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearNullValue = function() { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasNullValue = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional sint32 int32_value = 2; + * @return {number} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getInt32Value = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setInt32Value = function(value) { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearInt32Value = function() { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasInt32Value = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional sint64 int64_value = 3; + * @return {number} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getInt64Value = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setInt64Value = function(value) { + return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearInt64Value = function() { + return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasInt64Value = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bytes bytes_value = 4; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getBytesValue = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes bytes_value = 4; + * This is a type-conversion wrapper around `getBytesValue()` + * @return {string} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getBytesValue_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBytesValue())); +}; + + +/** + * optional bytes bytes_value = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBytesValue()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getBytesValue_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBytesValue())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setBytesValue = function(value) { + return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearBytesValue = function() { + return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasBytesValue = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional double double_value = 5; + * @return {number} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getDoubleValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setDoubleValue = function(value) { + return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearDoubleValue = function() { + return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasDoubleValue = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional float float_value = 6; + * @return {number} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getFloatValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setFloatValue = function(value) { + return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearFloatValue = function() { + return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasFloatValue = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional string string_value = 7; + * @return {string} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getStringValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setStringValue = function(value) { + return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearStringValue = function() { + return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasStringValue = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool boolean_value = 8; + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getBooleanValue = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.setBooleanValue = function(value) { + return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearBooleanValue = function() { + return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasBooleanValue = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional google.protobuf.Timestamp timestamp_value = 9; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getTimestampValue = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this +*/ +proto.kurrentdb.protobuf.DynamicValue.prototype.setTimestampValue = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearTimestampValue = function() { + return this.setTimestampValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasTimestampValue = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional google.protobuf.Duration duration_value = 10; + * @return {?proto.google.protobuf.Duration} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.getDurationValue = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 10)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this +*/ +proto.kurrentdb.protobuf.DynamicValue.prototype.setDurationValue = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.clearDurationValue = function() { + return this.setDurationValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protobuf.DynamicValue.prototype.hasDurationValue = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +goog.object.extend(exports, proto.kurrentdb.protobuf); diff --git a/packages/db-client/generated/streams.v2_grpc_pb.d.ts b/packages/db-client/generated/streams.v2_grpc_pb.d.ts new file mode 100644 index 00000000..bf5abb77 --- /dev/null +++ b/packages/db-client/generated/streams.v2_grpc_pb.d.ts @@ -0,0 +1,61 @@ +// package: kurrentdb.protocol.v2 +// file: streams.v2.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as streams_v2_pb from "./streams.v2_pb"; +import * as dynamic_value_pb from "./dynamic-value_pb"; + +interface IStreamsServiceService extends grpc.ServiceDefinition { + multiStreamAppend: IStreamsServiceService_IMultiStreamAppend; + multiStreamAppendSession: IStreamsServiceService_IMultiStreamAppendSession; +} + +interface IStreamsServiceService_IMultiStreamAppend extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.v2.StreamsService/MultiStreamAppend"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsServiceService_IMultiStreamAppendSession extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.v2.StreamsService/MultiStreamAppendSession"; + requestStream: true; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const StreamsServiceService: IStreamsServiceService; + +export interface IStreamsServiceServer extends grpc.UntypedServiceImplementation { + multiStreamAppend: grpc.handleUnaryCall; + multiStreamAppendSession: grpc.handleClientStreamingCall; +} + +export interface IStreamsServiceClient { + multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; +} + +export class StreamsServiceClient extends grpc.Client implements IStreamsServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; +} diff --git a/packages/db-client/generated/streams.v2_grpc_pb.js b/packages/db-client/generated/streams.v2_grpc_pb.js new file mode 100644 index 00000000..56a86656 --- /dev/null +++ b/packages/db-client/generated/streams.v2_grpc_pb.js @@ -0,0 +1,76 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var streams_v2_pb = require('./streams.v2_pb.js'); +var dynamic$value_pb = require('./dynamic-value_pb.js'); + +function serialize_kurrentdb_protocol_v2_AppendStreamRequest(arg) { + if (!(arg instanceof streams_v2_pb.AppendStreamRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.AppendStreamRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_AppendStreamRequest(buffer_arg) { + return streams_v2_pb.AppendStreamRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_MultiStreamAppendRequest(arg) { + if (!(arg instanceof streams_v2_pb.MultiStreamAppendRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.MultiStreamAppendRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_MultiStreamAppendRequest(buffer_arg) { + return streams_v2_pb.MultiStreamAppendRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse(arg) { + if (!(arg instanceof streams_v2_pb.MultiStreamAppendResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.MultiStreamAppendResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse(buffer_arg) { + return streams_v2_pb.MultiStreamAppendResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var StreamsServiceService = exports.StreamsServiceService = { + // Executes an atomic operation to append records to multiple streams. +// This transactional method ensures that all appends either succeed +// completely, or are entirely rolled back, thereby maintaining strict data +// consistency across all involved streams. +multiStreamAppend: { + path: '/kurrentdb.protocol.v2.StreamsService/MultiStreamAppend', + requestStream: false, + responseStream: false, + requestType: streams_v2_pb.MultiStreamAppendRequest, + responseType: streams_v2_pb.MultiStreamAppendResponse, + requestSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendRequest, + requestDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendRequest, + responseSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + responseDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + }, + // Streaming version of MultiStreamAppend that allows clients to send multiple +// append requests over a single connection. When the stream completes, all +// records are appended transactionally (all succeed or fail together). +// Provides improved efficiency for high-throughput scenarios while +// maintaining the same transactional guarantees. +multiStreamAppendSession: { + path: '/kurrentdb.protocol.v2.StreamsService/MultiStreamAppendSession', + requestStream: true, + responseStream: false, + requestType: streams_v2_pb.AppendStreamRequest, + responseType: streams_v2_pb.MultiStreamAppendResponse, + requestSerialize: serialize_kurrentdb_protocol_v2_AppendStreamRequest, + requestDeserialize: deserialize_kurrentdb_protocol_v2_AppendStreamRequest, + responseSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + responseDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + }, +}; + +exports.StreamsServiceClient = grpc.makeGenericClientConstructor(StreamsServiceService, 'StreamsService'); diff --git a/packages/db-client/generated/streams.v2_pb.d.ts b/packages/db-client/generated/streams.v2_pb.d.ts new file mode 100644 index 00000000..b630ae8c --- /dev/null +++ b/packages/db-client/generated/streams.v2_pb.d.ts @@ -0,0 +1,400 @@ +// package: kurrentdb.protocol.v2 +// file: streams.v2.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as dynamic_value_pb from "./dynamic-value_pb"; + +export class AppendRecord extends jspb.Message { + + hasRecordId(): boolean; + clearRecordId(): void; + getRecordId(): string | undefined; + setRecordId(value: string): AppendRecord; + + getPropertiesMap(): jspb.Map; + clearPropertiesMap(): void; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): AppendRecord; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendRecord.AsObject; + static toObject(includeInstance: boolean, msg: AppendRecord): AppendRecord.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendRecord, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendRecord; + static deserializeBinaryFromReader(message: AppendRecord, reader: jspb.BinaryReader): AppendRecord; +} + +export namespace AppendRecord { + export type AsObject = { + recordId?: string, + + propertiesMap: Array<[string, dynamic_value_pb.DynamicValue.AsObject]>, + data: Uint8Array | string, + } +} + +export class AppendStreamRequest extends jspb.Message { + getStream(): string; + setStream(value: string): AppendStreamRequest; + clearRecordsList(): void; + getRecordsList(): Array; + setRecordsList(value: Array): AppendStreamRequest; + addRecords(value?: AppendRecord, index?: number): AppendRecord; + + hasExpectedRevision(): boolean; + clearExpectedRevision(): void; + getExpectedRevision(): string | undefined; + setExpectedRevision(value: string): AppendStreamRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamRequest.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamRequest): AppendStreamRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamRequest; + static deserializeBinaryFromReader(message: AppendStreamRequest, reader: jspb.BinaryReader): AppendStreamRequest; +} + +export namespace AppendStreamRequest { + export type AsObject = { + stream: string, + recordsList: Array, + expectedRevision?: string, + } +} + +export class AppendStreamSuccess extends jspb.Message { + getStream(): string; + setStream(value: string): AppendStreamSuccess; + getPosition(): string; + setPosition(value: string): AppendStreamSuccess; + getStreamRevision(): string; + setStreamRevision(value: string): AppendStreamSuccess; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamSuccess.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamSuccess): AppendStreamSuccess.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamSuccess, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamSuccess; + static deserializeBinaryFromReader(message: AppendStreamSuccess, reader: jspb.BinaryReader): AppendStreamSuccess; +} + +export namespace AppendStreamSuccess { + export type AsObject = { + stream: string, + position: string, + streamRevision: string, + } +} + +export class AppendStreamFailure extends jspb.Message { + getStream(): string; + setStream(value: string): AppendStreamFailure; + + hasWrongExpectedRevision(): boolean; + clearWrongExpectedRevision(): void; + getWrongExpectedRevision(): ErrorDetails.WrongExpectedRevision | undefined; + setWrongExpectedRevision(value?: ErrorDetails.WrongExpectedRevision): AppendStreamFailure; + + hasAccessDenied(): boolean; + clearAccessDenied(): void; + getAccessDenied(): ErrorDetails.AccessDenied | undefined; + setAccessDenied(value?: ErrorDetails.AccessDenied): AppendStreamFailure; + + hasStreamDeleted(): boolean; + clearStreamDeleted(): void; + getStreamDeleted(): ErrorDetails.StreamDeleted | undefined; + setStreamDeleted(value?: ErrorDetails.StreamDeleted): AppendStreamFailure; + + hasTransactionMaxSizeExceeded(): boolean; + clearTransactionMaxSizeExceeded(): void; + getTransactionMaxSizeExceeded(): ErrorDetails.TransactionMaxSizeExceeded | undefined; + setTransactionMaxSizeExceeded(value?: ErrorDetails.TransactionMaxSizeExceeded): AppendStreamFailure; + + getErrorCase(): AppendStreamFailure.ErrorCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamFailure.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamFailure): AppendStreamFailure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamFailure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamFailure; + static deserializeBinaryFromReader(message: AppendStreamFailure, reader: jspb.BinaryReader): AppendStreamFailure; +} + +export namespace AppendStreamFailure { + export type AsObject = { + stream: string, + wrongExpectedRevision?: ErrorDetails.WrongExpectedRevision.AsObject, + accessDenied?: ErrorDetails.AccessDenied.AsObject, + streamDeleted?: ErrorDetails.StreamDeleted.AsObject, + transactionMaxSizeExceeded?: ErrorDetails.TransactionMaxSizeExceeded.AsObject, + } + + export enum ErrorCase { + ERROR_NOT_SET = 0, + WRONG_EXPECTED_REVISION = 2, + ACCESS_DENIED = 3, + STREAM_DELETED = 4, + TRANSACTION_MAX_SIZE_EXCEEDED = 5, + } + +} + +export class AppendStreamResponse extends jspb.Message { + + hasSuccess(): boolean; + clearSuccess(): void; + getSuccess(): AppendStreamSuccess | undefined; + setSuccess(value?: AppendStreamSuccess): AppendStreamResponse; + + hasFailure(): boolean; + clearFailure(): void; + getFailure(): AppendStreamFailure | undefined; + setFailure(value?: AppendStreamFailure): AppendStreamResponse; + + getResultCase(): AppendStreamResponse.ResultCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamResponse.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamResponse): AppendStreamResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamResponse; + static deserializeBinaryFromReader(message: AppendStreamResponse, reader: jspb.BinaryReader): AppendStreamResponse; +} + +export namespace AppendStreamResponse { + export type AsObject = { + success?: AppendStreamSuccess.AsObject, + failure?: AppendStreamFailure.AsObject, + } + + export enum ResultCase { + RESULT_NOT_SET = 0, + SUCCESS = 1, + FAILURE = 2, + } + +} + +export class MultiStreamAppendRequest extends jspb.Message { + clearInputList(): void; + getInputList(): Array; + setInputList(value: Array): MultiStreamAppendRequest; + addInput(value?: AppendStreamRequest, index?: number): AppendStreamRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiStreamAppendRequest.AsObject; + static toObject(includeInstance: boolean, msg: MultiStreamAppendRequest): MultiStreamAppendRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiStreamAppendRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiStreamAppendRequest; + static deserializeBinaryFromReader(message: MultiStreamAppendRequest, reader: jspb.BinaryReader): MultiStreamAppendRequest; +} + +export namespace MultiStreamAppendRequest { + export type AsObject = { + inputList: Array, + } +} + +export class MultiStreamAppendResponse extends jspb.Message { + + hasSuccess(): boolean; + clearSuccess(): void; + getSuccess(): MultiStreamAppendResponse.Success | undefined; + setSuccess(value?: MultiStreamAppendResponse.Success): MultiStreamAppendResponse; + + hasFailure(): boolean; + clearFailure(): void; + getFailure(): MultiStreamAppendResponse.Failure | undefined; + setFailure(value?: MultiStreamAppendResponse.Failure): MultiStreamAppendResponse; + + getResultCase(): MultiStreamAppendResponse.ResultCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiStreamAppendResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiStreamAppendResponse): MultiStreamAppendResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiStreamAppendResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiStreamAppendResponse; + static deserializeBinaryFromReader(message: MultiStreamAppendResponse, reader: jspb.BinaryReader): MultiStreamAppendResponse; +} + +export namespace MultiStreamAppendResponse { + export type AsObject = { + success?: MultiStreamAppendResponse.Success.AsObject, + failure?: MultiStreamAppendResponse.Failure.AsObject, + } + + + export class Success extends jspb.Message { + clearOutputList(): void; + getOutputList(): Array; + setOutputList(value: Array): Success; + addOutput(value?: AppendStreamSuccess, index?: number): AppendStreamSuccess; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Success.AsObject; + static toObject(includeInstance: boolean, msg: Success): Success.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Success, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Success; + static deserializeBinaryFromReader(message: Success, reader: jspb.BinaryReader): Success; + } + + export namespace Success { + export type AsObject = { + outputList: Array, + } + } + + export class Failure extends jspb.Message { + clearOutputList(): void; + getOutputList(): Array; + setOutputList(value: Array): Failure; + addOutput(value?: AppendStreamFailure, index?: number): AppendStreamFailure; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Failure.AsObject; + static toObject(includeInstance: boolean, msg: Failure): Failure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Failure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Failure; + static deserializeBinaryFromReader(message: Failure, reader: jspb.BinaryReader): Failure; + } + + export namespace Failure { + export type AsObject = { + outputList: Array, + } + } + + + export enum ResultCase { + RESULT_NOT_SET = 0, + SUCCESS = 1, + FAILURE = 2, + } + +} + +export class ErrorDetails extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ErrorDetails.AsObject; + static toObject(includeInstance: boolean, msg: ErrorDetails): ErrorDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ErrorDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ErrorDetails; + static deserializeBinaryFromReader(message: ErrorDetails, reader: jspb.BinaryReader): ErrorDetails; +} + +export namespace ErrorDetails { + export type AsObject = { + } + + + export class AccessDenied extends jspb.Message { + getReason(): string; + setReason(value: string): AccessDenied; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AccessDenied.AsObject; + static toObject(includeInstance: boolean, msg: AccessDenied): AccessDenied.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AccessDenied, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AccessDenied; + static deserializeBinaryFromReader(message: AccessDenied, reader: jspb.BinaryReader): AccessDenied; + } + + export namespace AccessDenied { + export type AsObject = { + reason: string, + } + } + + export class StreamDeleted extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamDeleted.AsObject; + static toObject(includeInstance: boolean, msg: StreamDeleted): StreamDeleted.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamDeleted, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamDeleted; + static deserializeBinaryFromReader(message: StreamDeleted, reader: jspb.BinaryReader): StreamDeleted; + } + + export namespace StreamDeleted { + export type AsObject = { + } + } + + export class WrongExpectedRevision extends jspb.Message { + getStreamRevision(): string; + setStreamRevision(value: string): WrongExpectedRevision; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WrongExpectedRevision.AsObject; + static toObject(includeInstance: boolean, msg: WrongExpectedRevision): WrongExpectedRevision.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: WrongExpectedRevision, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WrongExpectedRevision; + static deserializeBinaryFromReader(message: WrongExpectedRevision, reader: jspb.BinaryReader): WrongExpectedRevision; + } + + export namespace WrongExpectedRevision { + export type AsObject = { + streamRevision: string, + } + } + + export class TransactionMaxSizeExceeded extends jspb.Message { + getMaxSize(): number; + setMaxSize(value: number): TransactionMaxSizeExceeded; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransactionMaxSizeExceeded.AsObject; + static toObject(includeInstance: boolean, msg: TransactionMaxSizeExceeded): TransactionMaxSizeExceeded.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransactionMaxSizeExceeded, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransactionMaxSizeExceeded; + static deserializeBinaryFromReader(message: TransactionMaxSizeExceeded, reader: jspb.BinaryReader): TransactionMaxSizeExceeded; + } + + export namespace TransactionMaxSizeExceeded { + export type AsObject = { + maxSize: number, + } + } + +} + +export enum ExpectedRevisionConstants { + EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT = 0, + EXPECTED_REVISION_CONSTANTS_ANY = -2, + EXPECTED_REVISION_CONSTANTS_NO_STREAM = -1, + EXPECTED_REVISION_CONSTANTS_EXISTS = -4, +} diff --git a/packages/db-client/generated/streams.v2_pb.js b/packages/db-client/generated/streams.v2_pb.js new file mode 100644 index 00000000..a915ff47 --- /dev/null +++ b/packages/db-client/generated/streams.v2_pb.js @@ -0,0 +1,2901 @@ +// source: streams.v2.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 dynamic$value_pb = require('./dynamic-value_pb.js'); +goog.object.extend(proto, dynamic$value_pb); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendRecord', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamFailure', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamFailure.ErrorCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamResponse.ResultCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamSuccess', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ExpectedRevisionConstants', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.ResultCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.AppendRecord = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.AppendRecord, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.AppendRecord.displayName = 'proto.kurrentdb.protocol.v2.AppendRecord'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.AppendStreamRequest.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.AppendStreamRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.AppendStreamRequest.displayName = 'proto.kurrentdb.protocol.v2.AppendStreamRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.AppendStreamSuccess, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.AppendStreamSuccess.displayName = 'proto.kurrentdb.protocol.v2.AppendStreamSuccess'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.v2.AppendStreamFailure, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.AppendStreamFailure.displayName = 'proto.kurrentdb.protocol.v2.AppendStreamFailure'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.AppendStreamResponse.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.v2.AppendStreamResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.AppendStreamResponse.displayName = 'proto.kurrentdb.protocol.v2.AppendStreamResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.MultiStreamAppendRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.displayName = 'proto.kurrentdb.protocol.v2.MultiStreamAppendRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.v2.MultiStreamAppendResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.displayName = 'proto.kurrentdb.protocol.v2.MultiStreamAppendResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.displayName = 'proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.displayName = 'proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded'; +} + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.AppendRecord.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.AppendRecord} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendRecord.toObject = function(includeInstance, msg) { + var f, obj = { + recordId: jspb.Message.getFieldWithDefault(msg, 1, ""), + propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protobuf.DynamicValue.toObject) : [], + data: msg.getData_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} + */ +proto.kurrentdb.protocol.v2.AppendRecord.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.AppendRecord; + return proto.kurrentdb.protocol.v2.AppendRecord.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.AppendRecord} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} + */ +proto.kurrentdb.protocol.v2.AppendRecord.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.setRecordId(value); + break; + case 2: + var value = msg.getPropertiesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protobuf.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protobuf.DynamicValue()); + }); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.AppendRecord.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.AppendRecord} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendRecord.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getPropertiesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protobuf.DynamicValue.serializeBinaryToWriter); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } +}; + + +/** + * optional string record_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.getRecordId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.setRecordId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.clearRecordId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.hasRecordId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * map properties = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.getPropertiesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + proto.kurrentdb.protobuf.DynamicValue)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.clearPropertiesMap = function() { + this.getPropertiesMap().clear(); + return this;}; + + +/** + * optional bytes data = 3; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes data = 3; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.v2.AppendRecord.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.repeatedFields_ = [2]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.AppendStreamRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.AppendStreamRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + recordsList: jspb.Message.toObjectList(msg.getRecordsList(), + proto.kurrentdb.protocol.v2.AppendRecord.toObject, includeInstance), + expectedRevision: jspb.Message.getFieldWithDefault(msg, 3, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.AppendStreamRequest; + return proto.kurrentdb.protocol.v2.AppendStreamRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.v2.AppendRecord; + reader.readMessage(value,proto.kurrentdb.protocol.v2.AppendRecord.deserializeBinaryFromReader); + msg.addRecords(value); + break; + case 3: + var value = /** @type {string} */ (reader.readSint64String()); + msg.setExpectedRevision(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.AppendStreamRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getRecordsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.kurrentdb.protocol.v2.AppendRecord.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeSint64String( + 3, + f + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated AppendRecord records = 2; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.getRecordsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.AppendRecord, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.setRecordsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.AppendRecord=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.AppendRecord} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.addRecords = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.kurrentdb.protocol.v2.AppendRecord, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.clearRecordsList = function() { + return this.setRecordsList([]); +}; + + +/** + * optional sint64 expected_revision = 3; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.getExpectedRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.setExpectedRevision = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.clearExpectedRevision = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamRequest.prototype.hasExpectedRevision = function() { + return jspb.Message.getField(this, 3) != 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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.AppendStreamSuccess.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + position: jspb.Message.getFieldWithDefault(msg, 2, "0"), + streamRevision: jspb.Message.getFieldWithDefault(msg, 3, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.AppendStreamSuccess; + return proto.kurrentdb.protocol.v2.AppendStreamSuccess.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + case 2: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setPosition(value); + break; + case 3: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setStreamRevision(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.AppendStreamSuccess.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPosition(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 2, + f + ); + } + f = message.getStreamRevision(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 3, + f + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.setStream = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 position = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.getPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.setPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional int64 stream_revision = 3; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.setStreamRevision = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + + +/** + * 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>} + * @const + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_ = [[2,3,4,5]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.ErrorCase = { + ERROR_NOT_SET: 0, + WRONG_EXPECTED_REVISION: 2, + ACCESS_DENIED: 3, + STREAM_DELETED: 4, + TRANSACTION_MAX_SIZE_EXCEEDED: 5 +}; + +/** + * @return {proto.kurrentdb.protocol.v2.AppendStreamFailure.ErrorCase} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getErrorCase = function() { + return /** @type {proto.kurrentdb.protocol.v2.AppendStreamFailure.ErrorCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.v2.AppendStreamFailure.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.AppendStreamFailure.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.AppendStreamFailure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + wrongExpectedRevision: (f = msg.getWrongExpectedRevision()) && proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject(includeInstance, f), + accessDenied: (f = msg.getAccessDenied()) && proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(includeInstance, f), + streamDeleted: (f = msg.getStreamDeleted()) && proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(includeInstance, f), + transactionMaxSizeExceeded: (f = msg.getTransactionMaxSizeExceeded()) && proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.AppendStreamFailure; + return proto.kurrentdb.protocol.v2.AppendStreamFailure.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamFailure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader); + msg.setWrongExpectedRevision(value); + break; + case 3: + var value = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader); + msg.setAccessDenied(value); + break; + case 4: + var value = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader); + msg.setStreamDeleted(value); + break; + case 5: + var value = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader); + msg.setTransactionMaxSizeExceeded(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamFailure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getWrongExpectedRevision(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter + ); + } + f = message.getAccessDenied(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter + ); + } + f = message.getStreamDeleted(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter + ); + } + f = message.getTransactionMaxSizeExceeded(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setStream = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional ErrorDetails.WrongExpectedRevision wrong_expected_revision = 2; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getWrongExpectedRevision = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setWrongExpectedRevision = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearWrongExpectedRevision = function() { + return this.setWrongExpectedRevision(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasWrongExpectedRevision = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ErrorDetails.AccessDenied access_denied = 3; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getAccessDenied = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, 3)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setAccessDenied = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearAccessDenied = function() { + return this.setAccessDenied(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasAccessDenied = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ErrorDetails.StreamDeleted stream_deleted = 4; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getStreamDeleted = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, 4)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setStreamDeleted = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearStreamDeleted = function() { + return this.setStreamDeleted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasStreamDeleted = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional ErrorDetails.TransactionMaxSizeExceeded transaction_max_size_exceeded = 5; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getTransactionMaxSizeExceeded = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, 5)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setTransactionMaxSizeExceeded = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearTransactionMaxSizeExceeded = function() { + return this.setTransactionMaxSizeExceeded(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasTransactionMaxSizeExceeded = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.ResultCase = { + RESULT_NOT_SET: 0, + SUCCESS: 1, + FAILURE: 2 +}; + +/** + * @return {proto.kurrentdb.protocol.v2.AppendStreamResponse.ResultCase} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.getResultCase = function() { + return /** @type {proto.kurrentdb.protocol.v2.AppendStreamResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.v2.AppendStreamResponse.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.AppendStreamResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.AppendStreamResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.toObject = function(includeInstance, msg) { + var f, obj = { + success: (f = msg.getSuccess()) && proto.kurrentdb.protocol.v2.AppendStreamSuccess.toObject(includeInstance, f), + failure: (f = msg.getFailure()) && proto.kurrentdb.protocol.v2.AppendStreamFailure.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamResponse} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.AppendStreamResponse; + return proto.kurrentdb.protocol.v2.AppendStreamResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamResponse} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.AppendStreamSuccess; + reader.readMessage(value,proto.kurrentdb.protocol.v2.AppendStreamSuccess.deserializeBinaryFromReader); + msg.setSuccess(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.v2.AppendStreamFailure; + reader.readMessage(value,proto.kurrentdb.protocol.v2.AppendStreamFailure.deserializeBinaryFromReader); + msg.setFailure(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.AppendStreamResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.AppendStreamResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.v2.AppendStreamSuccess.serializeBinaryToWriter + ); + } + f = message.getFailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AppendStreamSuccess success = 1; + * @return {?proto.kurrentdb.protocol.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.getSuccess = function() { + return /** @type{?proto.kurrentdb.protocol.v2.AppendStreamSuccess} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.AppendStreamSuccess, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.AppendStreamSuccess|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamResponse} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.setSuccess = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.v2.AppendStreamResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamResponse} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.clearSuccess = function() { + return this.setSuccess(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.hasSuccess = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional AppendStreamFailure failure = 2; + * @return {?proto.kurrentdb.protocol.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.getFailure = function() { + return /** @type{?proto.kurrentdb.protocol.v2.AppendStreamFailure} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.AppendStreamFailure, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.AppendStreamFailure|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamResponse} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.setFailure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.v2.AppendStreamResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamResponse} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.clearFailure = function() { + return this.setFailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamResponse.prototype.hasFailure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.repeatedFields_ = [1]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.toObject = function(includeInstance, msg) { + var f, obj = { + inputList: jspb.Message.toObjectList(msg.getInputList(), + proto.kurrentdb.protocol.v2.AppendStreamRequest.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.MultiStreamAppendRequest; + return proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.AppendStreamRequest; + reader.readMessage(value,proto.kurrentdb.protocol.v2.AppendStreamRequest.deserializeBinaryFromReader); + msg.addInput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.v2.AppendStreamRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AppendStreamRequest input = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.prototype.getInputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.AppendStreamRequest, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} returns this +*/ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.prototype.setInputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.AppendStreamRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.AppendStreamRequest} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.prototype.addInput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.AppendStreamRequest, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendRequest} returns this + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendRequest.prototype.clearInputList = function() { + return this.setInputList([]); +}; + + + +/** + * 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>} + * @const + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.ResultCase = { + RESULT_NOT_SET: 0, + SUCCESS: 1, + FAILURE: 2 +}; + +/** + * @return {proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.ResultCase} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.getResultCase = function() { + return /** @type {proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.toObject = function(includeInstance, msg) { + var f, obj = { + success: (f = msg.getSuccess()) && proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.toObject(includeInstance, f), + failure: (f = msg.getFailure()) && proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.MultiStreamAppendResponse; + return proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success; + reader.readMessage(value,proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.deserializeBinaryFromReader); + msg.setSuccess(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure; + reader.readMessage(value,proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.deserializeBinaryFromReader); + msg.setFailure(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.serializeBinaryToWriter + ); + } + f = message.getFailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.repeatedFields_ = [1]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.toObject = function(includeInstance, msg) { + var f, obj = { + outputList: jspb.Message.toObjectList(msg.getOutputList(), + proto.kurrentdb.protocol.v2.AppendStreamSuccess.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success; + return proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.AppendStreamSuccess; + reader.readMessage(value,proto.kurrentdb.protocol.v2.AppendStreamSuccess.deserializeBinaryFromReader); + msg.addOutput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOutputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.v2.AppendStreamSuccess.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AppendStreamSuccess output = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.prototype.getOutputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.AppendStreamSuccess, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} returns this +*/ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.prototype.setOutputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.AppendStreamSuccess=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.prototype.addOutput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.AppendStreamSuccess, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} returns this + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success.prototype.clearOutputList = function() { + return this.setOutputList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.repeatedFields_ = [1]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.toObject = function(includeInstance, msg) { + var f, obj = { + outputList: jspb.Message.toObjectList(msg.getOutputList(), + proto.kurrentdb.protocol.v2.AppendStreamFailure.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure; + return proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.AppendStreamFailure; + reader.readMessage(value,proto.kurrentdb.protocol.v2.AppendStreamFailure.deserializeBinaryFromReader); + msg.addOutput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOutputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AppendStreamFailure output = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.prototype.getOutputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.AppendStreamFailure, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} returns this +*/ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.prototype.setOutputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.AppendStreamFailure=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.prototype.addOutput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.AppendStreamFailure, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} returns this + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure.prototype.clearOutputList = function() { + return this.setOutputList([]); +}; + + +/** + * optional Success success = 1; + * @return {?proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.getSuccess = function() { + return /** @type{?proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success|undefined} value + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} returns this +*/ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.setSuccess = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} returns this + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.clearSuccess = function() { + return this.setSuccess(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.hasSuccess = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Failure failure = 2; + * @return {?proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.getFailure = function() { + return /** @type{?proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure|undefined} value + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} returns this +*/ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.setFailure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.MultiStreamAppendResponse} returns this + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.clearFailure = function() { + return this.setFailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.hasFailure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails; + return proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includeInstance, msg) { + var f, obj = { + reason: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied; + return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setReason(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReason(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string reason = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.getReason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.setReason = 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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted; + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject = function(includeInstance, msg) { + var f, obj = { + streamRevision: jspb.Message.getFieldWithDefault(msg, 1, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision; + return proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setStreamRevision(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamRevision(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 1, + f + ); + } +}; + + +/** + * optional int64 stream_revision = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.setStreamRevision = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = function(includeInstance, msg) { + var f, obj = { + maxSize: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded; + return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxSize(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMaxSize(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } +}; + + +/** + * optional int32 max_size = 1; + * @return {number} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.ExpectedRevisionConstants = { + EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT: 0, + EXPECTED_REVISION_CONSTANTS_ANY: -2, + EXPECTED_REVISION_CONSTANTS_NO_STREAM: -1, + EXPECTED_REVISION_CONSTANTS_EXISTS: -4 +}; + +goog.object.extend(exports, proto.kurrentdb.protocol.v2); diff --git a/packages/db-client/protos/dynamic-value.proto b/packages/db-client/protos/dynamic-value.proto new file mode 100644 index 00000000..04ce17e5 --- /dev/null +++ b/packages/db-client/protos/dynamic-value.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/struct.proto"; + +package kurrentdb.protobuf; +option csharp_namespace = "KurrentDB.Protobuf"; + +message DynamicValue { + oneof kind { + // Represents a null value. + google.protobuf.NullValue null_value = 1; + + // Represents a 32-bit signed integer value. + sint32 int32_value = 2; + + // Represents a 64-bit signed integer value. + sint64 int64_value = 3; + + // Represents a byte array value. + bytes bytes_value = 4; + + // Represents a 64-bit double-precision floating-point value. + double double_value = 5; + + // Represents a 32-bit single-precision floating-point value + float float_value = 6; + + // Represents a string value. + string string_value = 7; + + // Represents a boolean value. + bool boolean_value = 8; + + // Represents a timestamp value. + google.protobuf.Timestamp timestamp_value = 9; + + // Represents a duration value. + google.protobuf.Duration duration_value = 10; + } +} \ No newline at end of file diff --git a/packages/db-client/protos/streams.v2.proto b/packages/db-client/protos/streams.v2.proto new file mode 100644 index 00000000..6b6615f5 --- /dev/null +++ b/packages/db-client/protos/streams.v2.proto @@ -0,0 +1,170 @@ +syntax = "proto3"; + +// +// This protocol is UNSTABLE in the sense of being subject to change. +// + +package kurrentdb.protocol.v2; + +option csharp_namespace = "KurrentDB.Protocol.V2"; +option java_package = "io.kurrentdb.v2"; +option java_multiple_files = true; + +import "dynamic-value.proto"; + +service StreamsService { + // Executes an atomic operation to append records to multiple streams. + // This transactional method ensures that all appends either succeed + // completely, or are entirely rolled back, thereby maintaining strict data + // consistency across all involved streams. + rpc MultiStreamAppend(MultiStreamAppendRequest) returns (MultiStreamAppendResponse); + + // Streaming version of MultiStreamAppend that allows clients to send multiple + // append requests over a single connection. When the stream completes, all + // records are appended transactionally (all succeed or fail together). + // Provides improved efficiency for high-throughput scenarios while + // maintaining the same transactional guarantees. + rpc MultiStreamAppendSession(stream AppendStreamRequest) returns (MultiStreamAppendResponse); +} + +// Record to be appended to a stream. +message AppendRecord { + // Universally Unique identifier for the record. Must be a guid. + // If not provided, the server will generate a new one. + optional string record_id = 1; + + // A collection of properties providing additional system information about the + // record. + map properties = 2; + + // The actual data payload of the record, stored as bytes. + bytes data = 3; +} + +// Constants that match the expected state of a stream during an +// append operation. It can be used to specify whether the stream should exist, +// not exist, or can be in any state. +enum ExpectedRevisionConstants { + // The stream should exist and have a single event. + EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT = 0; + + // It is not important whether the stream exists or not. + EXPECTED_REVISION_CONSTANTS_ANY = -2; + + // The stream should not exist. If it does, the append will fail. + EXPECTED_REVISION_CONSTANTS_NO_STREAM = -1; + + // The stream should exist + EXPECTED_REVISION_CONSTANTS_EXISTS = -4; +} + +// Represents the input for appending records to a specific stream. +message AppendStreamRequest { + // The name of the stream to append records to. + string stream = 1; + + // The records to append to the stream. + repeated AppendRecord records = 2; + + // The expected revision of the stream. If the stream's current revision does + // not match, the append will fail. + // The expected revision can also be one of the special values + // from ExpectedRevisionConstants. + // missing value means no expectation: same as EXPECTED_REVISION_CONSTANTS_ANY + optional sint64 expected_revision = 3 [jstype = JS_STRING]; +} + +// Success represents the successful outcome of an append operation. +message AppendStreamSuccess { + // The name of the stream to which records were appended. + string stream = 1; + + // The position of the last appended record in the transaction. + int64 position = 2 [jstype = JS_STRING]; + + // The revision of the stream after the append operation. + int64 stream_revision = 3 [jstype = JS_STRING]; +} + +// Failure represents the detailed error information when an append operation fails. +message AppendStreamFailure { + // The name of the stream to which records failed to append. + string stream = 1; + + // The error details + oneof error { + // Failed because the actual stream revision didn't match the expected revision. + ErrorDetails.WrongExpectedRevision wrong_expected_revision = 2; + + // Failed because the client lacks sufficient permissions. + ErrorDetails.AccessDenied access_denied = 3; + + // Failed because the target stream has been deleted. + ErrorDetails.StreamDeleted stream_deleted = 4; + + ErrorDetails.TransactionMaxSizeExceeded transaction_max_size_exceeded = 5; + } +} + +// Represents the output of appending records to a specific stream. +message AppendStreamResponse { + // The result of the append operation. + oneof result { + // Success represents the successful outcome of an append operation. + AppendStreamSuccess success = 1; + + // Failure represents the details of a failed append operation. + AppendStreamFailure failure = 2; + } +} + +// MultiStreamAppendRequest represents a request to append records to multiple streams. +message MultiStreamAppendRequest { + // A list of AppendStreamInput messages, each representing a stream to which records should be appended. + repeated AppendStreamRequest input = 1; +} + +// Response from the MultiStreamAppend operation. +message MultiStreamAppendResponse { + oneof result { + // Success represents the successful outcome of a multi-stream append operation. + Success success = 1; + + // Failure represents the details of a failed multi-stream append operation. + Failure failure = 2; + } + + message Success { + repeated AppendStreamSuccess output = 1; + } + + message Failure { + repeated AppendStreamFailure output = 1; + } +} + +// ErrorDetails provides detailed information about specific error conditions. +message ErrorDetails { + // When the user does not have sufficient permissions to perform the operation. + message AccessDenied { + // The reason for access denial. + string reason = 1; + } + + // When the stream has been deleted. + message StreamDeleted { + } + + // When the expected revision of the stream does not match the actual revision. + message WrongExpectedRevision { + // The actual revision of the stream. + int64 stream_revision = 1 [jstype = JS_STRING]; + } + + // When the transaction exceeds the maximum size allowed + // (it's bigger than the configured chunk size). + message TransactionMaxSizeExceeded { + // The maximum allowed size of the transaction. + int32 max_size = 1; + } +} \ No newline at end of file diff --git a/packages/db-client/src/types/index.ts b/packages/db-client/src/types/index.ts index 6047d43f..15274e1e 100644 --- a/packages/db-client/src/types/index.ts +++ b/packages/db-client/src/types/index.ts @@ -13,7 +13,7 @@ import type { AllStreamResolvedEvent, EventType, PersistentSubscriptionToAllResolvedEvent, - PersistentSubscriptionToStreamResolvedEvent, + PersistentSubscriptionToStreamResolvedEvent, EventData, } from "./events"; import type * as constants from "../constants"; @@ -527,6 +527,41 @@ export interface FellBehind { position?: Position; } +export interface AppendStreamRequest { + streamName: string; + events: EventData[]; + expectedState: AppendStreamState; +} + +export interface AppendStreamSuccess { + streamName: string; + revision: bigint; + position: bigint; +} + +export interface BaseAppendErrorDetails { + type: string; +} + +export type AppendErrorDetails = + | ({ type: "access_denied"; reason: string; } & BaseAppendErrorDetails) + | ({ type: "stream_deleted"; reason: string; } & BaseAppendErrorDetails) + | ({ type: "wrong_expected_revision"; revision: bigint; } & BaseAppendErrorDetails) + | ({ type: "transaction_max_size_exceeded"; maxSize: number; } & BaseAppendErrorDetails) + +export interface AppendStreamFailure { + streamName: string; + details: AppendErrorDetails; +} + +export interface BaseMultiAppendResult { + success: boolean; +} + +export type MultiAppendResult = + | ({ success: true; output: AppendStreamSuccess[]; } & BaseMultiAppendResult) + | ({ success: false; output: AppendStreamFailure[]; } & BaseMultiAppendResult) + // Other listeners that are only supported in catch-up subscriptions export interface CatchupSubscription { addListener(event: "caughtUp", listener: (info: CaughtUp) => void): this; From d2e2fa682a34a5f120b912b9fd4c050b5819d97e Mon Sep 17 00:00:00 2001 From: YoEight Date: Tue, 17 Jun 2025 23:27:43 -0400 Subject: [PATCH 02/18] pending impl --- .../src/streams/appendToStream/multi.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/db-client/src/streams/appendToStream/multi.ts diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts new file mode 100644 index 00000000..776a47d6 --- /dev/null +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -0,0 +1,25 @@ +import {AppendStreamRequest, MultiAppendResult} from "../../types"; +import grpc from "../../../generated/streams.v2_grpc_pb"; +import type {Client} from "../../Client"; + +export const multiAppend = async function ( + this: Client, + requests: AppendStreamRequest[], + {...baseOptions}: InternalOptions +): Promise { + + return this.execute( + grpc.StreamsServiceClient, + "multiStreamAppend", + (client) => + new Promise(async (resolve, reject) => { + const sink = client.multiStreamAppendSession(...this.callArguments(baseOptions), + (error, response) => {}); + + sink.on("error", (err) => reject(err)); + + for (const request of requests) { + + } + })); +} \ No newline at end of file From a6dd89bb0825a93aaa091737571911b98e69701b Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 09:11:37 -0400 Subject: [PATCH 03/18] more plugging stuff --- .../src/streams/appendToStream/multi.ts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index 776a47d6..c633b5ff 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -1,6 +1,10 @@ import {AppendStreamRequest, MultiAppendResult} from "../../types"; import grpc from "../../../generated/streams.v2_grpc_pb"; import type {Client} from "../../Client"; +import protobuf from "../../../generated/streams.v2_pb"; +import dynamic from "../../../generated/dynamic-value_pb"; +import { backpressuredWrite, InternalOptions } from "../../utils"; +import type { AppendToStreamOptions } from "."; export const multiAppend = async function ( this: Client, @@ -19,7 +23,56 @@ export const multiAppend = async function ( sink.on("error", (err) => reject(err)); for (const request of requests) { + const message = new protobuf.AppendStreamRequest(); + message.setStream(request.streamName); + switch (request.expectedState) { + case "any": { + message.setExpectedRevision((-2).toString(10)); + break; + } + case "no_stream": { + message.setExpectedRevision((-1).toString(10)); + break; + } + case "stream_exists": { + message.setExpectedRevision((-4).toString(10)); + break; + } + default: { + message.setExpectedRevision(request.expectedState.toString(10)); + break; + } + } + + for (const event of request.events) { + const record = new protobuf.AppendRecord(); + const dataFormat = new dynamic.DynamicValue(); + const schemaName = new dynamic.DynamicValue(); + record.setRecordId(event.id); + + dataFormat.setBytesValue(event.contentType); + schemaName.setBytesValue(event.type); + record.getPropertiesMap().set("$schema.data-format", dataFormat); + record.getPropertiesMap().set("$schema.name", schemaName); + + switch (event.contentType) { + case "application/json": { + const data = JSON.stringify(event.data); + record.setData(Buffer.from(data, "utf8").toString("base64")); + break; + } + + case "application/octet-stream": { + record.setData(event.data); + break; + } + } + + message.addRecords(record); + } + + await backpressuredWrite(sink, message); } })); } \ No newline at end of file From 77306cf8d5bbd45e3a3bbf9dade60e54d4ca916f Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 16:38:54 -0400 Subject: [PATCH 04/18] impl --- .../src/streams/appendToStream/index.ts | 12 ++++ .../src/streams/appendToStream/multi.ts | 71 +++++++++++++++++-- packages/db-client/src/types/index.ts | 5 +- 3 files changed, 81 insertions(+), 7 deletions(-) diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index 772423e3..827fcca9 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -8,10 +8,13 @@ import type { AppendStreamState, EventData, EventType, + MultiAppendResult, + AppendStreamRequest, } from "../../types"; import { append } from "./append"; import { batchAppend } from "./batchAppend"; +import { multiAppend } from "./multi"; export interface AppendToStreamOptions extends BaseOptions { /** @@ -39,6 +42,8 @@ declare module "../../Client" { events: EventData | EventData[], options?: AppendToStreamOptions ): Promise; + + multiAppend(requests: AppendStreamRequest[], options?: AppendToStreamOptions): Promise; } } @@ -73,3 +78,10 @@ Client.prototype.appendToStream = async function < ...baseOptions, }); }; + +Client.prototype.multiAppend = async function( + this: Client, + requests: AppendStreamRequest[], + baseOptions: BaseOptions = {}): Promise { + return multiAppend.call(this, requests, baseOptions); +} diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index c633b5ff..9dc62fdf 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -1,15 +1,14 @@ -import {AppendStreamRequest, MultiAppendResult} from "../../types"; +import {AppendStreamRequest, MultiAppendResult, AppendStreamSuccess, AppendStreamFailure, UnknownErrorDetails, BaseOptions} from "../../types"; import grpc from "../../../generated/streams.v2_grpc_pb"; import type {Client} from "../../Client"; import protobuf from "../../../generated/streams.v2_pb"; import dynamic from "../../../generated/dynamic-value_pb"; -import { backpressuredWrite, InternalOptions } from "../../utils"; -import type { AppendToStreamOptions } from "."; +import {backpressuredWrite, convertToCommandError} from "../../utils"; export const multiAppend = async function ( this: Client, requests: AppendStreamRequest[], - {...baseOptions}: InternalOptions + baseOptions: BaseOptions, ): Promise { return this.execute( @@ -18,7 +17,67 @@ export const multiAppend = async function ( (client) => new Promise(async (resolve, reject) => { const sink = client.multiStreamAppendSession(...this.callArguments(baseOptions), - (error, response) => {}); + (error, response) => { + if (error != null) { + return reject(convertToCommandError(error)); + } + + if (response.getSuccess() != undefined) { + const successes: AppendStreamSuccess[] = []; + for (const success of response.getSuccess()!.getOutputList()) { + successes.push({ + streamName: success.getStream(), + revision: BigInt(success.getStreamRevision()), + position: BigInt(success.getPosition()), + }); + } + + return resolve({ success: true, output: successes}); + } + const failures: AppendStreamFailure[] = []; + + for (const failure of response.getFailure()!.getOutputList()) { + var value: AppendStreamFailure = { + streamName: failure.getStream(), + details: UnknownErrorDetails, + }; + + switch (failure.getErrorCase()) { + case protobuf.AppendStreamFailure.ErrorCase.ACCESS_DENIED: + value.details = { + type: "access_denied", + reason: failure.getAccessDenied()!.getReason(), + }; + + break; + + case protobuf.AppendStreamFailure.ErrorCase.STREAM_DELETED: + value.details = { + type: "stream_deleted", + }; + + break; + + case protobuf.AppendStreamFailure.ErrorCase.WRONG_EXPECTED_REVISION: + value.details = { + type: "wrong_expected_revision", + revision: BigInt(failure.getWrongExpectedRevision()!.getStreamRevision()), + }; + break; + + case protobuf.AppendStreamFailure.ErrorCase.TRANSACTION_MAX_SIZE_EXCEEDED: + value.details = { + type: "transaction_max_size_exceeded", + maxSize: failure.getTransactionMaxSizeExceeded()!.getMaxSize(), + }; + break; + } + + failures.push(value); + } + + return resolve({ success: false, output: failures }); + }); sink.on("error", (err) => reject(err)); @@ -75,4 +134,4 @@ export const multiAppend = async function ( await backpressuredWrite(sink, message); } })); -} \ No newline at end of file +} diff --git a/packages/db-client/src/types/index.ts b/packages/db-client/src/types/index.ts index 15274e1e..897c3718 100644 --- a/packages/db-client/src/types/index.ts +++ b/packages/db-client/src/types/index.ts @@ -544,11 +544,14 @@ export interface BaseAppendErrorDetails { } export type AppendErrorDetails = + | ({ type: "unknown"; } & BaseAppendErrorDetails) | ({ type: "access_denied"; reason: string; } & BaseAppendErrorDetails) - | ({ type: "stream_deleted"; reason: string; } & BaseAppendErrorDetails) + | ({ type: "stream_deleted"; } & BaseAppendErrorDetails) | ({ type: "wrong_expected_revision"; revision: bigint; } & BaseAppendErrorDetails) | ({ type: "transaction_max_size_exceeded"; maxSize: number; } & BaseAppendErrorDetails) +export const UnknownErrorDetails: AppendErrorDetails = { type: "unknown" } as const; + export interface AppendStreamFailure { streamName: string; details: AppendErrorDetails; From b72543c1a6c7b29eb9f75a2e5fbeaef132dca882 Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 16:44:55 -0400 Subject: [PATCH 05/18] complete impl --- .../src/streams/appendToStream/index.ts | 12 +- .../src/streams/appendToStream/multi.ts | 121 ++++++++++-------- packages/db-client/src/types/index.ts | 29 +++-- 3 files changed, 95 insertions(+), 67 deletions(-) diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index 827fcca9..19e9ea2b 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -43,7 +43,10 @@ declare module "../../Client" { options?: AppendToStreamOptions ): Promise; - multiAppend(requests: AppendStreamRequest[], options?: AppendToStreamOptions): Promise; + multiAppend( + requests: AppendStreamRequest[], + options?: AppendToStreamOptions + ): Promise; } } @@ -79,9 +82,10 @@ Client.prototype.appendToStream = async function < }); }; -Client.prototype.multiAppend = async function( +Client.prototype.multiAppend = async function ( this: Client, requests: AppendStreamRequest[], - baseOptions: BaseOptions = {}): Promise { + baseOptions: BaseOptions = {} +): Promise { return multiAppend.call(this, requests, baseOptions); -} +}; diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index 9dc62fdf..1321f330 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -1,22 +1,29 @@ -import {AppendStreamRequest, MultiAppendResult, AppendStreamSuccess, AppendStreamFailure, UnknownErrorDetails, BaseOptions} from "../../types"; +import { + AppendStreamRequest, + MultiAppendResult, + AppendStreamSuccess, + AppendStreamFailure, + UnknownErrorDetails, + BaseOptions, +} from "../../types"; import grpc from "../../../generated/streams.v2_grpc_pb"; -import type {Client} from "../../Client"; +import type { Client } from "../../Client"; import protobuf from "../../../generated/streams.v2_pb"; import dynamic from "../../../generated/dynamic-value_pb"; -import {backpressuredWrite, convertToCommandError} from "../../utils"; +import { backpressuredWrite, convertToCommandError } from "../../utils"; export const multiAppend = async function ( this: Client, requests: AppendStreamRequest[], - baseOptions: BaseOptions, + baseOptions: BaseOptions ): Promise { - return this.execute( grpc.StreamsServiceClient, "multiStreamAppend", (client) => new Promise(async (resolve, reject) => { - const sink = client.multiStreamAppendSession(...this.callArguments(baseOptions), + const sink = client.multiStreamAppendSession( + ...this.callArguments(baseOptions), (error, response) => { if (error != null) { return reject(convertToCommandError(error)); @@ -26,58 +33,65 @@ export const multiAppend = async function ( const successes: AppendStreamSuccess[] = []; for (const success of response.getSuccess()!.getOutputList()) { successes.push({ - streamName: success.getStream(), - revision: BigInt(success.getStreamRevision()), - position: BigInt(success.getPosition()), + streamName: success.getStream(), + revision: BigInt(success.getStreamRevision()), + position: BigInt(success.getPosition()), }); } - return resolve({ success: true, output: successes}); + return resolve({ success: true, output: successes }); } - const failures: AppendStreamFailure[] = []; - - for (const failure of response.getFailure()!.getOutputList()) { - var value: AppendStreamFailure = { - streamName: failure.getStream(), - details: UnknownErrorDetails, - }; - - switch (failure.getErrorCase()) { - case protobuf.AppendStreamFailure.ErrorCase.ACCESS_DENIED: - value.details = { - type: "access_denied", - reason: failure.getAccessDenied()!.getReason(), - }; - - break; - - case protobuf.AppendStreamFailure.ErrorCase.STREAM_DELETED: - value.details = { - type: "stream_deleted", - }; - - break; - - case protobuf.AppendStreamFailure.ErrorCase.WRONG_EXPECTED_REVISION: - value.details = { - type: "wrong_expected_revision", - revision: BigInt(failure.getWrongExpectedRevision()!.getStreamRevision()), - }; - break; - - case protobuf.AppendStreamFailure.ErrorCase.TRANSACTION_MAX_SIZE_EXCEEDED: - value.details = { - type: "transaction_max_size_exceeded", - maxSize: failure.getTransactionMaxSizeExceeded()!.getMaxSize(), - }; - break; - } - - failures.push(value); + const failures: AppendStreamFailure[] = []; + + for (const failure of response.getFailure()!.getOutputList()) { + const value: AppendStreamFailure = { + streamName: failure.getStream(), + details: UnknownErrorDetails, + }; + + switch (failure.getErrorCase()) { + case protobuf.AppendStreamFailure.ErrorCase.ACCESS_DENIED: + value.details = { + type: "access_denied", + reason: failure.getAccessDenied()!.getReason(), + }; + + break; + + case protobuf.AppendStreamFailure.ErrorCase.STREAM_DELETED: + value.details = { + type: "stream_deleted", + }; + + break; + + case protobuf.AppendStreamFailure.ErrorCase + .WRONG_EXPECTED_REVISION: + value.details = { + type: "wrong_expected_revision", + revision: BigInt( + failure.getWrongExpectedRevision()!.getStreamRevision() + ), + }; + break; + + case protobuf.AppendStreamFailure.ErrorCase + .TRANSACTION_MAX_SIZE_EXCEEDED: + value.details = { + type: "transaction_max_size_exceeded", + maxSize: failure + .getTransactionMaxSizeExceeded()! + .getMaxSize(), + }; + break; + } + + failures.push(value); } return resolve({ success: false, output: failures }); - }); + } + ); sink.on("error", (err) => reject(err)); @@ -133,5 +147,6 @@ export const multiAppend = async function ( await backpressuredWrite(sink, message); } - })); -} + }) + ); +}; diff --git a/packages/db-client/src/types/index.ts b/packages/db-client/src/types/index.ts index 897c3718..712fcdc5 100644 --- a/packages/db-client/src/types/index.ts +++ b/packages/db-client/src/types/index.ts @@ -13,7 +13,8 @@ import type { AllStreamResolvedEvent, EventType, PersistentSubscriptionToAllResolvedEvent, - PersistentSubscriptionToStreamResolvedEvent, EventData, + PersistentSubscriptionToStreamResolvedEvent, + EventData, } from "./events"; import type * as constants from "../constants"; @@ -544,13 +545,21 @@ export interface BaseAppendErrorDetails { } export type AppendErrorDetails = - | ({ type: "unknown"; } & BaseAppendErrorDetails) - | ({ type: "access_denied"; reason: string; } & BaseAppendErrorDetails) - | ({ type: "stream_deleted"; } & BaseAppendErrorDetails) - | ({ type: "wrong_expected_revision"; revision: bigint; } & BaseAppendErrorDetails) - | ({ type: "transaction_max_size_exceeded"; maxSize: number; } & BaseAppendErrorDetails) - -export const UnknownErrorDetails: AppendErrorDetails = { type: "unknown" } as const; + | ({ type: "unknown" } & BaseAppendErrorDetails) + | ({ type: "access_denied"; reason: string } & BaseAppendErrorDetails) + | ({ type: "stream_deleted" } & BaseAppendErrorDetails) + | ({ + type: "wrong_expected_revision"; + revision: bigint; + } & BaseAppendErrorDetails) + | ({ + type: "transaction_max_size_exceeded"; + maxSize: number; + } & BaseAppendErrorDetails); + +export const UnknownErrorDetails: AppendErrorDetails = { + type: "unknown", +} as const; export interface AppendStreamFailure { streamName: string; @@ -562,8 +571,8 @@ export interface BaseMultiAppendResult { } export type MultiAppendResult = - | ({ success: true; output: AppendStreamSuccess[]; } & BaseMultiAppendResult) - | ({ success: false; output: AppendStreamFailure[]; } & BaseMultiAppendResult) + | ({ success: true; output: AppendStreamSuccess[] } & BaseMultiAppendResult) + | ({ success: false; output: AppendStreamFailure[] } & BaseMultiAppendResult); // Other listeners that are only supported in catch-up subscriptions export interface CatchupSubscription { From 0339115314e73a8cc0fb5712e9a985c554c5bd24 Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 17:40:48 -0400 Subject: [PATCH 06/18] report unsupported error when the feature is not available --- packages/db-client/src/streams/appendToStream/index.ts | 7 ++++++- packages/db-client/src/streams/appendToStream/multi.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index 19e9ea2b..af113572 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -1,5 +1,5 @@ import { StreamsService } from "../../../generated/streams_grpc_pb"; - +import { StreamsServiceService} from "../../../generated/streams.v2_grpc_pb"; import { Client } from "../../Client"; import { ANY } from "../../constants"; import type { @@ -11,6 +11,7 @@ import type { MultiAppendResult, AppendStreamRequest, } from "../../types"; +import { UnsupportedError } from "../../utils"; import { append } from "./append"; import { batchAppend } from "./batchAppend"; @@ -87,5 +88,9 @@ Client.prototype.multiAppend = async function ( requests: AppendStreamRequest[], baseOptions: BaseOptions = {} ): Promise { + + if (!(await this.supports(StreamsServiceService.multiStreamAppendSession, "all"))) { + throw new UnsupportedError("multiStreamAppend", "25.10"); + } return multiAppend.call(this, requests, baseOptions); }; diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index 1321f330..ed24a281 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -22,6 +22,7 @@ export const multiAppend = async function ( "multiStreamAppend", (client) => new Promise(async (resolve, reject) => { + baseOptions.requiresLeader = false; const sink = client.multiStreamAppendSession( ...this.callArguments(baseOptions), (error, response) => { From 07164d0d38c52b3892ed6203219c336bdfacf388 Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 22:09:22 -0400 Subject: [PATCH 07/18] add tests --- .../src/streams/multiAppendStream.test.ts | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 packages/test/src/streams/multiAppendStream.test.ts diff --git a/packages/test/src/streams/multiAppendStream.test.ts b/packages/test/src/streams/multiAppendStream.test.ts new file mode 100644 index 00000000..1472152b --- /dev/null +++ b/packages/test/src/streams/multiAppendStream.test.ts @@ -0,0 +1,86 @@ +import { + binaryTestEvents, + collect, + createTestNode, + jsonTestEvents, matchServerVersion, optionalDescribe, +} from "@test-utils"; + +import { + KurrentDBClient, + jsonEvent, + WrongExpectedVersionError, + ANY, + NO_STREAM, + STREAM_EXISTS, + binaryEvent, + BinaryEventType, + JSONEventType, AppendStreamRequest, UnsupportedError, +} from "@kurrent/kurrentdb-client"; + +import { v4 } from "uuid"; + +describe("appendToStream", () => { + const supported = matchServerVersion`>=25.0`; + const node = createTestNode(); + let client!: KurrentDBClient; + + beforeAll(async () => { + await node.up(); + client = KurrentDBClient.connectionString(node.connectionString()); + }); + + afterAll(async () => { + await node.down(); + }); + + optionalDescribe(supported)("should successfully append to multiple streams", () => { + test("json events", async () => { + const STREAM_NAME_1 = v4().toString(); + const STREAM_NAME_2 = v4().toString(); + + const requests: AppendStreamRequest[] = []; + + requests.push({ + streamName: STREAM_NAME_1, + events: jsonTestEvents(), + expectedState: ANY, + }); + + requests.push({ + streamName: STREAM_NAME_2, + events: jsonTestEvents(), + expectedState: ANY, + }); + + const result = await client.multiAppend(requests); + expect(result).toBeDefined(); + expect(result.success).toBeTruthy(); + }); + }); + + optionalDescribe(!supported)("not supported (<25.0)", () => { + test("throw unsupported error", async () => { + const STREAM_NAME_1 = v4().toString(); + const STREAM_NAME_2 = v4().toString(); + const requests: AppendStreamRequest[] = []; + + requests.push({ + streamName: STREAM_NAME_1, + events: jsonTestEvents(), + expectedState: ANY, + }); + + requests.push({ + streamName: STREAM_NAME_2, + events: jsonTestEvents(), + expectedState: ANY, + }); + + try { + await client.multiAppend(requests); + } catch (error) { + expect(error).toBeInstanceOf(UnsupportedError); + } + }); + }); +}); From 9d42ad8862118f0a1925f838a420a10b3c48e8a9 Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 22:11:16 -0400 Subject: [PATCH 08/18] fix lint --- .../src/streams/appendToStream/index.ts | 10 +++- .../src/streams/multiAppendStream.test.ts | 59 +++++++++---------- 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index af113572..194681c8 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -1,5 +1,5 @@ import { StreamsService } from "../../../generated/streams_grpc_pb"; -import { StreamsServiceService} from "../../../generated/streams.v2_grpc_pb"; +import { StreamsServiceService } from "../../../generated/streams.v2_grpc_pb"; import { Client } from "../../Client"; import { ANY } from "../../constants"; import type { @@ -88,8 +88,12 @@ Client.prototype.multiAppend = async function ( requests: AppendStreamRequest[], baseOptions: BaseOptions = {} ): Promise { - - if (!(await this.supports(StreamsServiceService.multiStreamAppendSession, "all"))) { + if ( + !(await this.supports( + StreamsServiceService.multiStreamAppendSession, + "all" + )) + ) { throw new UnsupportedError("multiStreamAppend", "25.10"); } return multiAppend.call(this, requests, baseOptions); diff --git a/packages/test/src/streams/multiAppendStream.test.ts b/packages/test/src/streams/multiAppendStream.test.ts index 1472152b..910dfd97 100644 --- a/packages/test/src/streams/multiAppendStream.test.ts +++ b/packages/test/src/streams/multiAppendStream.test.ts @@ -1,20 +1,16 @@ import { - binaryTestEvents, - collect, createTestNode, - jsonTestEvents, matchServerVersion, optionalDescribe, + jsonTestEvents, + matchServerVersion, + optionalDescribe, } from "@test-utils"; import { KurrentDBClient, - jsonEvent, - WrongExpectedVersionError, ANY, - NO_STREAM, - STREAM_EXISTS, - binaryEvent, - BinaryEventType, - JSONEventType, AppendStreamRequest, UnsupportedError, + JSONEventType, + AppendStreamRequest, + UnsupportedError, } from "@kurrent/kurrentdb-client"; import { v4 } from "uuid"; @@ -33,30 +29,33 @@ describe("appendToStream", () => { await node.down(); }); - optionalDescribe(supported)("should successfully append to multiple streams", () => { - test("json events", async () => { - const STREAM_NAME_1 = v4().toString(); - const STREAM_NAME_2 = v4().toString(); + optionalDescribe(supported)( + "should successfully append to multiple streams", + () => { + test("json events", async () => { + const STREAM_NAME_1 = v4().toString(); + const STREAM_NAME_2 = v4().toString(); - const requests: AppendStreamRequest[] = []; + const requests: AppendStreamRequest[] = []; - requests.push({ - streamName: STREAM_NAME_1, - events: jsonTestEvents(), - expectedState: ANY, - }); + requests.push({ + streamName: STREAM_NAME_1, + events: jsonTestEvents(), + expectedState: ANY, + }); - requests.push({ - streamName: STREAM_NAME_2, - events: jsonTestEvents(), - expectedState: ANY, - }); + requests.push({ + streamName: STREAM_NAME_2, + events: jsonTestEvents(), + expectedState: ANY, + }); - const result = await client.multiAppend(requests); - expect(result).toBeDefined(); - expect(result.success).toBeTruthy(); - }); - }); + const result = await client.multiAppend(requests); + expect(result).toBeDefined(); + expect(result.success).toBeTruthy(); + }); + } + ); optionalDescribe(!supported)("not supported (<25.0)", () => { test("throw unsupported error", async () => { From cb81b5db49bb11d9ee585dc9fac3b8b4844a2f1c Mon Sep 17 00:00:00 2001 From: YoEight Date: Wed, 18 Jun 2025 22:30:24 -0400 Subject: [PATCH 09/18] fixup test --- packages/test/src/streams/multiAppendStream.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/test/src/streams/multiAppendStream.test.ts b/packages/test/src/streams/multiAppendStream.test.ts index 910dfd97..53f32c9f 100644 --- a/packages/test/src/streams/multiAppendStream.test.ts +++ b/packages/test/src/streams/multiAppendStream.test.ts @@ -1,3 +1,5 @@ +/** @jest-environment ./src/utils/enableVersionCheck.ts */ + import { createTestNode, jsonTestEvents, @@ -8,14 +10,13 @@ import { import { KurrentDBClient, ANY, - JSONEventType, AppendStreamRequest, UnsupportedError, } from "@kurrent/kurrentdb-client"; import { v4 } from "uuid"; -describe("appendToStream", () => { +describe("MultiAppendStream", () => { const supported = matchServerVersion`>=25.0`; const node = createTestNode(); let client!: KurrentDBClient; From a3f3986d0baf61d4614b74114d9179dabbe96ca6 Mon Sep 17 00:00:00 2001 From: YoEight Date: Thu, 19 Jun 2025 13:39:09 -0400 Subject: [PATCH 10/18] update github actions configuration --- .github/workflows/load-configuration.yml | 66 ++++++++++++++++++ .../{build_and_lint.yml => main.yml} | 69 +++++++++++-------- .github/workflows/qa.yml | 15 +++- .github/workflows/test_LTS.yml | 17 ----- .github/workflows/test_next.yml | 17 ----- .github/workflows/test_previous_LTS.yml | 17 ----- .github/workflows/tests.yml | 41 +++++++++-- 7 files changed, 155 insertions(+), 87 deletions(-) create mode 100644 .github/workflows/load-configuration.yml rename .github/workflows/{build_and_lint.yml => main.yml} (74%) delete mode 100644 .github/workflows/test_LTS.yml delete mode 100644 .github/workflows/test_next.yml delete mode 100644 .github/workflows/test_previous_LTS.yml diff --git a/.github/workflows/load-configuration.yml b/.github/workflows/load-configuration.yml new file mode 100644 index 00000000..67ef6464 --- /dev/null +++ b/.github/workflows/load-configuration.yml @@ -0,0 +1,66 @@ +name: Load KurrentDB Runtime Configuration +on: + workflow_call: + inputs: + runtime: + description: "The runtime's name. Current options are: `ci`, `previous-lts`, `latest` and `qa`" + required: true + type: string + + registry: + description: "When in QA mode, the Docker registry to use" + type: string + required: false + + image: + description: "When in QA mode, the Docker image to use" + type: string + required: false + + tag: + description: "When in QA mode, the Docker image tag to use" + type: string + required: false + + outputs: + runtime: + description: The runtime's name + value: ${{ inputs.runtime }} + + registry: + description: The Docker registry + value: ${{ jobs.load.outputs.registry }} + + image: + description: The Docker image + value: ${{ jobs.load.outputs.image }} + + tag: + description: The Docker image tag + value: ${{ jobs.load.outputs.tag }} + +jobs: + load: + runs-on: ubuntu-latest + outputs: + registry: ${{ steps.set.outputs.registry }} + image: ${{ steps.set.outputs.image }} + tag: ${{ steps.set.outputs.tag }} + + steps: + - name: Set KurrentDB Runtime Configuration Properties + id: set + run: | + case ${{ inputs.runtime }} in + "qa") + echo "registry=${{ inputs.registry }}" >> $GITHUB_OUTPUT + echo "image=${{ inputs.image }}" >> $GITHUB_OUTPUT + echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT + ;; + + *) + echo "registry=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].registry }}" >> $GITHUB_OUTPUT + echo "image=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].image }}" >> $GITHUB_OUTPUT + echo "tag=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].tag }}" >> $GITHUB_OUTPUT + ;; + esac diff --git a/.github/workflows/build_and_lint.yml b/.github/workflows/main.yml similarity index 74% rename from .github/workflows/build_and_lint.yml rename to .github/workflows/main.yml index 832555d7..5971f641 100644 --- a/.github/workflows/build_and_lint.yml +++ b/.github/workflows/main.yml @@ -1,43 +1,18 @@ -name: Build and lint - on: pull_request: push: branches: - - master + - main schedule: - cron: "0 3 * * 0" # Every sunday at 3am UTC. jobs: - validation: - name: Code quality - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Corepack - run: corepack enable - - - name: Install - run: yarn - - - name: Linting - run: yarn lint - - - name: Build on Ubuntu - run: yarn build - - - name: All generated code is commited - run: | - git update-index --refresh - git diff-index --exit-code --name-status HEAD -- - build: name: Build strategy: - fail-fast: true + fail-fast: false matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -61,3 +36,41 @@ jobs: - name: Build run: yarn build + + validation: + needs: build + name: Code quality + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Corepack + run: corepack enable + + - name: Install + run: yarn + + - name: Linting + run: yarn lint + + - name: Build on Ubuntu + run: yarn build + + - name: All generated code is commited + run: | + git update-index --refresh + git diff-index --exit-code --name-status HEAD -- + + tests: + needs: validation + + strategy: + fail-fast: false + matrix: + runtime: [previous-lts, lts, ci] + + name: Tests + uses: ./.github/workflows/tests.yml + with: + runtime: ${{ matrix.runtime }} + secrets: inherit diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index b3503e8b..948573b1 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -3,15 +3,26 @@ name: QA on: workflow_dispatch: inputs: + tag: + required: true + type: string + description: "The tag to use for the docker image" image: - description: 'Full image name' required: true - default: 'docker.kurrent.io/kurrent-staging/kurrentdb:ci' type: string + description: "The docker image to use" + registry: + required: false + type: string + default: "docker.kurrent.io/kurrent-staging" + description: "The docker registry to use" jobs: test: name: Test uses: ./.github/workflows/tests.yml with: + runtime: qa + registry: ${{ inputs.registry }} image: ${{ inputs.image }} + tag: ${{ inputs.tag }} diff --git a/.github/workflows/test_LTS.yml b/.github/workflows/test_LTS.yml deleted file mode 100644 index c96bbfe4..00000000 --- a/.github/workflows/test_LTS.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "LTS" - -on: - pull_request: - push: - branches: - - master - schedule: - - cron: '0 0 * * 0' # Run every Sunday at midnight UTC - -jobs: - test: - name: Test - uses: ./.github/workflows/tests.yml - with: - image: ${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES).lts.fullname }} - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/test_next.yml b/.github/workflows/test_next.yml deleted file mode 100644 index 9a1f700a..00000000 --- a/.github/workflows/test_next.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "Next feature version" - -on: - pull_request: - push: - branches: - - master - schedule: - - cron: '0 0 * * 0' # Run every Sunday at midnight UTC - -jobs: - test: - name: Test - uses: ./.github/workflows/tests.yml - with: - image: ${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES).ci.fullname }} - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/test_previous_LTS.yml b/.github/workflows/test_previous_LTS.yml deleted file mode 100644 index 31d9bd74..00000000 --- a/.github/workflows/test_previous_LTS.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "previous LTS" - -on: - pull_request: - push: - branches: - - master - schedule: - - cron: '0 0 * * 0' # Run every Sunday at midnight UTC - -jobs: - test: - name: Test - uses: ./.github/workflows/tests.yml - with: - image: ${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)['previous-lts'].fullname }} - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 593726b2..019e1185 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,14 +1,42 @@ -name: tests workflow +name: Tests on: workflow_call: inputs: - image: + runtime: + required: true + type: string + + go_version: required: true type: string + registry: + description: "When in QA mode, the Docker registry to use" + type: string + required: false + + image: + description: "When in QA mode, the Docker image to use" + type: string + required: false + + tag: + description: "When in QA mode, the Docker image tag to use" + type: string + required: false + jobs: - build-and-test: + load_configuration: + uses: ./.github/workflows/load-configuration.yml + with: + runtime: ${{ inputs.runtime }} + registry: ${{ inputs.registry }} + image: ${{ inputs.image }} + tag: ${{ inputs.tag }} + + test: + needs: load_configuration timeout-minutes: 10 name: "${{ matrix.group.name }}" strategy: @@ -35,6 +63,7 @@ jobs: - name: opentelemetry path: ./src/opentelemetry + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -42,7 +71,7 @@ jobs: - name: Login to Cloudsmith uses: docker/login-action@v3 with: - registry: docker.kurrent.io + registry: ${{ needs.load_configuration.outputs.registry }} username: ${{ secrets.CLOUDSMITH_CICD_USER }} password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }} @@ -59,10 +88,10 @@ jobs: - name: Install run: yarn - - name: Build + - name: Build run: yarn build - name: Run Tests run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit env: - KURRENT_IMAGE: ${{ inputs.image }} + KURRENT_IMAGE: "${{ needs.load_configuration.outputs.registry }}/${{ needs.load_configuration.outputs.image }}:${{ needs.load_configuration.outputs.tag }}" From 347452a9f88c96d58d386d7d344d3b007d0ecbb5 Mon Sep 17 00:00:00 2001 From: YoEight Date: Thu, 19 Jun 2025 13:41:16 -0400 Subject: [PATCH 11/18] fixup --- .github/workflows/tests.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 019e1185..962d0305 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,10 +7,6 @@ on: required: true type: string - go_version: - required: true - type: string - registry: description: "When in QA mode, the Docker registry to use" type: string From 23b51a53e5055d43cfa15d875ac1488d1559225e Mon Sep 17 00:00:00 2001 From: YoEight Date: Thu, 19 Jun 2025 18:22:58 -0400 Subject: [PATCH 12/18] addressed some issues again --- .github/workflows/benchmark.yml | 110 +++++++++--------- .github/workflows/main.yml | 49 ++++++++ .github/workflows/test_ee.yml | 57 --------- .../src/streams/appendToStream/index.ts | 4 +- .../src/streams/appendToStream/multi.ts | 2 + packages/test/src/utils/Cluster.ts | 4 +- 6 files changed, 107 insertions(+), 119 deletions(-) delete mode 100644 .github/workflows/test_ee.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d12aa17e..1599ee52 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -1,57 +1,53 @@ -name: Benchmark - -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - -jobs: - benchmark: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - os: [ ubuntu-latest ] - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version-file: .github/files/.nvmrc - - - name: Corepack - run: corepack enable - - - name: Install Dependencies - run: yarn - - - name: Build - run: yarn build - - - name: Start KurrentDB - run: docker compose -f packages/benchmark/docker-compose.yml up -d - - - name: Load Events - run: yarn nx run benchmark:loadEvents - - - name: Run Benchmarks - run: | - echo "Number of events: 10k" - echo "Size of each event: 23bytes" - echo "Node.js version: $(node --version)" - echo "1 warmup iteration" - echo "20 iterations" - yarn nx run benchmark:benchmark | tee benchmark-bridge-client-output-${{ matrix.os }}.txt - - - name: Upload Benchmark Results - uses: actions/upload-artifact@v4 - with: - name: benchmark-results - path: benchmark-bridge-client-output-${{ matrix.os }}.txt - - - name: Shutdown KurrentDB - run: docker compose -f packages/benchmark/docker-compose.yml down +name: Benchmark + +on: + workflow_dispatch: + +jobs: + benchmark: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .github/files/.nvmrc + + - name: Corepack + run: corepack enable + + - name: Install Dependencies + run: yarn + + - name: Build + run: yarn build + + - name: Start KurrentDB + run: docker compose -f packages/benchmark/docker-compose.yml up -d + + - name: Load Events + run: yarn nx run benchmark:loadEvents + + - name: Run Benchmarks + run: | + echo "Number of events: 10k" + echo "Size of each event: 23bytes" + echo "Node.js version: $(node --version)" + echo "1 warmup iteration" + echo "20 iterations" + yarn nx run benchmark:benchmark | tee benchmark-bridge-client-output-${{ matrix.os }}.txt + + - name: Upload Benchmark Results + uses: actions/upload-artifact@v4 + with: + name: benchmark-results + path: benchmark-bridge-client-output-${{ matrix.os }}.txt + + - name: Shutdown KurrentDB + run: docker compose -f packages/benchmark/docker-compose.yml down diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5971f641..70914c23 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,3 +74,52 @@ jobs: with: runtime: ${{ matrix.runtime }} secrets: inherit + + plugins: + needs: tests + if: false + name: "${{ matrix.group.name }}" + strategy: + fail-fast: false + matrix: + group: + - name: plugins + path: ./src/plugins + env: + # GitHub only passes secrets to the main repo, so we need to skip some things if they are unavailable + SECRETS_AVAILABLE: ${{ secrets.EVENTSTORE_CLOUD_ID != null }} + KURRENT_VERSION: "24.2.0-jammy" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .github/files/.nvmrc + + - name: NodeJS version + run: node -v + + - name: Corepack + run: corepack enable + + - name: Login to Cloudsmith + uses: docker/login-action@v3 + with: + registry: docker.eventstore.com + username: ${{ secrets.CLOUDSMITH_CICD_USER }} + password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }} + + - name: Install + run: yarn + + - name: Corepack + run: corepack enable + + - name: Build + run: yarn build + + - name: Run Tests + run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit + env: + KURRENT_IMAGE: "docker.eventstore.com/eventstore-ee/eventstoredb-commercial:${{ env.KURRENT_VERSION }}" diff --git a/.github/workflows/test_ee.yml b/.github/workflows/test_ee.yml deleted file mode 100644 index 21d6fadd..00000000 --- a/.github/workflows/test_ee.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: "EE" - -on: - pull_request: - push: - branches: - - master - schedule: - - cron: '0 0 * * 0' # Run every Sunday at midnight UTC - -jobs: - tests: - name: "${{ matrix.group.name }}" - strategy: - fail-fast: false - matrix: - group: - - name: plugins - path: ./src/plugins - env: - # GitHub only passes secrets to the main repo, so we need to skip some things if they are unavailable - SECRETS_AVAILABLE: ${{ secrets.EVENTSTORE_CLOUD_ID != null }} - KURRENT_VERSION: "24.2.0-jammy" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version-file: .github/files/.nvmrc - - - name: NodeJS version - run: node -v - - - name: Corepack - run: corepack enable - - - name: Login to Cloudsmith - uses: docker/login-action@v3 - with: - registry: docker.eventstore.com - username: ${{ secrets.CLOUDSMITH_CICD_USER }} - password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }} - - - name: Install - run: yarn - - - name: Corepack - run: corepack enable - - - name: Build - run: yarn build - - - name: Run Tests - run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit - env: - KURRENT_IMAGE: "docker.eventstore.com/eventstore-ee/eventstoredb-commercial:${{ env.KURRENT_VERSION }}" \ No newline at end of file diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index 194681c8..ccdd7411 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -90,9 +90,7 @@ Client.prototype.multiAppend = async function ( ): Promise { if ( !(await this.supports( - StreamsServiceService.multiStreamAppendSession, - "all" - )) + StreamsServiceService.multiStreamAppendSession)) ) { throw new UnsupportedError("multiStreamAppend", "25.10"); } diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index ed24a281..547558c6 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -148,6 +148,8 @@ export const multiAppend = async function ( await backpressuredWrite(sink, message); } + + sink.end(); }) ); }; diff --git a/packages/test/src/utils/Cluster.ts b/packages/test/src/utils/Cluster.ts index 7136290e..c1aff60c 100644 --- a/packages/test/src/utils/Cluster.ts +++ b/packages/test/src/utils/Cluster.ts @@ -84,9 +84,9 @@ const createNodes = ( [] ) .join(",")}`, - `EVENTSTORE_INT_IP=${ipv4_address}`, + `EVENTSTORE_REPLICATION_IP=${ipv4_address}`, `EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=${domain}`, - `EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=${port}`, + `EVENTSTORE_ADVERTISE_NODE_PORT_TO_CLIENT_AS=${port}`, `EVENTSTORE_CLUSTER_SIZE=${internalIPs.length}`, "EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true", "EVENTSTORE_RUN_PROJECTIONS=All", From f842e56c39d56dcc1c892e4517fb5e2e07dd6fc9 Mon Sep 17 00:00:00 2001 From: YoEight Date: Thu, 19 Jun 2025 18:59:02 -0400 Subject: [PATCH 13/18] linting --- packages/db-client/src/streams/appendToStream/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index ccdd7411..cbeafebb 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -88,10 +88,7 @@ Client.prototype.multiAppend = async function ( requests: AppendStreamRequest[], baseOptions: BaseOptions = {} ): Promise { - if ( - !(await this.supports( - StreamsServiceService.multiStreamAppendSession)) - ) { + if (!(await this.supports(StreamsServiceService.multiStreamAppendSession))) { throw new UnsupportedError("multiStreamAppend", "25.10"); } return multiAppend.call(this, requests, baseOptions); From f442119e4e3a110e07ef9a64a5eee077ef70a136 Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 18 Jul 2025 15:49:29 +0400 Subject: [PATCH 14/18] Change folder structure of proto files --- packages/db-client/package.json | 6 +- .../protocols/v1}/cluster.proto | 298 +++---- .../{ => kurrentdb/protocols/v1}/code.proto | 372 ++++----- .../{ => kurrentdb/protocols/v1}/gossip.proto | 88 +-- .../protocols/v1}/monitoring.proto | 32 +- .../protocols/v1}/operations.proto | 90 +-- .../protocols/v1}/persistent.proto | 742 +++++++++--------- .../protocols/v1}/projections.proto | 352 ++++----- .../protocols/v1}/serverfeatures.proto | 38 +- .../{ => kurrentdb/protocols/v1}/shared.proto | 126 +-- .../{ => kurrentdb/protocols/v1}/status.proto | 96 +-- .../protocols/v1}/streams.proto | 0 .../{ => kurrentdb/protocols/v1}/users.proto | 238 +++--- .../protocols/v2}/dynamic-value.proto | 0 .../protocols/v2}/streams.v2.proto | 0 15 files changed, 1239 insertions(+), 1239 deletions(-) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/cluster.proto (96%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/code.proto (97%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/gossip.proto (95%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/monitoring.proto (95%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/operations.proto (96%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/persistent.proto (95%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/projections.proto (95%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/serverfeatures.proto (96%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/shared.proto (95%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/status.proto (97%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/streams.proto (100%) rename packages/db-client/protos/{ => kurrentdb/protocols/v1}/users.proto (94%) rename packages/db-client/protos/{ => kurrentdb/protocols/v2}/dynamic-value.proto (100%) rename packages/db-client/protos/{ => kurrentdb/protocols/v2}/streams.v2.proto (100%) diff --git a/packages/db-client/package.json b/packages/db-client/package.json index d12a4b3a..95ca8b68 100644 --- a/packages/db-client/package.json +++ b/packages/db-client/package.json @@ -10,10 +10,10 @@ "build:watch": "yarn generate && yarn build:ts-watch", "build:ts-watch": "tsc --build --watch", "generate": "yarn generate:folder && yarn generate:sed-append && yarn generate:sed-insert && yarn generate:js", - "generate:sed-append": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*) \\[deprecated = true\\];/int64 \\$1 = \\$2 [deprecated = true, jstype = JS_STRING];/g\" ./protos/*", - "generate:sed-insert": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*);/int64 \\$1 = \\$2 [jstype = JS_STRING];/g\" ./protos/*", + "generate:sed-append": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*) \\[deprecated = true\\];/int64 \\$1 = \\$2 [deprecated = true, jstype = JS_STRING];/g\" ./protos/kurrentdb/protocols/v*/*", + "generate:sed-insert": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*);/int64 \\$1 = \\$2 [jstype = JS_STRING];/g\" ./protos/kurrentdb/protocols/v*/*", "generate:folder": "shx mkdir -p ./generated", - "generate:js": "grpc_tools_node_protoc ./protos/*.proto --proto_path=./protos --grpc_out=grpc_js:./generated --js_out=import_style=commonjs,binary:./generated --ts_out=generate_package_definition:./generated", + "generate:js": "grpc_tools_node_protoc ./protos/kurrentdb/protocols/v*/*.proto --proto_path=./protos/kurrentdb/protocols/v1 --proto_path=./protos/kurrentdb/protocols/v2 --grpc_out=grpc_js:./generated --js_out=import_style=commonjs,binary:./generated --ts_out=generate_package_definition:./generated", "clean": "yarn clean:generated && yarn clean:dist && yarn clean:buildinfo", "clean:generated": "shx rm -rf ./generated", "clean:dist": "shx rm -rf ./dist", diff --git a/packages/db-client/protos/cluster.proto b/packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto similarity index 96% rename from packages/db-client/protos/cluster.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto index ff057a0a..fb99d896 100644 --- a/packages/db-client/protos/cluster.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto @@ -1,149 +1,149 @@ -syntax = "proto3"; -package event_store.cluster; -option java_package = "com.eventstore.dbclient.proto.cluster"; - -import "shared.proto"; - -service Gossip { - rpc Update (GossipRequest) returns (ClusterInfo); - rpc Read (event_store.client.Empty) returns (ClusterInfo); -} - -service Elections { - rpc ViewChange (ViewChangeRequest) returns (event_store.client.Empty); - rpc ViewChangeProof (ViewChangeProofRequest) returns (event_store.client.Empty); - rpc Prepare (PrepareRequest) returns (event_store.client.Empty); - rpc PrepareOk (PrepareOkRequest) returns (event_store.client.Empty); - rpc Proposal (ProposalRequest) returns (event_store.client.Empty); - rpc Accept (AcceptRequest) returns (event_store.client.Empty); - - rpc LeaderIsResigning (LeaderIsResigningRequest) returns (event_store.client.Empty); - rpc LeaderIsResigningOk (LeaderIsResigningOkRequest) returns (event_store.client.Empty); -} - -message GossipRequest { - ClusterInfo info = 1; - EndPoint server = 2; -} - -message ViewChangeRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - int32 attempted_view = 3; -} - -message ViewChangeProofRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - int32 installed_view = 3; -} - -message PrepareRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - int32 view = 3; -} - -message PrepareOkRequest { - int32 view = 1; - event_store.client.UUID server_id = 2; - EndPoint server_http = 3; - int32 epoch_number = 4; - int64 epoch_position = 5 [jstype = JS_STRING]; - event_store.client.UUID epoch_id = 6; - event_store.client.UUID epoch_leader_instance_id = 7; - int64 last_commit_position = 8 [jstype = JS_STRING]; - int64 writer_checkpoint = 9 [jstype = JS_STRING]; - int64 chaser_checkpoint = 10 [jstype = JS_STRING]; - int32 node_priority = 11; - ClusterInfo cluster_info = 12; -} - -message ProposalRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - event_store.client.UUID leader_id = 3; - EndPoint leader_http = 4; - int32 view = 5; - int32 epoch_number = 6; - int64 epoch_position = 7 [jstype = JS_STRING]; - event_store.client.UUID epoch_id = 8; - event_store.client.UUID epoch_leader_instance_id = 9; - int64 last_commit_position = 10 [jstype = JS_STRING]; - int64 writer_checkpoint = 11 [jstype = JS_STRING]; - int64 chaser_checkpoint = 12 [jstype = JS_STRING]; - int32 node_priority = 13; -} - -message AcceptRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - event_store.client.UUID leader_id = 3; - EndPoint leader_http = 4; - int32 view = 5; -} - -message LeaderIsResigningRequest { - event_store.client.UUID leader_id = 1; - EndPoint leader_http = 2; -} - -message LeaderIsResigningOkRequest { - event_store.client.UUID leader_id = 1; - EndPoint leader_http = 2; - event_store.client.UUID server_id = 3; - EndPoint server_http = 4; -} - -message ClusterInfo { - repeated MemberInfo members = 1; -} - -message EndPoint { - string address = 1; - uint32 port = 2; -} - -message MemberInfo { - enum VNodeState { - Initializing = 0; - DiscoverLeader = 1; - Unknown = 2; - PreReplica = 3; - CatchingUp = 4; - Clone = 5; - Follower = 6; - PreLeader = 7; - Leader = 8; - Manager = 9; - ShuttingDown = 10; - Shutdown = 11; - ReadOnlyLeaderless = 12; - PreReadOnlyReplica = 13; - ReadOnlyReplica = 14; - ResigningLeader = 15; - } - event_store.client.UUID instance_id = 1; - int64 time_stamp = 2 [jstype = JS_STRING]; - VNodeState state = 3; - bool is_alive = 4; - EndPoint http_end_point = 5; - EndPoint internal_tcp = 6; - EndPoint external_tcp = 7; - bool internal_tcp_uses_tls = 8; - bool external_tcp_uses_tls = 9; - - int64 last_commit_position = 10 [jstype = JS_STRING]; - int64 writer_checkpoint = 11 [jstype = JS_STRING]; - int64 chaser_checkpoint = 12 [jstype = JS_STRING]; - int64 epoch_position = 13 [jstype = JS_STRING]; - int32 epoch_number = 14; - event_store.client.UUID epoch_id = 15; - - int32 node_priority = 16; - bool is_read_only_replica = 17; - string advertise_host_to_client_as = 18; - uint32 advertise_http_port_to_client_as = 19; - uint32 advertise_tcp_port_to_client_as = 20; -} - +syntax = "proto3"; +package event_store.cluster; +option java_package = "com.eventstore.dbclient.proto.cluster"; + +import "shared.proto"; + +service Gossip { + rpc Update (GossipRequest) returns (ClusterInfo); + rpc Read (event_store.client.Empty) returns (ClusterInfo); +} + +service Elections { + rpc ViewChange (ViewChangeRequest) returns (event_store.client.Empty); + rpc ViewChangeProof (ViewChangeProofRequest) returns (event_store.client.Empty); + rpc Prepare (PrepareRequest) returns (event_store.client.Empty); + rpc PrepareOk (PrepareOkRequest) returns (event_store.client.Empty); + rpc Proposal (ProposalRequest) returns (event_store.client.Empty); + rpc Accept (AcceptRequest) returns (event_store.client.Empty); + + rpc LeaderIsResigning (LeaderIsResigningRequest) returns (event_store.client.Empty); + rpc LeaderIsResigningOk (LeaderIsResigningOkRequest) returns (event_store.client.Empty); +} + +message GossipRequest { + ClusterInfo info = 1; + EndPoint server = 2; +} + +message ViewChangeRequest { + event_store.client.UUID server_id = 1; + EndPoint server_http = 2; + int32 attempted_view = 3; +} + +message ViewChangeProofRequest { + event_store.client.UUID server_id = 1; + EndPoint server_http = 2; + int32 installed_view = 3; +} + +message PrepareRequest { + event_store.client.UUID server_id = 1; + EndPoint server_http = 2; + int32 view = 3; +} + +message PrepareOkRequest { + int32 view = 1; + event_store.client.UUID server_id = 2; + EndPoint server_http = 3; + int32 epoch_number = 4; + int64 epoch_position = 5 [jstype = JS_STRING]; + event_store.client.UUID epoch_id = 6; + event_store.client.UUID epoch_leader_instance_id = 7; + int64 last_commit_position = 8 [jstype = JS_STRING]; + int64 writer_checkpoint = 9 [jstype = JS_STRING]; + int64 chaser_checkpoint = 10 [jstype = JS_STRING]; + int32 node_priority = 11; + ClusterInfo cluster_info = 12; +} + +message ProposalRequest { + event_store.client.UUID server_id = 1; + EndPoint server_http = 2; + event_store.client.UUID leader_id = 3; + EndPoint leader_http = 4; + int32 view = 5; + int32 epoch_number = 6; + int64 epoch_position = 7 [jstype = JS_STRING]; + event_store.client.UUID epoch_id = 8; + event_store.client.UUID epoch_leader_instance_id = 9; + int64 last_commit_position = 10 [jstype = JS_STRING]; + int64 writer_checkpoint = 11 [jstype = JS_STRING]; + int64 chaser_checkpoint = 12 [jstype = JS_STRING]; + int32 node_priority = 13; +} + +message AcceptRequest { + event_store.client.UUID server_id = 1; + EndPoint server_http = 2; + event_store.client.UUID leader_id = 3; + EndPoint leader_http = 4; + int32 view = 5; +} + +message LeaderIsResigningRequest { + event_store.client.UUID leader_id = 1; + EndPoint leader_http = 2; +} + +message LeaderIsResigningOkRequest { + event_store.client.UUID leader_id = 1; + EndPoint leader_http = 2; + event_store.client.UUID server_id = 3; + EndPoint server_http = 4; +} + +message ClusterInfo { + repeated MemberInfo members = 1; +} + +message EndPoint { + string address = 1; + uint32 port = 2; +} + +message MemberInfo { + enum VNodeState { + Initializing = 0; + DiscoverLeader = 1; + Unknown = 2; + PreReplica = 3; + CatchingUp = 4; + Clone = 5; + Follower = 6; + PreLeader = 7; + Leader = 8; + Manager = 9; + ShuttingDown = 10; + Shutdown = 11; + ReadOnlyLeaderless = 12; + PreReadOnlyReplica = 13; + ReadOnlyReplica = 14; + ResigningLeader = 15; + } + event_store.client.UUID instance_id = 1; + int64 time_stamp = 2 [jstype = JS_STRING]; + VNodeState state = 3; + bool is_alive = 4; + EndPoint http_end_point = 5; + EndPoint internal_tcp = 6; + EndPoint external_tcp = 7; + bool internal_tcp_uses_tls = 8; + bool external_tcp_uses_tls = 9; + + int64 last_commit_position = 10 [jstype = JS_STRING]; + int64 writer_checkpoint = 11 [jstype = JS_STRING]; + int64 chaser_checkpoint = 12 [jstype = JS_STRING]; + int64 epoch_position = 13 [jstype = JS_STRING]; + int32 epoch_number = 14; + event_store.client.UUID epoch_id = 15; + + int32 node_priority = 16; + bool is_read_only_replica = 17; + string advertise_host_to_client_as = 18; + uint32 advertise_http_port_to_client_as = 19; + uint32 advertise_tcp_port_to_client_as = 20; +} + diff --git a/packages/db-client/protos/code.proto b/packages/db-client/protos/kurrentdb/protocols/v1/code.proto similarity index 97% rename from packages/db-client/protos/code.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/code.proto index 0dc4013d..98ae0ac1 100644 --- a/packages/db-client/protos/code.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/code.proto @@ -1,186 +1,186 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.rpc; - -option go_package = "google.golang.org/genproto/googleapis/rpc/code;code"; -option java_multiple_files = true; -option java_outer_classname = "CodeProto"; -option java_package = "com.google.rpc"; -option objc_class_prefix = "RPC"; - -// The canonical error codes for gRPC APIs. -// -// -// Sometimes multiple error codes may apply. Services should return -// the most specific error code that applies. For example, prefer -// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. -// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. -enum Code { - // Not an error; returned on success - // - // HTTP Mapping: 200 OK - OK = 0; - - // The operation was cancelled, typically by the caller. - // - // HTTP Mapping: 499 Client Closed Request - CANCELLED = 1; - - // Unknown error. For example, this error may be returned when - // a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also - // errors raised by APIs that do not return enough error information - // may be converted to this error. - // - // HTTP Mapping: 500 Internal Server Error - UNKNOWN = 2; - - // The client specified an invalid argument. Note that this differs - // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments - // that are problematic regardless of the state of the system - // (e.g., a malformed file name). - // - // HTTP Mapping: 400 Bad Request - INVALID_ARGUMENT = 3; - - // The deadline expired before the operation could complete. For operations - // that change the state of the system, this error may be returned - // even if the operation has completed successfully. For example, a - // successful response from a server could have been delayed long - // enough for the deadline to expire. - // - // HTTP Mapping: 504 Gateway Timeout - DEADLINE_EXCEEDED = 4; - - // Some requested entity (e.g., file or directory) was not found. - // - // Note to server developers: if a request is denied for an entire class - // of users, such as gradual feature rollout or undocumented whitelist, - // `NOT_FOUND` may be used. If a request is denied for some users within - // a class of users, such as user-based access control, `PERMISSION_DENIED` - // must be used. - // - // HTTP Mapping: 404 Not Found - NOT_FOUND = 5; - - // The entity that a client attempted to create (e.g., file or directory) - // already exists. - // - // HTTP Mapping: 409 Conflict - ALREADY_EXISTS = 6; - - // The caller does not have permission to execute the specified - // operation. `PERMISSION_DENIED` must not be used for rejections - // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` - // instead for those errors). `PERMISSION_DENIED` must not be - // used if the caller can not be identified (use `UNAUTHENTICATED` - // instead for those errors). This error code does not imply the - // request is valid or the requested entity exists or satisfies - // other pre-conditions. - // - // HTTP Mapping: 403 Forbidden - PERMISSION_DENIED = 7; - - // The request does not have valid authentication credentials for the - // operation. - // - // HTTP Mapping: 401 Unauthorized - UNAUTHENTICATED = 16; - - // Some resource has been exhausted, perhaps a per-user quota, or - // perhaps the entire file system is out of space. - // - // HTTP Mapping: 429 Too Many Requests - RESOURCE_EXHAUSTED = 8; - - // The operation was rejected because the system is not in a state - // required for the operation's execution. For example, the directory - // to be deleted is non-empty, an rmdir operation is applied to - // a non-directory, etc. - // - // Service implementors can use the following guidelines to decide - // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: - // (a) Use `UNAVAILABLE` if the client can retry just the failing call. - // (b) Use `ABORTED` if the client should retry at a higher level - // (e.g., when a client-specified test-and-set fails, indicating the - // client should restart a read-modify-write sequence). - // (c) Use `FAILED_PRECONDITION` if the client should not retry until - // the system state has been explicitly fixed. E.g., if an "rmdir" - // fails because the directory is non-empty, `FAILED_PRECONDITION` - // should be returned since the client should not retry unless - // the files are deleted from the directory. - // - // HTTP Mapping: 400 Bad Request - FAILED_PRECONDITION = 9; - - // The operation was aborted, typically due to a concurrency issue such as - // a sequencer check failure or transaction abort. - // - // See the guidelines above for deciding between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`. - // - // HTTP Mapping: 409 Conflict - ABORTED = 10; - - // The operation was attempted past the valid range. E.g., seeking or - // reading past end-of-file. - // - // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may - // be fixed if the system state changes. For example, a 32-bit file - // system will generate `INVALID_ARGUMENT` if asked to read at an - // offset that is not in the range [0,2^32-1], but it will generate - // `OUT_OF_RANGE` if asked to read from an offset past the current - // file size. - // - // There is a fair bit of overlap between `FAILED_PRECONDITION` and - // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific - // error) when it applies so that callers who are iterating through - // a space can easily look for an `OUT_OF_RANGE` error to detect when - // they are done. - // - // HTTP Mapping: 400 Bad Request - OUT_OF_RANGE = 11; - - // The operation is not implemented or is not supported/enabled in this - // service. - // - // HTTP Mapping: 501 Not Implemented - UNIMPLEMENTED = 12; - - // Internal errors. This means that some invariants expected by the - // underlying system have been broken. This error code is reserved - // for serious errors. - // - // HTTP Mapping: 500 Internal Server Error - INTERNAL = 13; - - // The service is currently unavailable. This is most likely a - // transient condition, which can be corrected by retrying with - // a backoff. Note that it is not always safe to retry - // non-idempotent operations. - // - // See the guidelines above for deciding between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`. - // - // HTTP Mapping: 503 Service Unavailable - UNAVAILABLE = 14; - - // Unrecoverable data loss or corruption. - // - // HTTP Mapping: 500 Internal Server Error - DATA_LOSS = 15; -} +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +option go_package = "google.golang.org/genproto/googleapis/rpc/code;code"; +option java_multiple_files = true; +option java_outer_classname = "CodeProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// The canonical error codes for gRPC APIs. +// +// +// Sometimes multiple error codes may apply. Services should return +// the most specific error code that applies. For example, prefer +// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. +// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. +enum Code { + // Not an error; returned on success + // + // HTTP Mapping: 200 OK + OK = 0; + + // The operation was cancelled, typically by the caller. + // + // HTTP Mapping: 499 Client Closed Request + CANCELLED = 1; + + // Unknown error. For example, this error may be returned when + // a `Status` value received from another address space belongs to + // an error space that is not known in this address space. Also + // errors raised by APIs that do not return enough error information + // may be converted to this error. + // + // HTTP Mapping: 500 Internal Server Error + UNKNOWN = 2; + + // The client specified an invalid argument. Note that this differs + // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments + // that are problematic regardless of the state of the system + // (e.g., a malformed file name). + // + // HTTP Mapping: 400 Bad Request + INVALID_ARGUMENT = 3; + + // The deadline expired before the operation could complete. For operations + // that change the state of the system, this error may be returned + // even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long + // enough for the deadline to expire. + // + // HTTP Mapping: 504 Gateway Timeout + DEADLINE_EXCEEDED = 4; + + // Some requested entity (e.g., file or directory) was not found. + // + // Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented whitelist, + // `NOT_FOUND` may be used. If a request is denied for some users within + // a class of users, such as user-based access control, `PERMISSION_DENIED` + // must be used. + // + // HTTP Mapping: 404 Not Found + NOT_FOUND = 5; + + // The entity that a client attempted to create (e.g., file or directory) + // already exists. + // + // HTTP Mapping: 409 Conflict + ALREADY_EXISTS = 6; + + // The caller does not have permission to execute the specified + // operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` + // instead for those errors). `PERMISSION_DENIED` must not be + // used if the caller can not be identified (use `UNAUTHENTICATED` + // instead for those errors). This error code does not imply the + // request is valid or the requested entity exists or satisfies + // other pre-conditions. + // + // HTTP Mapping: 403 Forbidden + PERMISSION_DENIED = 7; + + // The request does not have valid authentication credentials for the + // operation. + // + // HTTP Mapping: 401 Unauthorized + UNAUTHENTICATED = 16; + + // Some resource has been exhausted, perhaps a per-user quota, or + // perhaps the entire file system is out of space. + // + // HTTP Mapping: 429 Too Many Requests + RESOURCE_EXHAUSTED = 8; + + // The operation was rejected because the system is not in a state + // required for the operation's execution. For example, the directory + // to be deleted is non-empty, an rmdir operation is applied to + // a non-directory, etc. + // + // Service implementors can use the following guidelines to decide + // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: + // (a) Use `UNAVAILABLE` if the client can retry just the failing call. + // (b) Use `ABORTED` if the client should retry at a higher level + // (e.g., when a client-specified test-and-set fails, indicating the + // client should restart a read-modify-write sequence). + // (c) Use `FAILED_PRECONDITION` if the client should not retry until + // the system state has been explicitly fixed. E.g., if an "rmdir" + // fails because the directory is non-empty, `FAILED_PRECONDITION` + // should be returned since the client should not retry unless + // the files are deleted from the directory. + // + // HTTP Mapping: 400 Bad Request + FAILED_PRECONDITION = 9; + + // The operation was aborted, typically due to a concurrency issue such as + // a sequencer check failure or transaction abort. + // + // See the guidelines above for deciding between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`. + // + // HTTP Mapping: 409 Conflict + ABORTED = 10; + + // The operation was attempted past the valid range. E.g., seeking or + // reading past end-of-file. + // + // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may + // be fixed if the system state changes. For example, a 32-bit file + // system will generate `INVALID_ARGUMENT` if asked to read at an + // offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current + // file size. + // + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific + // error) when it applies so that callers who are iterating through + // a space can easily look for an `OUT_OF_RANGE` error to detect when + // they are done. + // + // HTTP Mapping: 400 Bad Request + OUT_OF_RANGE = 11; + + // The operation is not implemented or is not supported/enabled in this + // service. + // + // HTTP Mapping: 501 Not Implemented + UNIMPLEMENTED = 12; + + // Internal errors. This means that some invariants expected by the + // underlying system have been broken. This error code is reserved + // for serious errors. + // + // HTTP Mapping: 500 Internal Server Error + INTERNAL = 13; + + // The service is currently unavailable. This is most likely a + // transient condition, which can be corrected by retrying with + // a backoff. Note that it is not always safe to retry + // non-idempotent operations. + // + // See the guidelines above for deciding between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`. + // + // HTTP Mapping: 503 Service Unavailable + UNAVAILABLE = 14; + + // Unrecoverable data loss or corruption. + // + // HTTP Mapping: 500 Internal Server Error + DATA_LOSS = 15; +} diff --git a/packages/db-client/protos/gossip.proto b/packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto similarity index 95% rename from packages/db-client/protos/gossip.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto index c5d41e8c..63983a03 100644 --- a/packages/db-client/protos/gossip.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto @@ -1,44 +1,44 @@ -syntax = "proto3"; -package event_store.client.gossip; -option java_package = "com.eventstore.dbclient.proto.gossip"; - -import "shared.proto"; - -service Gossip { - rpc Read (event_store.client.Empty) returns (ClusterInfo); -} - -message ClusterInfo { - repeated MemberInfo members = 1; -} - -message EndPoint { - string address = 1; - uint32 port = 2; -} - -message MemberInfo { - enum VNodeState { - Initializing = 0; - DiscoverLeader = 1; - Unknown = 2; - PreReplica = 3; - CatchingUp = 4; - Clone = 5; - Follower = 6; - PreLeader = 7; - Leader = 8; - Manager = 9; - ShuttingDown = 10; - Shutdown = 11; - ReadOnlyLeaderless = 12; - PreReadOnlyReplica = 13; - ReadOnlyReplica = 14; - ResigningLeader = 15; - } - event_store.client.UUID instance_id = 1; - int64 time_stamp = 2 [jstype = JS_STRING]; - VNodeState state = 3; - bool is_alive = 4; - EndPoint http_end_point = 5; -} +syntax = "proto3"; +package event_store.client.gossip; +option java_package = "com.eventstore.dbclient.proto.gossip"; + +import "shared.proto"; + +service Gossip { + rpc Read (event_store.client.Empty) returns (ClusterInfo); +} + +message ClusterInfo { + repeated MemberInfo members = 1; +} + +message EndPoint { + string address = 1; + uint32 port = 2; +} + +message MemberInfo { + enum VNodeState { + Initializing = 0; + DiscoverLeader = 1; + Unknown = 2; + PreReplica = 3; + CatchingUp = 4; + Clone = 5; + Follower = 6; + PreLeader = 7; + Leader = 8; + Manager = 9; + ShuttingDown = 10; + Shutdown = 11; + ReadOnlyLeaderless = 12; + PreReadOnlyReplica = 13; + ReadOnlyReplica = 14; + ResigningLeader = 15; + } + event_store.client.UUID instance_id = 1; + int64 time_stamp = 2 [jstype = JS_STRING]; + VNodeState state = 3; + bool is_alive = 4; + EndPoint http_end_point = 5; +} diff --git a/packages/db-client/protos/monitoring.proto b/packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto similarity index 95% rename from packages/db-client/protos/monitoring.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto index a62aaad7..69c2c312 100644 --- a/packages/db-client/protos/monitoring.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto @@ -1,16 +1,16 @@ -syntax = "proto3"; -package event_store.client.monitoring; -option java_package = "com.eventstore.dbclient.proto.monitoring"; - -service Monitoring { - rpc Stats(StatsReq) returns (stream StatsResp); -} - -message StatsReq { - bool use_metadata = 1; - uint64 refresh_time_period_in_ms = 4 [jstype = JS_STRING]; -} - -message StatsResp { - map stats = 1; -} +syntax = "proto3"; +package event_store.client.monitoring; +option java_package = "com.eventstore.dbclient.proto.monitoring"; + +service Monitoring { + rpc Stats(StatsReq) returns (stream StatsResp); +} + +message StatsReq { + bool use_metadata = 1; + uint64 refresh_time_period_in_ms = 4 [jstype = JS_STRING]; +} + +message StatsResp { + map stats = 1; +} diff --git a/packages/db-client/protos/operations.proto b/packages/db-client/protos/kurrentdb/protocols/v1/operations.proto similarity index 96% rename from packages/db-client/protos/operations.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/operations.proto index 28a62637..06a815b4 100644 --- a/packages/db-client/protos/operations.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/operations.proto @@ -1,45 +1,45 @@ -syntax = "proto3"; -package event_store.client.operations; -option java_package = "com.eventstore.dbclient.proto.operations"; - -import "shared.proto"; - -service Operations { - rpc StartScavenge (StartScavengeReq) returns (ScavengeResp); - rpc StopScavenge (StopScavengeReq) returns (ScavengeResp); - rpc Shutdown (event_store.client.Empty) returns (event_store.client.Empty); - rpc MergeIndexes (event_store.client.Empty) returns (event_store.client.Empty); - rpc ResignNode (event_store.client.Empty) returns (event_store.client.Empty); - rpc SetNodePriority (SetNodePriorityReq) returns (event_store.client.Empty); - rpc RestartPersistentSubscriptions (event_store.client.Empty) returns (event_store.client.Empty); -} - -message StartScavengeReq { - Options options = 1; - message Options { - int32 thread_count = 1; - int32 start_from_chunk = 2; - } -} - -message StopScavengeReq { - Options options = 1; - message Options { - string scavenge_id = 1; - } -} - -message ScavengeResp { - string scavenge_id = 1; - ScavengeResult scavenge_result = 2; - - enum ScavengeResult { - Started = 0; - InProgress = 1; - Stopped = 2; - } -} - -message SetNodePriorityReq { - int32 priority = 1; -} +syntax = "proto3"; +package event_store.client.operations; +option java_package = "com.eventstore.dbclient.proto.operations"; + +import "shared.proto"; + +service Operations { + rpc StartScavenge (StartScavengeReq) returns (ScavengeResp); + rpc StopScavenge (StopScavengeReq) returns (ScavengeResp); + rpc Shutdown (event_store.client.Empty) returns (event_store.client.Empty); + rpc MergeIndexes (event_store.client.Empty) returns (event_store.client.Empty); + rpc ResignNode (event_store.client.Empty) returns (event_store.client.Empty); + rpc SetNodePriority (SetNodePriorityReq) returns (event_store.client.Empty); + rpc RestartPersistentSubscriptions (event_store.client.Empty) returns (event_store.client.Empty); +} + +message StartScavengeReq { + Options options = 1; + message Options { + int32 thread_count = 1; + int32 start_from_chunk = 2; + } +} + +message StopScavengeReq { + Options options = 1; + message Options { + string scavenge_id = 1; + } +} + +message ScavengeResp { + string scavenge_id = 1; + ScavengeResult scavenge_result = 2; + + enum ScavengeResult { + Started = 0; + InProgress = 1; + Stopped = 2; + } +} + +message SetNodePriorityReq { + int32 priority = 1; +} diff --git a/packages/db-client/protos/persistent.proto b/packages/db-client/protos/kurrentdb/protocols/v1/persistent.proto similarity index 95% rename from packages/db-client/protos/persistent.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/persistent.proto index dcf5af7f..8cb38a3a 100644 --- a/packages/db-client/protos/persistent.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/persistent.proto @@ -1,371 +1,371 @@ -syntax = "proto3"; -package event_store.client.persistent_subscriptions; -option java_package = "com.eventstore.dbclient.proto.persistentsubscriptions"; - -import "shared.proto"; - -service PersistentSubscriptions { - rpc Create (CreateReq) returns (CreateResp); - rpc Update (UpdateReq) returns (UpdateResp); - rpc Delete (DeleteReq) returns (DeleteResp); - rpc Read (stream ReadReq) returns (stream ReadResp); - rpc GetInfo (GetInfoReq) returns (GetInfoResp); - rpc ReplayParked (ReplayParkedReq) returns (ReplayParkedResp); - rpc List (ListReq) returns (ListResp); - rpc RestartSubsystem (event_store.client.Empty) returns (event_store.client.Empty); -} - -message ReadReq { - oneof content { - Options options = 1; - Ack ack = 2; - Nack nack = 3; - } - - message Options { - oneof stream_option { - event_store.client.StreamIdentifier stream_identifier = 1; - event_store.client.Empty all = 5; - } - - string group_name = 2; - int32 buffer_size = 3; - UUIDOption uuid_option = 4; - - message UUIDOption { - oneof content { - event_store.client.Empty structured = 1; - event_store.client.Empty string = 2; - } - } - } - - message Ack { - bytes id = 1; - repeated event_store.client.UUID ids = 2; - } - - message Nack { - bytes id = 1; - repeated event_store.client.UUID ids = 2; - Action action = 3; - string reason = 4; - - enum Action { - Unknown = 0; - Park = 1; - Retry = 2; - Skip = 3; - Stop = 4; - } - } -} - -message ReadResp { - oneof content { - ReadEvent event = 1; - SubscriptionConfirmation subscription_confirmation = 2; - } - message ReadEvent { - RecordedEvent event = 1; - RecordedEvent link = 2; - oneof position { - uint64 commit_position = 3 [jstype = JS_STRING]; - event_store.client.Empty no_position = 4; - } - oneof count { - int32 retry_count = 5; - event_store.client.Empty no_retry_count = 6; - } - message RecordedEvent { - event_store.client.UUID id = 1; - event_store.client.StreamIdentifier stream_identifier = 2; - uint64 stream_revision = 3 [jstype = JS_STRING]; - uint64 prepare_position = 4 [jstype = JS_STRING]; - uint64 commit_position = 5 [jstype = JS_STRING]; - map metadata = 6; - bytes custom_metadata = 7; - bytes data = 8; - } - } - message SubscriptionConfirmation { - string subscription_id = 1; - } -} - -message CreateReq { - Options options = 1; - - message Options { - oneof stream_option { - StreamOptions stream = 4 [deprecated = true]; - AllOptions all = 5; - } - event_store.client.StreamIdentifier stream_identifier = 1; - string group_name = 2; - Settings settings = 3; - } - - message StreamOptions { - option deprecated = true; - event_store.client.StreamIdentifier stream_identifier = 1; - oneof revision_option { - uint64 revision = 2 [jstype = JS_STRING]; - event_store.client.Empty start = 3; - event_store.client.Empty end = 4; - } - } - - message AllOptions { - oneof all_option { - Position position = 1; - event_store.client.Empty start = 2; - event_store.client.Empty end = 3; - } - oneof filter_option { - FilterOptions filter = 4; - event_store.client.Empty no_filter = 5; - } - message FilterOptions { - oneof filter { - Expression stream_identifier = 1; - Expression event_type = 2; - } - oneof window { - uint32 max = 3; - event_store.client.Empty count = 4; - } - uint32 checkpointIntervalMultiplier = 5; - - message Expression { - string regex = 1; - repeated string prefix = 2; - } - } - } - - message Position { - uint64 commit_position = 1 [jstype = JS_STRING]; - uint64 prepare_position = 2 [jstype = JS_STRING]; - } - - message Settings { - bool resolve_links = 1; - uint64 revision = 2 [deprecated = true, jstype = JS_STRING]; - bool extra_statistics = 3; - int32 max_retry_count = 5; - int32 min_checkpoint_count = 7; - int32 max_checkpoint_count = 8; - int32 max_subscriber_count = 9; - int32 live_buffer_size = 10; - int32 read_batch_size = 11; - int32 history_buffer_size = 12; - ConsumerStrategy named_consumer_strategy = 13 [deprecated = true]; - oneof message_timeout { - int64 message_timeout_ticks = 4 [jstype = JS_STRING, deprecated = true]; - int32 message_timeout_ms = 14; - } - oneof checkpoint_after { - int64 checkpoint_after_ticks = 6 [jstype = JS_STRING, deprecated = true]; - int32 checkpoint_after_ms = 15; - } - string consumer_strategy = 16; - } - - enum ConsumerStrategy { - DispatchToSingle = 0; - RoundRobin = 1; - Pinned = 2; - } -} - -message CreateResp { -} - -message UpdateReq { - Options options = 1; - - message Options { - oneof stream_option { - StreamOptions stream = 4 [deprecated = true]; - AllOptions all = 5; - } - event_store.client.StreamIdentifier stream_identifier = 1 [deprecated = true]; - string group_name = 2; - Settings settings = 3; - } - - message StreamOptions { - event_store.client.StreamIdentifier stream_identifier = 1; - oneof revision_option { - uint64 revision = 2 [jstype = JS_STRING]; - event_store.client.Empty start = 3; - event_store.client.Empty end = 4; - } - } - - message AllOptions { - oneof all_option { - Position position = 1; - event_store.client.Empty start = 2; - event_store.client.Empty end = 3; - } - } - - message Position { - uint64 commit_position = 1 [jstype = JS_STRING]; - uint64 prepare_position = 2 [jstype = JS_STRING]; - } - - message Settings { - bool resolve_links = 1; - uint64 revision = 2 [deprecated = true, jstype = JS_STRING]; - bool extra_statistics = 3; - int32 max_retry_count = 5; - int32 min_checkpoint_count = 7; - int32 max_checkpoint_count = 8; - int32 max_subscriber_count = 9; - int32 live_buffer_size = 10; - int32 read_batch_size = 11; - int32 history_buffer_size = 12; - ConsumerStrategy named_consumer_strategy = 13; - oneof message_timeout { - int64 message_timeout_ticks = 4 [jstype = JS_STRING, deprecated = true]; - int32 message_timeout_ms = 14; - } - oneof checkpoint_after { - int64 checkpoint_after_ticks = 6 [jstype = JS_STRING, deprecated = true]; - int32 checkpoint_after_ms = 15; - } - } - - enum ConsumerStrategy { - DispatchToSingle = 0; - RoundRobin = 1; - Pinned = 2; - } -} - -message UpdateResp { -} - -message DeleteReq { - Options options = 1; - - message Options { - oneof stream_option { - event_store.client.StreamIdentifier stream_identifier = 1; - event_store.client.Empty all = 3; - } - - string group_name = 2; - } -} - -message DeleteResp { -} - -message GetInfoReq { - Options options = 1; - - message Options { - oneof stream_option { - event_store.client.StreamIdentifier stream_identifier = 1; - event_store.client.Empty all = 2; - } - - string group_name = 3; - } -} - -message GetInfoResp { - SubscriptionInfo subscription_info = 1; -} - -message SubscriptionInfo { - string event_source = 1; - string group_name = 2; - string status = 3; - repeated ConnectionInfo connections = 4; - int32 average_per_second = 5; - int64 total_items = 6 [jstype = JS_STRING]; - int64 count_since_last_measurement = 7 [jstype = JS_STRING]; - string last_checkpointed_event_position = 8; - string last_known_event_position = 9; - bool resolve_link_tos = 10; - string start_from = 11; - int32 message_timeout_milliseconds = 12; - bool extra_statistics = 13; - int32 max_retry_count = 14; - int32 live_buffer_size = 15; - int32 buffer_size = 16; - int32 read_batch_size = 17; - int32 check_point_after_milliseconds = 18; - int32 min_check_point_count = 19; - int32 max_check_point_count = 20; - int32 read_buffer_count = 21; - int64 live_buffer_count = 22 [jstype = JS_STRING]; - int32 retry_buffer_count = 23; - int32 total_in_flight_messages = 24; - int32 outstanding_messages_count = 25; - string named_consumer_strategy = 26; - int32 max_subscriber_count = 27; - int64 parked_message_count = 28 [jstype = JS_STRING]; - - message ConnectionInfo { - string from = 1; - string username = 2; - int32 average_items_per_second = 3; - int64 total_items = 4 [jstype = JS_STRING]; - int64 count_since_last_measurement = 5 [jstype = JS_STRING]; - repeated Measurement observed_measurements = 6; - int32 available_slots = 7; - int32 in_flight_messages = 8; - string connection_name = 9; - } - - message Measurement { - string key = 1; - int64 value = 2 [jstype = JS_STRING]; - } -} - -message ReplayParkedReq { - Options options = 1; - - message Options { - string group_name = 1; - oneof stream_option { - event_store.client.StreamIdentifier stream_identifier = 2; - event_store.client.Empty all = 3; - } - oneof stop_at_option { - int64 stop_at = 4 [jstype = JS_STRING]; - event_store.client.Empty no_limit = 5; - } - } -} - -message ReplayParkedResp { -} - -message ListReq { - Options options = 1; - - message Options { - oneof list_option { - event_store.client.Empty list_all_subscriptions = 1; - StreamOption list_for_stream = 2; - } - } - message StreamOption { - oneof stream_option { - event_store.client.StreamIdentifier stream = 1; - event_store.client.Empty all = 2; - } - } -} - -message ListResp { - repeated SubscriptionInfo subscriptions = 1; -} +syntax = "proto3"; +package event_store.client.persistent_subscriptions; +option java_package = "com.eventstore.dbclient.proto.persistentsubscriptions"; + +import "shared.proto"; + +service PersistentSubscriptions { + rpc Create (CreateReq) returns (CreateResp); + rpc Update (UpdateReq) returns (UpdateResp); + rpc Delete (DeleteReq) returns (DeleteResp); + rpc Read (stream ReadReq) returns (stream ReadResp); + rpc GetInfo (GetInfoReq) returns (GetInfoResp); + rpc ReplayParked (ReplayParkedReq) returns (ReplayParkedResp); + rpc List (ListReq) returns (ListResp); + rpc RestartSubsystem (event_store.client.Empty) returns (event_store.client.Empty); +} + +message ReadReq { + oneof content { + Options options = 1; + Ack ack = 2; + Nack nack = 3; + } + + message Options { + oneof stream_option { + event_store.client.StreamIdentifier stream_identifier = 1; + event_store.client.Empty all = 5; + } + + string group_name = 2; + int32 buffer_size = 3; + UUIDOption uuid_option = 4; + + message UUIDOption { + oneof content { + event_store.client.Empty structured = 1; + event_store.client.Empty string = 2; + } + } + } + + message Ack { + bytes id = 1; + repeated event_store.client.UUID ids = 2; + } + + message Nack { + bytes id = 1; + repeated event_store.client.UUID ids = 2; + Action action = 3; + string reason = 4; + + enum Action { + Unknown = 0; + Park = 1; + Retry = 2; + Skip = 3; + Stop = 4; + } + } +} + +message ReadResp { + oneof content { + ReadEvent event = 1; + SubscriptionConfirmation subscription_confirmation = 2; + } + message ReadEvent { + RecordedEvent event = 1; + RecordedEvent link = 2; + oneof position { + uint64 commit_position = 3 [jstype = JS_STRING]; + event_store.client.Empty no_position = 4; + } + oneof count { + int32 retry_count = 5; + event_store.client.Empty no_retry_count = 6; + } + message RecordedEvent { + event_store.client.UUID id = 1; + event_store.client.StreamIdentifier stream_identifier = 2; + uint64 stream_revision = 3 [jstype = JS_STRING]; + uint64 prepare_position = 4 [jstype = JS_STRING]; + uint64 commit_position = 5 [jstype = JS_STRING]; + map metadata = 6; + bytes custom_metadata = 7; + bytes data = 8; + } + } + message SubscriptionConfirmation { + string subscription_id = 1; + } +} + +message CreateReq { + Options options = 1; + + message Options { + oneof stream_option { + StreamOptions stream = 4 [deprecated = true]; + AllOptions all = 5; + } + event_store.client.StreamIdentifier stream_identifier = 1; + string group_name = 2; + Settings settings = 3; + } + + message StreamOptions { + option deprecated = true; + event_store.client.StreamIdentifier stream_identifier = 1; + oneof revision_option { + uint64 revision = 2 [jstype = JS_STRING]; + event_store.client.Empty start = 3; + event_store.client.Empty end = 4; + } + } + + message AllOptions { + oneof all_option { + Position position = 1; + event_store.client.Empty start = 2; + event_store.client.Empty end = 3; + } + oneof filter_option { + FilterOptions filter = 4; + event_store.client.Empty no_filter = 5; + } + message FilterOptions { + oneof filter { + Expression stream_identifier = 1; + Expression event_type = 2; + } + oneof window { + uint32 max = 3; + event_store.client.Empty count = 4; + } + uint32 checkpointIntervalMultiplier = 5; + + message Expression { + string regex = 1; + repeated string prefix = 2; + } + } + } + + message Position { + uint64 commit_position = 1 [jstype = JS_STRING]; + uint64 prepare_position = 2 [jstype = JS_STRING]; + } + + message Settings { + bool resolve_links = 1; + uint64 revision = 2 [deprecated = true, jstype = JS_STRING]; + bool extra_statistics = 3; + int32 max_retry_count = 5; + int32 min_checkpoint_count = 7; + int32 max_checkpoint_count = 8; + int32 max_subscriber_count = 9; + int32 live_buffer_size = 10; + int32 read_batch_size = 11; + int32 history_buffer_size = 12; + ConsumerStrategy named_consumer_strategy = 13 [deprecated = true]; + oneof message_timeout { + int64 message_timeout_ticks = 4 [jstype = JS_STRING, deprecated = true]; + int32 message_timeout_ms = 14; + } + oneof checkpoint_after { + int64 checkpoint_after_ticks = 6 [jstype = JS_STRING, deprecated = true]; + int32 checkpoint_after_ms = 15; + } + string consumer_strategy = 16; + } + + enum ConsumerStrategy { + DispatchToSingle = 0; + RoundRobin = 1; + Pinned = 2; + } +} + +message CreateResp { +} + +message UpdateReq { + Options options = 1; + + message Options { + oneof stream_option { + StreamOptions stream = 4 [deprecated = true]; + AllOptions all = 5; + } + event_store.client.StreamIdentifier stream_identifier = 1 [deprecated = true]; + string group_name = 2; + Settings settings = 3; + } + + message StreamOptions { + event_store.client.StreamIdentifier stream_identifier = 1; + oneof revision_option { + uint64 revision = 2 [jstype = JS_STRING]; + event_store.client.Empty start = 3; + event_store.client.Empty end = 4; + } + } + + message AllOptions { + oneof all_option { + Position position = 1; + event_store.client.Empty start = 2; + event_store.client.Empty end = 3; + } + } + + message Position { + uint64 commit_position = 1 [jstype = JS_STRING]; + uint64 prepare_position = 2 [jstype = JS_STRING]; + } + + message Settings { + bool resolve_links = 1; + uint64 revision = 2 [deprecated = true, jstype = JS_STRING]; + bool extra_statistics = 3; + int32 max_retry_count = 5; + int32 min_checkpoint_count = 7; + int32 max_checkpoint_count = 8; + int32 max_subscriber_count = 9; + int32 live_buffer_size = 10; + int32 read_batch_size = 11; + int32 history_buffer_size = 12; + ConsumerStrategy named_consumer_strategy = 13; + oneof message_timeout { + int64 message_timeout_ticks = 4 [jstype = JS_STRING, deprecated = true]; + int32 message_timeout_ms = 14; + } + oneof checkpoint_after { + int64 checkpoint_after_ticks = 6 [jstype = JS_STRING, deprecated = true]; + int32 checkpoint_after_ms = 15; + } + } + + enum ConsumerStrategy { + DispatchToSingle = 0; + RoundRobin = 1; + Pinned = 2; + } +} + +message UpdateResp { +} + +message DeleteReq { + Options options = 1; + + message Options { + oneof stream_option { + event_store.client.StreamIdentifier stream_identifier = 1; + event_store.client.Empty all = 3; + } + + string group_name = 2; + } +} + +message DeleteResp { +} + +message GetInfoReq { + Options options = 1; + + message Options { + oneof stream_option { + event_store.client.StreamIdentifier stream_identifier = 1; + event_store.client.Empty all = 2; + } + + string group_name = 3; + } +} + +message GetInfoResp { + SubscriptionInfo subscription_info = 1; +} + +message SubscriptionInfo { + string event_source = 1; + string group_name = 2; + string status = 3; + repeated ConnectionInfo connections = 4; + int32 average_per_second = 5; + int64 total_items = 6 [jstype = JS_STRING]; + int64 count_since_last_measurement = 7 [jstype = JS_STRING]; + string last_checkpointed_event_position = 8; + string last_known_event_position = 9; + bool resolve_link_tos = 10; + string start_from = 11; + int32 message_timeout_milliseconds = 12; + bool extra_statistics = 13; + int32 max_retry_count = 14; + int32 live_buffer_size = 15; + int32 buffer_size = 16; + int32 read_batch_size = 17; + int32 check_point_after_milliseconds = 18; + int32 min_check_point_count = 19; + int32 max_check_point_count = 20; + int32 read_buffer_count = 21; + int64 live_buffer_count = 22 [jstype = JS_STRING]; + int32 retry_buffer_count = 23; + int32 total_in_flight_messages = 24; + int32 outstanding_messages_count = 25; + string named_consumer_strategy = 26; + int32 max_subscriber_count = 27; + int64 parked_message_count = 28 [jstype = JS_STRING]; + + message ConnectionInfo { + string from = 1; + string username = 2; + int32 average_items_per_second = 3; + int64 total_items = 4 [jstype = JS_STRING]; + int64 count_since_last_measurement = 5 [jstype = JS_STRING]; + repeated Measurement observed_measurements = 6; + int32 available_slots = 7; + int32 in_flight_messages = 8; + string connection_name = 9; + } + + message Measurement { + string key = 1; + int64 value = 2 [jstype = JS_STRING]; + } +} + +message ReplayParkedReq { + Options options = 1; + + message Options { + string group_name = 1; + oneof stream_option { + event_store.client.StreamIdentifier stream_identifier = 2; + event_store.client.Empty all = 3; + } + oneof stop_at_option { + int64 stop_at = 4 [jstype = JS_STRING]; + event_store.client.Empty no_limit = 5; + } + } +} + +message ReplayParkedResp { +} + +message ListReq { + Options options = 1; + + message Options { + oneof list_option { + event_store.client.Empty list_all_subscriptions = 1; + StreamOption list_for_stream = 2; + } + } + message StreamOption { + oneof stream_option { + event_store.client.StreamIdentifier stream = 1; + event_store.client.Empty all = 2; + } + } +} + +message ListResp { + repeated SubscriptionInfo subscriptions = 1; +} diff --git a/packages/db-client/protos/projections.proto b/packages/db-client/protos/kurrentdb/protocols/v1/projections.proto similarity index 95% rename from packages/db-client/protos/projections.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/projections.proto index 325aa98c..9d1be606 100644 --- a/packages/db-client/protos/projections.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/projections.proto @@ -1,176 +1,176 @@ -syntax = "proto3"; -package event_store.client.projections; -option java_package = "com.eventstore.dbclient.proto.projections"; - -import "google/protobuf/struct.proto"; -import "shared.proto"; - -service Projections { - rpc Create (CreateReq) returns (CreateResp); - rpc Update (UpdateReq) returns (UpdateResp); - rpc Delete (DeleteReq) returns (DeleteResp); - rpc Statistics (StatisticsReq) returns (stream StatisticsResp); - rpc Disable (DisableReq) returns (DisableResp); - rpc Enable (EnableReq) returns (EnableResp); - rpc Reset (ResetReq) returns (ResetResp); - rpc State (StateReq) returns (StateResp); - rpc Result (ResultReq) returns (ResultResp); - rpc RestartSubsystem (event_store.client.Empty) returns (event_store.client.Empty); -} - -message CreateReq { - Options options = 1; - - message Options { - oneof mode { - event_store.client.Empty one_time = 1; - Transient transient = 2 [deprecated = true]; - Continuous continuous = 3; - } - string query = 4; - - message Transient { - option deprecated = true; - string name = 1; - } - message Continuous { - string name = 1; - bool emit_enabled = 2; - bool track_emitted_streams = 3; - } - } -} - -message CreateResp { -} - -message UpdateReq { - Options options = 1; - - message Options { - string name = 1; - string query = 2; - oneof emit_option { - bool emit_enabled = 3; - event_store.client.Empty no_emit_options = 4; - } - } -} - -message UpdateResp { -} - -message DeleteReq { - Options options = 1; - - message Options { - string name = 1; - bool delete_emitted_streams = 2; - bool delete_state_stream = 3; - bool delete_checkpoint_stream = 4; - } -} - -message DeleteResp { -} - -message StatisticsReq { - Options options = 1; - message Options { - oneof mode { - string name = 1; - event_store.client.Empty all = 2; - event_store.client.Empty transient = 3 [deprecated = true]; - event_store.client.Empty continuous = 4; - event_store.client.Empty one_time = 5; - } - } -} - -message StatisticsResp { - Details details = 1; - - message Details { - int64 coreProcessingTime = 1 [jstype = JS_STRING]; - int64 version = 2 [jstype = JS_STRING]; - int64 epoch = 3 [jstype = JS_STRING]; - string effectiveName = 4; - int32 writesInProgress = 5; - int32 readsInProgress = 6; - int32 partitionsCached = 7; - string status = 8; - string stateReason = 9; - string name = 10; - string mode = 11; - string position = 12; - float progress = 13; - string lastCheckpoint = 14; - int64 eventsProcessedAfterRestart = 15 [jstype = JS_STRING]; - string checkpointStatus = 16; - int64 bufferedEvents = 17 [jstype = JS_STRING]; - int32 writePendingEventsBeforeCheckpoint = 18; - int32 writePendingEventsAfterCheckpoint = 19; - } -} - -message StateReq { - Options options = 1; - - message Options { - string name = 1; - string partition = 2; - } -} - -message StateResp { - google.protobuf.Value state = 1; -} - -message ResultReq { - Options options = 1; - - message Options { - string name = 1; - string partition = 2; - } -} - -message ResultResp { - google.protobuf.Value result = 1; -} - -message ResetReq { - Options options = 1; - - message Options { - string name = 1; - bool write_checkpoint = 2; - } -} - -message ResetResp { -} - - -message EnableReq { - Options options = 1; - - message Options { - string name = 1; - } -} - -message EnableResp { -} - -message DisableReq { - Options options = 1; - - message Options { - string name = 1; - bool write_checkpoint = 2; - } -} - -message DisableResp { -} +syntax = "proto3"; +package event_store.client.projections; +option java_package = "com.eventstore.dbclient.proto.projections"; + +import "google/protobuf/struct.proto"; +import "shared.proto"; + +service Projections { + rpc Create (CreateReq) returns (CreateResp); + rpc Update (UpdateReq) returns (UpdateResp); + rpc Delete (DeleteReq) returns (DeleteResp); + rpc Statistics (StatisticsReq) returns (stream StatisticsResp); + rpc Disable (DisableReq) returns (DisableResp); + rpc Enable (EnableReq) returns (EnableResp); + rpc Reset (ResetReq) returns (ResetResp); + rpc State (StateReq) returns (StateResp); + rpc Result (ResultReq) returns (ResultResp); + rpc RestartSubsystem (event_store.client.Empty) returns (event_store.client.Empty); +} + +message CreateReq { + Options options = 1; + + message Options { + oneof mode { + event_store.client.Empty one_time = 1; + Transient transient = 2 [deprecated = true]; + Continuous continuous = 3; + } + string query = 4; + + message Transient { + option deprecated = true; + string name = 1; + } + message Continuous { + string name = 1; + bool emit_enabled = 2; + bool track_emitted_streams = 3; + } + } +} + +message CreateResp { +} + +message UpdateReq { + Options options = 1; + + message Options { + string name = 1; + string query = 2; + oneof emit_option { + bool emit_enabled = 3; + event_store.client.Empty no_emit_options = 4; + } + } +} + +message UpdateResp { +} + +message DeleteReq { + Options options = 1; + + message Options { + string name = 1; + bool delete_emitted_streams = 2; + bool delete_state_stream = 3; + bool delete_checkpoint_stream = 4; + } +} + +message DeleteResp { +} + +message StatisticsReq { + Options options = 1; + message Options { + oneof mode { + string name = 1; + event_store.client.Empty all = 2; + event_store.client.Empty transient = 3 [deprecated = true]; + event_store.client.Empty continuous = 4; + event_store.client.Empty one_time = 5; + } + } +} + +message StatisticsResp { + Details details = 1; + + message Details { + int64 coreProcessingTime = 1 [jstype = JS_STRING]; + int64 version = 2 [jstype = JS_STRING]; + int64 epoch = 3 [jstype = JS_STRING]; + string effectiveName = 4; + int32 writesInProgress = 5; + int32 readsInProgress = 6; + int32 partitionsCached = 7; + string status = 8; + string stateReason = 9; + string name = 10; + string mode = 11; + string position = 12; + float progress = 13; + string lastCheckpoint = 14; + int64 eventsProcessedAfterRestart = 15 [jstype = JS_STRING]; + string checkpointStatus = 16; + int64 bufferedEvents = 17 [jstype = JS_STRING]; + int32 writePendingEventsBeforeCheckpoint = 18; + int32 writePendingEventsAfterCheckpoint = 19; + } +} + +message StateReq { + Options options = 1; + + message Options { + string name = 1; + string partition = 2; + } +} + +message StateResp { + google.protobuf.Value state = 1; +} + +message ResultReq { + Options options = 1; + + message Options { + string name = 1; + string partition = 2; + } +} + +message ResultResp { + google.protobuf.Value result = 1; +} + +message ResetReq { + Options options = 1; + + message Options { + string name = 1; + bool write_checkpoint = 2; + } +} + +message ResetResp { +} + + +message EnableReq { + Options options = 1; + + message Options { + string name = 1; + } +} + +message EnableResp { +} + +message DisableReq { + Options options = 1; + + message Options { + string name = 1; + bool write_checkpoint = 2; + } +} + +message DisableResp { +} diff --git a/packages/db-client/protos/serverfeatures.proto b/packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto similarity index 96% rename from packages/db-client/protos/serverfeatures.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto index 70064c16..cba04f2c 100644 --- a/packages/db-client/protos/serverfeatures.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto @@ -1,19 +1,19 @@ -syntax = "proto3"; -package event_store.client.server_features; -option java_package = "com.eventstore.dbclient.proto.serverfeatures"; -import "shared.proto"; - -service ServerFeatures { - rpc GetSupportedMethods (event_store.client.Empty) returns (SupportedMethods); -} - -message SupportedMethods { - repeated SupportedMethod methods = 1; - string event_store_server_version = 2; -} - -message SupportedMethod { - string method_name = 1; - string service_name = 2; - repeated string features = 3; -} +syntax = "proto3"; +package event_store.client.server_features; +option java_package = "com.eventstore.dbclient.proto.serverfeatures"; +import "shared.proto"; + +service ServerFeatures { + rpc GetSupportedMethods (event_store.client.Empty) returns (SupportedMethods); +} + +message SupportedMethods { + repeated SupportedMethod methods = 1; + string event_store_server_version = 2; +} + +message SupportedMethod { + string method_name = 1; + string service_name = 2; + repeated string features = 3; +} diff --git a/packages/db-client/protos/shared.proto b/packages/db-client/protos/kurrentdb/protocols/v1/shared.proto similarity index 95% rename from packages/db-client/protos/shared.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/shared.proto index 5a2f1ddd..3ca758bc 100644 --- a/packages/db-client/protos/shared.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/shared.proto @@ -1,63 +1,63 @@ -syntax = "proto3"; -package event_store.client; -option java_package = "com.eventstore.dbclient.proto.shared"; -import "google/protobuf/empty.proto"; - -message UUID { - oneof value { - Structured structured = 1; - string string = 2; - } - - message Structured { - int64 most_significant_bits = 1 [jstype = JS_STRING]; - int64 least_significant_bits = 2 [jstype = JS_STRING]; - } -} -message Empty { -} - -message StreamIdentifier { - reserved 1 to 2; - bytes stream_name = 3; -} - -message AllStreamPosition { - option deprecated = true; - uint64 commit_position = 1 [jstype = JS_STRING]; - uint64 prepare_position = 2 [jstype = JS_STRING]; -} - -message WrongExpectedVersion { - oneof current_stream_revision_option { - uint64 current_stream_revision = 1 [jstype = JS_STRING]; - google.protobuf.Empty current_no_stream = 2; - } - oneof expected_stream_position_option { - uint64 expected_stream_position = 3 [jstype = JS_STRING]; - google.protobuf.Empty expected_any = 4; - google.protobuf.Empty expected_stream_exists = 5; - google.protobuf.Empty expected_no_stream = 6; - } -} - -message AccessDenied {} - -message StreamDeleted { - StreamIdentifier stream_identifier = 1; -} - -message Timeout {} - -message Unknown {} - -message InvalidTransaction {} - -message MaximumAppendSizeExceeded { - uint32 maxAppendSize = 1; -} - -message BadRequest { - option deprecated = true; - string message = 1; -} +syntax = "proto3"; +package event_store.client; +option java_package = "com.eventstore.dbclient.proto.shared"; +import "google/protobuf/empty.proto"; + +message UUID { + oneof value { + Structured structured = 1; + string string = 2; + } + + message Structured { + int64 most_significant_bits = 1 [jstype = JS_STRING]; + int64 least_significant_bits = 2 [jstype = JS_STRING]; + } +} +message Empty { +} + +message StreamIdentifier { + reserved 1 to 2; + bytes stream_name = 3; +} + +message AllStreamPosition { + option deprecated = true; + uint64 commit_position = 1 [jstype = JS_STRING]; + uint64 prepare_position = 2 [jstype = JS_STRING]; +} + +message WrongExpectedVersion { + oneof current_stream_revision_option { + uint64 current_stream_revision = 1 [jstype = JS_STRING]; + google.protobuf.Empty current_no_stream = 2; + } + oneof expected_stream_position_option { + uint64 expected_stream_position = 3 [jstype = JS_STRING]; + google.protobuf.Empty expected_any = 4; + google.protobuf.Empty expected_stream_exists = 5; + google.protobuf.Empty expected_no_stream = 6; + } +} + +message AccessDenied {} + +message StreamDeleted { + StreamIdentifier stream_identifier = 1; +} + +message Timeout {} + +message Unknown {} + +message InvalidTransaction {} + +message MaximumAppendSizeExceeded { + uint32 maxAppendSize = 1; +} + +message BadRequest { + option deprecated = true; + string message = 1; +} diff --git a/packages/db-client/protos/status.proto b/packages/db-client/protos/kurrentdb/protocols/v1/status.proto similarity index 97% rename from packages/db-client/protos/status.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/status.proto index dd2f58e6..65eced26 100644 --- a/packages/db-client/protos/status.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/status.proto @@ -1,48 +1,48 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.rpc; - -import "google/protobuf/any.proto"; -import "code.proto"; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; -option java_multiple_files = true; -option java_outer_classname = "StatusProto"; -option java_package = "com.google.rpc"; -option objc_class_prefix = "RPC"; - -// The `Status` type defines a logical error model that is suitable for -// different programming environments, including REST APIs and RPC APIs. It is -// used by [gRPC](https://github.com/grpc). Each `Status` message contains -// three pieces of data: error code, error message, and error details. -// -// You can find out more about this error model and how to work with it in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). -message Status { - // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. - google.rpc.Code code = 1; - - // A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. - string message = 2; - - // A list of messages that carry the error details. There is a common set of - // message types for APIs to use. - google.protobuf.Any details = 3; -} +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +import "google/protobuf/any.proto"; +import "code.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; +option java_multiple_files = true; +option java_outer_classname = "StatusProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by [gRPC](https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. +// +// You can find out more about this error model and how to work with it in the +// [API Design Guide](https://cloud.google.com/apis/design/errors). +message Status { + // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. + google.rpc.Code code = 1; + + // A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. + string message = 2; + + // A list of messages that carry the error details. There is a common set of + // message types for APIs to use. + google.protobuf.Any details = 3; +} diff --git a/packages/db-client/protos/streams.proto b/packages/db-client/protos/kurrentdb/protocols/v1/streams.proto similarity index 100% rename from packages/db-client/protos/streams.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/streams.proto diff --git a/packages/db-client/protos/users.proto b/packages/db-client/protos/kurrentdb/protocols/v1/users.proto similarity index 94% rename from packages/db-client/protos/users.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/users.proto index 154f6b0c..6bde1f78 100644 --- a/packages/db-client/protos/users.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/users.proto @@ -1,119 +1,119 @@ -syntax = "proto3"; -package event_store.client.users; -option java_package = "com.eventstore.dbclient.proto.users"; - -service Users { - rpc Create (CreateReq) returns (CreateResp); - rpc Update (UpdateReq) returns (UpdateResp); - rpc Delete (DeleteReq) returns (DeleteResp); - rpc Disable (DisableReq) returns (DisableResp); - rpc Enable (EnableReq) returns (EnableResp); - rpc Details (DetailsReq) returns (stream DetailsResp); - rpc ChangePassword (ChangePasswordReq) returns (ChangePasswordResp); - rpc ResetPassword (ResetPasswordReq) returns (ResetPasswordResp); -} - -message CreateReq { - Options options = 1; - message Options { - string login_name = 1; - string password = 2; - string full_name = 3; - repeated string groups = 4; - } -} - -message CreateResp { - -} - -message UpdateReq { - Options options = 1; - message Options { - string login_name = 1; - string password = 2; - string full_name = 3; - repeated string groups = 4; - } -} - -message UpdateResp { - -} - -message DeleteReq { - Options options = 1; - message Options { - string login_name = 1; - } -} - -message DeleteResp { - -} - -message EnableReq { - Options options = 1; - message Options { - string login_name = 1; - } -} - -message EnableResp { - -} - -message DisableReq { - Options options = 1; - message Options { - string login_name = 1; - } -} - -message DisableResp { -} - -message DetailsReq { - Options options = 1; - message Options { - string login_name = 1; - } -} - -message DetailsResp { - UserDetails user_details = 1; - message UserDetails { - string login_name = 1; - string full_name = 2; - repeated string groups = 3; - DateTime last_updated = 4; - bool disabled = 5; - - message DateTime { - int64 ticks_since_epoch = 1 [jstype = JS_STRING]; - } - } -} - -message ChangePasswordReq { - Options options = 1; - message Options { - string login_name = 1; - string current_password = 2; - string new_password = 3; - } -} - -message ChangePasswordResp { -} - -message ResetPasswordReq { - Options options = 1; - message Options { - string login_name = 1; - string new_password = 2; - } -} - -message ResetPasswordResp { -} +syntax = "proto3"; +package event_store.client.users; +option java_package = "com.eventstore.dbclient.proto.users"; + +service Users { + rpc Create (CreateReq) returns (CreateResp); + rpc Update (UpdateReq) returns (UpdateResp); + rpc Delete (DeleteReq) returns (DeleteResp); + rpc Disable (DisableReq) returns (DisableResp); + rpc Enable (EnableReq) returns (EnableResp); + rpc Details (DetailsReq) returns (stream DetailsResp); + rpc ChangePassword (ChangePasswordReq) returns (ChangePasswordResp); + rpc ResetPassword (ResetPasswordReq) returns (ResetPasswordResp); +} + +message CreateReq { + Options options = 1; + message Options { + string login_name = 1; + string password = 2; + string full_name = 3; + repeated string groups = 4; + } +} + +message CreateResp { + +} + +message UpdateReq { + Options options = 1; + message Options { + string login_name = 1; + string password = 2; + string full_name = 3; + repeated string groups = 4; + } +} + +message UpdateResp { + +} + +message DeleteReq { + Options options = 1; + message Options { + string login_name = 1; + } +} + +message DeleteResp { + +} + +message EnableReq { + Options options = 1; + message Options { + string login_name = 1; + } +} + +message EnableResp { + +} + +message DisableReq { + Options options = 1; + message Options { + string login_name = 1; + } +} + +message DisableResp { +} + +message DetailsReq { + Options options = 1; + message Options { + string login_name = 1; + } +} + +message DetailsResp { + UserDetails user_details = 1; + message UserDetails { + string login_name = 1; + string full_name = 2; + repeated string groups = 3; + DateTime last_updated = 4; + bool disabled = 5; + + message DateTime { + int64 ticks_since_epoch = 1 [jstype = JS_STRING]; + } + } +} + +message ChangePasswordReq { + Options options = 1; + message Options { + string login_name = 1; + string current_password = 2; + string new_password = 3; + } +} + +message ChangePasswordResp { +} + +message ResetPasswordReq { + Options options = 1; + message Options { + string login_name = 1; + string new_password = 2; + } +} + +message ResetPasswordResp { +} diff --git a/packages/db-client/protos/dynamic-value.proto b/packages/db-client/protos/kurrentdb/protocols/v2/dynamic-value.proto similarity index 100% rename from packages/db-client/protos/dynamic-value.proto rename to packages/db-client/protos/kurrentdb/protocols/v2/dynamic-value.proto diff --git a/packages/db-client/protos/streams.v2.proto b/packages/db-client/protos/kurrentdb/protocols/v2/streams.v2.proto similarity index 100% rename from packages/db-client/protos/streams.v2.proto rename to packages/db-client/protos/kurrentdb/protocols/v2/streams.v2.proto From 7de61c2e89818b9e8350ac0008d250d546123989 Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 18 Jul 2025 16:01:07 +0400 Subject: [PATCH 15/18] Rename some proto files --- .../persistentsubscriptions_grpc_pb.d.ts | 160 + .../persistentsubscriptions_grpc_pb.js | 265 + .../generated/persistentsubscriptions_pb.d.ts | 1702 +++ .../generated/persistentsubscriptions_pb.js | 12340 ++++++++++++++++ .../projectionmanagement_grpc_pb.d.ts | 194 + .../generated/projectionmanagement_grpc_pb.js | 332 + .../generated/projectionmanagement_pb.d.ts | 821 + .../generated/projectionmanagement_pb.js | 6065 ++++++++ .../generated/usermanagement_grpc_pb.d.ts | 158 + .../generated/usermanagement_grpc_pb.js | 275 + .../generated/usermanagement_pb.d.ts | 601 + .../db-client/generated/usermanagement_pb.js | 4451 ++++++ .../kurrentdb/protocols/v1/cluster.proto | 149 - .../kurrentdb/protocols/v1/monitoring.proto | 16 - ...nt.proto => persistentsubscriptions.proto} | 0 ...tions.proto => projectionmanagement.proto} | 0 .../v1/{users.proto => usermanagement.proto} | 0 17 files changed, 27364 insertions(+), 165 deletions(-) create mode 100644 packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts create mode 100644 packages/db-client/generated/persistentsubscriptions_grpc_pb.js create mode 100644 packages/db-client/generated/persistentsubscriptions_pb.d.ts create mode 100644 packages/db-client/generated/persistentsubscriptions_pb.js create mode 100644 packages/db-client/generated/projectionmanagement_grpc_pb.d.ts create mode 100644 packages/db-client/generated/projectionmanagement_grpc_pb.js create mode 100644 packages/db-client/generated/projectionmanagement_pb.d.ts create mode 100644 packages/db-client/generated/projectionmanagement_pb.js create mode 100644 packages/db-client/generated/usermanagement_grpc_pb.d.ts create mode 100644 packages/db-client/generated/usermanagement_grpc_pb.js create mode 100644 packages/db-client/generated/usermanagement_pb.d.ts create mode 100644 packages/db-client/generated/usermanagement_pb.js delete mode 100644 packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto delete mode 100644 packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto rename packages/db-client/protos/kurrentdb/protocols/v1/{persistent.proto => persistentsubscriptions.proto} (100%) rename packages/db-client/protos/kurrentdb/protocols/v1/{projections.proto => projectionmanagement.proto} (100%) rename packages/db-client/protos/kurrentdb/protocols/v1/{users.proto => usermanagement.proto} (100%) diff --git a/packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts b/packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts new file mode 100644 index 00000000..2d4fe678 --- /dev/null +++ b/packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts @@ -0,0 +1,160 @@ +// package: event_store.client.persistent_subscriptions +// file: persistentsubscriptions.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as persistentsubscriptions_pb from "./persistentsubscriptions_pb"; +import * as shared_pb from "./shared_pb"; + +interface IPersistentSubscriptionsService extends grpc.ServiceDefinition { + create: IPersistentSubscriptionsService_ICreate; + update: IPersistentSubscriptionsService_IUpdate; + delete: IPersistentSubscriptionsService_IDelete; + read: IPersistentSubscriptionsService_IRead; + getInfo: IPersistentSubscriptionsService_IGetInfo; + replayParked: IPersistentSubscriptionsService_IReplayParked; + list: IPersistentSubscriptionsService_IList; + restartSubsystem: IPersistentSubscriptionsService_IRestartSubsystem; +} + +interface IPersistentSubscriptionsService_ICreate extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IUpdate extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IRead extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read"; + requestStream: true; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IGetInfo extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IReplayParked extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IList extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/List"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IRestartSubsystem extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const PersistentSubscriptionsService: IPersistentSubscriptionsService; + +export interface IPersistentSubscriptionsServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; + read: grpc.handleBidiStreamingCall; + getInfo: grpc.handleUnaryCall; + replayParked: grpc.handleUnaryCall; + list: grpc.handleUnaryCall; + restartSubsystem: grpc.handleUnaryCall; +} + +export interface IPersistentSubscriptionsClient { + create(request: persistentsubscriptions_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + update(request: persistentsubscriptions_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + delete(request: persistentsubscriptions_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + read(): grpc.ClientDuplexStream; + read(options: Partial): grpc.ClientDuplexStream; + read(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + getInfo(request: persistentsubscriptions_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + list(request: persistentsubscriptions_pb.ListReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class PersistentSubscriptionsClient extends grpc.Client implements IPersistentSubscriptionsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public create(request: persistentsubscriptions_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + public update(request: persistentsubscriptions_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public delete(request: persistentsubscriptions_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public read(options?: Partial): grpc.ClientDuplexStream; + public read(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + public getInfo(request: persistentsubscriptions_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + public getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + public getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + public replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + public replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + public replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + public list(request: persistentsubscriptions_pb.ListReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + public list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + public list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/persistentsubscriptions_grpc_pb.js b/packages/db-client/generated/persistentsubscriptions_grpc_pb.js new file mode 100644 index 00000000..23131f4d --- /dev/null +++ b/packages/db-client/generated/persistentsubscriptions_grpc_pb.js @@ -0,0 +1,265 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var persistentsubscriptions_pb = require('./persistentsubscriptions_pb.js'); +var shared_pb = require('./shared_pb.js'); + +function serialize_event_store_client_Empty(arg) { + if (!(arg instanceof shared_pb.Empty)) { + throw new Error('Expected argument of type event_store.client.Empty'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_Empty(buffer_arg) { + return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_CreateReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.CreateReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.CreateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_CreateReq(buffer_arg) { + return persistentsubscriptions_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_CreateResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.CreateResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.CreateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_CreateResp(buffer_arg) { + return persistentsubscriptions_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_DeleteReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.DeleteReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.DeleteReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_DeleteReq(buffer_arg) { + return persistentsubscriptions_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_DeleteResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.DeleteResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.DeleteResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_DeleteResp(buffer_arg) { + return persistentsubscriptions_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_GetInfoReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.GetInfoReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.GetInfoReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_GetInfoReq(buffer_arg) { + return persistentsubscriptions_pb.GetInfoReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_GetInfoResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.GetInfoResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.GetInfoResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_GetInfoResp(buffer_arg) { + return persistentsubscriptions_pb.GetInfoResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_ListReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.ListReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ListReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_ListReq(buffer_arg) { + return persistentsubscriptions_pb.ListReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_ListResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.ListResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ListResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_ListResp(buffer_arg) { + return persistentsubscriptions_pb.ListResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_ReadReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.ReadReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReadReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_ReadReq(buffer_arg) { + return persistentsubscriptions_pb.ReadReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_ReadResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.ReadResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReadResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_ReadResp(buffer_arg) { + return persistentsubscriptions_pb.ReadResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_ReplayParkedReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.ReplayParkedReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReplayParkedReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_ReplayParkedReq(buffer_arg) { + return persistentsubscriptions_pb.ReplayParkedReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_ReplayParkedResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.ReplayParkedResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReplayParkedResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_ReplayParkedResp(buffer_arg) { + return persistentsubscriptions_pb.ReplayParkedResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_UpdateReq(arg) { + if (!(arg instanceof persistentsubscriptions_pb.UpdateReq)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.UpdateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_UpdateReq(buffer_arg) { + return persistentsubscriptions_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_persistent_subscriptions_UpdateResp(arg) { + if (!(arg instanceof persistentsubscriptions_pb.UpdateResp)) { + throw new Error('Expected argument of type event_store.client.persistent_subscriptions.UpdateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_persistent_subscriptions_UpdateResp(buffer_arg) { + return persistentsubscriptions_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { + create: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create', + requestStream: false, + responseStream: false, + requestType: persistentsubscriptions_pb.CreateReq, + responseType: persistentsubscriptions_pb.CreateResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_CreateReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_CreateReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_CreateResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_CreateResp, + }, + update: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update', + requestStream: false, + responseStream: false, + requestType: persistentsubscriptions_pb.UpdateReq, + responseType: persistentsubscriptions_pb.UpdateResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_UpdateReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_UpdateReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_UpdateResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_UpdateResp, + }, + delete: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete', + requestStream: false, + responseStream: false, + requestType: persistentsubscriptions_pb.DeleteReq, + responseType: persistentsubscriptions_pb.DeleteResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_DeleteReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_DeleteReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_DeleteResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_DeleteResp, + }, + read: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read', + requestStream: true, + responseStream: true, + requestType: persistentsubscriptions_pb.ReadReq, + responseType: persistentsubscriptions_pb.ReadResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_ReadReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ReadReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_ReadResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_ReadResp, + }, + getInfo: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo', + requestStream: false, + responseStream: false, + requestType: persistentsubscriptions_pb.GetInfoReq, + responseType: persistentsubscriptions_pb.GetInfoResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_GetInfoReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_GetInfoReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_GetInfoResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_GetInfoResp, + }, + replayParked: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked', + requestStream: false, + responseStream: false, + requestType: persistentsubscriptions_pb.ReplayParkedReq, + responseType: persistentsubscriptions_pb.ReplayParkedResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_ReplayParkedReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ReplayParkedReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_ReplayParkedResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_ReplayParkedResp, + }, + list: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/List', + requestStream: false, + responseStream: false, + requestType: persistentsubscriptions_pb.ListReq, + responseType: persistentsubscriptions_pb.ListResp, + requestSerialize: serialize_event_store_client_persistent_subscriptions_ListReq, + requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ListReq, + responseSerialize: serialize_event_store_client_persistent_subscriptions_ListResp, + responseDeserialize: deserialize_event_store_client_persistent_subscriptions_ListResp, + }, + restartSubsystem: { + path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem', + requestStream: false, + responseStream: false, + requestType: shared_pb.Empty, + responseType: shared_pb.Empty, + requestSerialize: serialize_event_store_client_Empty, + requestDeserialize: deserialize_event_store_client_Empty, + responseSerialize: serialize_event_store_client_Empty, + responseDeserialize: deserialize_event_store_client_Empty, + }, +}; + +exports.PersistentSubscriptionsClient = grpc.makeGenericClientConstructor(PersistentSubscriptionsService, 'PersistentSubscriptions'); diff --git a/packages/db-client/generated/persistentsubscriptions_pb.d.ts b/packages/db-client/generated/persistentsubscriptions_pb.d.ts new file mode 100644 index 00000000..28d5df92 --- /dev/null +++ b/packages/db-client/generated/persistentsubscriptions_pb.d.ts @@ -0,0 +1,1702 @@ +// package: event_store.client.persistent_subscriptions +// file: persistentsubscriptions.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as shared_pb from "./shared_pb"; + +export class ReadReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ReadReq.Options | undefined; + setOptions(value?: ReadReq.Options): ReadReq; + + hasAck(): boolean; + clearAck(): void; + getAck(): ReadReq.Ack | undefined; + setAck(value?: ReadReq.Ack): ReadReq; + + hasNack(): boolean; + clearNack(): void; + getNack(): ReadReq.Nack | undefined; + setNack(value?: ReadReq.Nack): ReadReq; + + getContentCase(): ReadReq.ContentCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadReq.AsObject; + static toObject(includeInstance: boolean, msg: ReadReq): ReadReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadReq; + static deserializeBinaryFromReader(message: ReadReq, reader: jspb.BinaryReader): ReadReq; +} + +export namespace ReadReq { + export type AsObject = { + options?: ReadReq.Options.AsObject, + ack?: ReadReq.Ack.AsObject, + nack?: ReadReq.Nack.AsObject, + } + + + export class Options extends jspb.Message { + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): shared_pb.Empty | undefined; + setAll(value?: shared_pb.Empty): Options; + getGroupName(): string; + setGroupName(value: string): Options; + getBufferSize(): number; + setBufferSize(value: number): Options; + + hasUuidOption(): boolean; + clearUuidOption(): void; + getUuidOption(): ReadReq.Options.UUIDOption | undefined; + setUuidOption(value?: ReadReq.Options.UUIDOption): Options; + + getStreamOptionCase(): Options.StreamOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + all?: shared_pb.Empty.AsObject, + groupName: string, + bufferSize: number, + uuidOption?: ReadReq.Options.UUIDOption.AsObject, + } + + + export class UUIDOption extends jspb.Message { + + hasStructured(): boolean; + clearStructured(): void; + getStructured(): shared_pb.Empty | undefined; + setStructured(value?: shared_pb.Empty): UUIDOption; + + hasString(): boolean; + clearString(): void; + getString(): shared_pb.Empty | undefined; + setString(value?: shared_pb.Empty): UUIDOption; + + getContentCase(): UUIDOption.ContentCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UUIDOption.AsObject; + static toObject(includeInstance: boolean, msg: UUIDOption): UUIDOption.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UUIDOption, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UUIDOption; + static deserializeBinaryFromReader(message: UUIDOption, reader: jspb.BinaryReader): UUIDOption; + } + + export namespace UUIDOption { + export type AsObject = { + structured?: shared_pb.Empty.AsObject, + string?: shared_pb.Empty.AsObject, + } + + export enum ContentCase { + CONTENT_NOT_SET = 0, + STRUCTURED = 1, + STRING = 2, + } + + } + + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM_IDENTIFIER = 1, + ALL = 5, + } + + } + + export class Ack extends jspb.Message { + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): Ack; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): Ack; + addIds(value?: shared_pb.UUID, index?: number): shared_pb.UUID; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Ack.AsObject; + static toObject(includeInstance: boolean, msg: Ack): Ack.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Ack, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Ack; + static deserializeBinaryFromReader(message: Ack, reader: jspb.BinaryReader): Ack; + } + + export namespace Ack { + export type AsObject = { + id: Uint8Array | string, + idsList: Array, + } + } + + export class Nack extends jspb.Message { + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): Nack; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): Nack; + addIds(value?: shared_pb.UUID, index?: number): shared_pb.UUID; + getAction(): ReadReq.Nack.Action; + setAction(value: ReadReq.Nack.Action): Nack; + getReason(): string; + setReason(value: string): Nack; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Nack.AsObject; + static toObject(includeInstance: boolean, msg: Nack): Nack.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Nack, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Nack; + static deserializeBinaryFromReader(message: Nack, reader: jspb.BinaryReader): Nack; + } + + export namespace Nack { + export type AsObject = { + id: Uint8Array | string, + idsList: Array, + action: ReadReq.Nack.Action, + reason: string, + } + + export enum Action { + UNKNOWN = 0, + PARK = 1, + RETRY = 2, + SKIP = 3, + STOP = 4, + } + + } + + + export enum ContentCase { + CONTENT_NOT_SET = 0, + OPTIONS = 1, + ACK = 2, + NACK = 3, + } + +} + +export class ReadResp extends jspb.Message { + + hasEvent(): boolean; + clearEvent(): void; + getEvent(): ReadResp.ReadEvent | undefined; + setEvent(value?: ReadResp.ReadEvent): ReadResp; + + hasSubscriptionConfirmation(): boolean; + clearSubscriptionConfirmation(): void; + getSubscriptionConfirmation(): ReadResp.SubscriptionConfirmation | undefined; + setSubscriptionConfirmation(value?: ReadResp.SubscriptionConfirmation): ReadResp; + + getContentCase(): ReadResp.ContentCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadResp.AsObject; + static toObject(includeInstance: boolean, msg: ReadResp): ReadResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadResp; + static deserializeBinaryFromReader(message: ReadResp, reader: jspb.BinaryReader): ReadResp; +} + +export namespace ReadResp { + export type AsObject = { + event?: ReadResp.ReadEvent.AsObject, + subscriptionConfirmation?: ReadResp.SubscriptionConfirmation.AsObject, + } + + + export class ReadEvent extends jspb.Message { + + hasEvent(): boolean; + clearEvent(): void; + getEvent(): ReadResp.ReadEvent.RecordedEvent | undefined; + setEvent(value?: ReadResp.ReadEvent.RecordedEvent): ReadEvent; + + hasLink(): boolean; + clearLink(): void; + getLink(): ReadResp.ReadEvent.RecordedEvent | undefined; + setLink(value?: ReadResp.ReadEvent.RecordedEvent): ReadEvent; + + hasCommitPosition(): boolean; + clearCommitPosition(): void; + getCommitPosition(): string; + setCommitPosition(value: string): ReadEvent; + + hasNoPosition(): boolean; + clearNoPosition(): void; + getNoPosition(): shared_pb.Empty | undefined; + setNoPosition(value?: shared_pb.Empty): ReadEvent; + + hasRetryCount(): boolean; + clearRetryCount(): void; + getRetryCount(): number; + setRetryCount(value: number): ReadEvent; + + hasNoRetryCount(): boolean; + clearNoRetryCount(): void; + getNoRetryCount(): shared_pb.Empty | undefined; + setNoRetryCount(value?: shared_pb.Empty): ReadEvent; + + getPositionCase(): ReadEvent.PositionCase; + getCountCase(): ReadEvent.CountCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadEvent.AsObject; + static toObject(includeInstance: boolean, msg: ReadEvent): ReadEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadEvent; + static deserializeBinaryFromReader(message: ReadEvent, reader: jspb.BinaryReader): ReadEvent; + } + + export namespace ReadEvent { + export type AsObject = { + event?: ReadResp.ReadEvent.RecordedEvent.AsObject, + link?: ReadResp.ReadEvent.RecordedEvent.AsObject, + commitPosition: string, + noPosition?: shared_pb.Empty.AsObject, + retryCount: number, + noRetryCount?: shared_pb.Empty.AsObject, + } + + + export class RecordedEvent extends jspb.Message { + + hasId(): boolean; + clearId(): void; + getId(): shared_pb.UUID | undefined; + setId(value?: shared_pb.UUID): RecordedEvent; + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): RecordedEvent; + getStreamRevision(): string; + setStreamRevision(value: string): RecordedEvent; + getPreparePosition(): string; + setPreparePosition(value: string): RecordedEvent; + getCommitPosition(): string; + setCommitPosition(value: string): RecordedEvent; + + getMetadataMap(): jspb.Map; + clearMetadataMap(): void; + getCustomMetadata(): Uint8Array | string; + getCustomMetadata_asU8(): Uint8Array; + getCustomMetadata_asB64(): string; + setCustomMetadata(value: Uint8Array | string): RecordedEvent; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): RecordedEvent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RecordedEvent.AsObject; + static toObject(includeInstance: boolean, msg: RecordedEvent): RecordedEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RecordedEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RecordedEvent; + static deserializeBinaryFromReader(message: RecordedEvent, reader: jspb.BinaryReader): RecordedEvent; + } + + export namespace RecordedEvent { + export type AsObject = { + id?: shared_pb.UUID.AsObject, + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamRevision: string, + preparePosition: string, + commitPosition: string, + + metadataMap: Array<[string, string]>, + customMetadata: Uint8Array | string, + data: Uint8Array | string, + } + } + + + export enum PositionCase { + POSITION_NOT_SET = 0, + COMMIT_POSITION = 3, + NO_POSITION = 4, + } + + export enum CountCase { + COUNT_NOT_SET = 0, + RETRY_COUNT = 5, + NO_RETRY_COUNT = 6, + } + + } + + export class SubscriptionConfirmation extends jspb.Message { + getSubscriptionId(): string; + setSubscriptionId(value: string): SubscriptionConfirmation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscriptionConfirmation.AsObject; + static toObject(includeInstance: boolean, msg: SubscriptionConfirmation): SubscriptionConfirmation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscriptionConfirmation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscriptionConfirmation; + static deserializeBinaryFromReader(message: SubscriptionConfirmation, reader: jspb.BinaryReader): SubscriptionConfirmation; + } + + export namespace SubscriptionConfirmation { + export type AsObject = { + subscriptionId: string, + } + } + + + export enum ContentCase { + CONTENT_NOT_SET = 0, + EVENT = 1, + SUBSCRIPTION_CONFIRMATION = 2, + } + +} + +export class CreateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): CreateReq.Options | undefined; + setOptions(value?: CreateReq.Options): CreateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateReq.AsObject; + static toObject(includeInstance: boolean, msg: CreateReq): CreateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateReq; + static deserializeBinaryFromReader(message: CreateReq, reader: jspb.BinaryReader): CreateReq; +} + +export namespace CreateReq { + export type AsObject = { + options?: CreateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasStream(): boolean; + clearStream(): void; + getStream(): CreateReq.StreamOptions | undefined; + setStream(value?: CreateReq.StreamOptions): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): CreateReq.AllOptions | undefined; + setAll(value?: CreateReq.AllOptions): Options; + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getGroupName(): string; + setGroupName(value: string): Options; + + hasSettings(): boolean; + clearSettings(): void; + getSettings(): CreateReq.Settings | undefined; + setSettings(value?: CreateReq.Settings): Options; + + getStreamOptionCase(): Options.StreamOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + stream?: CreateReq.StreamOptions.AsObject, + all?: CreateReq.AllOptions.AsObject, + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + groupName: string, + settings?: CreateReq.Settings.AsObject, + } + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM = 4, + ALL = 5, + } + + } + + export class StreamOptions extends jspb.Message { + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; + + hasRevision(): boolean; + clearRevision(): void; + getRevision(): string; + setRevision(value: string): StreamOptions; + + hasStart(): boolean; + clearStart(): void; + getStart(): shared_pb.Empty | undefined; + setStart(value?: shared_pb.Empty): StreamOptions; + + hasEnd(): boolean; + clearEnd(): void; + getEnd(): shared_pb.Empty | undefined; + setEnd(value?: shared_pb.Empty): StreamOptions; + + getRevisionOptionCase(): StreamOptions.RevisionOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamOptions.AsObject; + static toObject(includeInstance: boolean, msg: StreamOptions): StreamOptions.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamOptions, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamOptions; + static deserializeBinaryFromReader(message: StreamOptions, reader: jspb.BinaryReader): StreamOptions; + } + + export namespace StreamOptions { + export type AsObject = { + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + revision: string, + start?: shared_pb.Empty.AsObject, + end?: shared_pb.Empty.AsObject, + } + + export enum RevisionOptionCase { + REVISION_OPTION_NOT_SET = 0, + REVISION = 2, + START = 3, + END = 4, + } + + } + + export class AllOptions extends jspb.Message { + + hasPosition(): boolean; + clearPosition(): void; + getPosition(): CreateReq.Position | undefined; + setPosition(value?: CreateReq.Position): AllOptions; + + hasStart(): boolean; + clearStart(): void; + getStart(): shared_pb.Empty | undefined; + setStart(value?: shared_pb.Empty): AllOptions; + + hasEnd(): boolean; + clearEnd(): void; + getEnd(): shared_pb.Empty | undefined; + setEnd(value?: shared_pb.Empty): AllOptions; + + hasFilter(): boolean; + clearFilter(): void; + getFilter(): CreateReq.AllOptions.FilterOptions | undefined; + setFilter(value?: CreateReq.AllOptions.FilterOptions): AllOptions; + + hasNoFilter(): boolean; + clearNoFilter(): void; + getNoFilter(): shared_pb.Empty | undefined; + setNoFilter(value?: shared_pb.Empty): AllOptions; + + getAllOptionCase(): AllOptions.AllOptionCase; + getFilterOptionCase(): AllOptions.FilterOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AllOptions.AsObject; + static toObject(includeInstance: boolean, msg: AllOptions): AllOptions.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AllOptions, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AllOptions; + static deserializeBinaryFromReader(message: AllOptions, reader: jspb.BinaryReader): AllOptions; + } + + export namespace AllOptions { + export type AsObject = { + position?: CreateReq.Position.AsObject, + start?: shared_pb.Empty.AsObject, + end?: shared_pb.Empty.AsObject, + filter?: CreateReq.AllOptions.FilterOptions.AsObject, + noFilter?: shared_pb.Empty.AsObject, + } + + + export class FilterOptions extends jspb.Message { + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): CreateReq.AllOptions.FilterOptions.Expression | undefined; + setStreamIdentifier(value?: CreateReq.AllOptions.FilterOptions.Expression): FilterOptions; + + hasEventType(): boolean; + clearEventType(): void; + getEventType(): CreateReq.AllOptions.FilterOptions.Expression | undefined; + setEventType(value?: CreateReq.AllOptions.FilterOptions.Expression): FilterOptions; + + hasMax(): boolean; + clearMax(): void; + getMax(): number; + setMax(value: number): FilterOptions; + + hasCount(): boolean; + clearCount(): void; + getCount(): shared_pb.Empty | undefined; + setCount(value?: shared_pb.Empty): FilterOptions; + getCheckpointintervalmultiplier(): number; + setCheckpointintervalmultiplier(value: number): FilterOptions; + + getFilterCase(): FilterOptions.FilterCase; + getWindowCase(): FilterOptions.WindowCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FilterOptions.AsObject; + static toObject(includeInstance: boolean, msg: FilterOptions): FilterOptions.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FilterOptions, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FilterOptions; + static deserializeBinaryFromReader(message: FilterOptions, reader: jspb.BinaryReader): FilterOptions; + } + + export namespace FilterOptions { + export type AsObject = { + streamIdentifier?: CreateReq.AllOptions.FilterOptions.Expression.AsObject, + eventType?: CreateReq.AllOptions.FilterOptions.Expression.AsObject, + max: number, + count?: shared_pb.Empty.AsObject, + checkpointintervalmultiplier: number, + } + + + export class Expression extends jspb.Message { + getRegex(): string; + setRegex(value: string): Expression; + clearPrefixList(): void; + getPrefixList(): Array; + setPrefixList(value: Array): Expression; + addPrefix(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Expression.AsObject; + static toObject(includeInstance: boolean, msg: Expression): Expression.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Expression, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Expression; + static deserializeBinaryFromReader(message: Expression, reader: jspb.BinaryReader): Expression; + } + + export namespace Expression { + export type AsObject = { + regex: string, + prefixList: Array, + } + } + + + export enum FilterCase { + FILTER_NOT_SET = 0, + STREAM_IDENTIFIER = 1, + EVENT_TYPE = 2, + } + + export enum WindowCase { + WINDOW_NOT_SET = 0, + MAX = 3, + COUNT = 4, + } + + } + + + export enum AllOptionCase { + ALL_OPTION_NOT_SET = 0, + POSITION = 1, + START = 2, + END = 3, + } + + export enum FilterOptionCase { + FILTER_OPTION_NOT_SET = 0, + FILTER = 4, + NO_FILTER = 5, + } + + } + + export class Position extends jspb.Message { + getCommitPosition(): string; + setCommitPosition(value: string): Position; + getPreparePosition(): string; + setPreparePosition(value: string): Position; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Position.AsObject; + static toObject(includeInstance: boolean, msg: Position): Position.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Position, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Position; + static deserializeBinaryFromReader(message: Position, reader: jspb.BinaryReader): Position; + } + + export namespace Position { + export type AsObject = { + commitPosition: string, + preparePosition: string, + } + } + + export class Settings extends jspb.Message { + getResolveLinks(): boolean; + setResolveLinks(value: boolean): Settings; + getRevision(): string; + setRevision(value: string): Settings; + getExtraStatistics(): boolean; + setExtraStatistics(value: boolean): Settings; + getMaxRetryCount(): number; + setMaxRetryCount(value: number): Settings; + getMinCheckpointCount(): number; + setMinCheckpointCount(value: number): Settings; + getMaxCheckpointCount(): number; + setMaxCheckpointCount(value: number): Settings; + getMaxSubscriberCount(): number; + setMaxSubscriberCount(value: number): Settings; + getLiveBufferSize(): number; + setLiveBufferSize(value: number): Settings; + getReadBatchSize(): number; + setReadBatchSize(value: number): Settings; + getHistoryBufferSize(): number; + setHistoryBufferSize(value: number): Settings; + getNamedConsumerStrategy(): CreateReq.ConsumerStrategy; + setNamedConsumerStrategy(value: CreateReq.ConsumerStrategy): Settings; + + hasMessageTimeoutTicks(): boolean; + clearMessageTimeoutTicks(): void; + getMessageTimeoutTicks(): string; + setMessageTimeoutTicks(value: string): Settings; + + hasMessageTimeoutMs(): boolean; + clearMessageTimeoutMs(): void; + getMessageTimeoutMs(): number; + setMessageTimeoutMs(value: number): Settings; + + hasCheckpointAfterTicks(): boolean; + clearCheckpointAfterTicks(): void; + getCheckpointAfterTicks(): string; + setCheckpointAfterTicks(value: string): Settings; + + hasCheckpointAfterMs(): boolean; + clearCheckpointAfterMs(): void; + getCheckpointAfterMs(): number; + setCheckpointAfterMs(value: number): Settings; + getConsumerStrategy(): string; + setConsumerStrategy(value: string): Settings; + + getMessageTimeoutCase(): Settings.MessageTimeoutCase; + getCheckpointAfterCase(): Settings.CheckpointAfterCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Settings.AsObject; + static toObject(includeInstance: boolean, msg: Settings): Settings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Settings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Settings; + static deserializeBinaryFromReader(message: Settings, reader: jspb.BinaryReader): Settings; + } + + export namespace Settings { + export type AsObject = { + resolveLinks: boolean, + revision: string, + extraStatistics: boolean, + maxRetryCount: number, + minCheckpointCount: number, + maxCheckpointCount: number, + maxSubscriberCount: number, + liveBufferSize: number, + readBatchSize: number, + historyBufferSize: number, + namedConsumerStrategy: CreateReq.ConsumerStrategy, + messageTimeoutTicks: string, + messageTimeoutMs: number, + checkpointAfterTicks: string, + checkpointAfterMs: number, + consumerStrategy: string, + } + + export enum MessageTimeoutCase { + MESSAGE_TIMEOUT_NOT_SET = 0, + MESSAGE_TIMEOUT_TICKS = 4, + MESSAGE_TIMEOUT_MS = 14, + } + + export enum CheckpointAfterCase { + CHECKPOINT_AFTER_NOT_SET = 0, + CHECKPOINT_AFTER_TICKS = 6, + CHECKPOINT_AFTER_MS = 15, + } + + } + + + export enum ConsumerStrategy { + DISPATCHTOSINGLE = 0, + ROUNDROBIN = 1, + PINNED = 2, + } + +} + +export class CreateResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateResp.AsObject; + static toObject(includeInstance: boolean, msg: CreateResp): CreateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateResp; + static deserializeBinaryFromReader(message: CreateResp, reader: jspb.BinaryReader): CreateResp; +} + +export namespace CreateResp { + export type AsObject = { + } +} + +export class UpdateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): UpdateReq.Options | undefined; + setOptions(value?: UpdateReq.Options): UpdateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateReq.AsObject; + static toObject(includeInstance: boolean, msg: UpdateReq): UpdateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateReq; + static deserializeBinaryFromReader(message: UpdateReq, reader: jspb.BinaryReader): UpdateReq; +} + +export namespace UpdateReq { + export type AsObject = { + options?: UpdateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasStream(): boolean; + clearStream(): void; + getStream(): UpdateReq.StreamOptions | undefined; + setStream(value?: UpdateReq.StreamOptions): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): UpdateReq.AllOptions | undefined; + setAll(value?: UpdateReq.AllOptions): Options; + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getGroupName(): string; + setGroupName(value: string): Options; + + hasSettings(): boolean; + clearSettings(): void; + getSettings(): UpdateReq.Settings | undefined; + setSettings(value?: UpdateReq.Settings): Options; + + getStreamOptionCase(): Options.StreamOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + stream?: UpdateReq.StreamOptions.AsObject, + all?: UpdateReq.AllOptions.AsObject, + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + groupName: string, + settings?: UpdateReq.Settings.AsObject, + } + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM = 4, + ALL = 5, + } + + } + + export class StreamOptions extends jspb.Message { + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; + + hasRevision(): boolean; + clearRevision(): void; + getRevision(): string; + setRevision(value: string): StreamOptions; + + hasStart(): boolean; + clearStart(): void; + getStart(): shared_pb.Empty | undefined; + setStart(value?: shared_pb.Empty): StreamOptions; + + hasEnd(): boolean; + clearEnd(): void; + getEnd(): shared_pb.Empty | undefined; + setEnd(value?: shared_pb.Empty): StreamOptions; + + getRevisionOptionCase(): StreamOptions.RevisionOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamOptions.AsObject; + static toObject(includeInstance: boolean, msg: StreamOptions): StreamOptions.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamOptions, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamOptions; + static deserializeBinaryFromReader(message: StreamOptions, reader: jspb.BinaryReader): StreamOptions; + } + + export namespace StreamOptions { + export type AsObject = { + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + revision: string, + start?: shared_pb.Empty.AsObject, + end?: shared_pb.Empty.AsObject, + } + + export enum RevisionOptionCase { + REVISION_OPTION_NOT_SET = 0, + REVISION = 2, + START = 3, + END = 4, + } + + } + + export class AllOptions extends jspb.Message { + + hasPosition(): boolean; + clearPosition(): void; + getPosition(): UpdateReq.Position | undefined; + setPosition(value?: UpdateReq.Position): AllOptions; + + hasStart(): boolean; + clearStart(): void; + getStart(): shared_pb.Empty | undefined; + setStart(value?: shared_pb.Empty): AllOptions; + + hasEnd(): boolean; + clearEnd(): void; + getEnd(): shared_pb.Empty | undefined; + setEnd(value?: shared_pb.Empty): AllOptions; + + getAllOptionCase(): AllOptions.AllOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AllOptions.AsObject; + static toObject(includeInstance: boolean, msg: AllOptions): AllOptions.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AllOptions, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AllOptions; + static deserializeBinaryFromReader(message: AllOptions, reader: jspb.BinaryReader): AllOptions; + } + + export namespace AllOptions { + export type AsObject = { + position?: UpdateReq.Position.AsObject, + start?: shared_pb.Empty.AsObject, + end?: shared_pb.Empty.AsObject, + } + + export enum AllOptionCase { + ALL_OPTION_NOT_SET = 0, + POSITION = 1, + START = 2, + END = 3, + } + + } + + export class Position extends jspb.Message { + getCommitPosition(): string; + setCommitPosition(value: string): Position; + getPreparePosition(): string; + setPreparePosition(value: string): Position; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Position.AsObject; + static toObject(includeInstance: boolean, msg: Position): Position.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Position, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Position; + static deserializeBinaryFromReader(message: Position, reader: jspb.BinaryReader): Position; + } + + export namespace Position { + export type AsObject = { + commitPosition: string, + preparePosition: string, + } + } + + export class Settings extends jspb.Message { + getResolveLinks(): boolean; + setResolveLinks(value: boolean): Settings; + getRevision(): string; + setRevision(value: string): Settings; + getExtraStatistics(): boolean; + setExtraStatistics(value: boolean): Settings; + getMaxRetryCount(): number; + setMaxRetryCount(value: number): Settings; + getMinCheckpointCount(): number; + setMinCheckpointCount(value: number): Settings; + getMaxCheckpointCount(): number; + setMaxCheckpointCount(value: number): Settings; + getMaxSubscriberCount(): number; + setMaxSubscriberCount(value: number): Settings; + getLiveBufferSize(): number; + setLiveBufferSize(value: number): Settings; + getReadBatchSize(): number; + setReadBatchSize(value: number): Settings; + getHistoryBufferSize(): number; + setHistoryBufferSize(value: number): Settings; + getNamedConsumerStrategy(): UpdateReq.ConsumerStrategy; + setNamedConsumerStrategy(value: UpdateReq.ConsumerStrategy): Settings; + + hasMessageTimeoutTicks(): boolean; + clearMessageTimeoutTicks(): void; + getMessageTimeoutTicks(): string; + setMessageTimeoutTicks(value: string): Settings; + + hasMessageTimeoutMs(): boolean; + clearMessageTimeoutMs(): void; + getMessageTimeoutMs(): number; + setMessageTimeoutMs(value: number): Settings; + + hasCheckpointAfterTicks(): boolean; + clearCheckpointAfterTicks(): void; + getCheckpointAfterTicks(): string; + setCheckpointAfterTicks(value: string): Settings; + + hasCheckpointAfterMs(): boolean; + clearCheckpointAfterMs(): void; + getCheckpointAfterMs(): number; + setCheckpointAfterMs(value: number): Settings; + + getMessageTimeoutCase(): Settings.MessageTimeoutCase; + getCheckpointAfterCase(): Settings.CheckpointAfterCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Settings.AsObject; + static toObject(includeInstance: boolean, msg: Settings): Settings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Settings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Settings; + static deserializeBinaryFromReader(message: Settings, reader: jspb.BinaryReader): Settings; + } + + export namespace Settings { + export type AsObject = { + resolveLinks: boolean, + revision: string, + extraStatistics: boolean, + maxRetryCount: number, + minCheckpointCount: number, + maxCheckpointCount: number, + maxSubscriberCount: number, + liveBufferSize: number, + readBatchSize: number, + historyBufferSize: number, + namedConsumerStrategy: UpdateReq.ConsumerStrategy, + messageTimeoutTicks: string, + messageTimeoutMs: number, + checkpointAfterTicks: string, + checkpointAfterMs: number, + } + + export enum MessageTimeoutCase { + MESSAGE_TIMEOUT_NOT_SET = 0, + MESSAGE_TIMEOUT_TICKS = 4, + MESSAGE_TIMEOUT_MS = 14, + } + + export enum CheckpointAfterCase { + CHECKPOINT_AFTER_NOT_SET = 0, + CHECKPOINT_AFTER_TICKS = 6, + CHECKPOINT_AFTER_MS = 15, + } + + } + + + export enum ConsumerStrategy { + DISPATCHTOSINGLE = 0, + ROUNDROBIN = 1, + PINNED = 2, + } + +} + +export class UpdateResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateResp.AsObject; + static toObject(includeInstance: boolean, msg: UpdateResp): UpdateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateResp; + static deserializeBinaryFromReader(message: UpdateResp, reader: jspb.BinaryReader): UpdateResp; +} + +export namespace UpdateResp { + export type AsObject = { + } +} + +export class DeleteReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): DeleteReq.Options | undefined; + setOptions(value?: DeleteReq.Options): DeleteReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteReq.AsObject; + static toObject(includeInstance: boolean, msg: DeleteReq): DeleteReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteReq; + static deserializeBinaryFromReader(message: DeleteReq, reader: jspb.BinaryReader): DeleteReq; +} + +export namespace DeleteReq { + export type AsObject = { + options?: DeleteReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): shared_pb.Empty | undefined; + setAll(value?: shared_pb.Empty): Options; + getGroupName(): string; + setGroupName(value: string): Options; + + getStreamOptionCase(): Options.StreamOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + all?: shared_pb.Empty.AsObject, + groupName: string, + } + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM_IDENTIFIER = 1, + ALL = 3, + } + + } + +} + +export class DeleteResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteResp.AsObject; + static toObject(includeInstance: boolean, msg: DeleteResp): DeleteResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteResp; + static deserializeBinaryFromReader(message: DeleteResp, reader: jspb.BinaryReader): DeleteResp; +} + +export namespace DeleteResp { + export type AsObject = { + } +} + +export class GetInfoReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): GetInfoReq.Options | undefined; + setOptions(value?: GetInfoReq.Options): GetInfoReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetInfoReq.AsObject; + static toObject(includeInstance: boolean, msg: GetInfoReq): GetInfoReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetInfoReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInfoReq; + static deserializeBinaryFromReader(message: GetInfoReq, reader: jspb.BinaryReader): GetInfoReq; +} + +export namespace GetInfoReq { + export type AsObject = { + options?: GetInfoReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): shared_pb.Empty | undefined; + setAll(value?: shared_pb.Empty): Options; + getGroupName(): string; + setGroupName(value: string): Options; + + getStreamOptionCase(): Options.StreamOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + all?: shared_pb.Empty.AsObject, + groupName: string, + } + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM_IDENTIFIER = 1, + ALL = 2, + } + + } + +} + +export class GetInfoResp extends jspb.Message { + + hasSubscriptionInfo(): boolean; + clearSubscriptionInfo(): void; + getSubscriptionInfo(): SubscriptionInfo | undefined; + setSubscriptionInfo(value?: SubscriptionInfo): GetInfoResp; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetInfoResp.AsObject; + static toObject(includeInstance: boolean, msg: GetInfoResp): GetInfoResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetInfoResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInfoResp; + static deserializeBinaryFromReader(message: GetInfoResp, reader: jspb.BinaryReader): GetInfoResp; +} + +export namespace GetInfoResp { + export type AsObject = { + subscriptionInfo?: SubscriptionInfo.AsObject, + } +} + +export class SubscriptionInfo extends jspb.Message { + getEventSource(): string; + setEventSource(value: string): SubscriptionInfo; + getGroupName(): string; + setGroupName(value: string): SubscriptionInfo; + getStatus(): string; + setStatus(value: string): SubscriptionInfo; + clearConnectionsList(): void; + getConnectionsList(): Array; + setConnectionsList(value: Array): SubscriptionInfo; + addConnections(value?: SubscriptionInfo.ConnectionInfo, index?: number): SubscriptionInfo.ConnectionInfo; + getAveragePerSecond(): number; + setAveragePerSecond(value: number): SubscriptionInfo; + getTotalItems(): string; + setTotalItems(value: string): SubscriptionInfo; + getCountSinceLastMeasurement(): string; + setCountSinceLastMeasurement(value: string): SubscriptionInfo; + getLastCheckpointedEventPosition(): string; + setLastCheckpointedEventPosition(value: string): SubscriptionInfo; + getLastKnownEventPosition(): string; + setLastKnownEventPosition(value: string): SubscriptionInfo; + getResolveLinkTos(): boolean; + setResolveLinkTos(value: boolean): SubscriptionInfo; + getStartFrom(): string; + setStartFrom(value: string): SubscriptionInfo; + getMessageTimeoutMilliseconds(): number; + setMessageTimeoutMilliseconds(value: number): SubscriptionInfo; + getExtraStatistics(): boolean; + setExtraStatistics(value: boolean): SubscriptionInfo; + getMaxRetryCount(): number; + setMaxRetryCount(value: number): SubscriptionInfo; + getLiveBufferSize(): number; + setLiveBufferSize(value: number): SubscriptionInfo; + getBufferSize(): number; + setBufferSize(value: number): SubscriptionInfo; + getReadBatchSize(): number; + setReadBatchSize(value: number): SubscriptionInfo; + getCheckPointAfterMilliseconds(): number; + setCheckPointAfterMilliseconds(value: number): SubscriptionInfo; + getMinCheckPointCount(): number; + setMinCheckPointCount(value: number): SubscriptionInfo; + getMaxCheckPointCount(): number; + setMaxCheckPointCount(value: number): SubscriptionInfo; + getReadBufferCount(): number; + setReadBufferCount(value: number): SubscriptionInfo; + getLiveBufferCount(): string; + setLiveBufferCount(value: string): SubscriptionInfo; + getRetryBufferCount(): number; + setRetryBufferCount(value: number): SubscriptionInfo; + getTotalInFlightMessages(): number; + setTotalInFlightMessages(value: number): SubscriptionInfo; + getOutstandingMessagesCount(): number; + setOutstandingMessagesCount(value: number): SubscriptionInfo; + getNamedConsumerStrategy(): string; + setNamedConsumerStrategy(value: string): SubscriptionInfo; + getMaxSubscriberCount(): number; + setMaxSubscriberCount(value: number): SubscriptionInfo; + getParkedMessageCount(): string; + setParkedMessageCount(value: string): SubscriptionInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SubscriptionInfo.AsObject; + static toObject(includeInstance: boolean, msg: SubscriptionInfo): SubscriptionInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SubscriptionInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SubscriptionInfo; + static deserializeBinaryFromReader(message: SubscriptionInfo, reader: jspb.BinaryReader): SubscriptionInfo; +} + +export namespace SubscriptionInfo { + export type AsObject = { + eventSource: string, + groupName: string, + status: string, + connectionsList: Array, + averagePerSecond: number, + totalItems: string, + countSinceLastMeasurement: string, + lastCheckpointedEventPosition: string, + lastKnownEventPosition: string, + resolveLinkTos: boolean, + startFrom: string, + messageTimeoutMilliseconds: number, + extraStatistics: boolean, + maxRetryCount: number, + liveBufferSize: number, + bufferSize: number, + readBatchSize: number, + checkPointAfterMilliseconds: number, + minCheckPointCount: number, + maxCheckPointCount: number, + readBufferCount: number, + liveBufferCount: string, + retryBufferCount: number, + totalInFlightMessages: number, + outstandingMessagesCount: number, + namedConsumerStrategy: string, + maxSubscriberCount: number, + parkedMessageCount: string, + } + + + export class ConnectionInfo extends jspb.Message { + getFrom(): string; + setFrom(value: string): ConnectionInfo; + getUsername(): string; + setUsername(value: string): ConnectionInfo; + getAverageItemsPerSecond(): number; + setAverageItemsPerSecond(value: number): ConnectionInfo; + getTotalItems(): string; + setTotalItems(value: string): ConnectionInfo; + getCountSinceLastMeasurement(): string; + setCountSinceLastMeasurement(value: string): ConnectionInfo; + clearObservedMeasurementsList(): void; + getObservedMeasurementsList(): Array; + setObservedMeasurementsList(value: Array): ConnectionInfo; + addObservedMeasurements(value?: SubscriptionInfo.Measurement, index?: number): SubscriptionInfo.Measurement; + getAvailableSlots(): number; + setAvailableSlots(value: number): ConnectionInfo; + getInFlightMessages(): number; + setInFlightMessages(value: number): ConnectionInfo; + getConnectionName(): string; + setConnectionName(value: string): ConnectionInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConnectionInfo.AsObject; + static toObject(includeInstance: boolean, msg: ConnectionInfo): ConnectionInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ConnectionInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConnectionInfo; + static deserializeBinaryFromReader(message: ConnectionInfo, reader: jspb.BinaryReader): ConnectionInfo; + } + + export namespace ConnectionInfo { + export type AsObject = { + from: string, + username: string, + averageItemsPerSecond: number, + totalItems: string, + countSinceLastMeasurement: string, + observedMeasurementsList: Array, + availableSlots: number, + inFlightMessages: number, + connectionName: string, + } + } + + export class Measurement extends jspb.Message { + getKey(): string; + setKey(value: string): Measurement; + getValue(): string; + setValue(value: string): Measurement; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Measurement.AsObject; + static toObject(includeInstance: boolean, msg: Measurement): Measurement.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Measurement, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Measurement; + static deserializeBinaryFromReader(message: Measurement, reader: jspb.BinaryReader): Measurement; + } + + export namespace Measurement { + export type AsObject = { + key: string, + value: string, + } + } + +} + +export class ReplayParkedReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ReplayParkedReq.Options | undefined; + setOptions(value?: ReplayParkedReq.Options): ReplayParkedReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReplayParkedReq.AsObject; + static toObject(includeInstance: boolean, msg: ReplayParkedReq): ReplayParkedReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReplayParkedReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReplayParkedReq; + static deserializeBinaryFromReader(message: ReplayParkedReq, reader: jspb.BinaryReader): ReplayParkedReq; +} + +export namespace ReplayParkedReq { + export type AsObject = { + options?: ReplayParkedReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getGroupName(): string; + setGroupName(value: string): Options; + + hasStreamIdentifier(): boolean; + clearStreamIdentifier(): void; + getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): shared_pb.Empty | undefined; + setAll(value?: shared_pb.Empty): Options; + + hasStopAt(): boolean; + clearStopAt(): void; + getStopAt(): string; + setStopAt(value: string): Options; + + hasNoLimit(): boolean; + clearNoLimit(): void; + getNoLimit(): shared_pb.Empty | undefined; + setNoLimit(value?: shared_pb.Empty): Options; + + getStreamOptionCase(): Options.StreamOptionCase; + getStopAtOptionCase(): Options.StopAtOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + groupName: string, + streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + all?: shared_pb.Empty.AsObject, + stopAt: string, + noLimit?: shared_pb.Empty.AsObject, + } + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM_IDENTIFIER = 2, + ALL = 3, + } + + export enum StopAtOptionCase { + STOP_AT_OPTION_NOT_SET = 0, + STOP_AT = 4, + NO_LIMIT = 5, + } + + } + +} + +export class ReplayParkedResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReplayParkedResp.AsObject; + static toObject(includeInstance: boolean, msg: ReplayParkedResp): ReplayParkedResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReplayParkedResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReplayParkedResp; + static deserializeBinaryFromReader(message: ReplayParkedResp, reader: jspb.BinaryReader): ReplayParkedResp; +} + +export namespace ReplayParkedResp { + export type AsObject = { + } +} + +export class ListReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ListReq.Options | undefined; + setOptions(value?: ListReq.Options): ListReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListReq.AsObject; + static toObject(includeInstance: boolean, msg: ListReq): ListReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListReq; + static deserializeBinaryFromReader(message: ListReq, reader: jspb.BinaryReader): ListReq; +} + +export namespace ListReq { + export type AsObject = { + options?: ListReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasListAllSubscriptions(): boolean; + clearListAllSubscriptions(): void; + getListAllSubscriptions(): shared_pb.Empty | undefined; + setListAllSubscriptions(value?: shared_pb.Empty): Options; + + hasListForStream(): boolean; + clearListForStream(): void; + getListForStream(): ListReq.StreamOption | undefined; + setListForStream(value?: ListReq.StreamOption): Options; + + getListOptionCase(): Options.ListOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + listAllSubscriptions?: shared_pb.Empty.AsObject, + listForStream?: ListReq.StreamOption.AsObject, + } + + export enum ListOptionCase { + LIST_OPTION_NOT_SET = 0, + LIST_ALL_SUBSCRIPTIONS = 1, + LIST_FOR_STREAM = 2, + } + + } + + export class StreamOption extends jspb.Message { + + hasStream(): boolean; + clearStream(): void; + getStream(): shared_pb.StreamIdentifier | undefined; + setStream(value?: shared_pb.StreamIdentifier): StreamOption; + + hasAll(): boolean; + clearAll(): void; + getAll(): shared_pb.Empty | undefined; + setAll(value?: shared_pb.Empty): StreamOption; + + getStreamOptionCase(): StreamOption.StreamOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamOption.AsObject; + static toObject(includeInstance: boolean, msg: StreamOption): StreamOption.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamOption, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamOption; + static deserializeBinaryFromReader(message: StreamOption, reader: jspb.BinaryReader): StreamOption; + } + + export namespace StreamOption { + export type AsObject = { + stream?: shared_pb.StreamIdentifier.AsObject, + all?: shared_pb.Empty.AsObject, + } + + export enum StreamOptionCase { + STREAM_OPTION_NOT_SET = 0, + STREAM = 1, + ALL = 2, + } + + } + +} + +export class ListResp extends jspb.Message { + clearSubscriptionsList(): void; + getSubscriptionsList(): Array; + setSubscriptionsList(value: Array): ListResp; + addSubscriptions(value?: SubscriptionInfo, index?: number): SubscriptionInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListResp.AsObject; + static toObject(includeInstance: boolean, msg: ListResp): ListResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListResp; + static deserializeBinaryFromReader(message: ListResp, reader: jspb.BinaryReader): ListResp; +} + +export namespace ListResp { + export type AsObject = { + subscriptionsList: Array, + } +} diff --git a/packages/db-client/generated/persistentsubscriptions_pb.js b/packages/db-client/generated/persistentsubscriptions_pb.js new file mode 100644 index 00000000..e9f3837a --- /dev/null +++ b/packages/db-client/generated/persistentsubscriptions_pb.js @@ -0,0 +1,12340 @@ +// source: persistentsubscriptions.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 shared_pb = require('./shared_pb.js'); +goog.object.extend(proto, shared_pb); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Position', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Settings', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateResp', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteResp', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoResp', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.StreamOption', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListResp', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Ack', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Nack', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedResp', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.SubscriptionInfo', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Options', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Position', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Settings', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase', null, global); +goog.exportSymbol('proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.ReadReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadReq.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq'; +} +/** + * 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.persistent_subscriptions.ReadReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options.UUIDOption = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption'; +} +/** + * 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.persistent_subscriptions.ReadReq.Ack = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.ReadReq.Ack.repeatedFields_, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Ack, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadReq.Ack.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.Ack'; +} +/** + * 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.persistent_subscriptions.ReadReq.Nack = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.ReadReq.Nack.repeatedFields_, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Nack, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadReq.Nack.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.Nack'; +} +/** + * 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.persistent_subscriptions.ReadResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadResp.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp'; +} +/** + * 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.persistent_subscriptions.ReadResp.ReadEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent'; +} +/** + * 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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent'; +} +/** + * 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.persistent_subscriptions.ReadResp.SubscriptionConfirmation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation'; +} +/** + * 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.persistent_subscriptions.CreateReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.StreamOptions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions'; +} +/** + * 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.persistent_subscriptions.CreateReq.AllOptions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions'; +} +/** + * 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions'; +} +/** + * 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.repeatedFields_, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression'; +} +/** + * 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.persistent_subscriptions.CreateReq.Position = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.Position, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.Position.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.Position'; +} +/** + * 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.persistent_subscriptions.CreateReq.Settings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.Settings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateReq.Settings.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.Settings'; +} +/** + * 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.persistent_subscriptions.CreateResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.CreateResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.CreateResp.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateReq.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.StreamOptions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions'; +} +/** + * 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.persistent_subscriptions.UpdateReq.AllOptions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions'; +} +/** + * 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.persistent_subscriptions.UpdateReq.Position = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.Position, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateReq.Position.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.Position'; +} +/** + * 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.persistent_subscriptions.UpdateReq.Settings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.Settings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.Settings'; +} +/** + * 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.persistent_subscriptions.UpdateResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.UpdateResp.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.DeleteReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.DeleteReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.DeleteReq.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.DeleteReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.DeleteReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.DeleteReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.DeleteResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.DeleteResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.DeleteResp.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.GetInfoReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.GetInfoReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.GetInfoReq.displayName = 'proto.event_store.client.persistent_subscriptions.GetInfoReq'; +} +/** + * 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.persistent_subscriptions.GetInfoReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.GetInfoReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.GetInfoResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.GetInfoResp.displayName = 'proto.event_store.client.persistent_subscriptions.GetInfoResp'; +} +/** + * 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.persistent_subscriptions.SubscriptionInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.repeatedFields_, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.SubscriptionInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.displayName = 'proto.event_store.client.persistent_subscriptions.SubscriptionInfo'; +} +/** + * 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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.repeatedFields_, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.displayName = 'proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo'; +} +/** + * 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.persistent_subscriptions.SubscriptionInfo.Measurement = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.displayName = 'proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement'; +} +/** + * 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.persistent_subscriptions.ReplayParkedReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReplayParkedReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReplayParkedReq.displayName = 'proto.event_store.client.persistent_subscriptions.ReplayParkedReq'; +} +/** + * 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.persistent_subscriptions.ReplayParkedReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ReplayParkedResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ReplayParkedResp.displayName = 'proto.event_store.client.persistent_subscriptions.ReplayParkedResp'; +} +/** + * 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.persistent_subscriptions.ListReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ListReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ListReq.displayName = 'proto.event_store.client.persistent_subscriptions.ListReq'; +} +/** + * 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.persistent_subscriptions.ListReq.Options = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ListReq.Options, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ListReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.StreamOption = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ListReq.StreamOption, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.displayName = 'proto.event_store.client.persistent_subscriptions.ListReq.StreamOption'; +} +/** + * 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.persistent_subscriptions.ListResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.ListResp.repeatedFields_, null); +}; +goog.inherits(proto.event_store.client.persistent_subscriptions.ListResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.event_store.client.persistent_subscriptions.ListResp.displayName = 'proto.event_store.client.persistent_subscriptions.ListResp'; +} + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase = { + CONTENT_NOT_SET: 0, + OPTIONS: 1, + ACK: 2, + NACK: 3 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getContentCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadReq.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_, 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.persistent_subscriptions.ReadReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.ReadReq.Options.toObject(includeInstance, f), + ack: (f = msg.getAck()) && proto.event_store.client.persistent_subscriptions.ReadReq.Ack.toObject(includeInstance, f), + nack: (f = msg.getNack()) && proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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.persistent_subscriptions.ReadReq} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadReq; + return proto.event_store.client.persistent_subscriptions.ReadReq.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Options.deserializeBinaryFromReader); + msg.setOptions(value); + break; + case 2: + var value = new proto.event_store.client.persistent_subscriptions.ReadReq.Ack; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryFromReader); + msg.setAck(value); + break; + case 3: + var value = new proto.event_store.client.persistent_subscriptions.ReadReq.Nack; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinaryFromReader); + msg.setNack(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.ReadReq.Options.serializeBinaryToWriter + ); + } + f = message.getAck(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.event_store.client.persistent_subscriptions.ReadReq.Ack.serializeBinaryToWriter + ); + } + f = message.getNack(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_ = [[1,5]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM_IDENTIFIER: 1, + ALL: 5 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadReq.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_, 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.persistent_subscriptions.ReadReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), + bufferSize: jspb.Message.getFieldWithDefault(msg, 3, 0), + uuidOption: (f = msg.getUuidOption()) && proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.persistent_subscriptions.ReadReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Options; + return proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.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.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 5: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupName(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBufferSize(value); + break; + case 4: + var value = new proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.deserializeBinaryFromReader); + msg.setUuidOption(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 5, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getBufferSize(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getUuidOption(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase = { + CONTENT_NOT_SET: 0, + STRUCTURED: 1, + STRING: 2 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getContentCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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_, 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.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.persistent_subscriptions.ReadReq.Options.UUIDOption} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.toObject = function(includeInstance, msg) { + var f, obj = { + structured: (f = msg.getStructured()) && shared_pb.Empty.toObject(includeInstance, f), + string: (f = msg.getString()) && shared_pb.Empty.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.persistent_subscriptions.ReadReq.Options.UUIDOption} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption; + return proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.setStructured(value); + break; + case 2: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setString(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.persistent_subscriptions.ReadReq.Options.UUIDOption} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStructured(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getString(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional event_store.client.Empty structured = 1; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getStructured = 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.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.setStructured = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.clearStructured = function() { + return this.setStructured(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.hasStructured = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty string = 2; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getString = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.setString = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.clearString = function() { + return this.setString(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.hasString = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty all = 5; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string group_name = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 buffer_size = 3; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional UUIDOption uuid_option = 4; + * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getUuidOption = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption, 4)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setUuidOption = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.clearUuidOption = function() { + return this.setUuidOption(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasUuidOption = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.repeatedFields_ = [2]; + + + +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_, 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.persistent_subscriptions.ReadReq.Ack.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadReq.Ack.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.persistent_subscriptions.ReadReq.Ack} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.toObject = function(includeInstance, msg) { + var f, obj = { + id: msg.getId_asB64(), + idsList: jspb.Message.toObjectList(msg.getIdsList(), + shared_pb.UUID.toObject, includeInstance) + }; + + 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.persistent_subscriptions.ReadReq.Ack} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Ack; + return proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setId(value); + break; + case 2: + var value = new shared_pb.UUID; + reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + msg.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadReq.Ack.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.persistent_subscriptions.ReadReq.Ack} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + shared_pb.UUID.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bytes id = 1; + * @return {!(string|Uint8Array)} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.setId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * repeated event_store.client.UUID ids = 2; + * @return {!Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, shared_pb.UUID, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.setIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.event_store.client.UUID=} opt_value + * @param {number=} opt_index + * @return {!proto.event_store.client.UUID} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.addIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.event_store.client.UUID, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.repeatedFields_ = [2]; + + + +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_, 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.persistent_subscriptions.ReadReq.Nack.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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.persistent_subscriptions.ReadReq.Nack} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.toObject = function(includeInstance, msg) { + var f, obj = { + id: msg.getId_asB64(), + idsList: jspb.Message.toObjectList(msg.getIdsList(), + shared_pb.UUID.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, 0), + reason: 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.persistent_subscriptions.ReadReq.Nack} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Nack; + return proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setId(value); + break; + case 2: + var value = new shared_pb.UUID; + reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + msg.addIds(value); + break; + case 3: + var value = /** @type {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} */ (reader.readEnum()); + msg.setAction(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setReason(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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.persistent_subscriptions.ReadReq.Nack} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + shared_pb.UUID.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getReason(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action = { + UNKNOWN: 0, + PARK: 1, + RETRY: 2, + SKIP: 3, + STOP: 4 +}; + +/** + * optional bytes id = 1; + * @return {!(string|Uint8Array)} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * repeated event_store.client.UUID ids = 2; + * @return {!Array} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, shared_pb.UUID, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.event_store.client.UUID=} opt_value + * @param {number=} opt_index + * @return {!proto.event_store.client.UUID} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.addIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.event_store.client.UUID, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + +/** + * optional Action action = 3; + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getAction = function() { + return /** @type {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setAction = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional string reason = 4; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getReason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setReason = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.setOptions = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.hasOptions = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Ack ack = 2; + * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Ack} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getAck = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Ack} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Ack, 2)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Ack|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.setAck = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.clearAck = function() { + return this.setAck(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.hasAck = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Nack nack = 3; + * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Nack} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getNack = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Nack} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Nack, 3)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Nack|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.setNack = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.clearNack = function() { + return this.setNack(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadReq.prototype.hasNack = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase = { + CONTENT_NOT_SET: 0, + EVENT: 1, + SUBSCRIPTION_CONFIRMATION: 2 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.getContentCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadResp.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_, 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.persistent_subscriptions.ReadResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadResp.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.persistent_subscriptions.ReadResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.toObject = function(includeInstance, msg) { + var f, obj = { + event: (f = msg.getEvent()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.toObject(includeInstance, f), + subscriptionConfirmation: (f = msg.getSubscriptionConfirmation()) && proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.persistent_subscriptions.ReadResp} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadResp; + return proto.event_store.client.persistent_subscriptions.ReadResp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.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.persistent_subscriptions.ReadResp.ReadEvent; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserializeBinaryFromReader); + msg.setEvent(value); + break; + case 2: + var value = new proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.deserializeBinaryFromReader); + msg.setSubscriptionConfirmation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadResp.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.persistent_subscriptions.ReadResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEvent(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.serializeBinaryToWriter + ); + } + f = message.getSubscriptionConfirmation(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_ = [[3,4],[5,6]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase = { + POSITION_NOT_SET: 0, + COMMIT_POSITION: 3, + NO_POSITION: 4 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getPositionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase = { + COUNT_NOT_SET: 0, + RETRY_COUNT: 5, + NO_RETRY_COUNT: 6 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getCountCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1])); +}; + + + +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_, 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.persistent_subscriptions.ReadResp.ReadEvent.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.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.persistent_subscriptions.ReadResp.ReadEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.toObject = function(includeInstance, msg) { + var f, obj = { + event: (f = msg.getEvent()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), + link: (f = msg.getLink()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), + commitPosition: jspb.Message.getFieldWithDefault(msg, 3, "0"), + noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f), + retryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + noRetryCount: (f = msg.getNoRetryCount()) && shared_pb.Empty.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.persistent_subscriptions.ReadResp.ReadEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent; + return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader); + msg.setEvent(value); + break; + case 2: + var value = new proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader); + msg.setLink(value); + break; + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCommitPosition(value); + break; + case 4: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setNoPosition(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRetryCount(value); + break; + case 6: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setNoRetryCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.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.persistent_subscriptions.ReadResp.ReadEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEvent(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.serializeBinaryToWriter + ); + } + f = message.getLink(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64String( + 3, + f + ); + } + f = message.getNoPosition(); + if (f != null) { + writer.writeMessage( + 4, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeInt32( + 5, + f + ); + } + f = message.getNoRetryCount(); + if (f != null) { + writer.writeMessage( + 6, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && shared_pb.UUID.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamRevision: jspb.Message.getFieldWithDefault(msg, 3, "0"), + preparePosition: jspb.Message.getFieldWithDefault(msg, 4, "0"), + commitPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), + metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], + customMetadata: msg.getCustomMetadata_asB64(), + data: msg.getData_asB64() + }; + + 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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent; + return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new shared_pb.UUID; + reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 3: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setStreamRevision(value); + break; + case 4: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setPreparePosition(value); + break; + case 5: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCommitPosition(value); + break; + case 6: + var value = msg.getMetadataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setCustomMetadata(value); + break; + case 8: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.UUID.serializeBinaryToWriter + ); + } + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getStreamRevision(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 3, + f + ); + } + f = message.getPreparePosition(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 4, + f + ); + } + f = message.getCommitPosition(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 5, + f + ); + } + f = message.getMetadataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getCustomMetadata_asU8(); + if (f.length > 0) { + writer.writeBytes( + 7, + f + ); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 8, + f + ); + } +}; + + +/** + * optional event_store.client.UUID id = 1; + * @return {?proto.event_store.client.UUID} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getId = function() { + return /** @type{?proto.event_store.client.UUID} */ ( + jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); +}; + + +/** + * @param {?proto.event_store.client.UUID|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 2; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 stream_revision = 3; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setStreamRevision = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + +/** + * optional uint64 prepare_position = 4; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getPreparePosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setPreparePosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional uint64 commit_position = 5; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCommitPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setCommitPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); +}; + + +/** + * map metadata = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getMetadataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.clearMetadataMap = function() { + this.getMetadataMap().clear(); + return this;}; + + +/** + * optional bytes custom_metadata = 7; + * @return {!(string|Uint8Array)} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCustomMetadata = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * optional bytes custom_metadata = 7; + * This is a type-conversion wrapper around `getCustomMetadata()` + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCustomMetadata_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getCustomMetadata())); +}; + + +/** + * optional bytes custom_metadata = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getCustomMetadata()` + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCustomMetadata_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getCustomMetadata())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setCustomMetadata = function(value) { + return jspb.Message.setProto3BytesField(this, 7, value); +}; + + +/** + * optional bytes data = 8; + * @return {!(string|Uint8Array)} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * optional bytes data = 8; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 8; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 8, value); +}; + + +/** + * optional RecordedEvent event = 1; + * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getEvent = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setEvent = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearEvent = function() { + return this.setEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasEvent = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional RecordedEvent link = 2; + * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getLink = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent, 2)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setLink = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearLink = function() { + return this.setLink(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasLink = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 commit_position = 3; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getCommitPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setCommitPosition = function(value) { + return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearCommitPosition = function() { + return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasCommitPosition = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional event_store.client.Empty no_position = 4; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getNoPosition = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setNoPosition = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearNoPosition = function() { + return this.setNoPosition(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasNoPosition = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional int32 retry_count = 5; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getRetryCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setRetryCount = function(value) { + return jspb.Message.setOneofField(this, 5, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearRetryCount = function() { + return jspb.Message.setOneofField(this, 5, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasRetryCount = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional event_store.client.Empty no_retry_count = 6; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getNoRetryCount = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 6)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setNoRetryCount = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearNoRetryCount = function() { + return this.setNoRetryCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasNoRetryCount = function() { + return jspb.Message.getField(this, 6) != 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_, 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.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.persistent_subscriptions.ReadResp.SubscriptionConfirmation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.toObject = function(includeInstance, msg) { + var f, obj = { + subscriptionId: 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.persistent_subscriptions.ReadResp.SubscriptionConfirmation} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation; + return proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.setSubscriptionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.persistent_subscriptions.ReadResp.SubscriptionConfirmation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSubscriptionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string subscription_id = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.getSubscriptionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.setSubscriptionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional ReadEvent event = 1; + * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.getEvent = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.setEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.clearEvent = function() { + return this.setEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.hasEvent = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional SubscriptionConfirmation subscription_confirmation = 2; + * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.getSubscriptionConfirmation = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation, 2)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.setSubscriptionConfirmation = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.clearSubscriptionConfirmation = function() { + return this.setSubscriptionConfirmation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReadResp.prototype.hasSubscriptionConfirmation = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.persistent_subscriptions.CreateReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq; + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq} + */ +proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.Options.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy = { + DISPATCHTOSINGLE: 0, + ROUNDROBIN: 1, + PINNED: 2 +}; + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_ = [[4,5]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM: 4, + ALL: 5 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.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_, 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.persistent_subscriptions.CreateReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + stream: (f = msg.getStream()) && proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.toObject(includeInstance, f), + all: (f = msg.getAll()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), + settings: (f = msg.getSettings()) && proto.event_store.client.persistent_subscriptions.CreateReq.Settings.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.persistent_subscriptions.CreateReq.Options} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.Options; + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 4: + var value = new proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinaryFromReader); + msg.setStream(value); + break; + case 5: + var value = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 1: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupName(value); + break; + case 3: + var value = new proto.event_store.client.persistent_subscriptions.CreateReq.Settings; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinaryFromReader); + msg.setSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serializeBinaryToWriter + ); + } + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getSettings(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.Settings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional StreamOptions stream = 4; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStream = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions, 4)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setStream = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearStream = function() { + return this.setStream(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasStream = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional AllOptions all = 5; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions, 5)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string group_name = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Settings settings = 3; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.Settings} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getSettings = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.Settings} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.Settings, 3)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.Settings|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setSettings = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearSettings = function() { + return this.setSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasSettings = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_ = [[2,3,4]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase = { + REVISION_OPTION_NOT_SET: 0, + REVISION: 2, + START: 3, + END: 4 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getRevisionOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.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_, 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.persistent_subscriptions.CreateReq.StreamOptions.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.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.persistent_subscriptions.CreateReq.StreamOptions} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.toObject = function(includeInstance, msg) { + var f, obj = { + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), + start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && shared_pb.Empty.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.persistent_subscriptions.CreateReq.StreamOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions; + return proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRevision(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setStart(value); + break; + case 4: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setEnd(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.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.persistent_subscriptions.CreateReq.StreamOptions} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getStart(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getEnd(); + if (f != null) { + writer.writeMessage( + 4, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 revision = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setRevision = function(value) { + return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearRevision = function() { + return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasRevision = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.Empty start = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getStart = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setStart = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearStart = function() { + return this.setStart(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasStart = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional event_store.client.Empty end = 4; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getEnd = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setEnd = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearEnd = function() { + return this.setEnd(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasEnd = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_ = [[1,2,3],[4,5]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase = { + ALL_OPTION_NOT_SET: 0, + POSITION: 1, + START: 2, + END: 3 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getAllOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase = { + FILTER_OPTION_NOT_SET: 0, + FILTER: 4, + NO_FILTER: 5 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getFilterOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[1])); +}; + + + +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_, 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.persistent_subscriptions.CreateReq.AllOptions.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.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.persistent_subscriptions.CreateReq.AllOptions} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.toObject = function(includeInstance, msg) { + var f, obj = { + position: (f = msg.getPosition()) && proto.event_store.client.persistent_subscriptions.CreateReq.Position.toObject(includeInstance, f), + start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f), + filter: (f = msg.getFilter()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.toObject(includeInstance, f), + noFilter: (f = msg.getNoFilter()) && shared_pb.Empty.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.persistent_subscriptions.CreateReq.AllOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions; + return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.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.persistent_subscriptions.CreateReq.Position; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinaryFromReader); + msg.setPosition(value); + break; + case 2: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setStart(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setEnd(value); + break; + case 4: + var value = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.deserializeBinaryFromReader); + msg.setFilter(value); + break; + case 5: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setNoFilter(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.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.persistent_subscriptions.CreateReq.AllOptions} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPosition(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.Position.serializeBinaryToWriter + ); + } + f = message.getStart(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getEnd(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getFilter(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.serializeBinaryToWriter + ); + } + f = message.getNoFilter(); + if (f != null) { + writer.writeMessage( + 5, + f, + shared_pb.Empty.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_ = [[1,2],[3,4]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase = { + FILTER_NOT_SET: 0, + STREAM_IDENTIFIER: 1, + EVENT_TYPE: 2 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getFilterCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase = { + WINDOW_NOT_SET: 0, + MAX: 3, + COUNT: 4 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getWindowCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1])); +}; + + + +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_, 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.toObject = function(includeInstance, msg) { + var f, obj = { + streamIdentifier: (f = msg.getStreamIdentifier()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject(includeInstance, f), + eventType: (f = msg.getEventType()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject(includeInstance, f), + max: jspb.Message.getFieldWithDefault(msg, 3, 0), + count: (f = msg.getCount()) && shared_pb.Empty.toObject(includeInstance, f), + checkpointintervalmultiplier: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions; + return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 2: + var value = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinaryFromReader); + msg.setEventType(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMax(value); + break; + case 4: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setCount(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCheckpointintervalmultiplier(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.serializeBinaryToWriter + ); + } + f = message.getEventType(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint32( + 3, + f + ); + } + f = message.getCount(); + if (f != null) { + writer.writeMessage( + 4, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getCheckpointintervalmultiplier(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.repeatedFields_ = [2]; + + + +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_, 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject = function(includeInstance, msg) { + var f, obj = { + regex: jspb.Message.getFieldWithDefault(msg, 1, ""), + prefixList: (f = jspb.Message.getRepeatedField(msg, 2)) == 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression; + return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.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.setRegex(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addPrefix(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRegex(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPrefixList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string regex = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.getRegex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.setRegex = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string prefix = 2; + * @return {!Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.getPrefixList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.setPrefixList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.addPrefix = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.clearPrefixList = function() { + return this.setPrefixList([]); +}; + + +/** + * optional Expression stream_identifier = 1; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Expression event_type = 2; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getEventType = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression, 2)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setEventType = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearEventType = function() { + return this.setEventType(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasEventType = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint32 max = 3; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getMax = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setMax = function(value) { + return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearMax = function() { + return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasMax = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional event_store.client.Empty count = 4; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getCount = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setCount = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearCount = function() { + return this.setCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasCount = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint32 checkpointIntervalMultiplier = 5; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getCheckpointintervalmultiplier = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setCheckpointintervalmultiplier = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional Position position = 1; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.Position} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getPosition = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.Position} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.Position, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.Position|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setPosition = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearPosition = function() { + return this.setPosition(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasPosition = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty start = 2; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getStart = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setStart = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearStart = function() { + return this.setStart(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasStart = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.Empty end = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getEnd = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setEnd = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearEnd = function() { + return this.setEnd(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasEnd = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional FilterOptions filter = 4; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getFilter = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions, 4)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setFilter = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearFilter = function() { + return this.setFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasFilter = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional event_store.client.Empty no_filter = 5; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getNoFilter = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setNoFilter = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearNoFilter = function() { + return this.setNoFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasNoFilter = function() { + return jspb.Message.getField(this, 5) != 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_, 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.persistent_subscriptions.CreateReq.Position.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.CreateReq.Position.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.persistent_subscriptions.CreateReq.Position} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.toObject = function(includeInstance, msg) { + var f, obj = { + commitPosition: jspb.Message.getFieldWithDefault(msg, 1, "0"), + preparePosition: jspb.Message.getFieldWithDefault(msg, 2, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.Position; + return proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCommitPosition(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setPreparePosition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.CreateReq.Position.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.persistent_subscriptions.CreateReq.Position} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommitPosition(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getPreparePosition(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 commit_position = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.getCommitPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.setCommitPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 prepare_position = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.getPreparePosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.setPreparePosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_ = [[4,14],[6,15]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase = { + MESSAGE_TIMEOUT_NOT_SET: 0, + MESSAGE_TIMEOUT_TICKS: 4, + MESSAGE_TIMEOUT_MS: 14 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMessageTimeoutCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase = { + CHECKPOINT_AFTER_NOT_SET: 0, + CHECKPOINT_AFTER_TICKS: 6, + CHECKPOINT_AFTER_MS: 15 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getCheckpointAfterCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1])); +}; + + + +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_, 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.persistent_subscriptions.CreateReq.Settings.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.CreateReq.Settings.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.persistent_subscriptions.CreateReq.Settings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.toObject = function(includeInstance, msg) { + var f, obj = { + resolveLinks: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), + extraStatistics: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + maxRetryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + minCheckpointCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + maxCheckpointCount: jspb.Message.getFieldWithDefault(msg, 8, 0), + maxSubscriberCount: jspb.Message.getFieldWithDefault(msg, 9, 0), + liveBufferSize: jspb.Message.getFieldWithDefault(msg, 10, 0), + readBatchSize: jspb.Message.getFieldWithDefault(msg, 11, 0), + historyBufferSize: jspb.Message.getFieldWithDefault(msg, 12, 0), + namedConsumerStrategy: jspb.Message.getFieldWithDefault(msg, 13, 0), + messageTimeoutTicks: jspb.Message.getFieldWithDefault(msg, 4, "0"), + messageTimeoutMs: jspb.Message.getFieldWithDefault(msg, 14, 0), + checkpointAfterTicks: jspb.Message.getFieldWithDefault(msg, 6, "0"), + checkpointAfterMs: jspb.Message.getFieldWithDefault(msg, 15, 0), + consumerStrategy: jspb.Message.getFieldWithDefault(msg, 16, "") + }; + + 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.persistent_subscriptions.CreateReq.Settings} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.Settings; + return proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setResolveLinks(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRevision(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExtraStatistics(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxRetryCount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMinCheckpointCount(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxCheckpointCount(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxSubscriberCount(value); + break; + case 10: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLiveBufferSize(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt32()); + msg.setReadBatchSize(value); + break; + case 12: + var value = /** @type {number} */ (reader.readInt32()); + msg.setHistoryBufferSize(value); + break; + case 13: + var value = /** @type {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} */ (reader.readEnum()); + msg.setNamedConsumerStrategy(value); + break; + case 4: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setMessageTimeoutTicks(value); + break; + case 14: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMessageTimeoutMs(value); + break; + case 6: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setCheckpointAfterTicks(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCheckpointAfterMs(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setConsumerStrategy(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.CreateReq.Settings.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.persistent_subscriptions.CreateReq.Settings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResolveLinks(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getRevision(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getExtraStatistics(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getMaxRetryCount(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getMinCheckpointCount(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getMaxCheckpointCount(); + if (f !== 0) { + writer.writeInt32( + 8, + f + ); + } + f = message.getMaxSubscriberCount(); + if (f !== 0) { + writer.writeInt32( + 9, + f + ); + } + f = message.getLiveBufferSize(); + if (f !== 0) { + writer.writeInt32( + 10, + f + ); + } + f = message.getReadBatchSize(); + if (f !== 0) { + writer.writeInt32( + 11, + f + ); + } + f = message.getHistoryBufferSize(); + if (f !== 0) { + writer.writeInt32( + 12, + f + ); + } + f = message.getNamedConsumerStrategy(); + if (f !== 0.0) { + writer.writeEnum( + 13, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeInt64String( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 14)); + if (f != null) { + writer.writeInt32( + 14, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeInt64String( + 6, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeInt32( + 15, + f + ); + } + f = message.getConsumerStrategy(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } +}; + + +/** + * optional bool resolve_links = 1; + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getResolveLinks = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setResolveLinks = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional uint64 revision = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setRevision = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional bool extra_statistics = 3; + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getExtraStatistics = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setExtraStatistics = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional int32 max_retry_count = 5; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMaxRetryCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMaxRetryCount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 min_checkpoint_count = 7; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMinCheckpointCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMinCheckpointCount = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional int32 max_checkpoint_count = 8; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMaxCheckpointCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMaxCheckpointCount = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional int32 max_subscriber_count = 9; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMaxSubscriberCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMaxSubscriberCount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional int32 live_buffer_size = 10; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getLiveBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setLiveBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional int32 read_batch_size = 11; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getReadBatchSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setReadBatchSize = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional int32 history_buffer_size = 12; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getHistoryBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setHistoryBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional ConsumerStrategy named_consumer_strategy = 13; + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getNamedConsumerStrategy = function() { + return /** @type {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setNamedConsumerStrategy = function(value) { + return jspb.Message.setProto3EnumField(this, 13, value); +}; + + +/** + * optional int64 message_timeout_ticks = 4; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMessageTimeoutTicks = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMessageTimeoutTicks = function(value) { + return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearMessageTimeoutTicks = function() { + return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasMessageTimeoutTicks = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional int32 message_timeout_ms = 14; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMessageTimeoutMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMessageTimeoutMs = function(value) { + return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearMessageTimeoutMs = function() { + return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasMessageTimeoutMs = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional int64 checkpoint_after_ticks = 6; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getCheckpointAfterTicks = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setCheckpointAfterTicks = function(value) { + return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearCheckpointAfterTicks = function() { + return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasCheckpointAfterTicks = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional int32 checkpoint_after_ms = 15; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getCheckpointAfterMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setCheckpointAfterMs = function(value) { + return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearCheckpointAfterMs = function() { + return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasCheckpointAfterMs = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * optional string consumer_strategy = 16; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getConsumerStrategy = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setConsumerStrategy = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.Options} + */ +proto.event_store.client.persistent_subscriptions.CreateReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.CreateReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.CreateReq} returns this + */ +proto.event_store.client.persistent_subscriptions.CreateReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.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_, 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.persistent_subscriptions.CreateResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} + */ +proto.event_store.client.persistent_subscriptions.CreateResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.CreateResp; + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.CreateResp} + */ +proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.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_, 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.persistent_subscriptions.UpdateReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq; + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq} + */ +proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.UpdateReq.Options.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy = { + DISPATCHTOSINGLE: 0, + ROUNDROBIN: 1, + PINNED: 2 +}; + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_ = [[4,5]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM: 4, + ALL: 5 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.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_, 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.persistent_subscriptions.UpdateReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + stream: (f = msg.getStream()) && proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.toObject(includeInstance, f), + all: (f = msg.getAll()) && proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), + settings: (f = msg.getSettings()) && proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.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.persistent_subscriptions.UpdateReq.Options} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.Options; + return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 4: + var value = new proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinaryFromReader); + msg.setStream(value); + break; + case 5: + var value = new proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 1: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupName(value); + break; + case 3: + var value = new proto.event_store.client.persistent_subscriptions.UpdateReq.Settings; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinaryFromReader); + msg.setSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.serializeBinaryToWriter + ); + } + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getSettings(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional StreamOptions stream = 4; + * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStream = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions, 4)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setStream = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearStream = function() { + return this.setStream(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasStream = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional AllOptions all = 5; + * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions, 5)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string group_name = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Settings settings = 3; + * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getSettings = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings, 3)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.Settings|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setSettings = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearSettings = function() { + return this.setSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasSettings = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_ = [[2,3,4]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase = { + REVISION_OPTION_NOT_SET: 0, + REVISION: 2, + START: 3, + END: 4 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getRevisionOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.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_, 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.persistent_subscriptions.UpdateReq.StreamOptions.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.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.persistent_subscriptions.UpdateReq.StreamOptions} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.toObject = function(includeInstance, msg) { + var f, obj = { + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), + start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && shared_pb.Empty.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.persistent_subscriptions.UpdateReq.StreamOptions} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions; + return proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRevision(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setStart(value); + break; + case 4: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setEnd(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.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.persistent_subscriptions.UpdateReq.StreamOptions} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getStart(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getEnd(); + if (f != null) { + writer.writeMessage( + 4, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 revision = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setRevision = function(value) { + return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearRevision = function() { + return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasRevision = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.Empty start = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getStart = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setStart = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearStart = function() { + return this.setStart(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasStart = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional event_store.client.Empty end = 4; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getEnd = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setEnd = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearEnd = function() { + return this.setEnd(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasEnd = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase = { + ALL_OPTION_NOT_SET: 0, + POSITION: 1, + START: 2, + END: 3 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getAllOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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_, 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.persistent_subscriptions.UpdateReq.AllOptions.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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.persistent_subscriptions.UpdateReq.AllOptions} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.toObject = function(includeInstance, msg) { + var f, obj = { + position: (f = msg.getPosition()) && proto.event_store.client.persistent_subscriptions.UpdateReq.Position.toObject(includeInstance, f), + start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && shared_pb.Empty.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.persistent_subscriptions.UpdateReq.AllOptions} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions; + return proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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.persistent_subscriptions.UpdateReq.Position; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinaryFromReader); + msg.setPosition(value); + break; + case 2: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setStart(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setEnd(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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.persistent_subscriptions.UpdateReq.AllOptions} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPosition(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.UpdateReq.Position.serializeBinaryToWriter + ); + } + f = message.getStart(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getEnd(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Position position = 1; + * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.Position} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getPosition = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.Position} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Position, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.Position|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.setPosition = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.clearPosition = function() { + return this.setPosition(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.hasPosition = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty start = 2; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getStart = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.setStart = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.clearStart = function() { + return this.setStart(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.hasStart = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.Empty end = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getEnd = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.setEnd = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.clearEnd = function() { + return this.setEnd(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.hasEnd = function() { + return jspb.Message.getField(this, 3) != 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_, 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.persistent_subscriptions.UpdateReq.Position.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.UpdateReq.Position.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.persistent_subscriptions.UpdateReq.Position} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.toObject = function(includeInstance, msg) { + var f, obj = { + commitPosition: jspb.Message.getFieldWithDefault(msg, 1, "0"), + preparePosition: jspb.Message.getFieldWithDefault(msg, 2, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.Position; + return proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setCommitPosition(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setPreparePosition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.UpdateReq.Position.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.persistent_subscriptions.UpdateReq.Position} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommitPosition(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getPreparePosition(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 commit_position = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.getCommitPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.setCommitPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 prepare_position = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.getPreparePosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.setPreparePosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_ = [[4,14],[6,15]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase = { + MESSAGE_TIMEOUT_NOT_SET: 0, + MESSAGE_TIMEOUT_TICKS: 4, + MESSAGE_TIMEOUT_MS: 14 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMessageTimeoutCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase = { + CHECKPOINT_AFTER_NOT_SET: 0, + CHECKPOINT_AFTER_TICKS: 6, + CHECKPOINT_AFTER_MS: 15 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getCheckpointAfterCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1])); +}; + + + +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_, 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.persistent_subscriptions.UpdateReq.Settings.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.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.persistent_subscriptions.UpdateReq.Settings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.toObject = function(includeInstance, msg) { + var f, obj = { + resolveLinks: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), + extraStatistics: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + maxRetryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + minCheckpointCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + maxCheckpointCount: jspb.Message.getFieldWithDefault(msg, 8, 0), + maxSubscriberCount: jspb.Message.getFieldWithDefault(msg, 9, 0), + liveBufferSize: jspb.Message.getFieldWithDefault(msg, 10, 0), + readBatchSize: jspb.Message.getFieldWithDefault(msg, 11, 0), + historyBufferSize: jspb.Message.getFieldWithDefault(msg, 12, 0), + namedConsumerStrategy: jspb.Message.getFieldWithDefault(msg, 13, 0), + messageTimeoutTicks: jspb.Message.getFieldWithDefault(msg, 4, "0"), + messageTimeoutMs: jspb.Message.getFieldWithDefault(msg, 14, 0), + checkpointAfterTicks: jspb.Message.getFieldWithDefault(msg, 6, "0"), + checkpointAfterMs: jspb.Message.getFieldWithDefault(msg, 15, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.Settings; + return proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setResolveLinks(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setRevision(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExtraStatistics(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxRetryCount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMinCheckpointCount(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxCheckpointCount(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxSubscriberCount(value); + break; + case 10: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLiveBufferSize(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt32()); + msg.setReadBatchSize(value); + break; + case 12: + var value = /** @type {number} */ (reader.readInt32()); + msg.setHistoryBufferSize(value); + break; + case 13: + var value = /** @type {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} */ (reader.readEnum()); + msg.setNamedConsumerStrategy(value); + break; + case 4: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setMessageTimeoutTicks(value); + break; + case 14: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMessageTimeoutMs(value); + break; + case 6: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setCheckpointAfterTicks(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCheckpointAfterMs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.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.persistent_subscriptions.UpdateReq.Settings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResolveLinks(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getRevision(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } + f = message.getExtraStatistics(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getMaxRetryCount(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getMinCheckpointCount(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getMaxCheckpointCount(); + if (f !== 0) { + writer.writeInt32( + 8, + f + ); + } + f = message.getMaxSubscriberCount(); + if (f !== 0) { + writer.writeInt32( + 9, + f + ); + } + f = message.getLiveBufferSize(); + if (f !== 0) { + writer.writeInt32( + 10, + f + ); + } + f = message.getReadBatchSize(); + if (f !== 0) { + writer.writeInt32( + 11, + f + ); + } + f = message.getHistoryBufferSize(); + if (f !== 0) { + writer.writeInt32( + 12, + f + ); + } + f = message.getNamedConsumerStrategy(); + if (f !== 0.0) { + writer.writeEnum( + 13, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeInt64String( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 14)); + if (f != null) { + writer.writeInt32( + 14, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeInt64String( + 6, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeInt32( + 15, + f + ); + } +}; + + +/** + * optional bool resolve_links = 1; + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getResolveLinks = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setResolveLinks = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional uint64 revision = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setRevision = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional bool extra_statistics = 3; + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getExtraStatistics = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setExtraStatistics = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional int32 max_retry_count = 5; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMaxRetryCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMaxRetryCount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 min_checkpoint_count = 7; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMinCheckpointCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMinCheckpointCount = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional int32 max_checkpoint_count = 8; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMaxCheckpointCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMaxCheckpointCount = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional int32 max_subscriber_count = 9; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMaxSubscriberCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMaxSubscriberCount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional int32 live_buffer_size = 10; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getLiveBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setLiveBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional int32 read_batch_size = 11; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getReadBatchSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setReadBatchSize = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional int32 history_buffer_size = 12; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getHistoryBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setHistoryBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional ConsumerStrategy named_consumer_strategy = 13; + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getNamedConsumerStrategy = function() { + return /** @type {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setNamedConsumerStrategy = function(value) { + return jspb.Message.setProto3EnumField(this, 13, value); +}; + + +/** + * optional int64 message_timeout_ticks = 4; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMessageTimeoutTicks = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMessageTimeoutTicks = function(value) { + return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearMessageTimeoutTicks = function() { + return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasMessageTimeoutTicks = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional int32 message_timeout_ms = 14; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMessageTimeoutMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMessageTimeoutMs = function(value) { + return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearMessageTimeoutMs = function() { + return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasMessageTimeoutMs = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional int64 checkpoint_after_ticks = 6; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getCheckpointAfterTicks = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setCheckpointAfterTicks = function(value) { + return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearCheckpointAfterTicks = function() { + return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasCheckpointAfterTicks = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional int32 checkpoint_after_ms = 15; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getCheckpointAfterMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setCheckpointAfterMs = function(value) { + return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearCheckpointAfterMs = function() { + return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasCheckpointAfterMs = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.Options} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.UpdateReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq} returns this + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.UpdateReq.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_, 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.persistent_subscriptions.UpdateResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp} + */ +proto.event_store.client.persistent_subscriptions.UpdateResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.UpdateResp; + return proto.event_store.client.persistent_subscriptions.UpdateResp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.UpdateResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.UpdateResp} + */ +proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.UpdateResp.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_, 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.persistent_subscriptions.DeleteReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.DeleteReq; + return proto.event_store.client.persistent_subscriptions.DeleteReq.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.DeleteReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.DeleteReq.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_ = [[1,3]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM_IDENTIFIER: 1, + ALL: 3 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.DeleteReq.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_, 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.persistent_subscriptions.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + groupName: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.persistent_subscriptions.DeleteReq.Options} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.DeleteReq.Options; + return proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.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.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty all = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string group_name = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.DeleteReq.Options} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.DeleteReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.DeleteReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.DeleteReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.DeleteReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq} returns this + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.DeleteReq.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_, 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.persistent_subscriptions.DeleteResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp} + */ +proto.event_store.client.persistent_subscriptions.DeleteResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.DeleteResp; + return proto.event_store.client.persistent_subscriptions.DeleteResp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.DeleteResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.DeleteResp} + */ +proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.DeleteResp.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_, 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.persistent_subscriptions.GetInfoReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.GetInfoReq; + return proto.event_store.client.persistent_subscriptions.GetInfoReq.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.GetInfoReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.GetInfoReq.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM_IDENTIFIER: 1, + ALL: 2 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.GetInfoReq.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_, 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.persistent_subscriptions.GetInfoReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + groupName: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.persistent_subscriptions.GetInfoReq.Options} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.GetInfoReq.Options; + return proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.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.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 2: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty all = 2; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string group_name = 3; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.GetInfoReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.GetInfoReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq} returns this + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.GetInfoReq.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_, 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.persistent_subscriptions.GetInfoResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.GetInfoResp.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.persistent_subscriptions.GetInfoResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.toObject = function(includeInstance, msg) { + var f, obj = { + subscriptionInfo: (f = msg.getSubscriptionInfo()) && proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.persistent_subscriptions.GetInfoResp} + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.GetInfoResp; + return proto.event_store.client.persistent_subscriptions.GetInfoResp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.GetInfoResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoResp} + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.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.persistent_subscriptions.SubscriptionInfo; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinaryFromReader); + msg.setSubscriptionInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.GetInfoResp.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.persistent_subscriptions.GetInfoResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSubscriptionInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional SubscriptionInfo subscription_info = 1; + * @return {?proto.event_store.client.persistent_subscriptions.SubscriptionInfo} + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.getSubscriptionInfo = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.SubscriptionInfo} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.SubscriptionInfo|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoResp} returns this +*/ +proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.setSubscriptionInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.GetInfoResp} returns this + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.clearSubscriptionInfo = function() { + return this.setSubscriptionInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.hasSubscriptionInfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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_, 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.persistent_subscriptions.SubscriptionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.persistent_subscriptions.SubscriptionInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.toObject = function(includeInstance, msg) { + var f, obj = { + eventSource: jspb.Message.getFieldWithDefault(msg, 1, ""), + groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), + status: jspb.Message.getFieldWithDefault(msg, 3, ""), + connectionsList: jspb.Message.toObjectList(msg.getConnectionsList(), + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.toObject, includeInstance), + averagePerSecond: jspb.Message.getFieldWithDefault(msg, 5, 0), + totalItems: jspb.Message.getFieldWithDefault(msg, 6, "0"), + countSinceLastMeasurement: jspb.Message.getFieldWithDefault(msg, 7, "0"), + lastCheckpointedEventPosition: jspb.Message.getFieldWithDefault(msg, 8, ""), + lastKnownEventPosition: jspb.Message.getFieldWithDefault(msg, 9, ""), + resolveLinkTos: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + startFrom: jspb.Message.getFieldWithDefault(msg, 11, ""), + messageTimeoutMilliseconds: jspb.Message.getFieldWithDefault(msg, 12, 0), + extraStatistics: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + maxRetryCount: jspb.Message.getFieldWithDefault(msg, 14, 0), + liveBufferSize: jspb.Message.getFieldWithDefault(msg, 15, 0), + bufferSize: jspb.Message.getFieldWithDefault(msg, 16, 0), + readBatchSize: jspb.Message.getFieldWithDefault(msg, 17, 0), + checkPointAfterMilliseconds: jspb.Message.getFieldWithDefault(msg, 18, 0), + minCheckPointCount: jspb.Message.getFieldWithDefault(msg, 19, 0), + maxCheckPointCount: jspb.Message.getFieldWithDefault(msg, 20, 0), + readBufferCount: jspb.Message.getFieldWithDefault(msg, 21, 0), + liveBufferCount: jspb.Message.getFieldWithDefault(msg, 22, "0"), + retryBufferCount: jspb.Message.getFieldWithDefault(msg, 23, 0), + totalInFlightMessages: jspb.Message.getFieldWithDefault(msg, 24, 0), + outstandingMessagesCount: jspb.Message.getFieldWithDefault(msg, 25, 0), + namedConsumerStrategy: jspb.Message.getFieldWithDefault(msg, 26, ""), + maxSubscriberCount: jspb.Message.getFieldWithDefault(msg, 27, 0), + parkedMessageCount: jspb.Message.getFieldWithDefault(msg, 28, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo; + return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.setEventSource(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 4: + var value = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.deserializeBinaryFromReader); + msg.addConnections(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setAveragePerSecond(value); + break; + case 6: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setTotalItems(value); + break; + case 7: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setCountSinceLastMeasurement(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setLastCheckpointedEventPosition(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setLastKnownEventPosition(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setResolveLinkTos(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setStartFrom(value); + break; + case 12: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMessageTimeoutMilliseconds(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExtraStatistics(value); + break; + case 14: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxRetryCount(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLiveBufferSize(value); + break; + case 16: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBufferSize(value); + break; + case 17: + var value = /** @type {number} */ (reader.readInt32()); + msg.setReadBatchSize(value); + break; + case 18: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCheckPointAfterMilliseconds(value); + break; + case 19: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMinCheckPointCount(value); + break; + case 20: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxCheckPointCount(value); + break; + case 21: + var value = /** @type {number} */ (reader.readInt32()); + msg.setReadBufferCount(value); + break; + case 22: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setLiveBufferCount(value); + break; + case 23: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRetryBufferCount(value); + break; + case 24: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTotalInFlightMessages(value); + break; + case 25: + var value = /** @type {number} */ (reader.readInt32()); + msg.setOutstandingMessagesCount(value); + break; + case 26: + var value = /** @type {string} */ (reader.readString()); + msg.setNamedConsumerStrategy(value); + break; + case 27: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxSubscriberCount(value); + break; + case 28: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setParkedMessageCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.persistent_subscriptions.SubscriptionInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEventSource(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getConnectionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.serializeBinaryToWriter + ); + } + f = message.getAveragePerSecond(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getTotalItems(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 6, + f + ); + } + f = message.getCountSinceLastMeasurement(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 7, + f + ); + } + f = message.getLastCheckpointedEventPosition(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getLastKnownEventPosition(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getResolveLinkTos(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getStartFrom(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getMessageTimeoutMilliseconds(); + if (f !== 0) { + writer.writeInt32( + 12, + f + ); + } + f = message.getExtraStatistics(); + if (f) { + writer.writeBool( + 13, + f + ); + } + f = message.getMaxRetryCount(); + if (f !== 0) { + writer.writeInt32( + 14, + f + ); + } + f = message.getLiveBufferSize(); + if (f !== 0) { + writer.writeInt32( + 15, + f + ); + } + f = message.getBufferSize(); + if (f !== 0) { + writer.writeInt32( + 16, + f + ); + } + f = message.getReadBatchSize(); + if (f !== 0) { + writer.writeInt32( + 17, + f + ); + } + f = message.getCheckPointAfterMilliseconds(); + if (f !== 0) { + writer.writeInt32( + 18, + f + ); + } + f = message.getMinCheckPointCount(); + if (f !== 0) { + writer.writeInt32( + 19, + f + ); + } + f = message.getMaxCheckPointCount(); + if (f !== 0) { + writer.writeInt32( + 20, + f + ); + } + f = message.getReadBufferCount(); + if (f !== 0) { + writer.writeInt32( + 21, + f + ); + } + f = message.getLiveBufferCount(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 22, + f + ); + } + f = message.getRetryBufferCount(); + if (f !== 0) { + writer.writeInt32( + 23, + f + ); + } + f = message.getTotalInFlightMessages(); + if (f !== 0) { + writer.writeInt32( + 24, + f + ); + } + f = message.getOutstandingMessagesCount(); + if (f !== 0) { + writer.writeInt32( + 25, + f + ); + } + f = message.getNamedConsumerStrategy(); + if (f.length > 0) { + writer.writeString( + 26, + f + ); + } + f = message.getMaxSubscriberCount(); + if (f !== 0) { + writer.writeInt32( + 27, + f + ); + } + f = message.getParkedMessageCount(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 28, + f + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.repeatedFields_ = [6]; + + + +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_, 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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.toObject = function(includeInstance, msg) { + var f, obj = { + from: jspb.Message.getFieldWithDefault(msg, 1, ""), + username: jspb.Message.getFieldWithDefault(msg, 2, ""), + averageItemsPerSecond: jspb.Message.getFieldWithDefault(msg, 3, 0), + totalItems: jspb.Message.getFieldWithDefault(msg, 4, "0"), + countSinceLastMeasurement: jspb.Message.getFieldWithDefault(msg, 5, "0"), + observedMeasurementsList: jspb.Message.toObjectList(msg.getObservedMeasurementsList(), + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.toObject, includeInstance), + availableSlots: jspb.Message.getFieldWithDefault(msg, 7, 0), + inFlightMessages: jspb.Message.getFieldWithDefault(msg, 8, 0), + connectionName: jspb.Message.getFieldWithDefault(msg, 9, "") + }; + + 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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo; + return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.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.setFrom(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setAverageItemsPerSecond(value); + break; + case 4: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setTotalItems(value); + break; + case 5: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setCountSinceLastMeasurement(value); + break; + case 6: + var value = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.deserializeBinaryFromReader); + msg.addObservedMeasurements(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setAvailableSlots(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setInFlightMessages(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setConnectionName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFrom(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAverageItemsPerSecond(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getTotalItems(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 4, + f + ); + } + f = message.getCountSinceLastMeasurement(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 5, + f + ); + } + f = message.getObservedMeasurementsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.serializeBinaryToWriter + ); + } + f = message.getAvailableSlots(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getInFlightMessages(); + if (f !== 0) { + writer.writeInt32( + 8, + f + ); + } + f = message.getConnectionName(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * optional string from = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getFrom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setFrom = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string username = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getUsername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setUsername = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 average_items_per_second = 3; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getAverageItemsPerSecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setAverageItemsPerSecond = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 total_items = 4; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getTotalItems = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setTotalItems = function(value) { + return jspb.Message.setProto3StringIntField(this, 4, value); +}; + + +/** + * optional int64 count_since_last_measurement = 5; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getCountSinceLastMeasurement = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setCountSinceLastMeasurement = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); +}; + + +/** + * repeated Measurement observed_measurements = 6; + * @return {!Array} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getObservedMeasurementsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this +*/ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setObservedMeasurementsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement=} opt_value + * @param {number=} opt_index + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.addObservedMeasurements = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.clearObservedMeasurementsList = function() { + return this.setObservedMeasurementsList([]); +}; + + +/** + * optional int32 available_slots = 7; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getAvailableSlots = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setAvailableSlots = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional int32 in_flight_messages = 8; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getInFlightMessages = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setInFlightMessages = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string connection_name = 9; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getConnectionName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setConnectionName = function(value) { + return jspb.Message.setProto3StringField(this, 9, 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_, 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.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.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.persistent_subscriptions.SubscriptionInfo.Measurement} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.toObject = function(includeInstance, msg) { + var f, obj = { + key: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFieldWithDefault(msg, 2, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement; + return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.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.setKey(value); + break; + case 2: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.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.persistent_subscriptions.SubscriptionInfo.Measurement} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValue(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 2, + f + ); + } +}; + + +/** + * optional string key = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 value = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.setValue = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional string event_source = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getEventSource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setEventSource = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string group_name = 2; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string status = 3; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated ConnectionInfo connections = 4; + * @return {!Array} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getConnectionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this +*/ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setConnectionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.addConnections = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.clearConnectionsList = function() { + return this.setConnectionsList([]); +}; + + +/** + * optional int32 average_per_second = 5; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getAveragePerSecond = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setAveragePerSecond = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 total_items = 6; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getTotalItems = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setTotalItems = function(value) { + return jspb.Message.setProto3StringIntField(this, 6, value); +}; + + +/** + * optional int64 count_since_last_measurement = 7; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getCountSinceLastMeasurement = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setCountSinceLastMeasurement = function(value) { + return jspb.Message.setProto3StringIntField(this, 7, value); +}; + + +/** + * optional string last_checkpointed_event_position = 8; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLastCheckpointedEventPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLastCheckpointedEventPosition = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string last_known_event_position = 9; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLastKnownEventPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLastKnownEventPosition = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional bool resolve_link_tos = 10; + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getResolveLinkTos = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setResolveLinkTos = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + +/** + * optional string start_from = 11; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getStartFrom = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setStartFrom = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional int32 message_timeout_milliseconds = 12; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMessageTimeoutMilliseconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMessageTimeoutMilliseconds = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional bool extra_statistics = 13; + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getExtraStatistics = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setExtraStatistics = function(value) { + return jspb.Message.setProto3BooleanField(this, 13, value); +}; + + +/** + * optional int32 max_retry_count = 14; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMaxRetryCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMaxRetryCount = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + + +/** + * optional int32 live_buffer_size = 15; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLiveBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLiveBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional int32 buffer_size = 16; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getBufferSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setBufferSize = function(value) { + return jspb.Message.setProto3IntField(this, 16, value); +}; + + +/** + * optional int32 read_batch_size = 17; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getReadBatchSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setReadBatchSize = function(value) { + return jspb.Message.setProto3IntField(this, 17, value); +}; + + +/** + * optional int32 check_point_after_milliseconds = 18; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getCheckPointAfterMilliseconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setCheckPointAfterMilliseconds = function(value) { + return jspb.Message.setProto3IntField(this, 18, value); +}; + + +/** + * optional int32 min_check_point_count = 19; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMinCheckPointCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMinCheckPointCount = function(value) { + return jspb.Message.setProto3IntField(this, 19, value); +}; + + +/** + * optional int32 max_check_point_count = 20; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMaxCheckPointCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMaxCheckPointCount = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + +/** + * optional int32 read_buffer_count = 21; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getReadBufferCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setReadBufferCount = function(value) { + return jspb.Message.setProto3IntField(this, 21, value); +}; + + +/** + * optional int64 live_buffer_count = 22; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLiveBufferCount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLiveBufferCount = function(value) { + return jspb.Message.setProto3StringIntField(this, 22, value); +}; + + +/** + * optional int32 retry_buffer_count = 23; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getRetryBufferCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setRetryBufferCount = function(value) { + return jspb.Message.setProto3IntField(this, 23, value); +}; + + +/** + * optional int32 total_in_flight_messages = 24; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getTotalInFlightMessages = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setTotalInFlightMessages = function(value) { + return jspb.Message.setProto3IntField(this, 24, value); +}; + + +/** + * optional int32 outstanding_messages_count = 25; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getOutstandingMessagesCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setOutstandingMessagesCount = function(value) { + return jspb.Message.setProto3IntField(this, 25, value); +}; + + +/** + * optional string named_consumer_strategy = 26; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getNamedConsumerStrategy = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setNamedConsumerStrategy = function(value) { + return jspb.Message.setProto3StringField(this, 26, value); +}; + + +/** + * optional int32 max_subscriber_count = 27; + * @return {number} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMaxSubscriberCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMaxSubscriberCount = function(value) { + return jspb.Message.setProto3IntField(this, 27, value); +}; + + +/** + * optional int64 parked_message_count = 28; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getParkedMessageCount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this + */ +proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setParkedMessageCount = function(value) { + return jspb.Message.setProto3StringIntField(this, 28, 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_, 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.persistent_subscriptions.ReplayParkedReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReplayParkedReq; + return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_ = [[2,3],[4,5]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM_IDENTIFIER: 2, + ALL: 3 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase = { + STOP_AT_OPTION_NOT_SET: 0, + STOP_AT: 4, + NO_LIMIT: 5 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStopAtOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1])); +}; + + + +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_, 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.persistent_subscriptions.ReplayParkedReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + groupName: jspb.Message.getFieldWithDefault(msg, 1, ""), + streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + stopAt: jspb.Message.getFieldWithDefault(msg, 4, "0"), + noLimit: (f = msg.getNoLimit()) && shared_pb.Empty.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.persistent_subscriptions.ReplayParkedReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options; + return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.setGroupName(value); + break; + case 2: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStreamIdentifier(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 4: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setStopAt(value); + break; + case 5: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setNoLimit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getStreamIdentifier(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeInt64String( + 4, + f + ); + } + f = message.getNoLimit(); + if (f != null) { + writer.writeMessage( + 5, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string group_name = 1; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getGroupName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setGroupName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional event_store.client.StreamIdentifier stream_identifier = 2; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStreamIdentifier = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setStreamIdentifier = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearStreamIdentifier = function() { + return this.setStreamIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasStreamIdentifier = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.Empty all = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional int64 stop_at = 4; + * @return {string} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStopAt = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setStopAt = function(value) { + return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearStopAt = function() { + return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasStopAt = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional event_store.client.Empty no_limit = 5; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getNoLimit = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setNoLimit = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearNoLimit = function() { + return this.setNoLimit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasNoLimit = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} returns this + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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_, 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.persistent_subscriptions.ReplayParkedResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ReplayParkedResp; + return proto.event_store.client.persistent_subscriptions.ReplayParkedResp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ReplayParkedResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedResp} + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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_, 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.persistent_subscriptions.ListReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq} + */ +proto.event_store.client.persistent_subscriptions.ListReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ListReq; + return proto.event_store.client.persistent_subscriptions.ListReq.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ListReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq} + */ +proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.ListReq.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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase = { + LIST_OPTION_NOT_SET: 0, + LIST_ALL_SUBSCRIPTIONS: 1, + LIST_FOR_STREAM: 2 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ListReq.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_, 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.persistent_subscriptions.ListReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + listAllSubscriptions: (f = msg.getListAllSubscriptions()) && shared_pb.Empty.toObject(includeInstance, f), + listForStream: (f = msg.getListForStream()) && proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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.persistent_subscriptions.ListReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ListReq.Options; + return proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ListReq.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.setListAllSubscriptions(value); + break; + case 2: + var value = new proto.event_store.client.persistent_subscriptions.ListReq.StreamOption; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinaryFromReader); + msg.setListForStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getListAllSubscriptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getListForStream(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serializeBinaryToWriter + ); + } +}; + + +/** + * optional event_store.client.Empty list_all_subscriptions = 1; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListAllSubscriptions = 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.persistent_subscriptions.ListReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.setListAllSubscriptions = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.clearListAllSubscriptions = function() { + return this.setListAllSubscriptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.hasListAllSubscriptions = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional StreamOption list_for_stream = 2; + * @return {?proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListForStream = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption, 2)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ListReq.StreamOption|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} returns this +*/ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.setListForStream = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} returns this + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.clearListForStream = function() { + return this.setListForStream(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.hasListForStream = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase = { + STREAM_OPTION_NOT_SET: 0, + STREAM: 1, + ALL: 2 +}; + +/** + * @return {proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getStreamOptionCase = function() { + return /** @type {proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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_, 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.persistent_subscriptions.ListReq.StreamOption.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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.persistent_subscriptions.ListReq.StreamOption} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.toObject = function(includeInstance, msg) { + var f, obj = { + stream: (f = msg.getStream()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && shared_pb.Empty.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.persistent_subscriptions.ListReq.StreamOption} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ListReq.StreamOption; + return proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new shared_pb.StreamIdentifier; + reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + msg.setStream(value); + break; + case 2: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setAll(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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.persistent_subscriptions.ListReq.StreamOption} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f != null) { + writer.writeMessage( + 1, + f, + shared_pb.StreamIdentifier.serializeBinaryToWriter + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional event_store.client.StreamIdentifier stream = 1; + * @return {?proto.event_store.client.StreamIdentifier} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getStream = function() { + return /** @type{?proto.event_store.client.StreamIdentifier} */ ( + jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); +}; + + +/** + * @param {?proto.event_store.client.StreamIdentifier|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this +*/ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.setStream = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.clearStream = function() { + return this.setStream(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.hasStream = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty all = 2; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getAll = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this +*/ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.hasAll = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.persistent_subscriptions.ListReq.Options} + */ +proto.event_store.client.persistent_subscriptions.ListReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.persistent_subscriptions.ListReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ListReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.persistent_subscriptions.ListReq.Options|undefined} value + * @return {!proto.event_store.client.persistent_subscriptions.ListReq} returns this +*/ +proto.event_store.client.persistent_subscriptions.ListReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.persistent_subscriptions.ListReq} returns this + */ +proto.event_store.client.persistent_subscriptions.ListReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.persistent_subscriptions.ListReq.prototype.hasOptions = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.persistent_subscriptions.ListResp.repeatedFields_ = [1]; + + + +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_, 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.persistent_subscriptions.ListResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.persistent_subscriptions.ListResp.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.persistent_subscriptions.ListResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListResp.toObject = function(includeInstance, msg) { + var f, obj = { + subscriptionsList: jspb.Message.toObjectList(msg.getSubscriptionsList(), + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.toObject, includeInstance) + }; + + 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.persistent_subscriptions.ListResp} + */ +proto.event_store.client.persistent_subscriptions.ListResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.persistent_subscriptions.ListResp; + return proto.event_store.client.persistent_subscriptions.ListResp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.event_store.client.persistent_subscriptions.ListResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.persistent_subscriptions.ListResp} + */ +proto.event_store.client.persistent_subscriptions.ListResp.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.persistent_subscriptions.SubscriptionInfo; + reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinaryFromReader); + msg.addSubscriptions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.persistent_subscriptions.ListResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.persistent_subscriptions.ListResp.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.persistent_subscriptions.ListResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.persistent_subscriptions.ListResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSubscriptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.event_store.client.persistent_subscriptions.SubscriptionInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated SubscriptionInfo subscriptions = 1; + * @return {!Array} + */ +proto.event_store.client.persistent_subscriptions.ListResp.prototype.getSubscriptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.persistent_subscriptions.ListResp} returns this +*/ +proto.event_store.client.persistent_subscriptions.ListResp.prototype.setSubscriptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} + */ +proto.event_store.client.persistent_subscriptions.ListResp.prototype.addSubscriptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.event_store.client.persistent_subscriptions.SubscriptionInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.persistent_subscriptions.ListResp} returns this + */ +proto.event_store.client.persistent_subscriptions.ListResp.prototype.clearSubscriptionsList = function() { + return this.setSubscriptionsList([]); +}; + + +goog.object.extend(exports, proto.event_store.client.persistent_subscriptions); diff --git a/packages/db-client/generated/projectionmanagement_grpc_pb.d.ts b/packages/db-client/generated/projectionmanagement_grpc_pb.d.ts new file mode 100644 index 00000000..a1b9ad2b --- /dev/null +++ b/packages/db-client/generated/projectionmanagement_grpc_pb.d.ts @@ -0,0 +1,194 @@ +// package: event_store.client.projections +// file: projectionmanagement.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as projectionmanagement_pb from "./projectionmanagement_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +import * as shared_pb from "./shared_pb"; + +interface IProjectionsService extends grpc.ServiceDefinition { + create: IProjectionsService_ICreate; + update: IProjectionsService_IUpdate; + delete: IProjectionsService_IDelete; + statistics: IProjectionsService_IStatistics; + disable: IProjectionsService_IDisable; + enable: IProjectionsService_IEnable; + reset: IProjectionsService_IReset; + state: IProjectionsService_IState; + result: IProjectionsService_IResult; + restartSubsystem: IProjectionsService_IRestartSubsystem; +} + +interface IProjectionsService_ICreate extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Create"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IUpdate extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Update"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IStatistics extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Statistics"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IDisable extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Disable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IEnable extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Enable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IReset extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Reset"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IState extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/State"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IResult extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Result"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IRestartSubsystem extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/RestartSubsystem"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const ProjectionsService: IProjectionsService; + +export interface IProjectionsServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; + statistics: grpc.handleServerStreamingCall; + disable: grpc.handleUnaryCall; + enable: grpc.handleUnaryCall; + reset: grpc.handleUnaryCall; + state: grpc.handleUnaryCall; + result: grpc.handleUnaryCall; + restartSubsystem: grpc.handleUnaryCall; +} + +export interface IProjectionsClient { + create(request: projectionmanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + update(request: projectionmanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + delete(request: projectionmanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + statistics(request: projectionmanagement_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; + statistics(request: projectionmanagement_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + disable(request: projectionmanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + enable(request: projectionmanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + reset(request: projectionmanagement_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + state(request: projectionmanagement_pb.StateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + result(request: projectionmanagement_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class ProjectionsClient extends grpc.Client implements IProjectionsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public create(request: projectionmanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public update(request: projectionmanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public delete(request: projectionmanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public statistics(request: projectionmanagement_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; + public statistics(request: projectionmanagement_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public disable(request: projectionmanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public enable(request: projectionmanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public reset(request: projectionmanagement_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + public reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + public reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + public state(request: projectionmanagement_pb.StateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + public state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + public state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + public result(request: projectionmanagement_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + public result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + public result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/projectionmanagement_grpc_pb.js b/packages/db-client/generated/projectionmanagement_grpc_pb.js new file mode 100644 index 00000000..4482683f --- /dev/null +++ b/packages/db-client/generated/projectionmanagement_grpc_pb.js @@ -0,0 +1,332 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var projectionmanagement_pb = require('./projectionmanagement_pb.js'); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +var shared_pb = require('./shared_pb.js'); + +function serialize_event_store_client_Empty(arg) { + if (!(arg instanceof shared_pb.Empty)) { + throw new Error('Expected argument of type event_store.client.Empty'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_Empty(buffer_arg) { + return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_CreateReq(arg) { + if (!(arg instanceof projectionmanagement_pb.CreateReq)) { + throw new Error('Expected argument of type event_store.client.projections.CreateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_CreateReq(buffer_arg) { + return projectionmanagement_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_CreateResp(arg) { + if (!(arg instanceof projectionmanagement_pb.CreateResp)) { + throw new Error('Expected argument of type event_store.client.projections.CreateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_CreateResp(buffer_arg) { + return projectionmanagement_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_DeleteReq(arg) { + if (!(arg instanceof projectionmanagement_pb.DeleteReq)) { + throw new Error('Expected argument of type event_store.client.projections.DeleteReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_DeleteReq(buffer_arg) { + return projectionmanagement_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_DeleteResp(arg) { + if (!(arg instanceof projectionmanagement_pb.DeleteResp)) { + throw new Error('Expected argument of type event_store.client.projections.DeleteResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_DeleteResp(buffer_arg) { + return projectionmanagement_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_DisableReq(arg) { + if (!(arg instanceof projectionmanagement_pb.DisableReq)) { + throw new Error('Expected argument of type event_store.client.projections.DisableReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_DisableReq(buffer_arg) { + return projectionmanagement_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_DisableResp(arg) { + if (!(arg instanceof projectionmanagement_pb.DisableResp)) { + throw new Error('Expected argument of type event_store.client.projections.DisableResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_DisableResp(buffer_arg) { + return projectionmanagement_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_EnableReq(arg) { + if (!(arg instanceof projectionmanagement_pb.EnableReq)) { + throw new Error('Expected argument of type event_store.client.projections.EnableReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_EnableReq(buffer_arg) { + return projectionmanagement_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_EnableResp(arg) { + if (!(arg instanceof projectionmanagement_pb.EnableResp)) { + throw new Error('Expected argument of type event_store.client.projections.EnableResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_EnableResp(buffer_arg) { + return projectionmanagement_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_ResetReq(arg) { + if (!(arg instanceof projectionmanagement_pb.ResetReq)) { + throw new Error('Expected argument of type event_store.client.projections.ResetReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_ResetReq(buffer_arg) { + return projectionmanagement_pb.ResetReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_ResetResp(arg) { + if (!(arg instanceof projectionmanagement_pb.ResetResp)) { + throw new Error('Expected argument of type event_store.client.projections.ResetResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_ResetResp(buffer_arg) { + return projectionmanagement_pb.ResetResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_ResultReq(arg) { + if (!(arg instanceof projectionmanagement_pb.ResultReq)) { + throw new Error('Expected argument of type event_store.client.projections.ResultReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_ResultReq(buffer_arg) { + return projectionmanagement_pb.ResultReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_ResultResp(arg) { + if (!(arg instanceof projectionmanagement_pb.ResultResp)) { + throw new Error('Expected argument of type event_store.client.projections.ResultResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_ResultResp(buffer_arg) { + return projectionmanagement_pb.ResultResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_StateReq(arg) { + if (!(arg instanceof projectionmanagement_pb.StateReq)) { + throw new Error('Expected argument of type event_store.client.projections.StateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_StateReq(buffer_arg) { + return projectionmanagement_pb.StateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_StateResp(arg) { + if (!(arg instanceof projectionmanagement_pb.StateResp)) { + throw new Error('Expected argument of type event_store.client.projections.StateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_StateResp(buffer_arg) { + return projectionmanagement_pb.StateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_StatisticsReq(arg) { + if (!(arg instanceof projectionmanagement_pb.StatisticsReq)) { + throw new Error('Expected argument of type event_store.client.projections.StatisticsReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_StatisticsReq(buffer_arg) { + return projectionmanagement_pb.StatisticsReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_StatisticsResp(arg) { + if (!(arg instanceof projectionmanagement_pb.StatisticsResp)) { + throw new Error('Expected argument of type event_store.client.projections.StatisticsResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_StatisticsResp(buffer_arg) { + return projectionmanagement_pb.StatisticsResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_UpdateReq(arg) { + if (!(arg instanceof projectionmanagement_pb.UpdateReq)) { + throw new Error('Expected argument of type event_store.client.projections.UpdateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_UpdateReq(buffer_arg) { + return projectionmanagement_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_projections_UpdateResp(arg) { + if (!(arg instanceof projectionmanagement_pb.UpdateResp)) { + throw new Error('Expected argument of type event_store.client.projections.UpdateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_projections_UpdateResp(buffer_arg) { + return projectionmanagement_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var ProjectionsService = exports.ProjectionsService = { + create: { + path: '/event_store.client.projections.Projections/Create', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.CreateReq, + responseType: projectionmanagement_pb.CreateResp, + requestSerialize: serialize_event_store_client_projections_CreateReq, + requestDeserialize: deserialize_event_store_client_projections_CreateReq, + responseSerialize: serialize_event_store_client_projections_CreateResp, + responseDeserialize: deserialize_event_store_client_projections_CreateResp, + }, + update: { + path: '/event_store.client.projections.Projections/Update', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.UpdateReq, + responseType: projectionmanagement_pb.UpdateResp, + requestSerialize: serialize_event_store_client_projections_UpdateReq, + requestDeserialize: deserialize_event_store_client_projections_UpdateReq, + responseSerialize: serialize_event_store_client_projections_UpdateResp, + responseDeserialize: deserialize_event_store_client_projections_UpdateResp, + }, + delete: { + path: '/event_store.client.projections.Projections/Delete', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.DeleteReq, + responseType: projectionmanagement_pb.DeleteResp, + requestSerialize: serialize_event_store_client_projections_DeleteReq, + requestDeserialize: deserialize_event_store_client_projections_DeleteReq, + responseSerialize: serialize_event_store_client_projections_DeleteResp, + responseDeserialize: deserialize_event_store_client_projections_DeleteResp, + }, + statistics: { + path: '/event_store.client.projections.Projections/Statistics', + requestStream: false, + responseStream: true, + requestType: projectionmanagement_pb.StatisticsReq, + responseType: projectionmanagement_pb.StatisticsResp, + requestSerialize: serialize_event_store_client_projections_StatisticsReq, + requestDeserialize: deserialize_event_store_client_projections_StatisticsReq, + responseSerialize: serialize_event_store_client_projections_StatisticsResp, + responseDeserialize: deserialize_event_store_client_projections_StatisticsResp, + }, + disable: { + path: '/event_store.client.projections.Projections/Disable', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.DisableReq, + responseType: projectionmanagement_pb.DisableResp, + requestSerialize: serialize_event_store_client_projections_DisableReq, + requestDeserialize: deserialize_event_store_client_projections_DisableReq, + responseSerialize: serialize_event_store_client_projections_DisableResp, + responseDeserialize: deserialize_event_store_client_projections_DisableResp, + }, + enable: { + path: '/event_store.client.projections.Projections/Enable', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.EnableReq, + responseType: projectionmanagement_pb.EnableResp, + requestSerialize: serialize_event_store_client_projections_EnableReq, + requestDeserialize: deserialize_event_store_client_projections_EnableReq, + responseSerialize: serialize_event_store_client_projections_EnableResp, + responseDeserialize: deserialize_event_store_client_projections_EnableResp, + }, + reset: { + path: '/event_store.client.projections.Projections/Reset', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.ResetReq, + responseType: projectionmanagement_pb.ResetResp, + requestSerialize: serialize_event_store_client_projections_ResetReq, + requestDeserialize: deserialize_event_store_client_projections_ResetReq, + responseSerialize: serialize_event_store_client_projections_ResetResp, + responseDeserialize: deserialize_event_store_client_projections_ResetResp, + }, + state: { + path: '/event_store.client.projections.Projections/State', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.StateReq, + responseType: projectionmanagement_pb.StateResp, + requestSerialize: serialize_event_store_client_projections_StateReq, + requestDeserialize: deserialize_event_store_client_projections_StateReq, + responseSerialize: serialize_event_store_client_projections_StateResp, + responseDeserialize: deserialize_event_store_client_projections_StateResp, + }, + result: { + path: '/event_store.client.projections.Projections/Result', + requestStream: false, + responseStream: false, + requestType: projectionmanagement_pb.ResultReq, + responseType: projectionmanagement_pb.ResultResp, + requestSerialize: serialize_event_store_client_projections_ResultReq, + requestDeserialize: deserialize_event_store_client_projections_ResultReq, + responseSerialize: serialize_event_store_client_projections_ResultResp, + responseDeserialize: deserialize_event_store_client_projections_ResultResp, + }, + restartSubsystem: { + path: '/event_store.client.projections.Projections/RestartSubsystem', + requestStream: false, + responseStream: false, + requestType: shared_pb.Empty, + responseType: shared_pb.Empty, + requestSerialize: serialize_event_store_client_Empty, + requestDeserialize: deserialize_event_store_client_Empty, + responseSerialize: serialize_event_store_client_Empty, + responseDeserialize: deserialize_event_store_client_Empty, + }, +}; + +exports.ProjectionsClient = grpc.makeGenericClientConstructor(ProjectionsService, 'Projections'); diff --git a/packages/db-client/generated/projectionmanagement_pb.d.ts b/packages/db-client/generated/projectionmanagement_pb.d.ts new file mode 100644 index 00000000..4d24b66e --- /dev/null +++ b/packages/db-client/generated/projectionmanagement_pb.d.ts @@ -0,0 +1,821 @@ +// package: event_store.client.projections +// file: projectionmanagement.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +import * as shared_pb from "./shared_pb"; + +export class CreateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): CreateReq.Options | undefined; + setOptions(value?: CreateReq.Options): CreateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateReq.AsObject; + static toObject(includeInstance: boolean, msg: CreateReq): CreateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateReq; + static deserializeBinaryFromReader(message: CreateReq, reader: jspb.BinaryReader): CreateReq; +} + +export namespace CreateReq { + export type AsObject = { + options?: CreateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasOneTime(): boolean; + clearOneTime(): void; + getOneTime(): shared_pb.Empty | undefined; + setOneTime(value?: shared_pb.Empty): Options; + + hasTransient(): boolean; + clearTransient(): void; + getTransient(): CreateReq.Options.Transient | undefined; + setTransient(value?: CreateReq.Options.Transient): Options; + + hasContinuous(): boolean; + clearContinuous(): void; + getContinuous(): CreateReq.Options.Continuous | undefined; + setContinuous(value?: CreateReq.Options.Continuous): Options; + getQuery(): string; + setQuery(value: string): Options; + + getModeCase(): Options.ModeCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + oneTime?: shared_pb.Empty.AsObject, + pb_transient?: CreateReq.Options.Transient.AsObject, + continuous?: CreateReq.Options.Continuous.AsObject, + query: string, + } + + + export class Transient extends jspb.Message { + getName(): string; + setName(value: string): Transient; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Transient.AsObject; + static toObject(includeInstance: boolean, msg: Transient): Transient.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Transient, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Transient; + static deserializeBinaryFromReader(message: Transient, reader: jspb.BinaryReader): Transient; + } + + export namespace Transient { + export type AsObject = { + name: string, + } + } + + export class Continuous extends jspb.Message { + getName(): string; + setName(value: string): Continuous; + getEmitEnabled(): boolean; + setEmitEnabled(value: boolean): Continuous; + getTrackEmittedStreams(): boolean; + setTrackEmittedStreams(value: boolean): Continuous; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Continuous.AsObject; + static toObject(includeInstance: boolean, msg: Continuous): Continuous.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Continuous, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Continuous; + static deserializeBinaryFromReader(message: Continuous, reader: jspb.BinaryReader): Continuous; + } + + export namespace Continuous { + export type AsObject = { + name: string, + emitEnabled: boolean, + trackEmittedStreams: boolean, + } + } + + + export enum ModeCase { + MODE_NOT_SET = 0, + ONE_TIME = 1, + TRANSIENT = 2, + CONTINUOUS = 3, + } + + } + +} + +export class CreateResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateResp.AsObject; + static toObject(includeInstance: boolean, msg: CreateResp): CreateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateResp; + static deserializeBinaryFromReader(message: CreateResp, reader: jspb.BinaryReader): CreateResp; +} + +export namespace CreateResp { + export type AsObject = { + } +} + +export class UpdateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): UpdateReq.Options | undefined; + setOptions(value?: UpdateReq.Options): UpdateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateReq.AsObject; + static toObject(includeInstance: boolean, msg: UpdateReq): UpdateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateReq; + static deserializeBinaryFromReader(message: UpdateReq, reader: jspb.BinaryReader): UpdateReq; +} + +export namespace UpdateReq { + export type AsObject = { + options?: UpdateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + getQuery(): string; + setQuery(value: string): Options; + + hasEmitEnabled(): boolean; + clearEmitEnabled(): void; + getEmitEnabled(): boolean; + setEmitEnabled(value: boolean): Options; + + hasNoEmitOptions(): boolean; + clearNoEmitOptions(): void; + getNoEmitOptions(): shared_pb.Empty | undefined; + setNoEmitOptions(value?: shared_pb.Empty): Options; + + getEmitOptionCase(): Options.EmitOptionCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + query: string, + emitEnabled: boolean, + noEmitOptions?: shared_pb.Empty.AsObject, + } + + export enum EmitOptionCase { + EMIT_OPTION_NOT_SET = 0, + EMIT_ENABLED = 3, + NO_EMIT_OPTIONS = 4, + } + + } + +} + +export class UpdateResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateResp.AsObject; + static toObject(includeInstance: boolean, msg: UpdateResp): UpdateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateResp; + static deserializeBinaryFromReader(message: UpdateResp, reader: jspb.BinaryReader): UpdateResp; +} + +export namespace UpdateResp { + export type AsObject = { + } +} + +export class DeleteReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): DeleteReq.Options | undefined; + setOptions(value?: DeleteReq.Options): DeleteReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteReq.AsObject; + static toObject(includeInstance: boolean, msg: DeleteReq): DeleteReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteReq; + static deserializeBinaryFromReader(message: DeleteReq, reader: jspb.BinaryReader): DeleteReq; +} + +export namespace DeleteReq { + export type AsObject = { + options?: DeleteReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + getDeleteEmittedStreams(): boolean; + setDeleteEmittedStreams(value: boolean): Options; + getDeleteStateStream(): boolean; + setDeleteStateStream(value: boolean): Options; + getDeleteCheckpointStream(): boolean; + setDeleteCheckpointStream(value: boolean): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + deleteEmittedStreams: boolean, + deleteStateStream: boolean, + deleteCheckpointStream: boolean, + } + } + +} + +export class DeleteResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteResp.AsObject; + static toObject(includeInstance: boolean, msg: DeleteResp): DeleteResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteResp; + static deserializeBinaryFromReader(message: DeleteResp, reader: jspb.BinaryReader): DeleteResp; +} + +export namespace DeleteResp { + export type AsObject = { + } +} + +export class StatisticsReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): StatisticsReq.Options | undefined; + setOptions(value?: StatisticsReq.Options): StatisticsReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StatisticsReq.AsObject; + static toObject(includeInstance: boolean, msg: StatisticsReq): StatisticsReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StatisticsReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StatisticsReq; + static deserializeBinaryFromReader(message: StatisticsReq, reader: jspb.BinaryReader): StatisticsReq; +} + +export namespace StatisticsReq { + export type AsObject = { + options?: StatisticsReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + + hasName(): boolean; + clearName(): void; + getName(): string; + setName(value: string): Options; + + hasAll(): boolean; + clearAll(): void; + getAll(): shared_pb.Empty | undefined; + setAll(value?: shared_pb.Empty): Options; + + hasTransient(): boolean; + clearTransient(): void; + getTransient(): shared_pb.Empty | undefined; + setTransient(value?: shared_pb.Empty): Options; + + hasContinuous(): boolean; + clearContinuous(): void; + getContinuous(): shared_pb.Empty | undefined; + setContinuous(value?: shared_pb.Empty): Options; + + hasOneTime(): boolean; + clearOneTime(): void; + getOneTime(): shared_pb.Empty | undefined; + setOneTime(value?: shared_pb.Empty): Options; + + getModeCase(): Options.ModeCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + all?: shared_pb.Empty.AsObject, + pb_transient?: shared_pb.Empty.AsObject, + continuous?: shared_pb.Empty.AsObject, + oneTime?: shared_pb.Empty.AsObject, + } + + export enum ModeCase { + MODE_NOT_SET = 0, + NAME = 1, + ALL = 2, + TRANSIENT = 3, + CONTINUOUS = 4, + ONE_TIME = 5, + } + + } + +} + +export class StatisticsResp extends jspb.Message { + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): StatisticsResp.Details | undefined; + setDetails(value?: StatisticsResp.Details): StatisticsResp; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StatisticsResp.AsObject; + static toObject(includeInstance: boolean, msg: StatisticsResp): StatisticsResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StatisticsResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StatisticsResp; + static deserializeBinaryFromReader(message: StatisticsResp, reader: jspb.BinaryReader): StatisticsResp; +} + +export namespace StatisticsResp { + export type AsObject = { + details?: StatisticsResp.Details.AsObject, + } + + + export class Details extends jspb.Message { + getCoreprocessingtime(): string; + setCoreprocessingtime(value: string): Details; + getVersion(): string; + setVersion(value: string): Details; + getEpoch(): string; + setEpoch(value: string): Details; + getEffectivename(): string; + setEffectivename(value: string): Details; + getWritesinprogress(): number; + setWritesinprogress(value: number): Details; + getReadsinprogress(): number; + setReadsinprogress(value: number): Details; + getPartitionscached(): number; + setPartitionscached(value: number): Details; + getStatus(): string; + setStatus(value: string): Details; + getStatereason(): string; + setStatereason(value: string): Details; + getName(): string; + setName(value: string): Details; + getMode(): string; + setMode(value: string): Details; + getPosition(): string; + setPosition(value: string): Details; + getProgress(): number; + setProgress(value: number): Details; + getLastcheckpoint(): string; + setLastcheckpoint(value: string): Details; + getEventsprocessedafterrestart(): string; + setEventsprocessedafterrestart(value: string): Details; + getCheckpointstatus(): string; + setCheckpointstatus(value: string): Details; + getBufferedevents(): string; + setBufferedevents(value: string): Details; + getWritependingeventsbeforecheckpoint(): number; + setWritependingeventsbeforecheckpoint(value: number): Details; + getWritependingeventsaftercheckpoint(): number; + setWritependingeventsaftercheckpoint(value: number): Details; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Details.AsObject; + static toObject(includeInstance: boolean, msg: Details): Details.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Details, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Details; + static deserializeBinaryFromReader(message: Details, reader: jspb.BinaryReader): Details; + } + + export namespace Details { + export type AsObject = { + coreprocessingtime: string, + version: string, + epoch: string, + effectivename: string, + writesinprogress: number, + readsinprogress: number, + partitionscached: number, + status: string, + statereason: string, + name: string, + mode: string, + position: string, + progress: number, + lastcheckpoint: string, + eventsprocessedafterrestart: string, + checkpointstatus: string, + bufferedevents: string, + writependingeventsbeforecheckpoint: number, + writependingeventsaftercheckpoint: number, + } + } + +} + +export class StateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): StateReq.Options | undefined; + setOptions(value?: StateReq.Options): StateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StateReq.AsObject; + static toObject(includeInstance: boolean, msg: StateReq): StateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StateReq; + static deserializeBinaryFromReader(message: StateReq, reader: jspb.BinaryReader): StateReq; +} + +export namespace StateReq { + export type AsObject = { + options?: StateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + getPartition(): string; + setPartition(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + partition: string, + } + } + +} + +export class StateResp extends jspb.Message { + + hasState(): boolean; + clearState(): void; + getState(): google_protobuf_struct_pb.Value | undefined; + setState(value?: google_protobuf_struct_pb.Value): StateResp; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StateResp.AsObject; + static toObject(includeInstance: boolean, msg: StateResp): StateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StateResp; + static deserializeBinaryFromReader(message: StateResp, reader: jspb.BinaryReader): StateResp; +} + +export namespace StateResp { + export type AsObject = { + state?: google_protobuf_struct_pb.Value.AsObject, + } +} + +export class ResultReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ResultReq.Options | undefined; + setOptions(value?: ResultReq.Options): ResultReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResultReq.AsObject; + static toObject(includeInstance: boolean, msg: ResultReq): ResultReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResultReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResultReq; + static deserializeBinaryFromReader(message: ResultReq, reader: jspb.BinaryReader): ResultReq; +} + +export namespace ResultReq { + export type AsObject = { + options?: ResultReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + getPartition(): string; + setPartition(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + partition: string, + } + } + +} + +export class ResultResp extends jspb.Message { + + hasResult(): boolean; + clearResult(): void; + getResult(): google_protobuf_struct_pb.Value | undefined; + setResult(value?: google_protobuf_struct_pb.Value): ResultResp; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResultResp.AsObject; + static toObject(includeInstance: boolean, msg: ResultResp): ResultResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResultResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResultResp; + static deserializeBinaryFromReader(message: ResultResp, reader: jspb.BinaryReader): ResultResp; +} + +export namespace ResultResp { + export type AsObject = { + result?: google_protobuf_struct_pb.Value.AsObject, + } +} + +export class ResetReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ResetReq.Options | undefined; + setOptions(value?: ResetReq.Options): ResetReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResetReq.AsObject; + static toObject(includeInstance: boolean, msg: ResetReq): ResetReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResetReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResetReq; + static deserializeBinaryFromReader(message: ResetReq, reader: jspb.BinaryReader): ResetReq; +} + +export namespace ResetReq { + export type AsObject = { + options?: ResetReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + getWriteCheckpoint(): boolean; + setWriteCheckpoint(value: boolean): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + writeCheckpoint: boolean, + } + } + +} + +export class ResetResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResetResp.AsObject; + static toObject(includeInstance: boolean, msg: ResetResp): ResetResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResetResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResetResp; + static deserializeBinaryFromReader(message: ResetResp, reader: jspb.BinaryReader): ResetResp; +} + +export namespace ResetResp { + export type AsObject = { + } +} + +export class EnableReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): EnableReq.Options | undefined; + setOptions(value?: EnableReq.Options): EnableReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableReq.AsObject; + static toObject(includeInstance: boolean, msg: EnableReq): EnableReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableReq; + static deserializeBinaryFromReader(message: EnableReq, reader: jspb.BinaryReader): EnableReq; +} + +export namespace EnableReq { + export type AsObject = { + options?: EnableReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + } + } + +} + +export class EnableResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableResp.AsObject; + static toObject(includeInstance: boolean, msg: EnableResp): EnableResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableResp; + static deserializeBinaryFromReader(message: EnableResp, reader: jspb.BinaryReader): EnableResp; +} + +export namespace EnableResp { + export type AsObject = { + } +} + +export class DisableReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): DisableReq.Options | undefined; + setOptions(value?: DisableReq.Options): DisableReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableReq.AsObject; + static toObject(includeInstance: boolean, msg: DisableReq): DisableReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableReq; + static deserializeBinaryFromReader(message: DisableReq, reader: jspb.BinaryReader): DisableReq; +} + +export namespace DisableReq { + export type AsObject = { + options?: DisableReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getName(): string; + setName(value: string): Options; + getWriteCheckpoint(): boolean; + setWriteCheckpoint(value: boolean): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + name: string, + writeCheckpoint: boolean, + } + } + +} + +export class DisableResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableResp.AsObject; + static toObject(includeInstance: boolean, msg: DisableResp): DisableResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableResp; + static deserializeBinaryFromReader(message: DisableResp, reader: jspb.BinaryReader): DisableResp; +} + +export namespace DisableResp { + export type AsObject = { + } +} diff --git a/packages/db-client/generated/projectionmanagement_pb.js b/packages/db-client/generated/projectionmanagement_pb.js new file mode 100644 index 00000000..7b365fad --- /dev/null +++ b/packages/db-client/generated/projectionmanagement_pb.js @@ -0,0 +1,6065 @@ +// source: projectionmanagement.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_, 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>} + * @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_, 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_, 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_, 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_store.client.projections.CreateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.CreateReq.Options} returns this + */ +proto.event_store.client.projections.CreateReq.Options.prototype.clearOneTime = function() { + return this.setOneTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.CreateReq.Options.prototype.hasOneTime = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Transient transient = 2; + * @return {?proto.event_store.client.projections.CreateReq.Options.Transient} + */ +proto.event_store.client.projections.CreateReq.Options.prototype.getTransient = function() { + return /** @type{?proto.event_store.client.projections.CreateReq.Options.Transient} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.CreateReq.Options.Transient, 2)); +}; + + +/** + * @param {?proto.event_store.client.projections.CreateReq.Options.Transient|undefined} value + * @return {!proto.event_store.client.projections.CreateReq.Options} returns this +*/ +proto.event_store.client.projections.CreateReq.Options.prototype.setTransient = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.projections.CreateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.CreateReq.Options} returns this + */ +proto.event_store.client.projections.CreateReq.Options.prototype.clearTransient = function() { + return this.setTransient(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.CreateReq.Options.prototype.hasTransient = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Continuous continuous = 3; + * @return {?proto.event_store.client.projections.CreateReq.Options.Continuous} + */ +proto.event_store.client.projections.CreateReq.Options.prototype.getContinuous = function() { + return /** @type{?proto.event_store.client.projections.CreateReq.Options.Continuous} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.CreateReq.Options.Continuous, 3)); +}; + + +/** + * @param {?proto.event_store.client.projections.CreateReq.Options.Continuous|undefined} value + * @return {!proto.event_store.client.projections.CreateReq.Options} returns this +*/ +proto.event_store.client.projections.CreateReq.Options.prototype.setContinuous = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.projections.CreateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.CreateReq.Options} returns this + */ +proto.event_store.client.projections.CreateReq.Options.prototype.clearContinuous = function() { + return this.setContinuous(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.CreateReq.Options.prototype.hasContinuous = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string query = 4; + * @return {string} + */ +proto.event_store.client.projections.CreateReq.Options.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.CreateReq.Options} returns this + */ +proto.event_store.client.projections.CreateReq.Options.prototype.setQuery = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.CreateReq.Options} + */ +proto.event_store.client.projections.CreateReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.CreateReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.CreateReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.CreateReq.Options|undefined} value + * @return {!proto.event_store.client.projections.CreateReq} returns this +*/ +proto.event_store.client.projections.CreateReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.CreateReq} returns this + */ +proto.event_store.client.projections.CreateReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.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_, 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.CreateResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.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.projections.CreateResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.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.projections.CreateResp} + */ +proto.event_store.client.projections.CreateResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.CreateResp; + return proto.event_store.client.projections.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.projections.CreateResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.CreateResp} + */ +proto.event_store.client.projections.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.projections.CreateResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.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.projections.CreateResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.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_, 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.UpdateReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.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.projections.UpdateReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.UpdateReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.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.projections.UpdateReq} + */ +proto.event_store.client.projections.UpdateReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.UpdateReq; + return proto.event_store.client.projections.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.projections.UpdateReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.UpdateReq} + */ +proto.event_store.client.projections.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.projections.UpdateReq.Options; + reader.readMessage(value,proto.event_store.client.projections.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.projections.UpdateReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.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.projections.UpdateReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.UpdateReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.UpdateReq.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>} + * @const + */ +proto.event_store.client.projections.UpdateReq.Options.oneofGroups_ = [[3,4]]; + +/** + * @enum {number} + */ +proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase = { + EMIT_OPTION_NOT_SET: 0, + EMIT_ENABLED: 3, + NO_EMIT_OPTIONS: 4 +}; + +/** + * @return {proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.getEmitOptionCase = function() { + return /** @type {proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.projections.UpdateReq.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_, 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.UpdateReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.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.projections.UpdateReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.UpdateReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + query: jspb.Message.getFieldWithDefault(msg, 2, ""), + emitEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + noEmitOptions: (f = msg.getNoEmitOptions()) && shared_pb.Empty.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.UpdateReq.Options} + */ +proto.event_store.client.projections.UpdateReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.UpdateReq.Options; + return proto.event_store.client.projections.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.projections.UpdateReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.UpdateReq.Options} + */ +proto.event_store.client.projections.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.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setQuery(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setEmitEnabled(value); + break; + case 4: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setNoEmitOptions(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.UpdateReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.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.projections.UpdateReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.UpdateReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getQuery(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeBool( + 3, + f + ); + } + f = message.getNoEmitOptions(); + if (f != null) { + writer.writeMessage( + 4, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string query = 2; + * @return {string} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.setQuery = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool emit_enabled = 3; + * @return {boolean} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.getEmitEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.setEmitEnabled = function(value) { + return jspb.Message.setOneofField(this, 3, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.clearEmitEnabled = function() { + return jspb.Message.setOneofField(this, 3, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.hasEmitEnabled = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional event_store.client.Empty no_emit_options = 4; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.getNoEmitOptions = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this +*/ +proto.event_store.client.projections.UpdateReq.Options.prototype.setNoEmitOptions = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.clearNoEmitOptions = function() { + return this.setNoEmitOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.UpdateReq.Options.prototype.hasNoEmitOptions = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.UpdateReq.Options} + */ +proto.event_store.client.projections.UpdateReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.UpdateReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.UpdateReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.UpdateReq.Options|undefined} value + * @return {!proto.event_store.client.projections.UpdateReq} returns this +*/ +proto.event_store.client.projections.UpdateReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.UpdateReq} returns this + */ +proto.event_store.client.projections.UpdateReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.UpdateReq.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_, 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.UpdateResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.UpdateResp.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.UpdateResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.UpdateResp.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.projections.UpdateResp} + */ +proto.event_store.client.projections.UpdateResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.UpdateResp; + return proto.event_store.client.projections.UpdateResp.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.UpdateResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.UpdateResp} + */ +proto.event_store.client.projections.UpdateResp.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.projections.UpdateResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.UpdateResp.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.UpdateResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.UpdateResp.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_, 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.DeleteReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.DeleteReq.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.DeleteReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DeleteReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.DeleteReq.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.DeleteReq} + */ +proto.event_store.client.projections.DeleteReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.DeleteReq; + return proto.event_store.client.projections.DeleteReq.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.DeleteReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.DeleteReq} + */ +proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options; + reader.readMessage(value,proto.event_store.client.projections.DeleteReq.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.DeleteReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.DeleteReq.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.DeleteReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DeleteReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.DeleteReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DeleteReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + deleteEmittedStreams: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + deleteStateStream: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + deleteCheckpointStream: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.DeleteReq.Options} + */ +proto.event_store.client.projections.DeleteReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.DeleteReq.Options; + return proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.DeleteReq.Options} + */ +proto.event_store.client.projections.DeleteReq.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.setName(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteEmittedStreams(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteStateStream(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteCheckpointStream(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.DeleteReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDeleteEmittedStreams(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getDeleteStateStream(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getDeleteCheckpointStream(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool delete_emitted_streams = 2; + * @return {boolean} + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.getDeleteEmittedStreams = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.setDeleteEmittedStreams = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional bool delete_state_stream = 3; + * @return {boolean} + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.getDeleteStateStream = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.setDeleteStateStream = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional bool delete_checkpoint_stream = 4; + * @return {boolean} + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.getDeleteCheckpointStream = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this + */ +proto.event_store.client.projections.DeleteReq.Options.prototype.setDeleteCheckpointStream = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.DeleteReq.Options} + */ +proto.event_store.client.projections.DeleteReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.DeleteReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.DeleteReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.DeleteReq.Options|undefined} value + * @return {!proto.event_store.client.projections.DeleteReq} returns this +*/ +proto.event_store.client.projections.DeleteReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.DeleteReq} returns this + */ +proto.event_store.client.projections.DeleteReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.DeleteReq.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_, 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.DeleteResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.DeleteResp.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.DeleteResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DeleteResp.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.projections.DeleteResp} + */ +proto.event_store.client.projections.DeleteResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.DeleteResp; + return proto.event_store.client.projections.DeleteResp.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.DeleteResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.DeleteResp} + */ +proto.event_store.client.projections.DeleteResp.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.projections.DeleteResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.DeleteResp.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.DeleteResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DeleteResp.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_, 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.StatisticsReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} + */ +proto.event_store.client.projections.StatisticsReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StatisticsReq; + return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StatisticsReq} + */ +proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options; + reader.readMessage(value,proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.StatisticsReq.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>} + * @const + */ +proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_ = [[1,2,3,4,5]]; + +/** + * @enum {number} + */ +proto.event_store.client.projections.StatisticsReq.Options.ModeCase = { + MODE_NOT_SET: 0, + NAME: 1, + ALL: 2, + TRANSIENT: 3, + CONTINUOUS: 4, + ONE_TIME: 5 +}; + +/** + * @return {proto.event_store.client.projections.StatisticsReq.Options.ModeCase} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.getModeCase = function() { + return /** @type {proto.event_store.client.projections.StatisticsReq.Options.ModeCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.projections.StatisticsReq.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_, 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.StatisticsReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + pb_transient: (f = msg.getTransient()) && shared_pb.Empty.toObject(includeInstance, f), + continuous: (f = msg.getContinuous()) && shared_pb.Empty.toObject(includeInstance, f), + oneTime: (f = msg.getOneTime()) && shared_pb.Empty.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.StatisticsReq.Options} + */ +proto.event_store.client.projections.StatisticsReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StatisticsReq.Options; + return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StatisticsReq.Options} + */ +proto.event_store.client.projections.StatisticsReq.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.setName(value); + break; + case 2: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setAll(value); + break; + case 3: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setTransient(value); + break; + case 4: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setContinuous(value); + break; + case 5: + var value = new shared_pb.Empty; + reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + msg.setOneTime(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.StatisticsReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getAll(); + if (f != null) { + writer.writeMessage( + 2, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getTransient(); + if (f != null) { + writer.writeMessage( + 3, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getContinuous(); + if (f != null) { + writer.writeMessage( + 4, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } + f = message.getOneTime(); + if (f != null) { + writer.writeMessage( + 5, + f, + shared_pb.Empty.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.setName = function(value) { + return jspb.Message.setOneofField(this, 1, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.clearName = function() { + return jspb.Message.setOneofField(this, 1, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.hasName = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional event_store.client.Empty all = 2; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.getAll = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this +*/ +proto.event_store.client.projections.StatisticsReq.Options.prototype.setAll = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.clearAll = function() { + return this.setAll(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.hasAll = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional event_store.client.Empty transient = 3; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.getTransient = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this +*/ +proto.event_store.client.projections.StatisticsReq.Options.prototype.setTransient = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.clearTransient = function() { + return this.setTransient(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.hasTransient = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional event_store.client.Empty continuous = 4; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.getContinuous = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this +*/ +proto.event_store.client.projections.StatisticsReq.Options.prototype.setContinuous = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.clearContinuous = function() { + return this.setContinuous(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.hasContinuous = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional event_store.client.Empty one_time = 5; + * @return {?proto.event_store.client.Empty} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.getOneTime = function() { + return /** @type{?proto.event_store.client.Empty} */ ( + jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); +}; + + +/** + * @param {?proto.event_store.client.Empty|undefined} value + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this +*/ +proto.event_store.client.projections.StatisticsReq.Options.prototype.setOneTime = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.clearOneTime = function() { + return this.setOneTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsReq.Options.prototype.hasOneTime = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.StatisticsReq.Options} + */ +proto.event_store.client.projections.StatisticsReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.StatisticsReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.StatisticsReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.StatisticsReq.Options|undefined} value + * @return {!proto.event_store.client.projections.StatisticsReq} returns this +*/ +proto.event_store.client.projections.StatisticsReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsReq} returns this + */ +proto.event_store.client.projections.StatisticsReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsReq.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_, 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.StatisticsResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StatisticsResp.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.StatisticsResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsResp.toObject = function(includeInstance, msg) { + var f, obj = { + details: (f = msg.getDetails()) && proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp} + */ +proto.event_store.client.projections.StatisticsResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StatisticsResp; + return proto.event_store.client.projections.StatisticsResp.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.StatisticsResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StatisticsResp} + */ +proto.event_store.client.projections.StatisticsResp.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.StatisticsResp.Details; + reader.readMessage(value,proto.event_store.client.projections.StatisticsResp.Details.deserializeBinaryFromReader); + msg.setDetails(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.StatisticsResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StatisticsResp.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.StatisticsResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.StatisticsResp.Details.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.StatisticsResp.Details.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp.Details} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsResp.Details.toObject = function(includeInstance, msg) { + var f, obj = { + coreprocessingtime: jspb.Message.getFieldWithDefault(msg, 1, "0"), + version: jspb.Message.getFieldWithDefault(msg, 2, "0"), + epoch: jspb.Message.getFieldWithDefault(msg, 3, "0"), + effectivename: jspb.Message.getFieldWithDefault(msg, 4, ""), + writesinprogress: jspb.Message.getFieldWithDefault(msg, 5, 0), + readsinprogress: jspb.Message.getFieldWithDefault(msg, 6, 0), + partitionscached: jspb.Message.getFieldWithDefault(msg, 7, 0), + status: jspb.Message.getFieldWithDefault(msg, 8, ""), + statereason: jspb.Message.getFieldWithDefault(msg, 9, ""), + name: jspb.Message.getFieldWithDefault(msg, 10, ""), + mode: jspb.Message.getFieldWithDefault(msg, 11, ""), + position: jspb.Message.getFieldWithDefault(msg, 12, ""), + progress: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0), + lastcheckpoint: jspb.Message.getFieldWithDefault(msg, 14, ""), + eventsprocessedafterrestart: jspb.Message.getFieldWithDefault(msg, 15, "0"), + checkpointstatus: jspb.Message.getFieldWithDefault(msg, 16, ""), + bufferedevents: jspb.Message.getFieldWithDefault(msg, 17, "0"), + writependingeventsbeforecheckpoint: jspb.Message.getFieldWithDefault(msg, 18, 0), + writependingeventsaftercheckpoint: jspb.Message.getFieldWithDefault(msg, 19, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.projections.StatisticsResp.Details} + */ +proto.event_store.client.projections.StatisticsResp.Details.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StatisticsResp.Details; + return proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp.Details} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StatisticsResp.Details} + */ +proto.event_store.client.projections.StatisticsResp.Details.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setCoreprocessingtime(value); + break; + case 2: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setVersion(value); + break; + case 3: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setEpoch(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setEffectivename(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setWritesinprogress(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setReadsinprogress(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setPartitionscached(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setStatus(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setStatereason(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setMode(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setPosition(value); + break; + case 13: + var value = /** @type {number} */ (reader.readFloat()); + msg.setProgress(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setLastcheckpoint(value); + break; + case 15: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setEventsprocessedafterrestart(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setCheckpointstatus(value); + break; + case 17: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setBufferedevents(value); + break; + case 18: + var value = /** @type {number} */ (reader.readInt32()); + msg.setWritependingeventsbeforecheckpoint(value); + break; + case 19: + var value = /** @type {number} */ (reader.readInt32()); + msg.setWritependingeventsaftercheckpoint(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.StatisticsResp.Details.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp.Details} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StatisticsResp.Details.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCoreprocessingtime(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 1, + f + ); + } + f = message.getVersion(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 2, + f + ); + } + f = message.getEpoch(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 3, + f + ); + } + f = message.getEffectivename(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getWritesinprogress(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getReadsinprogress(); + if (f !== 0) { + writer.writeInt32( + 6, + f + ); + } + f = message.getPartitionscached(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getStatus(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getStatereason(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getMode(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getPosition(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getProgress(); + if (f !== 0.0) { + writer.writeFloat( + 13, + f + ); + } + f = message.getLastcheckpoint(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getEventsprocessedafterrestart(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 15, + f + ); + } + f = message.getCheckpointstatus(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getBufferedevents(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 17, + f + ); + } + f = message.getWritependingeventsbeforecheckpoint(); + if (f !== 0) { + writer.writeInt32( + 18, + f + ); + } + f = message.getWritependingeventsaftercheckpoint(); + if (f !== 0) { + writer.writeInt32( + 19, + f + ); + } +}; + + +/** + * optional int64 coreProcessingTime = 1; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getCoreprocessingtime = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setCoreprocessingtime = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional int64 version = 2; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional int64 epoch = 3; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getEpoch = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setEpoch = function(value) { + return jspb.Message.setProto3StringIntField(this, 3, value); +}; + + +/** + * optional string effectiveName = 4; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getEffectivename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setEffectivename = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int32 writesInProgress = 5; + * @return {number} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getWritesinprogress = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setWritesinprogress = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 readsInProgress = 6; + * @return {number} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getReadsinprogress = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setReadsinprogress = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional int32 partitionsCached = 7; + * @return {number} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getPartitionscached = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setPartitionscached = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional string status = 8; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getStatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string stateReason = 9; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getStatereason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setStatereason = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional string name = 10; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional string mode = 11; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getMode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setMode = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional string position = 12; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setPosition = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional float progress = 13; + * @return {number} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getProgress = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setProgress = function(value) { + return jspb.Message.setProto3FloatField(this, 13, value); +}; + + +/** + * optional string lastCheckpoint = 14; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getLastcheckpoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setLastcheckpoint = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional int64 eventsProcessedAfterRestart = 15; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getEventsprocessedafterrestart = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setEventsprocessedafterrestart = function(value) { + return jspb.Message.setProto3StringIntField(this, 15, value); +}; + + +/** + * optional string checkpointStatus = 16; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getCheckpointstatus = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setCheckpointstatus = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional int64 bufferedEvents = 17; + * @return {string} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getBufferedevents = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setBufferedevents = function(value) { + return jspb.Message.setProto3StringIntField(this, 17, value); +}; + + +/** + * optional int32 writePendingEventsBeforeCheckpoint = 18; + * @return {number} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getWritependingeventsbeforecheckpoint = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setWritependingeventsbeforecheckpoint = function(value) { + return jspb.Message.setProto3IntField(this, 18, value); +}; + + +/** + * optional int32 writePendingEventsAfterCheckpoint = 19; + * @return {number} + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.getWritependingeventsaftercheckpoint = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this + */ +proto.event_store.client.projections.StatisticsResp.Details.prototype.setWritependingeventsaftercheckpoint = function(value) { + return jspb.Message.setProto3IntField(this, 19, value); +}; + + +/** + * optional Details details = 1; + * @return {?proto.event_store.client.projections.StatisticsResp.Details} + */ +proto.event_store.client.projections.StatisticsResp.prototype.getDetails = function() { + return /** @type{?proto.event_store.client.projections.StatisticsResp.Details} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.StatisticsResp.Details, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.StatisticsResp.Details|undefined} value + * @return {!proto.event_store.client.projections.StatisticsResp} returns this +*/ +proto.event_store.client.projections.StatisticsResp.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StatisticsResp} returns this + */ +proto.event_store.client.projections.StatisticsResp.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StatisticsResp.prototype.hasDetails = 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_, 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.StateReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StateReq.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.StateReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StateReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.StateReq.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.StateReq} + */ +proto.event_store.client.projections.StateReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StateReq; + return proto.event_store.client.projections.StateReq.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.StateReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StateReq} + */ +proto.event_store.client.projections.StateReq.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.StateReq.Options; + reader.readMessage(value,proto.event_store.client.projections.StateReq.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.StateReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StateReq.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.StateReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StateReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.StateReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.StateReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StateReq.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.StateReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StateReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + partition: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.StateReq.Options} + */ +proto.event_store.client.projections.StateReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StateReq.Options; + return proto.event_store.client.projections.StateReq.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.StateReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StateReq.Options} + */ +proto.event_store.client.projections.StateReq.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.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPartition(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.StateReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StateReq.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.StateReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StateReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPartition(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.StateReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StateReq.Options} returns this + */ +proto.event_store.client.projections.StateReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string partition = 2; + * @return {string} + */ +proto.event_store.client.projections.StateReq.Options.prototype.getPartition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.StateReq.Options} returns this + */ +proto.event_store.client.projections.StateReq.Options.prototype.setPartition = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.StateReq.Options} + */ +proto.event_store.client.projections.StateReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.StateReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.StateReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.StateReq.Options|undefined} value + * @return {!proto.event_store.client.projections.StateReq} returns this +*/ +proto.event_store.client.projections.StateReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StateReq} returns this + */ +proto.event_store.client.projections.StateReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StateReq.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_, 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.StateResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.StateResp.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.StateResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StateResp.toObject = function(includeInstance, msg) { + var f, obj = { + state: (f = msg.getState()) && google_protobuf_struct_pb.Value.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.StateResp} + */ +proto.event_store.client.projections.StateResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.StateResp; + return proto.event_store.client.projections.StateResp.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.StateResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.StateResp} + */ +proto.event_store.client.projections.StateResp.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_struct_pb.Value; + reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); + msg.setState(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.StateResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.StateResp.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.StateResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.StateResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getState(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_struct_pb.Value.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.Value state = 1; + * @return {?proto.google.protobuf.Value} + */ +proto.event_store.client.projections.StateResp.prototype.getState = function() { + return /** @type{?proto.google.protobuf.Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Value|undefined} value + * @return {!proto.event_store.client.projections.StateResp} returns this +*/ +proto.event_store.client.projections.StateResp.prototype.setState = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.StateResp} returns this + */ +proto.event_store.client.projections.StateResp.prototype.clearState = function() { + return this.setState(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.StateResp.prototype.hasState = 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_, 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.ResultReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.ResultReq.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.ResultReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResultReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.ResultReq.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.ResultReq} + */ +proto.event_store.client.projections.ResultReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.ResultReq; + return proto.event_store.client.projections.ResultReq.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.ResultReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.ResultReq} + */ +proto.event_store.client.projections.ResultReq.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.ResultReq.Options; + reader.readMessage(value,proto.event_store.client.projections.ResultReq.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.ResultReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.ResultReq.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.ResultReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResultReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.ResultReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.ResultReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.ResultReq.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.ResultReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResultReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + partition: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.ResultReq.Options} + */ +proto.event_store.client.projections.ResultReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.ResultReq.Options; + return proto.event_store.client.projections.ResultReq.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.ResultReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.ResultReq.Options} + */ +proto.event_store.client.projections.ResultReq.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.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPartition(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.ResultReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.ResultReq.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.ResultReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResultReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPartition(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.ResultReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.ResultReq.Options} returns this + */ +proto.event_store.client.projections.ResultReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string partition = 2; + * @return {string} + */ +proto.event_store.client.projections.ResultReq.Options.prototype.getPartition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.ResultReq.Options} returns this + */ +proto.event_store.client.projections.ResultReq.Options.prototype.setPartition = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.ResultReq.Options} + */ +proto.event_store.client.projections.ResultReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.ResultReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.ResultReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.ResultReq.Options|undefined} value + * @return {!proto.event_store.client.projections.ResultReq} returns this +*/ +proto.event_store.client.projections.ResultReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.ResultReq} returns this + */ +proto.event_store.client.projections.ResultReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.ResultReq.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_, 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.ResultResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.ResultResp.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.ResultResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResultResp.toObject = function(includeInstance, msg) { + var f, obj = { + result: (f = msg.getResult()) && google_protobuf_struct_pb.Value.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.ResultResp} + */ +proto.event_store.client.projections.ResultResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.ResultResp; + return proto.event_store.client.projections.ResultResp.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.ResultResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.ResultResp} + */ +proto.event_store.client.projections.ResultResp.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_struct_pb.Value; + reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); + msg.setResult(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.ResultResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.ResultResp.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.ResultResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResultResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_struct_pb.Value.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.Value result = 1; + * @return {?proto.google.protobuf.Value} + */ +proto.event_store.client.projections.ResultResp.prototype.getResult = function() { + return /** @type{?proto.google.protobuf.Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Value|undefined} value + * @return {!proto.event_store.client.projections.ResultResp} returns this +*/ +proto.event_store.client.projections.ResultResp.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.ResultResp} returns this + */ +proto.event_store.client.projections.ResultResp.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.ResultResp.prototype.hasResult = 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_, 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.ResetReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.ResetReq.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.ResetReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResetReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.ResetReq.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.ResetReq} + */ +proto.event_store.client.projections.ResetReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.ResetReq; + return proto.event_store.client.projections.ResetReq.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.ResetReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.ResetReq} + */ +proto.event_store.client.projections.ResetReq.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.ResetReq.Options; + reader.readMessage(value,proto.event_store.client.projections.ResetReq.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.ResetReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.ResetReq.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.ResetReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResetReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.ResetReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.ResetReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.ResetReq.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.ResetReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResetReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + writeCheckpoint: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.ResetReq.Options} + */ +proto.event_store.client.projections.ResetReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.ResetReq.Options; + return proto.event_store.client.projections.ResetReq.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.ResetReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.ResetReq.Options} + */ +proto.event_store.client.projections.ResetReq.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.setName(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setWriteCheckpoint(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.ResetReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.ResetReq.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.ResetReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResetReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getWriteCheckpoint(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.ResetReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.ResetReq.Options} returns this + */ +proto.event_store.client.projections.ResetReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool write_checkpoint = 2; + * @return {boolean} + */ +proto.event_store.client.projections.ResetReq.Options.prototype.getWriteCheckpoint = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.projections.ResetReq.Options} returns this + */ +proto.event_store.client.projections.ResetReq.Options.prototype.setWriteCheckpoint = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.ResetReq.Options} + */ +proto.event_store.client.projections.ResetReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.ResetReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.ResetReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.ResetReq.Options|undefined} value + * @return {!proto.event_store.client.projections.ResetReq} returns this +*/ +proto.event_store.client.projections.ResetReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.ResetReq} returns this + */ +proto.event_store.client.projections.ResetReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.ResetReq.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_, 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.ResetResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.ResetResp.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.ResetResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResetResp.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.projections.ResetResp} + */ +proto.event_store.client.projections.ResetResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.ResetResp; + return proto.event_store.client.projections.ResetResp.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.ResetResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.ResetResp} + */ +proto.event_store.client.projections.ResetResp.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.projections.ResetResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.ResetResp.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.ResetResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.ResetResp.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_, 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.EnableReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.EnableReq.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.EnableReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.EnableReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.EnableReq.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.EnableReq} + */ +proto.event_store.client.projections.EnableReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.EnableReq; + return proto.event_store.client.projections.EnableReq.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.EnableReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.EnableReq} + */ +proto.event_store.client.projections.EnableReq.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.EnableReq.Options; + reader.readMessage(value,proto.event_store.client.projections.EnableReq.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.EnableReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.EnableReq.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.EnableReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.EnableReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.EnableReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.EnableReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.EnableReq.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.EnableReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.EnableReq.Options.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.EnableReq.Options} + */ +proto.event_store.client.projections.EnableReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.EnableReq.Options; + return proto.event_store.client.projections.EnableReq.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.EnableReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.EnableReq.Options} + */ +proto.event_store.client.projections.EnableReq.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.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.EnableReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.EnableReq.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.EnableReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.EnableReq.Options.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.EnableReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.EnableReq.Options} returns this + */ +proto.event_store.client.projections.EnableReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.EnableReq.Options} + */ +proto.event_store.client.projections.EnableReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.EnableReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.EnableReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.EnableReq.Options|undefined} value + * @return {!proto.event_store.client.projections.EnableReq} returns this +*/ +proto.event_store.client.projections.EnableReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.EnableReq} returns this + */ +proto.event_store.client.projections.EnableReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.EnableReq.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_, 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.EnableResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.EnableResp.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.EnableResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.EnableResp.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.projections.EnableResp} + */ +proto.event_store.client.projections.EnableResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.EnableResp; + return proto.event_store.client.projections.EnableResp.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.EnableResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.EnableResp} + */ +proto.event_store.client.projections.EnableResp.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.projections.EnableResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.EnableResp.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.EnableResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.EnableResp.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_, 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.DisableReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.DisableReq.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.DisableReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DisableReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.projections.DisableReq.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.DisableReq} + */ +proto.event_store.client.projections.DisableReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.DisableReq; + return proto.event_store.client.projections.DisableReq.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.DisableReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.DisableReq} + */ +proto.event_store.client.projections.DisableReq.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.DisableReq.Options; + reader.readMessage(value,proto.event_store.client.projections.DisableReq.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.DisableReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.DisableReq.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.DisableReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DisableReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.projections.DisableReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.DisableReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.DisableReq.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.DisableReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DisableReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + writeCheckpoint: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.DisableReq.Options} + */ +proto.event_store.client.projections.DisableReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.DisableReq.Options; + return proto.event_store.client.projections.DisableReq.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.DisableReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.DisableReq.Options} + */ +proto.event_store.client.projections.DisableReq.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.setName(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setWriteCheckpoint(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.DisableReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.DisableReq.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.DisableReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DisableReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getWriteCheckpoint(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.event_store.client.projections.DisableReq.Options.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.projections.DisableReq.Options} returns this + */ +proto.event_store.client.projections.DisableReq.Options.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool write_checkpoint = 2; + * @return {boolean} + */ +proto.event_store.client.projections.DisableReq.Options.prototype.getWriteCheckpoint = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.projections.DisableReq.Options} returns this + */ +proto.event_store.client.projections.DisableReq.Options.prototype.setWriteCheckpoint = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.projections.DisableReq.Options} + */ +proto.event_store.client.projections.DisableReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.projections.DisableReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.projections.DisableReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.projections.DisableReq.Options|undefined} value + * @return {!proto.event_store.client.projections.DisableReq} returns this +*/ +proto.event_store.client.projections.DisableReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.projections.DisableReq} returns this + */ +proto.event_store.client.projections.DisableReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.projections.DisableReq.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_, 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.DisableResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.projections.DisableResp.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.DisableResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DisableResp.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.projections.DisableResp} + */ +proto.event_store.client.projections.DisableResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.projections.DisableResp; + return proto.event_store.client.projections.DisableResp.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.DisableResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.projections.DisableResp} + */ +proto.event_store.client.projections.DisableResp.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.projections.DisableResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.projections.DisableResp.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.DisableResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.projections.DisableResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.event_store.client.projections); diff --git a/packages/db-client/generated/usermanagement_grpc_pb.d.ts b/packages/db-client/generated/usermanagement_grpc_pb.d.ts new file mode 100644 index 00000000..61b7a67c --- /dev/null +++ b/packages/db-client/generated/usermanagement_grpc_pb.d.ts @@ -0,0 +1,158 @@ +// package: event_store.client.users +// file: usermanagement.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as usermanagement_pb from "./usermanagement_pb"; + +interface IUsersService extends grpc.ServiceDefinition { + create: IUsersService_ICreate; + update: IUsersService_IUpdate; + delete: IUsersService_IDelete; + disable: IUsersService_IDisable; + enable: IUsersService_IEnable; + details: IUsersService_IDetails; + changePassword: IUsersService_IChangePassword; + resetPassword: IUsersService_IResetPassword; +} + +interface IUsersService_ICreate extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Create"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IUpdate extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Update"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IDisable extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Disable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IEnable extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Enable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IDetails extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Details"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IChangePassword extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/ChangePassword"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IResetPassword extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/ResetPassword"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const UsersService: IUsersService; + +export interface IUsersServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; + disable: grpc.handleUnaryCall; + enable: grpc.handleUnaryCall; + details: grpc.handleServerStreamingCall; + changePassword: grpc.handleUnaryCall; + resetPassword: grpc.handleUnaryCall; +} + +export interface IUsersClient { + create(request: usermanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + update(request: usermanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + delete(request: usermanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + disable(request: usermanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + enable(request: usermanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + details(request: usermanagement_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; + details(request: usermanagement_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + changePassword(request: usermanagement_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + resetPassword(request: usermanagement_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; +} + +export class UsersClient extends grpc.Client implements IUsersClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public create(request: usermanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public update(request: usermanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public delete(request: usermanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public disable(request: usermanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public enable(request: usermanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public details(request: usermanagement_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; + public details(request: usermanagement_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public changePassword(request: usermanagement_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + public changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + public changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + public resetPassword(request: usermanagement_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + public resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + public resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/usermanagement_grpc_pb.js b/packages/db-client/generated/usermanagement_grpc_pb.js new file mode 100644 index 00000000..9ac499b1 --- /dev/null +++ b/packages/db-client/generated/usermanagement_grpc_pb.js @@ -0,0 +1,275 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var usermanagement_pb = require('./usermanagement_pb.js'); + +function serialize_event_store_client_users_ChangePasswordReq(arg) { + if (!(arg instanceof usermanagement_pb.ChangePasswordReq)) { + throw new Error('Expected argument of type event_store.client.users.ChangePasswordReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_ChangePasswordReq(buffer_arg) { + return usermanagement_pb.ChangePasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_ChangePasswordResp(arg) { + if (!(arg instanceof usermanagement_pb.ChangePasswordResp)) { + throw new Error('Expected argument of type event_store.client.users.ChangePasswordResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_ChangePasswordResp(buffer_arg) { + return usermanagement_pb.ChangePasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_CreateReq(arg) { + if (!(arg instanceof usermanagement_pb.CreateReq)) { + throw new Error('Expected argument of type event_store.client.users.CreateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_CreateReq(buffer_arg) { + return usermanagement_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_CreateResp(arg) { + if (!(arg instanceof usermanagement_pb.CreateResp)) { + throw new Error('Expected argument of type event_store.client.users.CreateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_CreateResp(buffer_arg) { + return usermanagement_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_DeleteReq(arg) { + if (!(arg instanceof usermanagement_pb.DeleteReq)) { + throw new Error('Expected argument of type event_store.client.users.DeleteReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_DeleteReq(buffer_arg) { + return usermanagement_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_DeleteResp(arg) { + if (!(arg instanceof usermanagement_pb.DeleteResp)) { + throw new Error('Expected argument of type event_store.client.users.DeleteResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_DeleteResp(buffer_arg) { + return usermanagement_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_DetailsReq(arg) { + if (!(arg instanceof usermanagement_pb.DetailsReq)) { + throw new Error('Expected argument of type event_store.client.users.DetailsReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_DetailsReq(buffer_arg) { + return usermanagement_pb.DetailsReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_DetailsResp(arg) { + if (!(arg instanceof usermanagement_pb.DetailsResp)) { + throw new Error('Expected argument of type event_store.client.users.DetailsResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_DetailsResp(buffer_arg) { + return usermanagement_pb.DetailsResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_DisableReq(arg) { + if (!(arg instanceof usermanagement_pb.DisableReq)) { + throw new Error('Expected argument of type event_store.client.users.DisableReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_DisableReq(buffer_arg) { + return usermanagement_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_DisableResp(arg) { + if (!(arg instanceof usermanagement_pb.DisableResp)) { + throw new Error('Expected argument of type event_store.client.users.DisableResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_DisableResp(buffer_arg) { + return usermanagement_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_EnableReq(arg) { + if (!(arg instanceof usermanagement_pb.EnableReq)) { + throw new Error('Expected argument of type event_store.client.users.EnableReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_EnableReq(buffer_arg) { + return usermanagement_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_EnableResp(arg) { + if (!(arg instanceof usermanagement_pb.EnableResp)) { + throw new Error('Expected argument of type event_store.client.users.EnableResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_EnableResp(buffer_arg) { + return usermanagement_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_ResetPasswordReq(arg) { + if (!(arg instanceof usermanagement_pb.ResetPasswordReq)) { + throw new Error('Expected argument of type event_store.client.users.ResetPasswordReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_ResetPasswordReq(buffer_arg) { + return usermanagement_pb.ResetPasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_ResetPasswordResp(arg) { + if (!(arg instanceof usermanagement_pb.ResetPasswordResp)) { + throw new Error('Expected argument of type event_store.client.users.ResetPasswordResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_ResetPasswordResp(buffer_arg) { + return usermanagement_pb.ResetPasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_UpdateReq(arg) { + if (!(arg instanceof usermanagement_pb.UpdateReq)) { + throw new Error('Expected argument of type event_store.client.users.UpdateReq'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_UpdateReq(buffer_arg) { + return usermanagement_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_event_store_client_users_UpdateResp(arg) { + if (!(arg instanceof usermanagement_pb.UpdateResp)) { + throw new Error('Expected argument of type event_store.client.users.UpdateResp'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_event_store_client_users_UpdateResp(buffer_arg) { + return usermanagement_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var UsersService = exports.UsersService = { + create: { + path: '/event_store.client.users.Users/Create', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.CreateReq, + responseType: usermanagement_pb.CreateResp, + requestSerialize: serialize_event_store_client_users_CreateReq, + requestDeserialize: deserialize_event_store_client_users_CreateReq, + responseSerialize: serialize_event_store_client_users_CreateResp, + responseDeserialize: deserialize_event_store_client_users_CreateResp, + }, + update: { + path: '/event_store.client.users.Users/Update', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.UpdateReq, + responseType: usermanagement_pb.UpdateResp, + requestSerialize: serialize_event_store_client_users_UpdateReq, + requestDeserialize: deserialize_event_store_client_users_UpdateReq, + responseSerialize: serialize_event_store_client_users_UpdateResp, + responseDeserialize: deserialize_event_store_client_users_UpdateResp, + }, + delete: { + path: '/event_store.client.users.Users/Delete', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.DeleteReq, + responseType: usermanagement_pb.DeleteResp, + requestSerialize: serialize_event_store_client_users_DeleteReq, + requestDeserialize: deserialize_event_store_client_users_DeleteReq, + responseSerialize: serialize_event_store_client_users_DeleteResp, + responseDeserialize: deserialize_event_store_client_users_DeleteResp, + }, + disable: { + path: '/event_store.client.users.Users/Disable', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.DisableReq, + responseType: usermanagement_pb.DisableResp, + requestSerialize: serialize_event_store_client_users_DisableReq, + requestDeserialize: deserialize_event_store_client_users_DisableReq, + responseSerialize: serialize_event_store_client_users_DisableResp, + responseDeserialize: deserialize_event_store_client_users_DisableResp, + }, + enable: { + path: '/event_store.client.users.Users/Enable', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.EnableReq, + responseType: usermanagement_pb.EnableResp, + requestSerialize: serialize_event_store_client_users_EnableReq, + requestDeserialize: deserialize_event_store_client_users_EnableReq, + responseSerialize: serialize_event_store_client_users_EnableResp, + responseDeserialize: deserialize_event_store_client_users_EnableResp, + }, + details: { + path: '/event_store.client.users.Users/Details', + requestStream: false, + responseStream: true, + requestType: usermanagement_pb.DetailsReq, + responseType: usermanagement_pb.DetailsResp, + requestSerialize: serialize_event_store_client_users_DetailsReq, + requestDeserialize: deserialize_event_store_client_users_DetailsReq, + responseSerialize: serialize_event_store_client_users_DetailsResp, + responseDeserialize: deserialize_event_store_client_users_DetailsResp, + }, + changePassword: { + path: '/event_store.client.users.Users/ChangePassword', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.ChangePasswordReq, + responseType: usermanagement_pb.ChangePasswordResp, + requestSerialize: serialize_event_store_client_users_ChangePasswordReq, + requestDeserialize: deserialize_event_store_client_users_ChangePasswordReq, + responseSerialize: serialize_event_store_client_users_ChangePasswordResp, + responseDeserialize: deserialize_event_store_client_users_ChangePasswordResp, + }, + resetPassword: { + path: '/event_store.client.users.Users/ResetPassword', + requestStream: false, + responseStream: false, + requestType: usermanagement_pb.ResetPasswordReq, + responseType: usermanagement_pb.ResetPasswordResp, + requestSerialize: serialize_event_store_client_users_ResetPasswordReq, + requestDeserialize: deserialize_event_store_client_users_ResetPasswordReq, + responseSerialize: serialize_event_store_client_users_ResetPasswordResp, + responseDeserialize: deserialize_event_store_client_users_ResetPasswordResp, + }, +}; + +exports.UsersClient = grpc.makeGenericClientConstructor(UsersService, 'Users'); diff --git a/packages/db-client/generated/usermanagement_pb.d.ts b/packages/db-client/generated/usermanagement_pb.d.ts new file mode 100644 index 00000000..1127e3fc --- /dev/null +++ b/packages/db-client/generated/usermanagement_pb.d.ts @@ -0,0 +1,601 @@ +// package: event_store.client.users +// file: usermanagement.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; + +export class CreateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): CreateReq.Options | undefined; + setOptions(value?: CreateReq.Options): CreateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateReq.AsObject; + static toObject(includeInstance: boolean, msg: CreateReq): CreateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateReq; + static deserializeBinaryFromReader(message: CreateReq, reader: jspb.BinaryReader): CreateReq; +} + +export namespace CreateReq { + export type AsObject = { + options?: CreateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + getPassword(): string; + setPassword(value: string): Options; + getFullName(): string; + setFullName(value: string): Options; + clearGroupsList(): void; + getGroupsList(): Array; + setGroupsList(value: Array): Options; + addGroups(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + password: string, + fullName: string, + groupsList: Array, + } + } + +} + +export class CreateResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateResp.AsObject; + static toObject(includeInstance: boolean, msg: CreateResp): CreateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateResp; + static deserializeBinaryFromReader(message: CreateResp, reader: jspb.BinaryReader): CreateResp; +} + +export namespace CreateResp { + export type AsObject = { + } +} + +export class UpdateReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): UpdateReq.Options | undefined; + setOptions(value?: UpdateReq.Options): UpdateReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateReq.AsObject; + static toObject(includeInstance: boolean, msg: UpdateReq): UpdateReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateReq; + static deserializeBinaryFromReader(message: UpdateReq, reader: jspb.BinaryReader): UpdateReq; +} + +export namespace UpdateReq { + export type AsObject = { + options?: UpdateReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + getPassword(): string; + setPassword(value: string): Options; + getFullName(): string; + setFullName(value: string): Options; + clearGroupsList(): void; + getGroupsList(): Array; + setGroupsList(value: Array): Options; + addGroups(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + password: string, + fullName: string, + groupsList: Array, + } + } + +} + +export class UpdateResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateResp.AsObject; + static toObject(includeInstance: boolean, msg: UpdateResp): UpdateResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateResp; + static deserializeBinaryFromReader(message: UpdateResp, reader: jspb.BinaryReader): UpdateResp; +} + +export namespace UpdateResp { + export type AsObject = { + } +} + +export class DeleteReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): DeleteReq.Options | undefined; + setOptions(value?: DeleteReq.Options): DeleteReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteReq.AsObject; + static toObject(includeInstance: boolean, msg: DeleteReq): DeleteReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteReq; + static deserializeBinaryFromReader(message: DeleteReq, reader: jspb.BinaryReader): DeleteReq; +} + +export namespace DeleteReq { + export type AsObject = { + options?: DeleteReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + } + } + +} + +export class DeleteResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteResp.AsObject; + static toObject(includeInstance: boolean, msg: DeleteResp): DeleteResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteResp; + static deserializeBinaryFromReader(message: DeleteResp, reader: jspb.BinaryReader): DeleteResp; +} + +export namespace DeleteResp { + export type AsObject = { + } +} + +export class EnableReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): EnableReq.Options | undefined; + setOptions(value?: EnableReq.Options): EnableReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableReq.AsObject; + static toObject(includeInstance: boolean, msg: EnableReq): EnableReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableReq; + static deserializeBinaryFromReader(message: EnableReq, reader: jspb.BinaryReader): EnableReq; +} + +export namespace EnableReq { + export type AsObject = { + options?: EnableReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + } + } + +} + +export class EnableResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableResp.AsObject; + static toObject(includeInstance: boolean, msg: EnableResp): EnableResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableResp; + static deserializeBinaryFromReader(message: EnableResp, reader: jspb.BinaryReader): EnableResp; +} + +export namespace EnableResp { + export type AsObject = { + } +} + +export class DisableReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): DisableReq.Options | undefined; + setOptions(value?: DisableReq.Options): DisableReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableReq.AsObject; + static toObject(includeInstance: boolean, msg: DisableReq): DisableReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableReq; + static deserializeBinaryFromReader(message: DisableReq, reader: jspb.BinaryReader): DisableReq; +} + +export namespace DisableReq { + export type AsObject = { + options?: DisableReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + } + } + +} + +export class DisableResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableResp.AsObject; + static toObject(includeInstance: boolean, msg: DisableResp): DisableResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableResp; + static deserializeBinaryFromReader(message: DisableResp, reader: jspb.BinaryReader): DisableResp; +} + +export namespace DisableResp { + export type AsObject = { + } +} + +export class DetailsReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): DetailsReq.Options | undefined; + setOptions(value?: DetailsReq.Options): DetailsReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DetailsReq.AsObject; + static toObject(includeInstance: boolean, msg: DetailsReq): DetailsReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DetailsReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DetailsReq; + static deserializeBinaryFromReader(message: DetailsReq, reader: jspb.BinaryReader): DetailsReq; +} + +export namespace DetailsReq { + export type AsObject = { + options?: DetailsReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + } + } + +} + +export class DetailsResp extends jspb.Message { + + hasUserDetails(): boolean; + clearUserDetails(): void; + getUserDetails(): DetailsResp.UserDetails | undefined; + setUserDetails(value?: DetailsResp.UserDetails): DetailsResp; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DetailsResp.AsObject; + static toObject(includeInstance: boolean, msg: DetailsResp): DetailsResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DetailsResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DetailsResp; + static deserializeBinaryFromReader(message: DetailsResp, reader: jspb.BinaryReader): DetailsResp; +} + +export namespace DetailsResp { + export type AsObject = { + userDetails?: DetailsResp.UserDetails.AsObject, + } + + + export class UserDetails extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): UserDetails; + getFullName(): string; + setFullName(value: string): UserDetails; + clearGroupsList(): void; + getGroupsList(): Array; + setGroupsList(value: Array): UserDetails; + addGroups(value: string, index?: number): string; + + hasLastUpdated(): boolean; + clearLastUpdated(): void; + getLastUpdated(): DetailsResp.UserDetails.DateTime | undefined; + setLastUpdated(value?: DetailsResp.UserDetails.DateTime): UserDetails; + getDisabled(): boolean; + setDisabled(value: boolean): UserDetails; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UserDetails.AsObject; + static toObject(includeInstance: boolean, msg: UserDetails): UserDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UserDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UserDetails; + static deserializeBinaryFromReader(message: UserDetails, reader: jspb.BinaryReader): UserDetails; + } + + export namespace UserDetails { + export type AsObject = { + loginName: string, + fullName: string, + groupsList: Array, + lastUpdated?: DetailsResp.UserDetails.DateTime.AsObject, + disabled: boolean, + } + + + export class DateTime extends jspb.Message { + getTicksSinceEpoch(): string; + setTicksSinceEpoch(value: string): DateTime; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DateTime.AsObject; + static toObject(includeInstance: boolean, msg: DateTime): DateTime.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DateTime, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DateTime; + static deserializeBinaryFromReader(message: DateTime, reader: jspb.BinaryReader): DateTime; + } + + export namespace DateTime { + export type AsObject = { + ticksSinceEpoch: string, + } + } + + } + +} + +export class ChangePasswordReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ChangePasswordReq.Options | undefined; + setOptions(value?: ChangePasswordReq.Options): ChangePasswordReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChangePasswordReq.AsObject; + static toObject(includeInstance: boolean, msg: ChangePasswordReq): ChangePasswordReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ChangePasswordReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChangePasswordReq; + static deserializeBinaryFromReader(message: ChangePasswordReq, reader: jspb.BinaryReader): ChangePasswordReq; +} + +export namespace ChangePasswordReq { + export type AsObject = { + options?: ChangePasswordReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + getCurrentPassword(): string; + setCurrentPassword(value: string): Options; + getNewPassword(): string; + setNewPassword(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + currentPassword: string, + newPassword: string, + } + } + +} + +export class ChangePasswordResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChangePasswordResp.AsObject; + static toObject(includeInstance: boolean, msg: ChangePasswordResp): ChangePasswordResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ChangePasswordResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChangePasswordResp; + static deserializeBinaryFromReader(message: ChangePasswordResp, reader: jspb.BinaryReader): ChangePasswordResp; +} + +export namespace ChangePasswordResp { + export type AsObject = { + } +} + +export class ResetPasswordReq extends jspb.Message { + + hasOptions(): boolean; + clearOptions(): void; + getOptions(): ResetPasswordReq.Options | undefined; + setOptions(value?: ResetPasswordReq.Options): ResetPasswordReq; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResetPasswordReq.AsObject; + static toObject(includeInstance: boolean, msg: ResetPasswordReq): ResetPasswordReq.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResetPasswordReq, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResetPasswordReq; + static deserializeBinaryFromReader(message: ResetPasswordReq, reader: jspb.BinaryReader): ResetPasswordReq; +} + +export namespace ResetPasswordReq { + export type AsObject = { + options?: ResetPasswordReq.Options.AsObject, + } + + + export class Options extends jspb.Message { + getLoginName(): string; + setLoginName(value: string): Options; + getNewPassword(): string; + setNewPassword(value: string): Options; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Options.AsObject; + static toObject(includeInstance: boolean, msg: Options): Options.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Options; + static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; + } + + export namespace Options { + export type AsObject = { + loginName: string, + newPassword: string, + } + } + +} + +export class ResetPasswordResp extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResetPasswordResp.AsObject; + static toObject(includeInstance: boolean, msg: ResetPasswordResp): ResetPasswordResp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResetPasswordResp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResetPasswordResp; + static deserializeBinaryFromReader(message: ResetPasswordResp, reader: jspb.BinaryReader): ResetPasswordResp; +} + +export namespace ResetPasswordResp { + export type AsObject = { + } +} diff --git a/packages/db-client/generated/usermanagement_pb.js b/packages/db-client/generated/usermanagement_pb.js new file mode 100644 index 00000000..89caa94d --- /dev/null +++ b/packages/db-client/generated/usermanagement_pb.js @@ -0,0 +1,4451 @@ +// source: usermanagement.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_, 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} + * @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_, 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} + */ +proto.event_store.client.users.CreateReq.Options.prototype.getGroupsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} 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_, 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_, 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} + * @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_, 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} + */ +proto.event_store.client.users.UpdateReq.Options.prototype.getGroupsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} 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.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.users.UpdateReq.Options} returns this + */ +proto.event_store.client.users.UpdateReq.Options.prototype.clearGroupsList = function() { + return this.setGroupsList([]); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.UpdateReq.Options} + */ +proto.event_store.client.users.UpdateReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.UpdateReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.UpdateReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.UpdateReq.Options|undefined} value + * @return {!proto.event_store.client.users.UpdateReq} returns this +*/ +proto.event_store.client.users.UpdateReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.UpdateReq} returns this + */ +proto.event_store.client.users.UpdateReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.UpdateReq.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_, 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.UpdateResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.UpdateResp.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.UpdateResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.UpdateResp.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.UpdateResp} + */ +proto.event_store.client.users.UpdateResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.UpdateResp; + return proto.event_store.client.users.UpdateResp.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.UpdateResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.UpdateResp} + */ +proto.event_store.client.users.UpdateResp.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.UpdateResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.UpdateResp.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.UpdateResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.UpdateResp.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_, 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.DeleteReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DeleteReq.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.DeleteReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DeleteReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.users.DeleteReq.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.DeleteReq} + */ +proto.event_store.client.users.DeleteReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DeleteReq; + return proto.event_store.client.users.DeleteReq.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.DeleteReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DeleteReq} + */ +proto.event_store.client.users.DeleteReq.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.DeleteReq.Options; + reader.readMessage(value,proto.event_store.client.users.DeleteReq.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.DeleteReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DeleteReq.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.DeleteReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DeleteReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DeleteReq.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.DeleteReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DeleteReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: 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.users.DeleteReq.Options} + */ +proto.event_store.client.users.DeleteReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DeleteReq.Options; + return proto.event_store.client.users.DeleteReq.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.DeleteReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DeleteReq.Options} + */ +proto.event_store.client.users.DeleteReq.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.users.DeleteReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DeleteReq.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.DeleteReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.DeleteReq.Options.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.DeleteReq.Options} returns this + */ +proto.event_store.client.users.DeleteReq.Options.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.DeleteReq.Options} + */ +proto.event_store.client.users.DeleteReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.DeleteReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.DeleteReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.DeleteReq.Options|undefined} value + * @return {!proto.event_store.client.users.DeleteReq} returns this +*/ +proto.event_store.client.users.DeleteReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.DeleteReq} returns this + */ +proto.event_store.client.users.DeleteReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.DeleteReq.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_, 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.DeleteResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DeleteResp.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.DeleteResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DeleteResp.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.DeleteResp} + */ +proto.event_store.client.users.DeleteResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DeleteResp; + return proto.event_store.client.users.DeleteResp.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.DeleteResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DeleteResp} + */ +proto.event_store.client.users.DeleteResp.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.DeleteResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DeleteResp.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.DeleteResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DeleteResp.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_, 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.EnableReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.EnableReq.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.EnableReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.EnableReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.users.EnableReq.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.EnableReq} + */ +proto.event_store.client.users.EnableReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.EnableReq; + return proto.event_store.client.users.EnableReq.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.EnableReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.EnableReq} + */ +proto.event_store.client.users.EnableReq.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.EnableReq.Options; + reader.readMessage(value,proto.event_store.client.users.EnableReq.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.EnableReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.EnableReq.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.EnableReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.EnableReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.EnableReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.EnableReq.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.EnableReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.EnableReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: 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.users.EnableReq.Options} + */ +proto.event_store.client.users.EnableReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.EnableReq.Options; + return proto.event_store.client.users.EnableReq.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.EnableReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.EnableReq.Options} + */ +proto.event_store.client.users.EnableReq.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.users.EnableReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.EnableReq.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.EnableReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.EnableReq.Options.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.EnableReq.Options} returns this + */ +proto.event_store.client.users.EnableReq.Options.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.EnableReq.Options} + */ +proto.event_store.client.users.EnableReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.EnableReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.EnableReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.EnableReq.Options|undefined} value + * @return {!proto.event_store.client.users.EnableReq} returns this +*/ +proto.event_store.client.users.EnableReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.EnableReq} returns this + */ +proto.event_store.client.users.EnableReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.EnableReq.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_, 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.EnableResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.EnableResp.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.EnableResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.EnableResp.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.EnableResp} + */ +proto.event_store.client.users.EnableResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.EnableResp; + return proto.event_store.client.users.EnableResp.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.EnableResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.EnableResp} + */ +proto.event_store.client.users.EnableResp.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.EnableResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.EnableResp.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.EnableResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.EnableResp.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_, 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.DisableReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DisableReq.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.DisableReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DisableReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.users.DisableReq.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.DisableReq} + */ +proto.event_store.client.users.DisableReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DisableReq; + return proto.event_store.client.users.DisableReq.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.DisableReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DisableReq} + */ +proto.event_store.client.users.DisableReq.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.DisableReq.Options; + reader.readMessage(value,proto.event_store.client.users.DisableReq.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.DisableReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DisableReq.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.DisableReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DisableReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.DisableReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DisableReq.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.DisableReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DisableReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: 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.users.DisableReq.Options} + */ +proto.event_store.client.users.DisableReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DisableReq.Options; + return proto.event_store.client.users.DisableReq.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.DisableReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DisableReq.Options} + */ +proto.event_store.client.users.DisableReq.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.users.DisableReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DisableReq.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.DisableReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.DisableReq.Options.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.DisableReq.Options} returns this + */ +proto.event_store.client.users.DisableReq.Options.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.DisableReq.Options} + */ +proto.event_store.client.users.DisableReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.DisableReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.DisableReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.DisableReq.Options|undefined} value + * @return {!proto.event_store.client.users.DisableReq} returns this +*/ +proto.event_store.client.users.DisableReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.DisableReq} returns this + */ +proto.event_store.client.users.DisableReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.DisableReq.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_, 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.DisableResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DisableResp.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.DisableResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DisableResp.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.DisableResp} + */ +proto.event_store.client.users.DisableResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DisableResp; + return proto.event_store.client.users.DisableResp.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.DisableResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DisableResp} + */ +proto.event_store.client.users.DisableResp.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.DisableResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DisableResp.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.DisableResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DisableResp.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_, 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.DetailsReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DetailsReq.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.DetailsReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.users.DetailsReq.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.DetailsReq} + */ +proto.event_store.client.users.DetailsReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DetailsReq; + return proto.event_store.client.users.DetailsReq.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.DetailsReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DetailsReq} + */ +proto.event_store.client.users.DetailsReq.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.DetailsReq.Options; + reader.readMessage(value,proto.event_store.client.users.DetailsReq.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.DetailsReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DetailsReq.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.DetailsReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.DetailsReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DetailsReq.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.DetailsReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: 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.users.DetailsReq.Options} + */ +proto.event_store.client.users.DetailsReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DetailsReq.Options; + return proto.event_store.client.users.DetailsReq.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.DetailsReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DetailsReq.Options} + */ +proto.event_store.client.users.DetailsReq.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.event_store.client.users.DetailsReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DetailsReq.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.DetailsReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.DetailsReq.Options.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.DetailsReq.Options} returns this + */ +proto.event_store.client.users.DetailsReq.Options.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.DetailsReq.Options} + */ +proto.event_store.client.users.DetailsReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.DetailsReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.DetailsReq.Options|undefined} value + * @return {!proto.event_store.client.users.DetailsReq} returns this +*/ +proto.event_store.client.users.DetailsReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.DetailsReq} returns this + */ +proto.event_store.client.users.DetailsReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.DetailsReq.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_, 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.DetailsResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DetailsResp.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.DetailsResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsResp.toObject = function(includeInstance, msg) { + var f, obj = { + userDetails: (f = msg.getUserDetails()) && proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp} + */ +proto.event_store.client.users.DetailsResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DetailsResp; + return proto.event_store.client.users.DetailsResp.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.DetailsResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DetailsResp} + */ +proto.event_store.client.users.DetailsResp.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.DetailsResp.UserDetails; + reader.readMessage(value,proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinaryFromReader); + msg.setUserDetails(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.DetailsResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DetailsResp.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.DetailsResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserDetails(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.event_store.client.users.DetailsResp.UserDetails.repeatedFields_ = [3]; + + + +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_, 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.DetailsResp.UserDetails.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp.UserDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsResp.UserDetails.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), + fullName: jspb.Message.getFieldWithDefault(msg, 2, ""), + groupsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + lastUpdated: (f = msg.getLastUpdated()) && proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject(includeInstance, f), + disabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, 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.users.DetailsResp.UserDetails} + */ +proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DetailsResp.UserDetails; + return proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp.UserDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} + */ +proto.event_store.client.users.DetailsResp.UserDetails.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.setFullName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addGroups(value); + break; + case 4: + var value = new proto.event_store.client.users.DetailsResp.UserDetails.DateTime; + reader.readMessage(value,proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader); + msg.setLastUpdated(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDisabled(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.DetailsResp.UserDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp.UserDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getFullName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getGroupsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getLastUpdated(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter + ); + } + f = message.getDisabled(); + if (f) { + writer.writeBool( + 5, + 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_, 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.DetailsResp.UserDetails.DateTime.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.DetailsResp.UserDetails.DateTime.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.DetailsResp.UserDetails.DateTime} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject = function(includeInstance, msg) { + var f, obj = { + ticksSinceEpoch: jspb.Message.getFieldWithDefault(msg, 1, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} + */ +proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.DetailsResp.UserDetails.DateTime; + return proto.event_store.client.users.DetailsResp.UserDetails.DateTime.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.DetailsResp.UserDetails.DateTime} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} + */ +proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setTicksSinceEpoch(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.DetailsResp.UserDetails.DateTime.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.DetailsResp.UserDetails.DateTime.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.DetailsResp.UserDetails.DateTime} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTicksSinceEpoch(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 1, + f + ); + } +}; + + +/** + * optional int64 ticks_since_epoch = 1; + * @return {string} + */ +proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.getTicksSinceEpoch = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.setTicksSinceEpoch = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string full_name = 2; + * @return {string} + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.getFullName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.setFullName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string groups = 3; + * @return {!Array} + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.getGroupsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.setGroupsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.addGroups = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.clearGroupsList = function() { + return this.setGroupsList([]); +}; + + +/** + * optional DateTime last_updated = 4; + * @return {?proto.event_store.client.users.DetailsResp.UserDetails.DateTime} + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.getLastUpdated = function() { + return /** @type{?proto.event_store.client.users.DetailsResp.UserDetails.DateTime} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsResp.UserDetails.DateTime, 4)); +}; + + +/** + * @param {?proto.event_store.client.users.DetailsResp.UserDetails.DateTime|undefined} value + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this +*/ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.setLastUpdated = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.clearLastUpdated = function() { + return this.setLastUpdated(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.hasLastUpdated = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool disabled = 5; + * @return {boolean} + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.getDisabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this + */ +proto.event_store.client.users.DetailsResp.UserDetails.prototype.setDisabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional UserDetails user_details = 1; + * @return {?proto.event_store.client.users.DetailsResp.UserDetails} + */ +proto.event_store.client.users.DetailsResp.prototype.getUserDetails = function() { + return /** @type{?proto.event_store.client.users.DetailsResp.UserDetails} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsResp.UserDetails, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.DetailsResp.UserDetails|undefined} value + * @return {!proto.event_store.client.users.DetailsResp} returns this +*/ +proto.event_store.client.users.DetailsResp.prototype.setUserDetails = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.DetailsResp} returns this + */ +proto.event_store.client.users.DetailsResp.prototype.clearUserDetails = function() { + return this.setUserDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.DetailsResp.prototype.hasUserDetails = 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_, 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.ChangePasswordReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ChangePasswordReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} + */ +proto.event_store.client.users.ChangePasswordReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.ChangePasswordReq; + return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.ChangePasswordReq} + */ +proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options; + reader.readMessage(value,proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ChangePasswordReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.ChangePasswordReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ChangePasswordReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), + currentPassword: jspb.Message.getFieldWithDefault(msg, 2, ""), + newPassword: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.ChangePasswordReq.Options} + */ +proto.event_store.client.users.ChangePasswordReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.ChangePasswordReq.Options; + return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.ChangePasswordReq.Options} + */ +proto.event_store.client.users.ChangePasswordReq.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.setCurrentPassword(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setNewPassword(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.ChangePasswordReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCurrentPassword(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getNewPassword(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.ChangePasswordReq.Options.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this + */ +proto.event_store.client.users.ChangePasswordReq.Options.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string current_password = 2; + * @return {string} + */ +proto.event_store.client.users.ChangePasswordReq.Options.prototype.getCurrentPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this + */ +proto.event_store.client.users.ChangePasswordReq.Options.prototype.setCurrentPassword = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string new_password = 3; + * @return {string} + */ +proto.event_store.client.users.ChangePasswordReq.Options.prototype.getNewPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this + */ +proto.event_store.client.users.ChangePasswordReq.Options.prototype.setNewPassword = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.ChangePasswordReq.Options} + */ +proto.event_store.client.users.ChangePasswordReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.ChangePasswordReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.ChangePasswordReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.ChangePasswordReq.Options|undefined} value + * @return {!proto.event_store.client.users.ChangePasswordReq} returns this +*/ +proto.event_store.client.users.ChangePasswordReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.ChangePasswordReq} returns this + */ +proto.event_store.client.users.ChangePasswordReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.ChangePasswordReq.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_, 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.ChangePasswordResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} + */ +proto.event_store.client.users.ChangePasswordResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.ChangePasswordResp; + return proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.ChangePasswordResp} + */ +proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ChangePasswordResp.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_, 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.ResetPasswordReq.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ResetPasswordReq.toObject = function(includeInstance, msg) { + var f, obj = { + options: (f = msg.getOptions()) && proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} + */ +proto.event_store.client.users.ResetPasswordReq.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.ResetPasswordReq; + return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.ResetPasswordReq} + */ +proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options; + reader.readMessage(value,proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ResetPasswordReq.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOptions(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter + ); + } +}; + + + + + +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_, 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.ResetPasswordReq.Options.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ResetPasswordReq.Options.toObject = function(includeInstance, msg) { + var f, obj = { + loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), + newPassword: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.ResetPasswordReq.Options} + */ +proto.event_store.client.users.ResetPasswordReq.Options.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.ResetPasswordReq.Options; + return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.ResetPasswordReq.Options} + */ +proto.event_store.client.users.ResetPasswordReq.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.setNewPassword(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.ResetPasswordReq.Options.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoginName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getNewPassword(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string login_name = 1; + * @return {string} + */ +proto.event_store.client.users.ResetPasswordReq.Options.prototype.getLoginName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.ResetPasswordReq.Options} returns this + */ +proto.event_store.client.users.ResetPasswordReq.Options.prototype.setLoginName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string new_password = 2; + * @return {string} + */ +proto.event_store.client.users.ResetPasswordReq.Options.prototype.getNewPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.event_store.client.users.ResetPasswordReq.Options} returns this + */ +proto.event_store.client.users.ResetPasswordReq.Options.prototype.setNewPassword = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Options options = 1; + * @return {?proto.event_store.client.users.ResetPasswordReq.Options} + */ +proto.event_store.client.users.ResetPasswordReq.prototype.getOptions = function() { + return /** @type{?proto.event_store.client.users.ResetPasswordReq.Options} */ ( + jspb.Message.getWrapperField(this, proto.event_store.client.users.ResetPasswordReq.Options, 1)); +}; + + +/** + * @param {?proto.event_store.client.users.ResetPasswordReq.Options|undefined} value + * @return {!proto.event_store.client.users.ResetPasswordReq} returns this +*/ +proto.event_store.client.users.ResetPasswordReq.prototype.setOptions = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.event_store.client.users.ResetPasswordReq} returns this + */ +proto.event_store.client.users.ResetPasswordReq.prototype.clearOptions = function() { + return this.setOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.event_store.client.users.ResetPasswordReq.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_, 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.ResetPasswordResp.prototype.toObject = function(opt_includeInstance) { + return proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} + */ +proto.event_store.client.users.ResetPasswordResp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.event_store.client.users.ResetPasswordResp; + return proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.event_store.client.users.ResetPasswordResp} + */ +proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.event_store.client.users.ResetPasswordResp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.event_store.client.users); diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto b/packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto deleted file mode 100644 index fb99d896..00000000 --- a/packages/db-client/protos/kurrentdb/protocols/v1/cluster.proto +++ /dev/null @@ -1,149 +0,0 @@ -syntax = "proto3"; -package event_store.cluster; -option java_package = "com.eventstore.dbclient.proto.cluster"; - -import "shared.proto"; - -service Gossip { - rpc Update (GossipRequest) returns (ClusterInfo); - rpc Read (event_store.client.Empty) returns (ClusterInfo); -} - -service Elections { - rpc ViewChange (ViewChangeRequest) returns (event_store.client.Empty); - rpc ViewChangeProof (ViewChangeProofRequest) returns (event_store.client.Empty); - rpc Prepare (PrepareRequest) returns (event_store.client.Empty); - rpc PrepareOk (PrepareOkRequest) returns (event_store.client.Empty); - rpc Proposal (ProposalRequest) returns (event_store.client.Empty); - rpc Accept (AcceptRequest) returns (event_store.client.Empty); - - rpc LeaderIsResigning (LeaderIsResigningRequest) returns (event_store.client.Empty); - rpc LeaderIsResigningOk (LeaderIsResigningOkRequest) returns (event_store.client.Empty); -} - -message GossipRequest { - ClusterInfo info = 1; - EndPoint server = 2; -} - -message ViewChangeRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - int32 attempted_view = 3; -} - -message ViewChangeProofRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - int32 installed_view = 3; -} - -message PrepareRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - int32 view = 3; -} - -message PrepareOkRequest { - int32 view = 1; - event_store.client.UUID server_id = 2; - EndPoint server_http = 3; - int32 epoch_number = 4; - int64 epoch_position = 5 [jstype = JS_STRING]; - event_store.client.UUID epoch_id = 6; - event_store.client.UUID epoch_leader_instance_id = 7; - int64 last_commit_position = 8 [jstype = JS_STRING]; - int64 writer_checkpoint = 9 [jstype = JS_STRING]; - int64 chaser_checkpoint = 10 [jstype = JS_STRING]; - int32 node_priority = 11; - ClusterInfo cluster_info = 12; -} - -message ProposalRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - event_store.client.UUID leader_id = 3; - EndPoint leader_http = 4; - int32 view = 5; - int32 epoch_number = 6; - int64 epoch_position = 7 [jstype = JS_STRING]; - event_store.client.UUID epoch_id = 8; - event_store.client.UUID epoch_leader_instance_id = 9; - int64 last_commit_position = 10 [jstype = JS_STRING]; - int64 writer_checkpoint = 11 [jstype = JS_STRING]; - int64 chaser_checkpoint = 12 [jstype = JS_STRING]; - int32 node_priority = 13; -} - -message AcceptRequest { - event_store.client.UUID server_id = 1; - EndPoint server_http = 2; - event_store.client.UUID leader_id = 3; - EndPoint leader_http = 4; - int32 view = 5; -} - -message LeaderIsResigningRequest { - event_store.client.UUID leader_id = 1; - EndPoint leader_http = 2; -} - -message LeaderIsResigningOkRequest { - event_store.client.UUID leader_id = 1; - EndPoint leader_http = 2; - event_store.client.UUID server_id = 3; - EndPoint server_http = 4; -} - -message ClusterInfo { - repeated MemberInfo members = 1; -} - -message EndPoint { - string address = 1; - uint32 port = 2; -} - -message MemberInfo { - enum VNodeState { - Initializing = 0; - DiscoverLeader = 1; - Unknown = 2; - PreReplica = 3; - CatchingUp = 4; - Clone = 5; - Follower = 6; - PreLeader = 7; - Leader = 8; - Manager = 9; - ShuttingDown = 10; - Shutdown = 11; - ReadOnlyLeaderless = 12; - PreReadOnlyReplica = 13; - ReadOnlyReplica = 14; - ResigningLeader = 15; - } - event_store.client.UUID instance_id = 1; - int64 time_stamp = 2 [jstype = JS_STRING]; - VNodeState state = 3; - bool is_alive = 4; - EndPoint http_end_point = 5; - EndPoint internal_tcp = 6; - EndPoint external_tcp = 7; - bool internal_tcp_uses_tls = 8; - bool external_tcp_uses_tls = 9; - - int64 last_commit_position = 10 [jstype = JS_STRING]; - int64 writer_checkpoint = 11 [jstype = JS_STRING]; - int64 chaser_checkpoint = 12 [jstype = JS_STRING]; - int64 epoch_position = 13 [jstype = JS_STRING]; - int32 epoch_number = 14; - event_store.client.UUID epoch_id = 15; - - int32 node_priority = 16; - bool is_read_only_replica = 17; - string advertise_host_to_client_as = 18; - uint32 advertise_http_port_to_client_as = 19; - uint32 advertise_tcp_port_to_client_as = 20; -} - diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto b/packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto deleted file mode 100644 index 69c2c312..00000000 --- a/packages/db-client/protos/kurrentdb/protocols/v1/monitoring.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; -package event_store.client.monitoring; -option java_package = "com.eventstore.dbclient.proto.monitoring"; - -service Monitoring { - rpc Stats(StatsReq) returns (stream StatsResp); -} - -message StatsReq { - bool use_metadata = 1; - uint64 refresh_time_period_in_ms = 4 [jstype = JS_STRING]; -} - -message StatsResp { - map stats = 1; -} diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/persistent.proto b/packages/db-client/protos/kurrentdb/protocols/v1/persistentsubscriptions.proto similarity index 100% rename from packages/db-client/protos/kurrentdb/protocols/v1/persistent.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/persistentsubscriptions.proto diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/projections.proto b/packages/db-client/protos/kurrentdb/protocols/v1/projectionmanagement.proto similarity index 100% rename from packages/db-client/protos/kurrentdb/protocols/v1/projections.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/projectionmanagement.proto diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/users.proto b/packages/db-client/protos/kurrentdb/protocols/v1/usermanagement.proto similarity index 100% rename from packages/db-client/protos/kurrentdb/protocols/v1/users.proto rename to packages/db-client/protos/kurrentdb/protocols/v1/usermanagement.proto From 5a8d27edd30a2aeb5707e1366dd85a6a4804054b Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 18 Jul 2025 18:40:16 +0400 Subject: [PATCH 16/18] Update paths --- .../db-client/generated/cluster_grpc_pb.d.ts | 211 - .../db-client/generated/cluster_grpc_pb.js | 247 - packages/db-client/generated/cluster_pb.d.ts | 546 - packages/db-client/generated/cluster_pb.js | 4357 ------ .../db-client/generated/dynamic-value_pb.js | 697 - .../db-client/generated/gossip_grpc_pb.d.ts | 42 - .../protocols/v1}/code_grpc_pb.js | 0 .../{ => kurrentdb/protocols/v1}/code_pb.d.ts | 2 +- .../{ => kurrentdb/protocols/v1}/code_pb.js | 2 +- .../protocols/v1/gossip_grpc_pb.d.ts | 42 + .../protocols/v1}/gossip_grpc_pb.js | 16 +- .../protocols/v1}/gossip_pb.d.ts | 10 +- .../{ => kurrentdb/protocols/v1}/gossip_pb.js | 16 +- .../protocols/v1/operations_grpc_pb.d.ts | 144 + .../protocols/v1}/operations_grpc_pb.js | 52 +- .../protocols/v1}/operations_pb.d.ts | 4 +- .../protocols/v1}/operations_pb.js | 6 +- .../v1/persistentsubscriptions_grpc_pb.d.ts | 160 + .../v1}/persistentsubscriptions_grpc_pb.js | 96 +- .../v1}/persistentsubscriptions_pb.d.ts | 212 +- .../v1}/persistentsubscriptions_pb.js | 346 +- .../v1/projectionmanagement_grpc_pb.d.ts | 194 + .../v1}/projectionmanagement_grpc_pb.js | 120 +- .../v1}/projectionmanagement_pb.d.ts | 40 +- .../protocols/v1}/projectionmanagement_pb.js | 66 +- .../protocols/v1/serverfeatures_grpc_pb.d.ts | 42 + .../protocols/v1}/serverfeatures_grpc_pb.js | 16 +- .../protocols/v1}/serverfeatures_pb.d.ts | 4 +- .../protocols/v1}/serverfeatures_pb.js | 6 +- .../protocols/v1}/shared_grpc_pb.js | 0 .../protocols/v1}/shared_pb.d.ts | 2 +- .../{ => kurrentdb/protocols/v1}/shared_pb.js | 2 +- .../protocols/v1}/status_grpc_pb.js | 0 .../protocols/v1}/status_pb.d.ts | 10 +- .../{ => kurrentdb/protocols/v1}/status_pb.js | 6 +- .../protocols/v1/streams_grpc_pb.d.ts | 113 + .../protocols/v1}/streams_grpc_pb.js | 66 +- .../protocols/v1}/streams_pb.d.ts | 276 +- .../protocols/v1}/streams_pb.js | 460 +- .../protocols/v1/usermanagement_grpc_pb.d.ts | 158 + .../protocols/v1}/usermanagement_grpc_pb.js | 98 +- .../protocols/v1}/usermanagement_pb.d.ts | 2 +- .../protocols/v1}/usermanagement_pb.js | 2 +- .../protocols/v2/core_grpc_pb.js} | 0 .../protocols/v2/core_pb.d.ts} | 88 +- .../kurrentdb/protocols/v2/core_pb.js | 1301 ++ .../v2/features/service_grpc_pb.d.ts | 43 + .../protocols/v2/features/service_grpc_pb.js | 50 + .../protocols/v2/features/service_pb.d.ts | 227 + .../protocols/v2/features/service_pb.js | 1753 +++ .../protocols/v2/streams/shared_grpc_pb.js | 1 + .../protocols/v2/streams/shared_pb.d.ts | 218 + .../protocols/v2/streams/shared_pb.js | 1561 ++ .../protocols/v2/streams/streams_grpc_pb.d.ts | 80 + .../protocols/v2/streams/streams_grpc_pb.js | 124 + .../protocols/v2/streams/streams_pb.d.ts | 640 + .../protocols/v2/streams/streams_pb.js} | 2130 ++- .../generated/monitoring_grpc_pb.d.ts | 39 - .../db-client/generated/monitoring_grpc_pb.js | 44 - .../db-client/generated/monitoring_pb.d.ts | 52 - packages/db-client/generated/monitoring_pb.js | 361 - .../generated/operations_grpc_pb.d.ts | 144 - .../generated/persistent_grpc_pb.d.ts | 160 - .../db-client/generated/persistent_grpc_pb.js | 265 - .../db-client/generated/persistent_pb.d.ts | 1702 --- packages/db-client/generated/persistent_pb.js | 12340 ---------------- .../persistentsubscriptions_grpc_pb.d.ts | 160 - .../projectionmanagement_grpc_pb.d.ts | 194 - .../generated/projections_grpc_pb.d.ts | 194 - .../generated/projections_grpc_pb.js | 332 - .../db-client/generated/projections_pb.d.ts | 821 - .../db-client/generated/projections_pb.js | 6065 -------- .../generated/serverfeatures_grpc_pb.d.ts | 42 - .../generated/streams.v2_grpc_pb.d.ts | 61 - .../db-client/generated/streams.v2_grpc_pb.js | 76 - .../db-client/generated/streams.v2_pb.d.ts | 400 - .../db-client/generated/streams_grpc_pb.d.ts | 113 - .../generated/usermanagement_grpc_pb.d.ts | 158 - .../db-client/generated/users_grpc_pb.d.ts | 158 - packages/db-client/generated/users_grpc_pb.js | 275 - packages/db-client/generated/users_pb.d.ts | 601 - packages/db-client/generated/users_pb.js | 4451 ------ packages/db-client/package.json | 6 +- .../kurrentdb/protocols/v1/gossip.proto | 2 +- .../kurrentdb/protocols/v1/operations.proto | 2 +- .../v1/persistentsubscriptions.proto | 2 +- .../protocols/v1/projectionmanagement.proto | 2 +- .../protocols/v1/serverfeatures.proto | 2 +- .../kurrentdb/protocols/v1/status.proto | 2 +- .../kurrentdb/protocols/v1/streams.proto | 4 +- .../protos/kurrentdb/protocols/v2/core.proto | 82 + .../protocols/v2/dynamic-value.proto | 42 - .../protocols/v2/features/service.proto | 144 + .../kurrentdb/protocols/v2/streams.v2.proto | 170 - .../protocols/v2/streams/shared.proto | 118 + .../protocols/v2/streams/streams.proto | 481 + .../db-client/src/Client/ServerFeatures.ts | 6 +- packages/db-client/src/Client/discovery.ts | 4 +- .../createPersistentSubscriptionToAll.ts | 6 +- .../createPersistentSubscriptionToStream.ts | 4 +- .../deletePersistentSubscriptionToAll.ts | 6 +- .../deletePersistentSubscriptionToStream.ts | 4 +- .../getPersistentSubscriptionToAllInfo.ts | 6 +- .../getPersistentSubscriptionToStreamInfo.ts | 4 +- .../listAllPersistentSubscriptions.ts | 6 +- .../listPersistentSubscriptionsToAll.ts | 6 +- .../listPersistentSubscriptionsToStream.ts | 4 +- .../replayParkedMessagesToAll.ts | 6 +- .../replayParkedMessagesToStream.ts | 6 +- .../restartPersistentSubscriptionSubsystem.ts | 4 +- .../subscribeToPersistentSubscriptionToAll.ts | 6 +- ...bscribeToPersistentSubscriptionToStream.ts | 6 +- .../updatePersistentSubscriptionToAll.ts | 6 +- .../updatePersistentSubscriptionToStream.ts | 4 +- .../utils/PersistentSubscriptionImpl.ts | 5 +- .../utils/mapPersistentSubscriptionInfo.ts | 2 +- .../utils/settingsToGRPC.ts | 5 +- .../src/projections/createProjection.ts | 4 +- .../src/projections/deleteProjection.ts | 4 +- .../src/projections/disableProjection.ts | 4 +- .../src/projections/enableProjection.ts | 4 +- .../src/projections/getProjectionResult.ts | 4 +- .../src/projections/getProjectionState.ts | 4 +- .../src/projections/getProjectionStatus.ts | 7 +- .../src/projections/listProjections.ts | 9 +- .../src/projections/resetProjection.ts | 4 +- .../src/projections/restartSubsystem.ts | 4 +- .../src/projections/updateProjection.ts | 6 +- .../utils/mapGrpcProjectionDetails.ts | 2 +- .../src/streams/appendToStream/append.ts | 6 +- .../src/streams/appendToStream/batchAppend.ts | 12 +- .../src/streams/appendToStream/index.ts | 4 +- .../src/streams/appendToStream/multi.ts | 12 +- .../src/streams/appendToStream/unpackError.ts | 4 +- .../db-client/src/streams/deleteStream.ts | 6 +- .../db-client/src/streams/subscribeToAll.ts | 6 +- .../src/streams/subscribeToStream.ts | 6 +- .../db-client/src/streams/tombstoneStream.ts | 6 +- .../db-client/src/streams/utils/ReadStream.ts | 2 +- .../src/streams/utils/Subscription.ts | 2 +- packages/db-client/src/types/index.ts | 2 +- packages/db-client/src/utils/CommandError.ts | 2 +- .../db-client/src/utils/convertGrpcEvent.ts | 4 +- .../src/utils/grpcStreamIdentifier.ts | 2 +- packages/db-client/src/utils/grpcUUID.ts | 2 +- packages/opentelemetry/src/instrumentation.ts | 4 +- .../appendToStream-batch-append.test.ts | 2 +- .../src/streams/multiAppendStream.test.ts | 2 +- 148 files changed, 10792 insertions(+), 36830 deletions(-) delete mode 100644 packages/db-client/generated/cluster_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/cluster_grpc_pb.js delete mode 100644 packages/db-client/generated/cluster_pb.d.ts delete mode 100644 packages/db-client/generated/cluster_pb.js delete mode 100644 packages/db-client/generated/dynamic-value_pb.js delete mode 100644 packages/db-client/generated/gossip_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/code_grpc_pb.js (100%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/code_pb.d.ts (92%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/code_pb.js (96%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/gossip_grpc_pb.js (63%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/gossip_pb.d.ts (91%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/gossip_pb.js (97%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/operations_grpc_pb.js (69%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/operations_pb.d.ts (97%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/operations_pb.js (99%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/persistentsubscriptions_grpc_pb.js (67%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/persistentsubscriptions_pb.d.ts (87%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/persistentsubscriptions_pb.js (96%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/projectionmanagement_grpc_pb.js (65%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/projectionmanagement_pb.d.ts (95%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/projectionmanagement_pb.js (98%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/serverfeatures_grpc_pb.js (64%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/serverfeatures_pb.d.ts (94%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/serverfeatures_pb.js (98%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/shared_grpc_pb.js (100%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/shared_pb.d.ts (99%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/shared_pb.js (99%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/status_grpc_pb.js (100%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/status_pb.d.ts (79%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/status_pb.js (97%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/streams_grpc_pb.js (67%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/streams_pb.d.ts (84%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/streams_pb.js (95%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/usermanagement_grpc_pb.js (65%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/usermanagement_pb.d.ts (99%) rename packages/db-client/generated/{ => kurrentdb/protocols/v1}/usermanagement_pb.js (99%) rename packages/db-client/generated/{dynamic-value_grpc_pb.js => kurrentdb/protocols/v2/core_grpc_pb.js} (100%) rename packages/db-client/generated/{dynamic-value_pb.d.ts => kurrentdb/protocols/v2/core_pb.d.ts} (51%) create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/core_pb.js create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.d.ts create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.js create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.js create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js create mode 100644 packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts rename packages/db-client/generated/{streams.v2_pb.js => kurrentdb/protocols/v2/streams/streams_pb.js} (57%) delete mode 100644 packages/db-client/generated/monitoring_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/monitoring_grpc_pb.js delete mode 100644 packages/db-client/generated/monitoring_pb.d.ts delete mode 100644 packages/db-client/generated/monitoring_pb.js delete mode 100644 packages/db-client/generated/operations_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/persistent_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/persistent_grpc_pb.js delete mode 100644 packages/db-client/generated/persistent_pb.d.ts delete mode 100644 packages/db-client/generated/persistent_pb.js delete mode 100644 packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/projectionmanagement_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/projections_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/projections_grpc_pb.js delete mode 100644 packages/db-client/generated/projections_pb.d.ts delete mode 100644 packages/db-client/generated/projections_pb.js delete mode 100644 packages/db-client/generated/serverfeatures_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/streams.v2_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/streams.v2_grpc_pb.js delete mode 100644 packages/db-client/generated/streams.v2_pb.d.ts delete mode 100644 packages/db-client/generated/streams_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/usermanagement_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/users_grpc_pb.d.ts delete mode 100644 packages/db-client/generated/users_grpc_pb.js delete mode 100644 packages/db-client/generated/users_pb.d.ts delete mode 100644 packages/db-client/generated/users_pb.js create mode 100644 packages/db-client/protos/kurrentdb/protocols/v2/core.proto delete mode 100644 packages/db-client/protos/kurrentdb/protocols/v2/dynamic-value.proto create mode 100644 packages/db-client/protos/kurrentdb/protocols/v2/features/service.proto delete mode 100644 packages/db-client/protos/kurrentdb/protocols/v2/streams.v2.proto create mode 100644 packages/db-client/protos/kurrentdb/protocols/v2/streams/shared.proto create mode 100644 packages/db-client/protos/kurrentdb/protocols/v2/streams/streams.proto diff --git a/packages/db-client/generated/cluster_grpc_pb.d.ts b/packages/db-client/generated/cluster_grpc_pb.d.ts deleted file mode 100644 index ba878a80..00000000 --- a/packages/db-client/generated/cluster_grpc_pb.d.ts +++ /dev/null @@ -1,211 +0,0 @@ -// package: event_store.cluster -// file: cluster.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as cluster_pb from "./cluster_pb"; -import * as shared_pb from "./shared_pb"; - -interface IGossipService extends grpc.ServiceDefinition { - update: IGossipService_IUpdate; - read: IGossipService_IRead; -} - -interface IGossipService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.cluster.Gossip/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IGossipService_IRead extends grpc.MethodDefinition { - path: "/event_store.cluster.Gossip/Read"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const GossipService: IGossipService; - -export interface IGossipServer extends grpc.UntypedServiceImplementation { - update: grpc.handleUnaryCall; - read: grpc.handleUnaryCall; -} - -export interface IGossipClient { - update(request: cluster_pb.GossipRequest, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - update(request: cluster_pb.GossipRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - update(request: cluster_pb.GossipRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - read(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - read(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - read(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; -} - -export class GossipClient extends grpc.Client implements IGossipClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public update(request: cluster_pb.GossipRequest, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public update(request: cluster_pb.GossipRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public update(request: cluster_pb.GossipRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public read(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public read(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public read(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cluster_pb.ClusterInfo) => void): grpc.ClientUnaryCall; -} - -interface IElectionsService extends grpc.ServiceDefinition { - viewChange: IElectionsService_IViewChange; - viewChangeProof: IElectionsService_IViewChangeProof; - prepare: IElectionsService_IPrepare; - prepareOk: IElectionsService_IPrepareOk; - proposal: IElectionsService_IProposal; - accept: IElectionsService_IAccept; - leaderIsResigning: IElectionsService_ILeaderIsResigning; - leaderIsResigningOk: IElectionsService_ILeaderIsResigningOk; -} - -interface IElectionsService_IViewChange extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/ViewChange"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_IViewChangeProof extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/ViewChangeProof"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_IPrepare extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/Prepare"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_IPrepareOk extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/PrepareOk"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_IProposal extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/Proposal"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_IAccept extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/Accept"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_ILeaderIsResigning extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/LeaderIsResigning"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IElectionsService_ILeaderIsResigningOk extends grpc.MethodDefinition { - path: "/event_store.cluster.Elections/LeaderIsResigningOk"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ElectionsService: IElectionsService; - -export interface IElectionsServer extends grpc.UntypedServiceImplementation { - viewChange: grpc.handleUnaryCall; - viewChangeProof: grpc.handleUnaryCall; - prepare: grpc.handleUnaryCall; - prepareOk: grpc.handleUnaryCall; - proposal: grpc.handleUnaryCall; - accept: grpc.handleUnaryCall; - leaderIsResigning: grpc.handleUnaryCall; - leaderIsResigningOk: grpc.handleUnaryCall; -} - -export interface IElectionsClient { - viewChange(request: cluster_pb.ViewChangeRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - viewChange(request: cluster_pb.ViewChangeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - viewChange(request: cluster_pb.ViewChangeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - viewChangeProof(request: cluster_pb.ViewChangeProofRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - viewChangeProof(request: cluster_pb.ViewChangeProofRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - viewChangeProof(request: cluster_pb.ViewChangeProofRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - prepare(request: cluster_pb.PrepareRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - prepare(request: cluster_pb.PrepareRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - prepare(request: cluster_pb.PrepareRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - prepareOk(request: cluster_pb.PrepareOkRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - prepareOk(request: cluster_pb.PrepareOkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - prepareOk(request: cluster_pb.PrepareOkRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - proposal(request: cluster_pb.ProposalRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - proposal(request: cluster_pb.ProposalRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - proposal(request: cluster_pb.ProposalRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - accept(request: cluster_pb.AcceptRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - accept(request: cluster_pb.AcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - accept(request: cluster_pb.AcceptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - leaderIsResigning(request: cluster_pb.LeaderIsResigningRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - leaderIsResigning(request: cluster_pb.LeaderIsResigningRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - leaderIsResigning(request: cluster_pb.LeaderIsResigningRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - leaderIsResigningOk(request: cluster_pb.LeaderIsResigningOkRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - leaderIsResigningOk(request: cluster_pb.LeaderIsResigningOkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - leaderIsResigningOk(request: cluster_pb.LeaderIsResigningOkRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} - -export class ElectionsClient extends grpc.Client implements IElectionsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public viewChange(request: cluster_pb.ViewChangeRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public viewChange(request: cluster_pb.ViewChangeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public viewChange(request: cluster_pb.ViewChangeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public viewChangeProof(request: cluster_pb.ViewChangeProofRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public viewChangeProof(request: cluster_pb.ViewChangeProofRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public viewChangeProof(request: cluster_pb.ViewChangeProofRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public prepare(request: cluster_pb.PrepareRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public prepare(request: cluster_pb.PrepareRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public prepare(request: cluster_pb.PrepareRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public prepareOk(request: cluster_pb.PrepareOkRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public prepareOk(request: cluster_pb.PrepareOkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public prepareOk(request: cluster_pb.PrepareOkRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public proposal(request: cluster_pb.ProposalRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public proposal(request: cluster_pb.ProposalRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public proposal(request: cluster_pb.ProposalRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public accept(request: cluster_pb.AcceptRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public accept(request: cluster_pb.AcceptRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public accept(request: cluster_pb.AcceptRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public leaderIsResigning(request: cluster_pb.LeaderIsResigningRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public leaderIsResigning(request: cluster_pb.LeaderIsResigningRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public leaderIsResigning(request: cluster_pb.LeaderIsResigningRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public leaderIsResigningOk(request: cluster_pb.LeaderIsResigningOkRequest, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public leaderIsResigningOk(request: cluster_pb.LeaderIsResigningOkRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public leaderIsResigningOk(request: cluster_pb.LeaderIsResigningOkRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/cluster_grpc_pb.js b/packages/db-client/generated/cluster_grpc_pb.js deleted file mode 100644 index 5ff9c6bb..00000000 --- a/packages/db-client/generated/cluster_grpc_pb.js +++ /dev/null @@ -1,247 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var cluster_pb = require('./cluster_pb.js'); -var shared_pb = require('./shared_pb.js'); - -function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { - throw new Error('Expected argument of type event_store.client.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_AcceptRequest(arg) { - if (!(arg instanceof cluster_pb.AcceptRequest)) { - throw new Error('Expected argument of type event_store.cluster.AcceptRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_AcceptRequest(buffer_arg) { - return cluster_pb.AcceptRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_ClusterInfo(arg) { - if (!(arg instanceof cluster_pb.ClusterInfo)) { - throw new Error('Expected argument of type event_store.cluster.ClusterInfo'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_ClusterInfo(buffer_arg) { - return cluster_pb.ClusterInfo.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_GossipRequest(arg) { - if (!(arg instanceof cluster_pb.GossipRequest)) { - throw new Error('Expected argument of type event_store.cluster.GossipRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_GossipRequest(buffer_arg) { - return cluster_pb.GossipRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_LeaderIsResigningOkRequest(arg) { - if (!(arg instanceof cluster_pb.LeaderIsResigningOkRequest)) { - throw new Error('Expected argument of type event_store.cluster.LeaderIsResigningOkRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_LeaderIsResigningOkRequest(buffer_arg) { - return cluster_pb.LeaderIsResigningOkRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_LeaderIsResigningRequest(arg) { - if (!(arg instanceof cluster_pb.LeaderIsResigningRequest)) { - throw new Error('Expected argument of type event_store.cluster.LeaderIsResigningRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_LeaderIsResigningRequest(buffer_arg) { - return cluster_pb.LeaderIsResigningRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_PrepareOkRequest(arg) { - if (!(arg instanceof cluster_pb.PrepareOkRequest)) { - throw new Error('Expected argument of type event_store.cluster.PrepareOkRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_PrepareOkRequest(buffer_arg) { - return cluster_pb.PrepareOkRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_PrepareRequest(arg) { - if (!(arg instanceof cluster_pb.PrepareRequest)) { - throw new Error('Expected argument of type event_store.cluster.PrepareRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_PrepareRequest(buffer_arg) { - return cluster_pb.PrepareRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_ProposalRequest(arg) { - if (!(arg instanceof cluster_pb.ProposalRequest)) { - throw new Error('Expected argument of type event_store.cluster.ProposalRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_ProposalRequest(buffer_arg) { - return cluster_pb.ProposalRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_ViewChangeProofRequest(arg) { - if (!(arg instanceof cluster_pb.ViewChangeProofRequest)) { - throw new Error('Expected argument of type event_store.cluster.ViewChangeProofRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_ViewChangeProofRequest(buffer_arg) { - return cluster_pb.ViewChangeProofRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_cluster_ViewChangeRequest(arg) { - if (!(arg instanceof cluster_pb.ViewChangeRequest)) { - throw new Error('Expected argument of type event_store.cluster.ViewChangeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_cluster_ViewChangeRequest(buffer_arg) { - return cluster_pb.ViewChangeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var GossipService = exports.GossipService = { - update: { - path: '/event_store.cluster.Gossip/Update', - requestStream: false, - responseStream: false, - requestType: cluster_pb.GossipRequest, - responseType: cluster_pb.ClusterInfo, - requestSerialize: serialize_event_store_cluster_GossipRequest, - requestDeserialize: deserialize_event_store_cluster_GossipRequest, - responseSerialize: serialize_event_store_cluster_ClusterInfo, - responseDeserialize: deserialize_event_store_cluster_ClusterInfo, - }, - read: { - path: '/event_store.cluster.Gossip/Read', - requestStream: false, - responseStream: false, - requestType: shared_pb.Empty, - responseType: cluster_pb.ClusterInfo, - requestSerialize: serialize_event_store_client_Empty, - requestDeserialize: deserialize_event_store_client_Empty, - responseSerialize: serialize_event_store_cluster_ClusterInfo, - responseDeserialize: deserialize_event_store_cluster_ClusterInfo, - }, -}; - -exports.GossipClient = grpc.makeGenericClientConstructor(GossipService, 'Gossip'); -var ElectionsService = exports.ElectionsService = { - viewChange: { - path: '/event_store.cluster.Elections/ViewChange', - requestStream: false, - responseStream: false, - requestType: cluster_pb.ViewChangeRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_ViewChangeRequest, - requestDeserialize: deserialize_event_store_cluster_ViewChangeRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - viewChangeProof: { - path: '/event_store.cluster.Elections/ViewChangeProof', - requestStream: false, - responseStream: false, - requestType: cluster_pb.ViewChangeProofRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_ViewChangeProofRequest, - requestDeserialize: deserialize_event_store_cluster_ViewChangeProofRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - prepare: { - path: '/event_store.cluster.Elections/Prepare', - requestStream: false, - responseStream: false, - requestType: cluster_pb.PrepareRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_PrepareRequest, - requestDeserialize: deserialize_event_store_cluster_PrepareRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - prepareOk: { - path: '/event_store.cluster.Elections/PrepareOk', - requestStream: false, - responseStream: false, - requestType: cluster_pb.PrepareOkRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_PrepareOkRequest, - requestDeserialize: deserialize_event_store_cluster_PrepareOkRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - proposal: { - path: '/event_store.cluster.Elections/Proposal', - requestStream: false, - responseStream: false, - requestType: cluster_pb.ProposalRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_ProposalRequest, - requestDeserialize: deserialize_event_store_cluster_ProposalRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - accept: { - path: '/event_store.cluster.Elections/Accept', - requestStream: false, - responseStream: false, - requestType: cluster_pb.AcceptRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_AcceptRequest, - requestDeserialize: deserialize_event_store_cluster_AcceptRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - leaderIsResigning: { - path: '/event_store.cluster.Elections/LeaderIsResigning', - requestStream: false, - responseStream: false, - requestType: cluster_pb.LeaderIsResigningRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_LeaderIsResigningRequest, - requestDeserialize: deserialize_event_store_cluster_LeaderIsResigningRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, - leaderIsResigningOk: { - path: '/event_store.cluster.Elections/LeaderIsResigningOk', - requestStream: false, - responseStream: false, - requestType: cluster_pb.LeaderIsResigningOkRequest, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_cluster_LeaderIsResigningOkRequest, - requestDeserialize: deserialize_event_store_cluster_LeaderIsResigningOkRequest, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, -}; - -exports.ElectionsClient = grpc.makeGenericClientConstructor(ElectionsService, 'Elections'); diff --git a/packages/db-client/generated/cluster_pb.d.ts b/packages/db-client/generated/cluster_pb.d.ts deleted file mode 100644 index 6311d178..00000000 --- a/packages/db-client/generated/cluster_pb.d.ts +++ /dev/null @@ -1,546 +0,0 @@ -// package: event_store.cluster -// file: cluster.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; - -export class GossipRequest extends jspb.Message { - - hasInfo(): boolean; - clearInfo(): void; - getInfo(): ClusterInfo | undefined; - setInfo(value?: ClusterInfo): GossipRequest; - - hasServer(): boolean; - clearServer(): void; - getServer(): EndPoint | undefined; - setServer(value?: EndPoint): GossipRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GossipRequest.AsObject; - static toObject(includeInstance: boolean, msg: GossipRequest): GossipRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GossipRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GossipRequest; - static deserializeBinaryFromReader(message: GossipRequest, reader: jspb.BinaryReader): GossipRequest; -} - -export namespace GossipRequest { - export type AsObject = { - info?: ClusterInfo.AsObject, - server?: EndPoint.AsObject, - } -} - -export class ViewChangeRequest extends jspb.Message { - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): ViewChangeRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): ViewChangeRequest; - getAttemptedView(): number; - setAttemptedView(value: number): ViewChangeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ViewChangeRequest.AsObject; - static toObject(includeInstance: boolean, msg: ViewChangeRequest): ViewChangeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ViewChangeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ViewChangeRequest; - static deserializeBinaryFromReader(message: ViewChangeRequest, reader: jspb.BinaryReader): ViewChangeRequest; -} - -export namespace ViewChangeRequest { - export type AsObject = { - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - attemptedView: number, - } -} - -export class ViewChangeProofRequest extends jspb.Message { - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): ViewChangeProofRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): ViewChangeProofRequest; - getInstalledView(): number; - setInstalledView(value: number): ViewChangeProofRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ViewChangeProofRequest.AsObject; - static toObject(includeInstance: boolean, msg: ViewChangeProofRequest): ViewChangeProofRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ViewChangeProofRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ViewChangeProofRequest; - static deserializeBinaryFromReader(message: ViewChangeProofRequest, reader: jspb.BinaryReader): ViewChangeProofRequest; -} - -export namespace ViewChangeProofRequest { - export type AsObject = { - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - installedView: number, - } -} - -export class PrepareRequest extends jspb.Message { - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): PrepareRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): PrepareRequest; - getView(): number; - setView(value: number): PrepareRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareRequest): PrepareRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareRequest; - static deserializeBinaryFromReader(message: PrepareRequest, reader: jspb.BinaryReader): PrepareRequest; -} - -export namespace PrepareRequest { - export type AsObject = { - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - view: number, - } -} - -export class PrepareOkRequest extends jspb.Message { - getView(): number; - setView(value: number): PrepareOkRequest; - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): PrepareOkRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): PrepareOkRequest; - getEpochNumber(): number; - setEpochNumber(value: number): PrepareOkRequest; - getEpochPosition(): string; - setEpochPosition(value: string): PrepareOkRequest; - - hasEpochId(): boolean; - clearEpochId(): void; - getEpochId(): shared_pb.UUID | undefined; - setEpochId(value?: shared_pb.UUID): PrepareOkRequest; - - hasEpochLeaderInstanceId(): boolean; - clearEpochLeaderInstanceId(): void; - getEpochLeaderInstanceId(): shared_pb.UUID | undefined; - setEpochLeaderInstanceId(value?: shared_pb.UUID): PrepareOkRequest; - getLastCommitPosition(): string; - setLastCommitPosition(value: string): PrepareOkRequest; - getWriterCheckpoint(): string; - setWriterCheckpoint(value: string): PrepareOkRequest; - getChaserCheckpoint(): string; - setChaserCheckpoint(value: string): PrepareOkRequest; - getNodePriority(): number; - setNodePriority(value: number): PrepareOkRequest; - - hasClusterInfo(): boolean; - clearClusterInfo(): void; - getClusterInfo(): ClusterInfo | undefined; - setClusterInfo(value?: ClusterInfo): PrepareOkRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrepareOkRequest.AsObject; - static toObject(includeInstance: boolean, msg: PrepareOkRequest): PrepareOkRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PrepareOkRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrepareOkRequest; - static deserializeBinaryFromReader(message: PrepareOkRequest, reader: jspb.BinaryReader): PrepareOkRequest; -} - -export namespace PrepareOkRequest { - export type AsObject = { - view: number, - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - epochNumber: number, - epochPosition: string, - epochId?: shared_pb.UUID.AsObject, - epochLeaderInstanceId?: shared_pb.UUID.AsObject, - lastCommitPosition: string, - writerCheckpoint: string, - chaserCheckpoint: string, - nodePriority: number, - clusterInfo?: ClusterInfo.AsObject, - } -} - -export class ProposalRequest extends jspb.Message { - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): ProposalRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): ProposalRequest; - - hasLeaderId(): boolean; - clearLeaderId(): void; - getLeaderId(): shared_pb.UUID | undefined; - setLeaderId(value?: shared_pb.UUID): ProposalRequest; - - hasLeaderHttp(): boolean; - clearLeaderHttp(): void; - getLeaderHttp(): EndPoint | undefined; - setLeaderHttp(value?: EndPoint): ProposalRequest; - getView(): number; - setView(value: number): ProposalRequest; - getEpochNumber(): number; - setEpochNumber(value: number): ProposalRequest; - getEpochPosition(): string; - setEpochPosition(value: string): ProposalRequest; - - hasEpochId(): boolean; - clearEpochId(): void; - getEpochId(): shared_pb.UUID | undefined; - setEpochId(value?: shared_pb.UUID): ProposalRequest; - - hasEpochLeaderInstanceId(): boolean; - clearEpochLeaderInstanceId(): void; - getEpochLeaderInstanceId(): shared_pb.UUID | undefined; - setEpochLeaderInstanceId(value?: shared_pb.UUID): ProposalRequest; - getLastCommitPosition(): string; - setLastCommitPosition(value: string): ProposalRequest; - getWriterCheckpoint(): string; - setWriterCheckpoint(value: string): ProposalRequest; - getChaserCheckpoint(): string; - setChaserCheckpoint(value: string): ProposalRequest; - getNodePriority(): number; - setNodePriority(value: number): ProposalRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProposalRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProposalRequest): ProposalRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProposalRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProposalRequest; - static deserializeBinaryFromReader(message: ProposalRequest, reader: jspb.BinaryReader): ProposalRequest; -} - -export namespace ProposalRequest { - export type AsObject = { - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - leaderId?: shared_pb.UUID.AsObject, - leaderHttp?: EndPoint.AsObject, - view: number, - epochNumber: number, - epochPosition: string, - epochId?: shared_pb.UUID.AsObject, - epochLeaderInstanceId?: shared_pb.UUID.AsObject, - lastCommitPosition: string, - writerCheckpoint: string, - chaserCheckpoint: string, - nodePriority: number, - } -} - -export class AcceptRequest extends jspb.Message { - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): AcceptRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): AcceptRequest; - - hasLeaderId(): boolean; - clearLeaderId(): void; - getLeaderId(): shared_pb.UUID | undefined; - setLeaderId(value?: shared_pb.UUID): AcceptRequest; - - hasLeaderHttp(): boolean; - clearLeaderHttp(): void; - getLeaderHttp(): EndPoint | undefined; - setLeaderHttp(value?: EndPoint): AcceptRequest; - getView(): number; - setView(value: number): AcceptRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AcceptRequest.AsObject; - static toObject(includeInstance: boolean, msg: AcceptRequest): AcceptRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AcceptRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AcceptRequest; - static deserializeBinaryFromReader(message: AcceptRequest, reader: jspb.BinaryReader): AcceptRequest; -} - -export namespace AcceptRequest { - export type AsObject = { - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - leaderId?: shared_pb.UUID.AsObject, - leaderHttp?: EndPoint.AsObject, - view: number, - } -} - -export class LeaderIsResigningRequest extends jspb.Message { - - hasLeaderId(): boolean; - clearLeaderId(): void; - getLeaderId(): shared_pb.UUID | undefined; - setLeaderId(value?: shared_pb.UUID): LeaderIsResigningRequest; - - hasLeaderHttp(): boolean; - clearLeaderHttp(): void; - getLeaderHttp(): EndPoint | undefined; - setLeaderHttp(value?: EndPoint): LeaderIsResigningRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LeaderIsResigningRequest.AsObject; - static toObject(includeInstance: boolean, msg: LeaderIsResigningRequest): LeaderIsResigningRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LeaderIsResigningRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LeaderIsResigningRequest; - static deserializeBinaryFromReader(message: LeaderIsResigningRequest, reader: jspb.BinaryReader): LeaderIsResigningRequest; -} - -export namespace LeaderIsResigningRequest { - export type AsObject = { - leaderId?: shared_pb.UUID.AsObject, - leaderHttp?: EndPoint.AsObject, - } -} - -export class LeaderIsResigningOkRequest extends jspb.Message { - - hasLeaderId(): boolean; - clearLeaderId(): void; - getLeaderId(): shared_pb.UUID | undefined; - setLeaderId(value?: shared_pb.UUID): LeaderIsResigningOkRequest; - - hasLeaderHttp(): boolean; - clearLeaderHttp(): void; - getLeaderHttp(): EndPoint | undefined; - setLeaderHttp(value?: EndPoint): LeaderIsResigningOkRequest; - - hasServerId(): boolean; - clearServerId(): void; - getServerId(): shared_pb.UUID | undefined; - setServerId(value?: shared_pb.UUID): LeaderIsResigningOkRequest; - - hasServerHttp(): boolean; - clearServerHttp(): void; - getServerHttp(): EndPoint | undefined; - setServerHttp(value?: EndPoint): LeaderIsResigningOkRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LeaderIsResigningOkRequest.AsObject; - static toObject(includeInstance: boolean, msg: LeaderIsResigningOkRequest): LeaderIsResigningOkRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LeaderIsResigningOkRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LeaderIsResigningOkRequest; - static deserializeBinaryFromReader(message: LeaderIsResigningOkRequest, reader: jspb.BinaryReader): LeaderIsResigningOkRequest; -} - -export namespace LeaderIsResigningOkRequest { - export type AsObject = { - leaderId?: shared_pb.UUID.AsObject, - leaderHttp?: EndPoint.AsObject, - serverId?: shared_pb.UUID.AsObject, - serverHttp?: EndPoint.AsObject, - } -} - -export class ClusterInfo extends jspb.Message { - clearMembersList(): void; - getMembersList(): Array; - setMembersList(value: Array): ClusterInfo; - addMembers(value?: MemberInfo, index?: number): MemberInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClusterInfo.AsObject; - static toObject(includeInstance: boolean, msg: ClusterInfo): ClusterInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClusterInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClusterInfo; - static deserializeBinaryFromReader(message: ClusterInfo, reader: jspb.BinaryReader): ClusterInfo; -} - -export namespace ClusterInfo { - export type AsObject = { - membersList: Array, - } -} - -export class EndPoint extends jspb.Message { - getAddress(): string; - setAddress(value: string): EndPoint; - getPort(): number; - setPort(value: number): EndPoint; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EndPoint.AsObject; - static toObject(includeInstance: boolean, msg: EndPoint): EndPoint.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EndPoint, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EndPoint; - static deserializeBinaryFromReader(message: EndPoint, reader: jspb.BinaryReader): EndPoint; -} - -export namespace EndPoint { - export type AsObject = { - address: string, - port: number, - } -} - -export class MemberInfo extends jspb.Message { - - hasInstanceId(): boolean; - clearInstanceId(): void; - getInstanceId(): shared_pb.UUID | undefined; - setInstanceId(value?: shared_pb.UUID): MemberInfo; - getTimeStamp(): string; - setTimeStamp(value: string): MemberInfo; - getState(): MemberInfo.VNodeState; - setState(value: MemberInfo.VNodeState): MemberInfo; - getIsAlive(): boolean; - setIsAlive(value: boolean): MemberInfo; - - hasHttpEndPoint(): boolean; - clearHttpEndPoint(): void; - getHttpEndPoint(): EndPoint | undefined; - setHttpEndPoint(value?: EndPoint): MemberInfo; - - hasInternalTcp(): boolean; - clearInternalTcp(): void; - getInternalTcp(): EndPoint | undefined; - setInternalTcp(value?: EndPoint): MemberInfo; - - hasExternalTcp(): boolean; - clearExternalTcp(): void; - getExternalTcp(): EndPoint | undefined; - setExternalTcp(value?: EndPoint): MemberInfo; - getInternalTcpUsesTls(): boolean; - setInternalTcpUsesTls(value: boolean): MemberInfo; - getExternalTcpUsesTls(): boolean; - setExternalTcpUsesTls(value: boolean): MemberInfo; - getLastCommitPosition(): string; - setLastCommitPosition(value: string): MemberInfo; - getWriterCheckpoint(): string; - setWriterCheckpoint(value: string): MemberInfo; - getChaserCheckpoint(): string; - setChaserCheckpoint(value: string): MemberInfo; - getEpochPosition(): string; - setEpochPosition(value: string): MemberInfo; - getEpochNumber(): number; - setEpochNumber(value: number): MemberInfo; - - hasEpochId(): boolean; - clearEpochId(): void; - getEpochId(): shared_pb.UUID | undefined; - setEpochId(value?: shared_pb.UUID): MemberInfo; - getNodePriority(): number; - setNodePriority(value: number): MemberInfo; - getIsReadOnlyReplica(): boolean; - setIsReadOnlyReplica(value: boolean): MemberInfo; - getAdvertiseHostToClientAs(): string; - setAdvertiseHostToClientAs(value: string): MemberInfo; - getAdvertiseHttpPortToClientAs(): number; - setAdvertiseHttpPortToClientAs(value: number): MemberInfo; - getAdvertiseTcpPortToClientAs(): number; - setAdvertiseTcpPortToClientAs(value: number): MemberInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MemberInfo.AsObject; - static toObject(includeInstance: boolean, msg: MemberInfo): MemberInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MemberInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MemberInfo; - static deserializeBinaryFromReader(message: MemberInfo, reader: jspb.BinaryReader): MemberInfo; -} - -export namespace MemberInfo { - export type AsObject = { - instanceId?: shared_pb.UUID.AsObject, - timeStamp: string, - state: MemberInfo.VNodeState, - isAlive: boolean, - httpEndPoint?: EndPoint.AsObject, - internalTcp?: EndPoint.AsObject, - externalTcp?: EndPoint.AsObject, - internalTcpUsesTls: boolean, - externalTcpUsesTls: boolean, - lastCommitPosition: string, - writerCheckpoint: string, - chaserCheckpoint: string, - epochPosition: string, - epochNumber: number, - epochId?: shared_pb.UUID.AsObject, - nodePriority: number, - isReadOnlyReplica: boolean, - advertiseHostToClientAs: string, - advertiseHttpPortToClientAs: number, - advertiseTcpPortToClientAs: number, - } - - export enum VNodeState { - INITIALIZING = 0, - DISCOVERLEADER = 1, - UNKNOWN = 2, - PREREPLICA = 3, - CATCHINGUP = 4, - CLONE = 5, - FOLLOWER = 6, - PRELEADER = 7, - LEADER = 8, - MANAGER = 9, - SHUTTINGDOWN = 10, - SHUTDOWN = 11, - READONLYLEADERLESS = 12, - PREREADONLYREPLICA = 13, - READONLYREPLICA = 14, - RESIGNINGLEADER = 15, - } - -} diff --git a/packages/db-client/generated/cluster_pb.js b/packages/db-client/generated/cluster_pb.js deleted file mode 100644 index 2b82dde6..00000000 --- a/packages/db-client/generated/cluster_pb.js +++ /dev/null @@ -1,4357 +0,0 @@ -// source: cluster.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 shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); -goog.exportSymbol('proto.event_store.cluster.AcceptRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.ClusterInfo', null, global); -goog.exportSymbol('proto.event_store.cluster.EndPoint', null, global); -goog.exportSymbol('proto.event_store.cluster.GossipRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.LeaderIsResigningOkRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.LeaderIsResigningRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.MemberInfo', null, global); -goog.exportSymbol('proto.event_store.cluster.MemberInfo.VNodeState', null, global); -goog.exportSymbol('proto.event_store.cluster.PrepareOkRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.PrepareRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.ProposalRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.ViewChangeProofRequest', null, global); -goog.exportSymbol('proto.event_store.cluster.ViewChangeRequest', 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.cluster.GossipRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.GossipRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.GossipRequest.displayName = 'proto.event_store.cluster.GossipRequest'; -} -/** - * 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.cluster.ViewChangeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.ViewChangeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.ViewChangeRequest.displayName = 'proto.event_store.cluster.ViewChangeRequest'; -} -/** - * 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.cluster.ViewChangeProofRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.ViewChangeProofRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.ViewChangeProofRequest.displayName = 'proto.event_store.cluster.ViewChangeProofRequest'; -} -/** - * 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.cluster.PrepareRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.PrepareRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.PrepareRequest.displayName = 'proto.event_store.cluster.PrepareRequest'; -} -/** - * 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.cluster.PrepareOkRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.PrepareOkRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.PrepareOkRequest.displayName = 'proto.event_store.cluster.PrepareOkRequest'; -} -/** - * 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.cluster.ProposalRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.ProposalRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.ProposalRequest.displayName = 'proto.event_store.cluster.ProposalRequest'; -} -/** - * 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.cluster.AcceptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.AcceptRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.AcceptRequest.displayName = 'proto.event_store.cluster.AcceptRequest'; -} -/** - * 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.cluster.LeaderIsResigningRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.LeaderIsResigningRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.LeaderIsResigningRequest.displayName = 'proto.event_store.cluster.LeaderIsResigningRequest'; -} -/** - * 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.cluster.LeaderIsResigningOkRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.LeaderIsResigningOkRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.LeaderIsResigningOkRequest.displayName = 'proto.event_store.cluster.LeaderIsResigningOkRequest'; -} -/** - * 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.cluster.ClusterInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.cluster.ClusterInfo.repeatedFields_, null); -}; -goog.inherits(proto.event_store.cluster.ClusterInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.ClusterInfo.displayName = 'proto.event_store.cluster.ClusterInfo'; -} -/** - * 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.cluster.EndPoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.EndPoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.EndPoint.displayName = 'proto.event_store.cluster.EndPoint'; -} -/** - * 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.cluster.MemberInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.cluster.MemberInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.cluster.MemberInfo.displayName = 'proto.event_store.cluster.MemberInfo'; -} - - - -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_, 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.cluster.GossipRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.GossipRequest.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.cluster.GossipRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.GossipRequest.toObject = function(includeInstance, msg) { - var f, obj = { - info: (f = msg.getInfo()) && proto.event_store.cluster.ClusterInfo.toObject(includeInstance, f), - server: (f = msg.getServer()) && proto.event_store.cluster.EndPoint.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.cluster.GossipRequest} - */ -proto.event_store.cluster.GossipRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.GossipRequest; - return proto.event_store.cluster.GossipRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.GossipRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.GossipRequest} - */ -proto.event_store.cluster.GossipRequest.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.cluster.ClusterInfo; - reader.readMessage(value,proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader); - msg.setInfo(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.GossipRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.GossipRequest.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.cluster.GossipRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.GossipRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInfo(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter - ); - } - f = message.getServer(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ClusterInfo info = 1; - * @return {?proto.event_store.cluster.ClusterInfo} - */ -proto.event_store.cluster.GossipRequest.prototype.getInfo = function() { - return /** @type{?proto.event_store.cluster.ClusterInfo} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.ClusterInfo, 1)); -}; - - -/** - * @param {?proto.event_store.cluster.ClusterInfo|undefined} value - * @return {!proto.event_store.cluster.GossipRequest} returns this -*/ -proto.event_store.cluster.GossipRequest.prototype.setInfo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.GossipRequest} returns this - */ -proto.event_store.cluster.GossipRequest.prototype.clearInfo = function() { - return this.setInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.GossipRequest.prototype.hasInfo = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint server = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.GossipRequest.prototype.getServer = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.GossipRequest} returns this -*/ -proto.event_store.cluster.GossipRequest.prototype.setServer = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.GossipRequest} returns this - */ -proto.event_store.cluster.GossipRequest.prototype.clearServer = function() { - return this.setServer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.GossipRequest.prototype.hasServer = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.cluster.ViewChangeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.ViewChangeRequest.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.cluster.ViewChangeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ViewChangeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - attemptedView: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.ViewChangeRequest} - */ -proto.event_store.cluster.ViewChangeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.ViewChangeRequest; - return proto.event_store.cluster.ViewChangeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.ViewChangeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.ViewChangeRequest} - */ -proto.event_store.cluster.ViewChangeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAttemptedView(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.ViewChangeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.ViewChangeRequest.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.cluster.ViewChangeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ViewChangeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getAttemptedView(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } -}; - - -/** - * optional event_store.client.UUID server_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.ViewChangeRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.ViewChangeRequest} returns this -*/ -proto.event_store.cluster.ViewChangeRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ViewChangeRequest} returns this - */ -proto.event_store.cluster.ViewChangeRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ViewChangeRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint server_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.ViewChangeRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.ViewChangeRequest} returns this -*/ -proto.event_store.cluster.ViewChangeRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ViewChangeRequest} returns this - */ -proto.event_store.cluster.ViewChangeRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ViewChangeRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional int32 attempted_view = 3; - * @return {number} - */ -proto.event_store.cluster.ViewChangeRequest.prototype.getAttemptedView = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.ViewChangeRequest} returns this - */ -proto.event_store.cluster.ViewChangeRequest.prototype.setAttemptedView = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.cluster.ViewChangeProofRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.ViewChangeProofRequest.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.cluster.ViewChangeProofRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ViewChangeProofRequest.toObject = function(includeInstance, msg) { - var f, obj = { - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - installedView: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.ViewChangeProofRequest} - */ -proto.event_store.cluster.ViewChangeProofRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.ViewChangeProofRequest; - return proto.event_store.cluster.ViewChangeProofRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.ViewChangeProofRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.ViewChangeProofRequest} - */ -proto.event_store.cluster.ViewChangeProofRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setInstalledView(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.ViewChangeProofRequest.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.cluster.ViewChangeProofRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ViewChangeProofRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getInstalledView(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } -}; - - -/** - * optional event_store.client.UUID server_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this -*/ -proto.event_store.cluster.ViewChangeProofRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint server_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this -*/ -proto.event_store.cluster.ViewChangeProofRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional int32 installed_view = 3; - * @return {number} - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.getInstalledView = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.ViewChangeProofRequest} returns this - */ -proto.event_store.cluster.ViewChangeProofRequest.prototype.setInstalledView = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.cluster.PrepareRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.PrepareRequest.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.cluster.PrepareRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.PrepareRequest.toObject = function(includeInstance, msg) { - var f, obj = { - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - view: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.PrepareRequest} - */ -proto.event_store.cluster.PrepareRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.PrepareRequest; - return proto.event_store.cluster.PrepareRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.PrepareRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.PrepareRequest} - */ -proto.event_store.cluster.PrepareRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setView(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.PrepareRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.PrepareRequest.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.cluster.PrepareRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.PrepareRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getView(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } -}; - - -/** - * optional event_store.client.UUID server_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.PrepareRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.PrepareRequest} returns this -*/ -proto.event_store.cluster.PrepareRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareRequest} returns this - */ -proto.event_store.cluster.PrepareRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint server_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.PrepareRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.PrepareRequest} returns this -*/ -proto.event_store.cluster.PrepareRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareRequest} returns this - */ -proto.event_store.cluster.PrepareRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional int32 view = 3; - * @return {number} - */ -proto.event_store.cluster.PrepareRequest.prototype.getView = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.PrepareRequest} returns this - */ -proto.event_store.cluster.PrepareRequest.prototype.setView = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.cluster.PrepareOkRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.PrepareOkRequest.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.cluster.PrepareOkRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.PrepareOkRequest.toObject = function(includeInstance, msg) { - var f, obj = { - view: jspb.Message.getFieldWithDefault(msg, 1, 0), - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - epochNumber: jspb.Message.getFieldWithDefault(msg, 4, 0), - epochPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), - epochId: (f = msg.getEpochId()) && shared_pb.UUID.toObject(includeInstance, f), - epochLeaderInstanceId: (f = msg.getEpochLeaderInstanceId()) && shared_pb.UUID.toObject(includeInstance, f), - lastCommitPosition: jspb.Message.getFieldWithDefault(msg, 8, "0"), - writerCheckpoint: jspb.Message.getFieldWithDefault(msg, 9, "0"), - chaserCheckpoint: jspb.Message.getFieldWithDefault(msg, 10, "0"), - nodePriority: jspb.Message.getFieldWithDefault(msg, 11, 0), - clusterInfo: (f = msg.getClusterInfo()) && proto.event_store.cluster.ClusterInfo.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.cluster.PrepareOkRequest} - */ -proto.event_store.cluster.PrepareOkRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.PrepareOkRequest; - return proto.event_store.cluster.PrepareOkRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.PrepareOkRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.PrepareOkRequest} - */ -proto.event_store.cluster.PrepareOkRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setView(value); - break; - case 2: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 3: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEpochNumber(value); - break; - case 5: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setEpochPosition(value); - break; - case 6: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setEpochId(value); - break; - case 7: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setEpochLeaderInstanceId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setLastCommitPosition(value); - break; - case 9: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setWriterCheckpoint(value); - break; - case 10: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setChaserCheckpoint(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNodePriority(value); - break; - case 12: - var value = new proto.event_store.cluster.ClusterInfo; - reader.readMessage(value,proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader); - msg.setClusterInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.PrepareOkRequest.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.cluster.PrepareOkRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.PrepareOkRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getView(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getEpochNumber(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getEpochPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 5, - f - ); - } - f = message.getEpochId(); - if (f != null) { - writer.writeMessage( - 6, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getEpochLeaderInstanceId(); - if (f != null) { - writer.writeMessage( - 7, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getLastCommitPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 8, - f - ); - } - f = message.getWriterCheckpoint(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 9, - f - ); - } - f = message.getChaserCheckpoint(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 10, - f - ); - } - f = message.getNodePriority(); - if (f !== 0) { - writer.writeInt32( - 11, - f - ); - } - f = message.getClusterInfo(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 view = 1; - * @return {number} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getView = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setView = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional event_store.client.UUID server_id = 2; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 2)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this -*/ -proto.event_store.cluster.PrepareOkRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional EndPoint server_http = 3; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 3)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this -*/ -proto.event_store.cluster.PrepareOkRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int32 epoch_number = 4; - * @return {number} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getEpochNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setEpochNumber = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 epoch_position = 5; - * @return {string} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getEpochPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setEpochPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); -}; - - -/** - * optional event_store.client.UUID epoch_id = 6; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getEpochId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 6)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this -*/ -proto.event_store.cluster.PrepareOkRequest.prototype.setEpochId = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.clearEpochId = function() { - return this.setEpochId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.hasEpochId = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional event_store.client.UUID epoch_leader_instance_id = 7; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getEpochLeaderInstanceId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 7)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this -*/ -proto.event_store.cluster.PrepareOkRequest.prototype.setEpochLeaderInstanceId = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.clearEpochLeaderInstanceId = function() { - return this.setEpochLeaderInstanceId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.hasEpochLeaderInstanceId = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional int64 last_commit_position = 8; - * @return {string} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getLastCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setLastCommitPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional int64 writer_checkpoint = 9; - * @return {string} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getWriterCheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setWriterCheckpoint = function(value) { - return jspb.Message.setProto3StringIntField(this, 9, value); -}; - - -/** - * optional int64 chaser_checkpoint = 10; - * @return {string} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getChaserCheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setChaserCheckpoint = function(value) { - return jspb.Message.setProto3StringIntField(this, 10, value); -}; - - -/** - * optional int32 node_priority = 11; - * @return {number} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getNodePriority = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.setNodePriority = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional ClusterInfo cluster_info = 12; - * @return {?proto.event_store.cluster.ClusterInfo} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.getClusterInfo = function() { - return /** @type{?proto.event_store.cluster.ClusterInfo} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.ClusterInfo, 12)); -}; - - -/** - * @param {?proto.event_store.cluster.ClusterInfo|undefined} value - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this -*/ -proto.event_store.cluster.PrepareOkRequest.prototype.setClusterInfo = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.PrepareOkRequest} returns this - */ -proto.event_store.cluster.PrepareOkRequest.prototype.clearClusterInfo = function() { - return this.setClusterInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.PrepareOkRequest.prototype.hasClusterInfo = function() { - return jspb.Message.getField(this, 12) != 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_, 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.cluster.ProposalRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.ProposalRequest.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.cluster.ProposalRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ProposalRequest.toObject = function(includeInstance, msg) { - var f, obj = { - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f), - leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - view: jspb.Message.getFieldWithDefault(msg, 5, 0), - epochNumber: jspb.Message.getFieldWithDefault(msg, 6, 0), - epochPosition: jspb.Message.getFieldWithDefault(msg, 7, "0"), - epochId: (f = msg.getEpochId()) && shared_pb.UUID.toObject(includeInstance, f), - epochLeaderInstanceId: (f = msg.getEpochLeaderInstanceId()) && shared_pb.UUID.toObject(includeInstance, f), - lastCommitPosition: jspb.Message.getFieldWithDefault(msg, 10, "0"), - writerCheckpoint: jspb.Message.getFieldWithDefault(msg, 11, "0"), - chaserCheckpoint: jspb.Message.getFieldWithDefault(msg, 12, "0"), - nodePriority: jspb.Message.getFieldWithDefault(msg, 13, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.ProposalRequest} - */ -proto.event_store.cluster.ProposalRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.ProposalRequest; - return proto.event_store.cluster.ProposalRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.ProposalRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.ProposalRequest} - */ -proto.event_store.cluster.ProposalRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - case 3: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setLeaderId(value); - break; - case 4: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setLeaderHttp(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setView(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEpochNumber(value); - break; - case 7: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setEpochPosition(value); - break; - case 8: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setEpochId(value); - break; - case 9: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setEpochLeaderInstanceId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setLastCommitPosition(value); - break; - case 11: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setWriterCheckpoint(value); - break; - case 12: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setChaserCheckpoint(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNodePriority(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.ProposalRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.ProposalRequest.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.cluster.ProposalRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ProposalRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getLeaderId(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getLeaderHttp(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getView(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getEpochNumber(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getEpochPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 7, - f - ); - } - f = message.getEpochId(); - if (f != null) { - writer.writeMessage( - 8, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getEpochLeaderInstanceId(); - if (f != null) { - writer.writeMessage( - 9, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getLastCommitPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 10, - f - ); - } - f = message.getWriterCheckpoint(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 11, - f - ); - } - f = message.getChaserCheckpoint(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 12, - f - ); - } - f = message.getNodePriority(); - if (f !== 0) { - writer.writeInt32( - 13, - f - ); - } -}; - - -/** - * optional event_store.client.UUID server_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.ProposalRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this -*/ -proto.event_store.cluster.ProposalRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ProposalRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint server_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.ProposalRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this -*/ -proto.event_store.cluster.ProposalRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ProposalRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.UUID leader_id = 3; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.ProposalRequest.prototype.getLeaderId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 3)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this -*/ -proto.event_store.cluster.ProposalRequest.prototype.setLeaderId = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.clearLeaderId = function() { - return this.setLeaderId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ProposalRequest.prototype.hasLeaderId = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional EndPoint leader_http = 4; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.ProposalRequest.prototype.getLeaderHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 4)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this -*/ -proto.event_store.cluster.ProposalRequest.prototype.setLeaderHttp = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.clearLeaderHttp = function() { - return this.setLeaderHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ProposalRequest.prototype.hasLeaderHttp = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int32 view = 5; - * @return {number} - */ -proto.event_store.cluster.ProposalRequest.prototype.getView = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setView = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int32 epoch_number = 6; - * @return {number} - */ -proto.event_store.cluster.ProposalRequest.prototype.getEpochNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setEpochNumber = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional int64 epoch_position = 7; - * @return {string} - */ -proto.event_store.cluster.ProposalRequest.prototype.getEpochPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setEpochPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); -}; - - -/** - * optional event_store.client.UUID epoch_id = 8; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.ProposalRequest.prototype.getEpochId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 8)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this -*/ -proto.event_store.cluster.ProposalRequest.prototype.setEpochId = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.clearEpochId = function() { - return this.setEpochId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ProposalRequest.prototype.hasEpochId = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional event_store.client.UUID epoch_leader_instance_id = 9; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.ProposalRequest.prototype.getEpochLeaderInstanceId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 9)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this -*/ -proto.event_store.cluster.ProposalRequest.prototype.setEpochLeaderInstanceId = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.clearEpochLeaderInstanceId = function() { - return this.setEpochLeaderInstanceId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.ProposalRequest.prototype.hasEpochLeaderInstanceId = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional int64 last_commit_position = 10; - * @return {string} - */ -proto.event_store.cluster.ProposalRequest.prototype.getLastCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setLastCommitPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 10, value); -}; - - -/** - * optional int64 writer_checkpoint = 11; - * @return {string} - */ -proto.event_store.cluster.ProposalRequest.prototype.getWriterCheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setWriterCheckpoint = function(value) { - return jspb.Message.setProto3StringIntField(this, 11, value); -}; - - -/** - * optional int64 chaser_checkpoint = 12; - * @return {string} - */ -proto.event_store.cluster.ProposalRequest.prototype.getChaserCheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setChaserCheckpoint = function(value) { - return jspb.Message.setProto3StringIntField(this, 12, value); -}; - - -/** - * optional int32 node_priority = 13; - * @return {number} - */ -proto.event_store.cluster.ProposalRequest.prototype.getNodePriority = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.ProposalRequest} returns this - */ -proto.event_store.cluster.ProposalRequest.prototype.setNodePriority = function(value) { - return jspb.Message.setProto3IntField(this, 13, 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_, 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.cluster.AcceptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.AcceptRequest.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.cluster.AcceptRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.AcceptRequest.toObject = function(includeInstance, msg) { - var f, obj = { - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f), - leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - view: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.AcceptRequest} - */ -proto.event_store.cluster.AcceptRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.AcceptRequest; - return proto.event_store.cluster.AcceptRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.AcceptRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.AcceptRequest} - */ -proto.event_store.cluster.AcceptRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - case 3: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setLeaderId(value); - break; - case 4: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setLeaderHttp(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setView(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.AcceptRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.AcceptRequest.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.cluster.AcceptRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.AcceptRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getLeaderId(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getLeaderHttp(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getView(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } -}; - - -/** - * optional event_store.client.UUID server_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.AcceptRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.AcceptRequest} returns this -*/ -proto.event_store.cluster.AcceptRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.AcceptRequest} returns this - */ -proto.event_store.cluster.AcceptRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.AcceptRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint server_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.AcceptRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.AcceptRequest} returns this -*/ -proto.event_store.cluster.AcceptRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.AcceptRequest} returns this - */ -proto.event_store.cluster.AcceptRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.AcceptRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.UUID leader_id = 3; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.AcceptRequest.prototype.getLeaderId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 3)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.AcceptRequest} returns this -*/ -proto.event_store.cluster.AcceptRequest.prototype.setLeaderId = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.AcceptRequest} returns this - */ -proto.event_store.cluster.AcceptRequest.prototype.clearLeaderId = function() { - return this.setLeaderId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.AcceptRequest.prototype.hasLeaderId = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional EndPoint leader_http = 4; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.AcceptRequest.prototype.getLeaderHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 4)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.AcceptRequest} returns this -*/ -proto.event_store.cluster.AcceptRequest.prototype.setLeaderHttp = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.AcceptRequest} returns this - */ -proto.event_store.cluster.AcceptRequest.prototype.clearLeaderHttp = function() { - return this.setLeaderHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.AcceptRequest.prototype.hasLeaderHttp = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int32 view = 5; - * @return {number} - */ -proto.event_store.cluster.AcceptRequest.prototype.getView = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.AcceptRequest} returns this - */ -proto.event_store.cluster.AcceptRequest.prototype.setView = function(value) { - return jspb.Message.setProto3IntField(this, 5, 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_, 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.cluster.LeaderIsResigningRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.LeaderIsResigningRequest.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.cluster.LeaderIsResigningRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.LeaderIsResigningRequest.toObject = function(includeInstance, msg) { - var f, obj = { - leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f), - leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.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.cluster.LeaderIsResigningRequest} - */ -proto.event_store.cluster.LeaderIsResigningRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.LeaderIsResigningRequest; - return proto.event_store.cluster.LeaderIsResigningRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.LeaderIsResigningRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.LeaderIsResigningRequest} - */ -proto.event_store.cluster.LeaderIsResigningRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setLeaderId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setLeaderHttp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.LeaderIsResigningRequest.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.cluster.LeaderIsResigningRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.LeaderIsResigningRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLeaderId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getLeaderHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.UUID leader_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.getLeaderId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this -*/ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.setLeaderId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.clearLeaderId = function() { - return this.setLeaderId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.hasLeaderId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint leader_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.getLeaderHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this -*/ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.setLeaderHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.LeaderIsResigningRequest} returns this - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.clearLeaderHttp = function() { - return this.setLeaderHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.LeaderIsResigningRequest.prototype.hasLeaderHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.cluster.LeaderIsResigningOkRequest.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.LeaderIsResigningOkRequest.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.cluster.LeaderIsResigningOkRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.toObject = function(includeInstance, msg) { - var f, obj = { - leaderId: (f = msg.getLeaderId()) && shared_pb.UUID.toObject(includeInstance, f), - leaderHttp: (f = msg.getLeaderHttp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - serverId: (f = msg.getServerId()) && shared_pb.UUID.toObject(includeInstance, f), - serverHttp: (f = msg.getServerHttp()) && proto.event_store.cluster.EndPoint.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.cluster.LeaderIsResigningOkRequest} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.LeaderIsResigningOkRequest; - return proto.event_store.cluster.LeaderIsResigningOkRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.LeaderIsResigningOkRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setLeaderId(value); - break; - case 2: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setLeaderHttp(value); - break; - case 3: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setServerId(value); - break; - case 4: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setServerHttp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.LeaderIsResigningOkRequest.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.cluster.LeaderIsResigningOkRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLeaderId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getLeaderHttp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getServerId(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getServerHttp(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.UUID leader_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getLeaderId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this -*/ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setLeaderId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearLeaderId = function() { - return this.setLeaderId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasLeaderId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional EndPoint leader_http = 2; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getLeaderHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 2)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this -*/ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setLeaderHttp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearLeaderHttp = function() { - return this.setLeaderHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasLeaderHttp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.UUID server_id = 3; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getServerId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 3)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this -*/ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setServerId = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearServerId = function() { - return this.setServerId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasServerId = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional EndPoint server_http = 4; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.getServerHttp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 4)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this -*/ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.setServerHttp = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.LeaderIsResigningOkRequest} returns this - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.clearServerHttp = function() { - return this.setServerHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.LeaderIsResigningOkRequest.prototype.hasServerHttp = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.cluster.ClusterInfo.repeatedFields_ = [1]; - - - -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_, 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.cluster.ClusterInfo.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.ClusterInfo.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.cluster.ClusterInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ClusterInfo.toObject = function(includeInstance, msg) { - var f, obj = { - membersList: jspb.Message.toObjectList(msg.getMembersList(), - proto.event_store.cluster.MemberInfo.toObject, includeInstance) - }; - - 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.cluster.ClusterInfo} - */ -proto.event_store.cluster.ClusterInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.ClusterInfo; - return proto.event_store.cluster.ClusterInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.ClusterInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.ClusterInfo} - */ -proto.event_store.cluster.ClusterInfo.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.cluster.MemberInfo; - reader.readMessage(value,proto.event_store.cluster.MemberInfo.deserializeBinaryFromReader); - msg.addMembers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.ClusterInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.ClusterInfo.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.cluster.ClusterInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.ClusterInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMembersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.event_store.cluster.MemberInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MemberInfo members = 1; - * @return {!Array} - */ -proto.event_store.cluster.ClusterInfo.prototype.getMembersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.event_store.cluster.MemberInfo, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.cluster.ClusterInfo} returns this -*/ -proto.event_store.cluster.ClusterInfo.prototype.setMembersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.event_store.cluster.MemberInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.event_store.cluster.MemberInfo} - */ -proto.event_store.cluster.ClusterInfo.prototype.addMembers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.event_store.cluster.MemberInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.cluster.ClusterInfo} returns this - */ -proto.event_store.cluster.ClusterInfo.prototype.clearMembersList = function() { - return this.setMembersList([]); -}; - - - - - -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_, 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.cluster.EndPoint.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.EndPoint.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.cluster.EndPoint} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.EndPoint.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, ""), - port: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.EndPoint.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.EndPoint; - return proto.event_store.cluster.EndPoint.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.EndPoint} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.EndPoint.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.setAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.EndPoint.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.EndPoint.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.cluster.EndPoint} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.EndPoint.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional string address = 1; - * @return {string} - */ -proto.event_store.cluster.EndPoint.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.EndPoint} returns this - */ -proto.event_store.cluster.EndPoint.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 port = 2; - * @return {number} - */ -proto.event_store.cluster.EndPoint.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.EndPoint} returns this - */ -proto.event_store.cluster.EndPoint.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 2, 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_, 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.cluster.MemberInfo.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.cluster.MemberInfo.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.cluster.MemberInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.MemberInfo.toObject = function(includeInstance, msg) { - var f, obj = { - instanceId: (f = msg.getInstanceId()) && shared_pb.UUID.toObject(includeInstance, f), - timeStamp: jspb.Message.getFieldWithDefault(msg, 2, "0"), - state: jspb.Message.getFieldWithDefault(msg, 3, 0), - isAlive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - httpEndPoint: (f = msg.getHttpEndPoint()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - internalTcp: (f = msg.getInternalTcp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - externalTcp: (f = msg.getExternalTcp()) && proto.event_store.cluster.EndPoint.toObject(includeInstance, f), - internalTcpUsesTls: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - externalTcpUsesTls: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - lastCommitPosition: jspb.Message.getFieldWithDefault(msg, 10, "0"), - writerCheckpoint: jspb.Message.getFieldWithDefault(msg, 11, "0"), - chaserCheckpoint: jspb.Message.getFieldWithDefault(msg, 12, "0"), - epochPosition: jspb.Message.getFieldWithDefault(msg, 13, "0"), - epochNumber: jspb.Message.getFieldWithDefault(msg, 14, 0), - epochId: (f = msg.getEpochId()) && shared_pb.UUID.toObject(includeInstance, f), - nodePriority: jspb.Message.getFieldWithDefault(msg, 16, 0), - isReadOnlyReplica: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - advertiseHostToClientAs: jspb.Message.getFieldWithDefault(msg, 18, ""), - advertiseHttpPortToClientAs: jspb.Message.getFieldWithDefault(msg, 19, 0), - advertiseTcpPortToClientAs: jspb.Message.getFieldWithDefault(msg, 20, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.cluster.MemberInfo} - */ -proto.event_store.cluster.MemberInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.cluster.MemberInfo; - return proto.event_store.cluster.MemberInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.cluster.MemberInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.cluster.MemberInfo} - */ -proto.event_store.cluster.MemberInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setInstanceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setTimeStamp(value); - break; - case 3: - var value = /** @type {!proto.event_store.cluster.MemberInfo.VNodeState} */ (reader.readEnum()); - msg.setState(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAlive(value); - break; - case 5: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setHttpEndPoint(value); - break; - case 6: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setInternalTcp(value); - break; - case 7: - var value = new proto.event_store.cluster.EndPoint; - reader.readMessage(value,proto.event_store.cluster.EndPoint.deserializeBinaryFromReader); - msg.setExternalTcp(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInternalTcpUsesTls(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExternalTcpUsesTls(value); - break; - case 10: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setLastCommitPosition(value); - break; - case 11: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setWriterCheckpoint(value); - break; - case 12: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setChaserCheckpoint(value); - break; - case 13: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setEpochPosition(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEpochNumber(value); - break; - case 15: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setEpochId(value); - break; - case 16: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNodePriority(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsReadOnlyReplica(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setAdvertiseHostToClientAs(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAdvertiseHttpPortToClientAs(value); - break; - case 20: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAdvertiseTcpPortToClientAs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.cluster.MemberInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.cluster.MemberInfo.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.cluster.MemberInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.cluster.MemberInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInstanceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getTimeStamp(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 2, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getIsAlive(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getHttpEndPoint(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getInternalTcp(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getExternalTcp(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.event_store.cluster.EndPoint.serializeBinaryToWriter - ); - } - f = message.getInternalTcpUsesTls(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getExternalTcpUsesTls(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getLastCommitPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 10, - f - ); - } - f = message.getWriterCheckpoint(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 11, - f - ); - } - f = message.getChaserCheckpoint(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 12, - f - ); - } - f = message.getEpochPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 13, - f - ); - } - f = message.getEpochNumber(); - if (f !== 0) { - writer.writeInt32( - 14, - f - ); - } - f = message.getEpochId(); - if (f != null) { - writer.writeMessage( - 15, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getNodePriority(); - if (f !== 0) { - writer.writeInt32( - 16, - f - ); - } - f = message.getIsReadOnlyReplica(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getAdvertiseHostToClientAs(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getAdvertiseHttpPortToClientAs(); - if (f !== 0) { - writer.writeUint32( - 19, - f - ); - } - f = message.getAdvertiseTcpPortToClientAs(); - if (f !== 0) { - writer.writeUint32( - 20, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.event_store.cluster.MemberInfo.VNodeState = { - INITIALIZING: 0, - DISCOVERLEADER: 1, - UNKNOWN: 2, - PREREPLICA: 3, - CATCHINGUP: 4, - CLONE: 5, - FOLLOWER: 6, - PRELEADER: 7, - LEADER: 8, - MANAGER: 9, - SHUTTINGDOWN: 10, - SHUTDOWN: 11, - READONLYLEADERLESS: 12, - PREREADONLYREPLICA: 13, - READONLYREPLICA: 14, - RESIGNINGLEADER: 15 -}; - -/** - * optional event_store.client.UUID instance_id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.MemberInfo.prototype.getInstanceId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.MemberInfo} returns this -*/ -proto.event_store.cluster.MemberInfo.prototype.setInstanceId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.clearInstanceId = function() { - return this.setInstanceId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.hasInstanceId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int64 time_stamp = 2; - * @return {string} - */ -proto.event_store.cluster.MemberInfo.prototype.getTimeStamp = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setTimeStamp = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional VNodeState state = 3; - * @return {!proto.event_store.cluster.MemberInfo.VNodeState} - */ -proto.event_store.cluster.MemberInfo.prototype.getState = function() { - return /** @type {!proto.event_store.cluster.MemberInfo.VNodeState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.event_store.cluster.MemberInfo.VNodeState} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional bool is_alive = 4; - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.getIsAlive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setIsAlive = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional EndPoint http_end_point = 5; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.MemberInfo.prototype.getHttpEndPoint = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 5)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.MemberInfo} returns this -*/ -proto.event_store.cluster.MemberInfo.prototype.setHttpEndPoint = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.clearHttpEndPoint = function() { - return this.setHttpEndPoint(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.hasHttpEndPoint = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional EndPoint internal_tcp = 6; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.MemberInfo.prototype.getInternalTcp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 6)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.MemberInfo} returns this -*/ -proto.event_store.cluster.MemberInfo.prototype.setInternalTcp = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.clearInternalTcp = function() { - return this.setInternalTcp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.hasInternalTcp = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional EndPoint external_tcp = 7; - * @return {?proto.event_store.cluster.EndPoint} - */ -proto.event_store.cluster.MemberInfo.prototype.getExternalTcp = function() { - return /** @type{?proto.event_store.cluster.EndPoint} */ ( - jspb.Message.getWrapperField(this, proto.event_store.cluster.EndPoint, 7)); -}; - - -/** - * @param {?proto.event_store.cluster.EndPoint|undefined} value - * @return {!proto.event_store.cluster.MemberInfo} returns this -*/ -proto.event_store.cluster.MemberInfo.prototype.setExternalTcp = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.clearExternalTcp = function() { - return this.setExternalTcp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.hasExternalTcp = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional bool internal_tcp_uses_tls = 8; - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.getInternalTcpUsesTls = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setInternalTcpUsesTls = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool external_tcp_uses_tls = 9; - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.getExternalTcpUsesTls = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setExternalTcpUsesTls = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional int64 last_commit_position = 10; - * @return {string} - */ -proto.event_store.cluster.MemberInfo.prototype.getLastCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setLastCommitPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 10, value); -}; - - -/** - * optional int64 writer_checkpoint = 11; - * @return {string} - */ -proto.event_store.cluster.MemberInfo.prototype.getWriterCheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setWriterCheckpoint = function(value) { - return jspb.Message.setProto3StringIntField(this, 11, value); -}; - - -/** - * optional int64 chaser_checkpoint = 12; - * @return {string} - */ -proto.event_store.cluster.MemberInfo.prototype.getChaserCheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setChaserCheckpoint = function(value) { - return jspb.Message.setProto3StringIntField(this, 12, value); -}; - - -/** - * optional int64 epoch_position = 13; - * @return {string} - */ -proto.event_store.cluster.MemberInfo.prototype.getEpochPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setEpochPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 13, value); -}; - - -/** - * optional int32 epoch_number = 14; - * @return {number} - */ -proto.event_store.cluster.MemberInfo.prototype.getEpochNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setEpochNumber = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional event_store.client.UUID epoch_id = 15; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.cluster.MemberInfo.prototype.getEpochId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 15)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.cluster.MemberInfo} returns this -*/ -proto.event_store.cluster.MemberInfo.prototype.setEpochId = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.clearEpochId = function() { - return this.setEpochId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.hasEpochId = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional int32 node_priority = 16; - * @return {number} - */ -proto.event_store.cluster.MemberInfo.prototype.getNodePriority = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setNodePriority = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional bool is_read_only_replica = 17; - * @return {boolean} - */ -proto.event_store.cluster.MemberInfo.prototype.getIsReadOnlyReplica = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setIsReadOnlyReplica = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional string advertise_host_to_client_as = 18; - * @return {string} - */ -proto.event_store.cluster.MemberInfo.prototype.getAdvertiseHostToClientAs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setAdvertiseHostToClientAs = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional uint32 advertise_http_port_to_client_as = 19; - * @return {number} - */ -proto.event_store.cluster.MemberInfo.prototype.getAdvertiseHttpPortToClientAs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setAdvertiseHttpPortToClientAs = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional uint32 advertise_tcp_port_to_client_as = 20; - * @return {number} - */ -proto.event_store.cluster.MemberInfo.prototype.getAdvertiseTcpPortToClientAs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.cluster.MemberInfo} returns this - */ -proto.event_store.cluster.MemberInfo.prototype.setAdvertiseTcpPortToClientAs = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -goog.object.extend(exports, proto.event_store.cluster); diff --git a/packages/db-client/generated/dynamic-value_pb.js b/packages/db-client/generated/dynamic-value_pb.js deleted file mode 100644 index 2ed364ca..00000000 --- a/packages/db-client/generated/dynamic-value_pb.js +++ /dev/null @@ -1,697 +0,0 @@ -// source: dynamic-value.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_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.kurrentdb.protobuf.DynamicValue', null, global); -goog.exportSymbol('proto.kurrentdb.protobuf.DynamicValue.KindCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.kurrentdb.protobuf.DynamicValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_); -}; -goog.inherits(proto.kurrentdb.protobuf.DynamicValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.kurrentdb.protobuf.DynamicValue.displayName = 'proto.kurrentdb.protobuf.DynamicValue'; -} - -/** - * 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>} - * @const - */ -proto.kurrentdb.protobuf.DynamicValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10]]; - -/** - * @enum {number} - */ -proto.kurrentdb.protobuf.DynamicValue.KindCase = { - KIND_NOT_SET: 0, - NULL_VALUE: 1, - INT32_VALUE: 2, - INT64_VALUE: 3, - BYTES_VALUE: 4, - DOUBLE_VALUE: 5, - FLOAT_VALUE: 6, - STRING_VALUE: 7, - BOOLEAN_VALUE: 8, - TIMESTAMP_VALUE: 9, - DURATION_VALUE: 10 -}; - -/** - * @return {proto.kurrentdb.protobuf.DynamicValue.KindCase} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getKindCase = function() { - return /** @type {proto.kurrentdb.protobuf.DynamicValue.KindCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protobuf.DynamicValue.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_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.toObject = function(opt_includeInstance) { - return proto.kurrentdb.protobuf.DynamicValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.kurrentdb.protobuf.DynamicValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.kurrentdb.protobuf.DynamicValue.toObject = function(includeInstance, msg) { - var f, obj = { - nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0), - int32Value: jspb.Message.getFieldWithDefault(msg, 2, 0), - int64Value: jspb.Message.getFieldWithDefault(msg, 3, 0), - bytesValue: msg.getBytesValue_asB64(), - doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - stringValue: jspb.Message.getFieldWithDefault(msg, 7, ""), - booleanValue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - timestampValue: (f = msg.getTimestampValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - durationValue: (f = msg.getDurationValue()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.kurrentdb.protobuf.DynamicValue} - */ -proto.kurrentdb.protobuf.DynamicValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.kurrentdb.protobuf.DynamicValue; - return proto.kurrentdb.protobuf.DynamicValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.kurrentdb.protobuf.DynamicValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.kurrentdb.protobuf.DynamicValue} - */ -proto.kurrentdb.protobuf.DynamicValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum()); - msg.setNullValue(value); - break; - case 2: - var value = /** @type {number} */ (reader.readSint32()); - msg.setInt32Value(value); - break; - case 3: - var value = /** @type {number} */ (reader.readSint64()); - msg.setInt64Value(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBytesValue(value); - break; - case 5: - var value = /** @type {number} */ (reader.readDouble()); - msg.setDoubleValue(value); - break; - case 6: - var value = /** @type {number} */ (reader.readFloat()); - msg.setFloatValue(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setStringValue(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBooleanValue(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestampValue(value); - break; - case 10: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setDurationValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.kurrentdb.protobuf.DynamicValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.kurrentdb.protobuf.DynamicValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.kurrentdb.protobuf.DynamicValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeEnum( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeSint32( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeSint64( - 3, - f - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeBytes( - 4, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeDouble( - 5, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeFloat( - 6, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeBool( - 8, - f - ); - } - f = message.getTimestampValue(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDurationValue(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.NullValue null_value = 1; - * @return {!proto.google.protobuf.NullValue} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getNullValue = function() { - return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.google.protobuf.NullValue} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setNullValue = function(value) { - return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearNullValue = function() { - return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasNullValue = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional sint32 int32_value = 2; - * @return {number} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getInt32Value = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setInt32Value = function(value) { - return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearInt32Value = function() { - return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasInt32Value = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional sint64 int64_value = 3; - * @return {number} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getInt64Value = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setInt64Value = function(value) { - return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearInt64Value = function() { - return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasInt64Value = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bytes bytes_value = 4; - * @return {!(string|Uint8Array)} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getBytesValue = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes bytes_value = 4; - * This is a type-conversion wrapper around `getBytesValue()` - * @return {string} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getBytesValue_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBytesValue())); -}; - - -/** - * optional bytes bytes_value = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBytesValue()` - * @return {!Uint8Array} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getBytesValue_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBytesValue())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setBytesValue = function(value) { - return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearBytesValue = function() { - return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasBytesValue = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional double double_value = 5; - * @return {number} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getDoubleValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setDoubleValue = function(value) { - return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearDoubleValue = function() { - return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasDoubleValue = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional float float_value = 6; - * @return {number} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getFloatValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setFloatValue = function(value) { - return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearFloatValue = function() { - return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasFloatValue = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string string_value = 7; - * @return {string} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getStringValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setStringValue = function(value) { - return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearStringValue = function() { - return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasStringValue = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional bool boolean_value = 8; - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getBooleanValue = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.setBooleanValue = function(value) { - return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearBooleanValue = function() { - return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasBooleanValue = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp timestamp_value = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getTimestampValue = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this -*/ -proto.kurrentdb.protobuf.DynamicValue.prototype.setTimestampValue = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearTimestampValue = function() { - return this.setTimestampValue(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasTimestampValue = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional google.protobuf.Duration duration_value = 10; - * @return {?proto.google.protobuf.Duration} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.getDurationValue = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 10)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this -*/ -proto.kurrentdb.protobuf.DynamicValue.prototype.setDurationValue = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, proto.kurrentdb.protobuf.DynamicValue.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.kurrentdb.protobuf.DynamicValue} returns this - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.clearDurationValue = function() { - return this.setDurationValue(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.kurrentdb.protobuf.DynamicValue.prototype.hasDurationValue = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -goog.object.extend(exports, proto.kurrentdb.protobuf); diff --git a/packages/db-client/generated/gossip_grpc_pb.d.ts b/packages/db-client/generated/gossip_grpc_pb.d.ts deleted file mode 100644 index 1739acfa..00000000 --- a/packages/db-client/generated/gossip_grpc_pb.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// package: event_store.client.gossip -// file: gossip.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as gossip_pb from "./gossip_pb"; -import * as shared_pb from "./shared_pb"; - -interface IGossipService extends grpc.ServiceDefinition { - read: IGossipService_IRead; -} - -interface IGossipService_IRead extends grpc.MethodDefinition { - path: "/event_store.client.gossip.Gossip/Read"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const GossipService: IGossipService; - -export interface IGossipServer extends grpc.UntypedServiceImplementation { - read: grpc.handleUnaryCall; -} - -export interface IGossipClient { - read(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - read(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - read(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; -} - -export class GossipClient extends grpc.Client implements IGossipClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public read(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public read(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; - public read(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/code_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/code_grpc_pb.js similarity index 100% rename from packages/db-client/generated/code_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/code_grpc_pb.js diff --git a/packages/db-client/generated/code_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/code_pb.d.ts similarity index 92% rename from packages/db-client/generated/code_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/code_pb.d.ts index 6d997eea..fb51bf75 100644 --- a/packages/db-client/generated/code_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/code_pb.d.ts @@ -1,5 +1,5 @@ // package: google.rpc -// file: code.proto +// file: kurrentdb/protocols/v1/code.proto /* tslint:disable */ /* eslint-disable */ diff --git a/packages/db-client/generated/code_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/code_pb.js similarity index 96% rename from packages/db-client/generated/code_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/code_pb.js index f259ac31..a966e309 100644 --- a/packages/db-client/generated/code_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/code_pb.js @@ -1,4 +1,4 @@ -// source: code.proto +// source: kurrentdb/protocols/v1/code.proto /** * @fileoverview * @enhanceable diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts new file mode 100644 index 00000000..36b3d87b --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.d.ts @@ -0,0 +1,42 @@ +// package: event_store.client.gossip +// file: kurrentdb/protocols/v1/gossip.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_gossip_pb from "../../../kurrentdb/protocols/v1/gossip_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; + +interface IGossipService extends grpc.ServiceDefinition { + read: IGossipService_IRead; +} + +interface IGossipService_IRead extends grpc.MethodDefinition { + path: "/event_store.client.gossip.Gossip/Read"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const GossipService: IGossipService; + +export interface IGossipServer extends grpc.UntypedServiceImplementation { + read: grpc.handleUnaryCall; +} + +export interface IGossipClient { + read(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; + read(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; + read(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; +} + +export class GossipClient extends grpc.Client implements IGossipClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public read(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; + public read(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; + public read(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/gossip_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.js similarity index 63% rename from packages/db-client/generated/gossip_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.js index 26bc22cc..fc3da2e9 100644 --- a/packages/db-client/generated/gossip_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_grpc_pb.js @@ -2,29 +2,29 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var gossip_pb = require('./gossip_pb.js'); -var shared_pb = require('./shared_pb.js'); +var kurrentdb_protocols_v1_gossip_pb = require('../../../kurrentdb/protocols/v1/gossip_pb.js'); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { + if (!(arg instanceof kurrentdb_protocols_v1_shared_pb.Empty)) { throw new Error('Expected argument of type event_store.client.Empty'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_gossip_ClusterInfo(arg) { - if (!(arg instanceof gossip_pb.ClusterInfo)) { + if (!(arg instanceof kurrentdb_protocols_v1_gossip_pb.ClusterInfo)) { throw new Error('Expected argument of type event_store.client.gossip.ClusterInfo'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_gossip_ClusterInfo(buffer_arg) { - return gossip_pb.ClusterInfo.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_gossip_pb.ClusterInfo.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -33,8 +33,8 @@ var GossipService = exports.GossipService = { path: '/event_store.client.gossip.Gossip/Read', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: gossip_pb.ClusterInfo, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_gossip_pb.ClusterInfo, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_gossip_ClusterInfo, diff --git a/packages/db-client/generated/gossip_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_pb.d.ts similarity index 91% rename from packages/db-client/generated/gossip_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/gossip_pb.d.ts index 61f57189..212c893f 100644 --- a/packages/db-client/generated/gossip_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_pb.d.ts @@ -1,11 +1,11 @@ // package: event_store.client.gossip -// file: gossip.proto +// file: kurrentdb/protocols/v1/gossip.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; export class ClusterInfo extends jspb.Message { clearMembersList(): void; @@ -56,8 +56,8 @@ export class MemberInfo extends jspb.Message { hasInstanceId(): boolean; clearInstanceId(): void; - getInstanceId(): shared_pb.UUID | undefined; - setInstanceId(value?: shared_pb.UUID): MemberInfo; + getInstanceId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setInstanceId(value?: kurrentdb_protocols_v1_shared_pb.UUID): MemberInfo; getTimeStamp(): string; setTimeStamp(value: string): MemberInfo; getState(): MemberInfo.VNodeState; @@ -82,7 +82,7 @@ export class MemberInfo extends jspb.Message { export namespace MemberInfo { export type AsObject = { - instanceId?: shared_pb.UUID.AsObject, + instanceId?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, timeStamp: string, state: MemberInfo.VNodeState, isAlive: boolean, diff --git a/packages/db-client/generated/gossip_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_pb.js similarity index 97% rename from packages/db-client/generated/gossip_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/gossip_pb.js index 29b0c742..a3a54b10 100644 --- a/packages/db-client/generated/gossip_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/gossip_pb.js @@ -1,4 +1,4 @@ -// source: gossip.proto +// source: kurrentdb/protocols/v1/gossip.proto /** * @fileoverview * @enhanceable @@ -21,8 +21,8 @@ var global = (function() { return Function('return this')(); }.call(null)); -var shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_shared_pb); goog.exportSymbol('proto.event_store.client.gossip.ClusterInfo', null, global); goog.exportSymbol('proto.event_store.client.gossip.EndPoint', null, global); goog.exportSymbol('proto.event_store.client.gossip.MemberInfo', null, global); @@ -442,7 +442,7 @@ proto.event_store.client.gossip.MemberInfo.prototype.toObject = function(opt_inc */ proto.event_store.client.gossip.MemberInfo.toObject = function(includeInstance, msg) { var f, obj = { - instanceId: (f = msg.getInstanceId()) && shared_pb.UUID.toObject(includeInstance, f), + instanceId: (f = msg.getInstanceId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), timeStamp: jspb.Message.getFieldWithDefault(msg, 2, "0"), state: jspb.Message.getFieldWithDefault(msg, 3, 0), isAlive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), @@ -484,8 +484,8 @@ proto.event_store.client.gossip.MemberInfo.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setInstanceId(value); break; case 2: @@ -539,7 +539,7 @@ proto.event_store.client.gossip.MemberInfo.serializeBinaryToWriter = function(me writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getTimeStamp(); @@ -602,7 +602,7 @@ proto.event_store.client.gossip.MemberInfo.VNodeState = { */ proto.event_store.client.gossip.MemberInfo.prototype.getInstanceId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts new file mode 100644 index 00000000..140d1de2 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.d.ts @@ -0,0 +1,144 @@ +// package: event_store.client.operations +// file: kurrentdb/protocols/v1/operations.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_operations_pb from "../../../kurrentdb/protocols/v1/operations_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; + +interface IOperationsService extends grpc.ServiceDefinition { + startScavenge: IOperationsService_IStartScavenge; + stopScavenge: IOperationsService_IStopScavenge; + shutdown: IOperationsService_IShutdown; + mergeIndexes: IOperationsService_IMergeIndexes; + resignNode: IOperationsService_IResignNode; + setNodePriority: IOperationsService_ISetNodePriority; + restartPersistentSubscriptions: IOperationsService_IRestartPersistentSubscriptions; +} + +interface IOperationsService_IStartScavenge extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/StartScavenge"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IOperationsService_IStopScavenge extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/StopScavenge"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IOperationsService_IShutdown extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/Shutdown"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IOperationsService_IMergeIndexes extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/MergeIndexes"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IOperationsService_IResignNode extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/ResignNode"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IOperationsService_ISetNodePriority extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/SetNodePriority"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IOperationsService_IRestartPersistentSubscriptions extends grpc.MethodDefinition { + path: "/event_store.client.operations.Operations/RestartPersistentSubscriptions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const OperationsService: IOperationsService; + +export interface IOperationsServer extends grpc.UntypedServiceImplementation { + startScavenge: grpc.handleUnaryCall; + stopScavenge: grpc.handleUnaryCall; + shutdown: grpc.handleUnaryCall; + mergeIndexes: grpc.handleUnaryCall; + resignNode: grpc.handleUnaryCall; + setNodePriority: grpc.handleUnaryCall; + restartPersistentSubscriptions: grpc.handleUnaryCall; +} + +export interface IOperationsClient { + startScavenge(request: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + startScavenge(request: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + startScavenge(request: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + stopScavenge(request: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + stopScavenge(request: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + stopScavenge(request: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + shutdown(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + shutdown(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + shutdown(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + mergeIndexes(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + mergeIndexes(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + mergeIndexes(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + resignNode(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + resignNode(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + resignNode(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + setNodePriority(request: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + setNodePriority(request: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + setNodePriority(request: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartPersistentSubscriptions(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartPersistentSubscriptions(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartPersistentSubscriptions(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class OperationsClient extends grpc.Client implements IOperationsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public startScavenge(request: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + public startScavenge(request: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + public startScavenge(request: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + public stopScavenge(request: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + public stopScavenge(request: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + public stopScavenge(request: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; + public shutdown(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public shutdown(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public shutdown(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public mergeIndexes(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public mergeIndexes(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public mergeIndexes(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public resignNode(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public resignNode(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public resignNode(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public setNodePriority(request: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public setNodePriority(request: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public setNodePriority(request: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartPersistentSubscriptions(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartPersistentSubscriptions(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartPersistentSubscriptions(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/operations_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.js similarity index 69% rename from packages/db-client/generated/operations_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.js index e1f3d971..418c9703 100644 --- a/packages/db-client/generated/operations_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/operations_grpc_pb.js @@ -2,62 +2,62 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var operations_pb = require('./operations_pb.js'); -var shared_pb = require('./shared_pb.js'); +var kurrentdb_protocols_v1_operations_pb = require('../../../kurrentdb/protocols/v1/operations_pb.js'); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { + if (!(arg instanceof kurrentdb_protocols_v1_shared_pb.Empty)) { throw new Error('Expected argument of type event_store.client.Empty'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_operations_ScavengeResp(arg) { - if (!(arg instanceof operations_pb.ScavengeResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_operations_pb.ScavengeResp)) { throw new Error('Expected argument of type event_store.client.operations.ScavengeResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_operations_ScavengeResp(buffer_arg) { - return operations_pb.ScavengeResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_operations_pb.ScavengeResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_operations_SetNodePriorityReq(arg) { - if (!(arg instanceof operations_pb.SetNodePriorityReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq)) { throw new Error('Expected argument of type event_store.client.operations.SetNodePriorityReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_operations_SetNodePriorityReq(buffer_arg) { - return operations_pb.SetNodePriorityReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_operations_StartScavengeReq(arg) { - if (!(arg instanceof operations_pb.StartScavengeReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_operations_pb.StartScavengeReq)) { throw new Error('Expected argument of type event_store.client.operations.StartScavengeReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_operations_StartScavengeReq(buffer_arg) { - return operations_pb.StartScavengeReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_operations_pb.StartScavengeReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_operations_StopScavengeReq(arg) { - if (!(arg instanceof operations_pb.StopScavengeReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_operations_pb.StopScavengeReq)) { throw new Error('Expected argument of type event_store.client.operations.StopScavengeReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_operations_StopScavengeReq(buffer_arg) { - return operations_pb.StopScavengeReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_operations_pb.StopScavengeReq.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -66,8 +66,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/StartScavenge', requestStream: false, responseStream: false, - requestType: operations_pb.StartScavengeReq, - responseType: operations_pb.ScavengeResp, + requestType: kurrentdb_protocols_v1_operations_pb.StartScavengeReq, + responseType: kurrentdb_protocols_v1_operations_pb.ScavengeResp, requestSerialize: serialize_event_store_client_operations_StartScavengeReq, requestDeserialize: deserialize_event_store_client_operations_StartScavengeReq, responseSerialize: serialize_event_store_client_operations_ScavengeResp, @@ -77,8 +77,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/StopScavenge', requestStream: false, responseStream: false, - requestType: operations_pb.StopScavengeReq, - responseType: operations_pb.ScavengeResp, + requestType: kurrentdb_protocols_v1_operations_pb.StopScavengeReq, + responseType: kurrentdb_protocols_v1_operations_pb.ScavengeResp, requestSerialize: serialize_event_store_client_operations_StopScavengeReq, requestDeserialize: deserialize_event_store_client_operations_StopScavengeReq, responseSerialize: serialize_event_store_client_operations_ScavengeResp, @@ -88,8 +88,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/Shutdown', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_Empty, @@ -99,8 +99,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/MergeIndexes', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_Empty, @@ -110,8 +110,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/ResignNode', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_Empty, @@ -121,8 +121,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/SetNodePriority', requestStream: false, responseStream: false, - requestType: operations_pb.SetNodePriorityReq, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_operations_pb.SetNodePriorityReq, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_operations_SetNodePriorityReq, requestDeserialize: deserialize_event_store_client_operations_SetNodePriorityReq, responseSerialize: serialize_event_store_client_Empty, @@ -132,8 +132,8 @@ var OperationsService = exports.OperationsService = { path: '/event_store.client.operations.Operations/RestartPersistentSubscriptions', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_Empty, diff --git a/packages/db-client/generated/operations_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/operations_pb.d.ts similarity index 97% rename from packages/db-client/generated/operations_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/operations_pb.d.ts index 69ebcea9..a3717bbd 100644 --- a/packages/db-client/generated/operations_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/operations_pb.d.ts @@ -1,11 +1,11 @@ // package: event_store.client.operations -// file: operations.proto +// file: kurrentdb/protocols/v1/operations.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; export class StartScavengeReq extends jspb.Message { diff --git a/packages/db-client/generated/operations_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/operations_pb.js similarity index 99% rename from packages/db-client/generated/operations_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/operations_pb.js index 3f6b962a..f9849ca8 100644 --- a/packages/db-client/generated/operations_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/operations_pb.js @@ -1,4 +1,4 @@ -// source: operations.proto +// source: kurrentdb/protocols/v1/operations.proto /** * @fileoverview * @enhanceable @@ -21,8 +21,8 @@ var global = (function() { return Function('return this')(); }.call(null)); -var shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_shared_pb); goog.exportSymbol('proto.event_store.client.operations.ScavengeResp', null, global); goog.exportSymbol('proto.event_store.client.operations.ScavengeResp.ScavengeResult', null, global); goog.exportSymbol('proto.event_store.client.operations.SetNodePriorityReq', null, global); diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts new file mode 100644 index 00000000..bad2b852 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.d.ts @@ -0,0 +1,160 @@ +// package: event_store.client.persistent_subscriptions +// file: kurrentdb/protocols/v1/persistentsubscriptions.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_persistentsubscriptions_pb from "../../../kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; + +interface IPersistentSubscriptionsService extends grpc.ServiceDefinition { + create: IPersistentSubscriptionsService_ICreate; + update: IPersistentSubscriptionsService_IUpdate; + delete: IPersistentSubscriptionsService_IDelete; + read: IPersistentSubscriptionsService_IRead; + getInfo: IPersistentSubscriptionsService_IGetInfo; + replayParked: IPersistentSubscriptionsService_IReplayParked; + list: IPersistentSubscriptionsService_IList; + restartSubsystem: IPersistentSubscriptionsService_IRestartSubsystem; +} + +interface IPersistentSubscriptionsService_ICreate extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IUpdate extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IRead extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read"; + requestStream: true; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IGetInfo extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IReplayParked extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IList extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/List"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IPersistentSubscriptionsService_IRestartSubsystem extends grpc.MethodDefinition { + path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const PersistentSubscriptionsService: IPersistentSubscriptionsService; + +export interface IPersistentSubscriptionsServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; + read: grpc.handleBidiStreamingCall; + getInfo: grpc.handleUnaryCall; + replayParked: grpc.handleUnaryCall; + list: grpc.handleUnaryCall; + restartSubsystem: grpc.handleUnaryCall; +} + +export interface IPersistentSubscriptionsClient { + create(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + read(): grpc.ClientDuplexStream; + read(options: Partial): grpc.ClientDuplexStream; + read(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + getInfo(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + getInfo(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + getInfo(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + replayParked(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + replayParked(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + replayParked(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + list(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + list(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + list(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class PersistentSubscriptionsClient extends grpc.Client implements IPersistentSubscriptionsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public create(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public read(options?: Partial): grpc.ClientDuplexStream; + public read(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; + public getInfo(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + public getInfo(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + public getInfo(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; + public replayParked(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + public replayParked(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + public replayParked(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; + public list(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + public list(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + public list(request: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/persistentsubscriptions_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.js similarity index 67% rename from packages/db-client/generated/persistentsubscriptions_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.js index 23131f4d..377719cd 100644 --- a/packages/db-client/generated/persistentsubscriptions_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb.js @@ -2,172 +2,172 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var persistentsubscriptions_pb = require('./persistentsubscriptions_pb.js'); -var shared_pb = require('./shared_pb.js'); +var kurrentdb_protocols_v1_persistentsubscriptions_pb = require('../../../kurrentdb/protocols/v1/persistentsubscriptions_pb.js'); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { + if (!(arg instanceof kurrentdb_protocols_v1_shared_pb.Empty)) { throw new Error('Expected argument of type event_store.client.Empty'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_CreateReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.CreateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.CreateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_CreateReq(buffer_arg) { - return persistentsubscriptions_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_CreateResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.CreateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.CreateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_CreateResp(buffer_arg) { - return persistentsubscriptions_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_DeleteReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.DeleteReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.DeleteReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_DeleteReq(buffer_arg) { - return persistentsubscriptions_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_DeleteResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.DeleteResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.DeleteResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_DeleteResp(buffer_arg) { - return persistentsubscriptions_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_GetInfoReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.GetInfoReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.GetInfoReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_GetInfoReq(buffer_arg) { - return persistentsubscriptions_pb.GetInfoReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_GetInfoResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.GetInfoResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.GetInfoResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_GetInfoResp(buffer_arg) { - return persistentsubscriptions_pb.GetInfoResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_ListReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.ListReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ListReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_ListReq(buffer_arg) { - return persistentsubscriptions_pb.ListReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_ListResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.ListResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ListResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_ListResp(buffer_arg) { - return persistentsubscriptions_pb.ListResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_ReadReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.ReadReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.ReadReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReadReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_ReadReq(buffer_arg) { - return persistentsubscriptions_pb.ReadReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.ReadReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_ReadResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.ReadResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.ReadResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReadResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_ReadResp(buffer_arg) { - return persistentsubscriptions_pb.ReadResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.ReadResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_ReplayParkedReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.ReplayParkedReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReplayParkedReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_ReplayParkedReq(buffer_arg) { - return persistentsubscriptions_pb.ReplayParkedReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_ReplayParkedResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.ReplayParkedResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReplayParkedResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_ReplayParkedResp(buffer_arg) { - return persistentsubscriptions_pb.ReplayParkedResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_UpdateReq(arg) { - if (!(arg instanceof persistentsubscriptions_pb.UpdateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.UpdateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_UpdateReq(buffer_arg) { - return persistentsubscriptions_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_persistent_subscriptions_UpdateResp(arg) { - if (!(arg instanceof persistentsubscriptions_pb.UpdateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp)) { throw new Error('Expected argument of type event_store.client.persistent_subscriptions.UpdateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_persistent_subscriptions_UpdateResp(buffer_arg) { - return persistentsubscriptions_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -176,8 +176,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create', requestStream: false, responseStream: false, - requestType: persistentsubscriptions_pb.CreateReq, - responseType: persistentsubscriptions_pb.CreateResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.CreateResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_CreateReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_CreateReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_CreateResp, @@ -187,8 +187,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update', requestStream: false, responseStream: false, - requestType: persistentsubscriptions_pb.UpdateReq, - responseType: persistentsubscriptions_pb.UpdateResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.UpdateResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_UpdateReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_UpdateReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_UpdateResp, @@ -198,8 +198,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete', requestStream: false, responseStream: false, - requestType: persistentsubscriptions_pb.DeleteReq, - responseType: persistentsubscriptions_pb.DeleteResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.DeleteResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_DeleteReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_DeleteReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_DeleteResp, @@ -209,8 +209,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read', requestStream: true, responseStream: true, - requestType: persistentsubscriptions_pb.ReadReq, - responseType: persistentsubscriptions_pb.ReadResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReadReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReadResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_ReadReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ReadReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_ReadResp, @@ -220,8 +220,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo', requestStream: false, responseStream: false, - requestType: persistentsubscriptions_pb.GetInfoReq, - responseType: persistentsubscriptions_pb.GetInfoResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.GetInfoResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_GetInfoReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_GetInfoReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_GetInfoResp, @@ -231,8 +231,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked', requestStream: false, responseStream: false, - requestType: persistentsubscriptions_pb.ReplayParkedReq, - responseType: persistentsubscriptions_pb.ReplayParkedResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.ReplayParkedResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_ReplayParkedReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ReplayParkedReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_ReplayParkedResp, @@ -242,8 +242,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/List', requestStream: false, responseStream: false, - requestType: persistentsubscriptions_pb.ListReq, - responseType: persistentsubscriptions_pb.ListResp, + requestType: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListReq, + responseType: kurrentdb_protocols_v1_persistentsubscriptions_pb.ListResp, requestSerialize: serialize_event_store_client_persistent_subscriptions_ListReq, requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ListReq, responseSerialize: serialize_event_store_client_persistent_subscriptions_ListResp, @@ -253,8 +253,8 @@ var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_Empty, diff --git a/packages/db-client/generated/persistentsubscriptions_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb.d.ts similarity index 87% rename from packages/db-client/generated/persistentsubscriptions_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb.d.ts index 28d5df92..bcabfa84 100644 --- a/packages/db-client/generated/persistentsubscriptions_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb.d.ts @@ -1,11 +1,11 @@ // package: event_store.client.persistent_subscriptions -// file: persistentsubscriptions.proto +// file: kurrentdb/protocols/v1/persistentsubscriptions.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; export class ReadReq extends jspb.Message { @@ -48,13 +48,13 @@ export namespace ReadReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasAll(): boolean; clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; + getAll(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAll(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getGroupName(): string; setGroupName(value: string): Options; getBufferSize(): number; @@ -79,8 +79,8 @@ export namespace ReadReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, + all?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, groupName: string, bufferSize: number, uuidOption?: ReadReq.Options.UUIDOption.AsObject, @@ -91,13 +91,13 @@ export namespace ReadReq { hasStructured(): boolean; clearStructured(): void; - getStructured(): shared_pb.Empty | undefined; - setStructured(value?: shared_pb.Empty): UUIDOption; + getStructured(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStructured(value?: kurrentdb_protocols_v1_shared_pb.Empty): UUIDOption; hasString(): boolean; clearString(): void; - getString(): shared_pb.Empty | undefined; - setString(value?: shared_pb.Empty): UUIDOption; + getString(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setString(value?: kurrentdb_protocols_v1_shared_pb.Empty): UUIDOption; getContentCase(): UUIDOption.ContentCase; @@ -113,8 +113,8 @@ export namespace ReadReq { export namespace UUIDOption { export type AsObject = { - structured?: shared_pb.Empty.AsObject, - string?: shared_pb.Empty.AsObject, + structured?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + string?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum ContentCase { @@ -140,9 +140,9 @@ export namespace ReadReq { getId_asB64(): string; setId(value: Uint8Array | string): Ack; clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): Ack; - addIds(value?: shared_pb.UUID, index?: number): shared_pb.UUID; + getIdsList(): Array; + setIdsList(value: Array): Ack; + addIds(value?: kurrentdb_protocols_v1_shared_pb.UUID, index?: number): kurrentdb_protocols_v1_shared_pb.UUID; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Ack.AsObject; @@ -157,7 +157,7 @@ export namespace ReadReq { export namespace Ack { export type AsObject = { id: Uint8Array | string, - idsList: Array, + idsList: Array, } } @@ -167,9 +167,9 @@ export namespace ReadReq { getId_asB64(): string; setId(value: Uint8Array | string): Nack; clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): Nack; - addIds(value?: shared_pb.UUID, index?: number): shared_pb.UUID; + getIdsList(): Array; + setIdsList(value: Array): Nack; + addIds(value?: kurrentdb_protocols_v1_shared_pb.UUID, index?: number): kurrentdb_protocols_v1_shared_pb.UUID; getAction(): ReadReq.Nack.Action; setAction(value: ReadReq.Nack.Action): Nack; getReason(): string; @@ -188,7 +188,7 @@ export namespace ReadReq { export namespace Nack { export type AsObject = { id: Uint8Array | string, - idsList: Array, + idsList: Array, action: ReadReq.Nack.Action, reason: string, } @@ -263,8 +263,8 @@ export namespace ReadResp { hasNoPosition(): boolean; clearNoPosition(): void; - getNoPosition(): shared_pb.Empty | undefined; - setNoPosition(value?: shared_pb.Empty): ReadEvent; + getNoPosition(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoPosition(value?: kurrentdb_protocols_v1_shared_pb.Empty): ReadEvent; hasRetryCount(): boolean; clearRetryCount(): void; @@ -273,8 +273,8 @@ export namespace ReadResp { hasNoRetryCount(): boolean; clearNoRetryCount(): void; - getNoRetryCount(): shared_pb.Empty | undefined; - setNoRetryCount(value?: shared_pb.Empty): ReadEvent; + getNoRetryCount(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoRetryCount(value?: kurrentdb_protocols_v1_shared_pb.Empty): ReadEvent; getPositionCase(): ReadEvent.PositionCase; getCountCase(): ReadEvent.CountCase; @@ -294,9 +294,9 @@ export namespace ReadResp { event?: ReadResp.ReadEvent.RecordedEvent.AsObject, link?: ReadResp.ReadEvent.RecordedEvent.AsObject, commitPosition: string, - noPosition?: shared_pb.Empty.AsObject, + noPosition?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, retryCount: number, - noRetryCount?: shared_pb.Empty.AsObject, + noRetryCount?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } @@ -304,13 +304,13 @@ export namespace ReadResp { hasId(): boolean; clearId(): void; - getId(): shared_pb.UUID | undefined; - setId(value?: shared_pb.UUID): RecordedEvent; + getId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setId(value?: kurrentdb_protocols_v1_shared_pb.UUID): RecordedEvent; hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): RecordedEvent; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): RecordedEvent; getStreamRevision(): string; setStreamRevision(value: string): RecordedEvent; getPreparePosition(): string; @@ -341,8 +341,8 @@ export namespace ReadResp { export namespace RecordedEvent { export type AsObject = { - id?: shared_pb.UUID.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + id?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, streamRevision: string, preparePosition: string, commitPosition: string, @@ -434,8 +434,8 @@ export namespace CreateReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; getGroupName(): string; setGroupName(value: string): Options; @@ -460,7 +460,7 @@ export namespace CreateReq { export type AsObject = { stream?: CreateReq.StreamOptions.AsObject, all?: CreateReq.AllOptions.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, groupName: string, settings?: CreateReq.Settings.AsObject, } @@ -477,8 +477,8 @@ export namespace CreateReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): StreamOptions; hasRevision(): boolean; clearRevision(): void; @@ -487,13 +487,13 @@ export namespace CreateReq { hasStart(): boolean; clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): StreamOptions; + getStart(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStart(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOptions; hasEnd(): boolean; clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): StreamOptions; + getEnd(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setEnd(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOptions; getRevisionOptionCase(): StreamOptions.RevisionOptionCase; @@ -509,10 +509,10 @@ export namespace CreateReq { export namespace StreamOptions { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, revision: string, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, + start?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + end?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum RevisionOptionCase { @@ -533,13 +533,13 @@ export namespace CreateReq { hasStart(): boolean; clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): AllOptions; + getStart(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStart(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; hasEnd(): boolean; clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): AllOptions; + getEnd(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setEnd(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; hasFilter(): boolean; clearFilter(): void; @@ -548,8 +548,8 @@ export namespace CreateReq { hasNoFilter(): boolean; clearNoFilter(): void; - getNoFilter(): shared_pb.Empty | undefined; - setNoFilter(value?: shared_pb.Empty): AllOptions; + getNoFilter(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoFilter(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; getAllOptionCase(): AllOptions.AllOptionCase; getFilterOptionCase(): AllOptions.FilterOptionCase; @@ -567,10 +567,10 @@ export namespace CreateReq { export namespace AllOptions { export type AsObject = { position?: CreateReq.Position.AsObject, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, + start?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + end?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, filter?: CreateReq.AllOptions.FilterOptions.AsObject, - noFilter?: shared_pb.Empty.AsObject, + noFilter?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } @@ -593,8 +593,8 @@ export namespace CreateReq { hasCount(): boolean; clearCount(): void; - getCount(): shared_pb.Empty | undefined; - setCount(value?: shared_pb.Empty): FilterOptions; + getCount(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setCount(value?: kurrentdb_protocols_v1_shared_pb.Empty): FilterOptions; getCheckpointintervalmultiplier(): number; setCheckpointintervalmultiplier(value: number): FilterOptions; @@ -616,7 +616,7 @@ export namespace CreateReq { streamIdentifier?: CreateReq.AllOptions.FilterOptions.Expression.AsObject, eventType?: CreateReq.AllOptions.FilterOptions.Expression.AsObject, max: number, - count?: shared_pb.Empty.AsObject, + count?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, checkpointintervalmultiplier: number, } @@ -856,8 +856,8 @@ export namespace UpdateReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; getGroupName(): string; setGroupName(value: string): Options; @@ -882,7 +882,7 @@ export namespace UpdateReq { export type AsObject = { stream?: UpdateReq.StreamOptions.AsObject, all?: UpdateReq.AllOptions.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, groupName: string, settings?: UpdateReq.Settings.AsObject, } @@ -899,8 +899,8 @@ export namespace UpdateReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): StreamOptions; hasRevision(): boolean; clearRevision(): void; @@ -909,13 +909,13 @@ export namespace UpdateReq { hasStart(): boolean; clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): StreamOptions; + getStart(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStart(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOptions; hasEnd(): boolean; clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): StreamOptions; + getEnd(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setEnd(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOptions; getRevisionOptionCase(): StreamOptions.RevisionOptionCase; @@ -931,10 +931,10 @@ export namespace UpdateReq { export namespace StreamOptions { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, revision: string, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, + start?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + end?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum RevisionOptionCase { @@ -955,13 +955,13 @@ export namespace UpdateReq { hasStart(): boolean; clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): AllOptions; + getStart(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStart(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; hasEnd(): boolean; clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): AllOptions; + getEnd(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setEnd(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; getAllOptionCase(): AllOptions.AllOptionCase; @@ -978,8 +978,8 @@ export namespace UpdateReq { export namespace AllOptions { export type AsObject = { position?: UpdateReq.Position.AsObject, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, + start?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + end?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum AllOptionCase { @@ -1157,13 +1157,13 @@ export namespace DeleteReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasAll(): boolean; clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; + getAll(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAll(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getGroupName(): string; setGroupName(value: string): Options; @@ -1181,8 +1181,8 @@ export namespace DeleteReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, + all?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, groupName: string, } @@ -1240,13 +1240,13 @@ export namespace GetInfoReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasAll(): boolean; clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; + getAll(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAll(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getGroupName(): string; setGroupName(value: string): Options; @@ -1264,8 +1264,8 @@ export namespace GetInfoReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, + all?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, groupName: string, } @@ -1505,13 +1505,13 @@ export namespace ReplayParkedReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasAll(): boolean; clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; + getAll(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAll(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasStopAt(): boolean; clearStopAt(): void; @@ -1520,8 +1520,8 @@ export namespace ReplayParkedReq { hasNoLimit(): boolean; clearNoLimit(): void; - getNoLimit(): shared_pb.Empty | undefined; - setNoLimit(value?: shared_pb.Empty): Options; + getNoLimit(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoLimit(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getStreamOptionCase(): Options.StreamOptionCase; getStopAtOptionCase(): Options.StopAtOptionCase; @@ -1539,10 +1539,10 @@ export namespace ReplayParkedReq { export namespace Options { export type AsObject = { groupName: string, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, + all?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, stopAt: string, - noLimit?: shared_pb.Empty.AsObject, + noLimit?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum StreamOptionCase { @@ -1605,8 +1605,8 @@ export namespace ListReq { hasListAllSubscriptions(): boolean; clearListAllSubscriptions(): void; - getListAllSubscriptions(): shared_pb.Empty | undefined; - setListAllSubscriptions(value?: shared_pb.Empty): Options; + getListAllSubscriptions(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setListAllSubscriptions(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasListForStream(): boolean; clearListForStream(): void; @@ -1627,7 +1627,7 @@ export namespace ListReq { export namespace Options { export type AsObject = { - listAllSubscriptions?: shared_pb.Empty.AsObject, + listAllSubscriptions?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, listForStream?: ListReq.StreamOption.AsObject, } @@ -1643,13 +1643,13 @@ export namespace ListReq { hasStream(): boolean; clearStream(): void; - getStream(): shared_pb.StreamIdentifier | undefined; - setStream(value?: shared_pb.StreamIdentifier): StreamOption; + getStream(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStream(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): StreamOption; hasAll(): boolean; clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): StreamOption; + getAll(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAll(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOption; getStreamOptionCase(): StreamOption.StreamOptionCase; @@ -1665,8 +1665,8 @@ export namespace ListReq { export namespace StreamOption { export type AsObject = { - stream?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, + stream?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, + all?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum StreamOptionCase { diff --git a/packages/db-client/generated/persistentsubscriptions_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb.js similarity index 96% rename from packages/db-client/generated/persistentsubscriptions_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb.js index e9f3837a..c4c7f1a7 100644 --- a/packages/db-client/generated/persistentsubscriptions_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb.js @@ -1,4 +1,4 @@ -// source: persistentsubscriptions.proto +// source: kurrentdb/protocols/v1/persistentsubscriptions.proto /** * @fileoverview * @enhanceable @@ -21,8 +21,8 @@ var global = (function() { return Function('return this')(); }.call(null)); -var shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_shared_pb); goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq', null, global); goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions', null, global); goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase', null, global); @@ -1180,8 +1180,8 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.toOb */ proto.event_store.client.persistent_subscriptions.ReadReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), bufferSize: jspb.Message.getFieldWithDefault(msg, 3, 0), uuidOption: (f = msg.getUuidOption()) && proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.toObject(includeInstance, f) @@ -1222,13 +1222,13 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.deserializeBin var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAll(value); break; case 2: @@ -1278,7 +1278,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.serializeBinar writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getAll(); @@ -1286,7 +1286,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.serializeBinar writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getGroupName(); @@ -1372,8 +1372,8 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.pro */ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.toObject = function(includeInstance, msg) { var f, obj = { - structured: (f = msg.getStructured()) && shared_pb.Empty.toObject(includeInstance, f), - string: (f = msg.getString()) && shared_pb.Empty.toObject(includeInstance, f) + structured: (f = msg.getStructured()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + string: (f = msg.getString()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -1411,13 +1411,13 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.des var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStructured(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setString(value); break; default: @@ -1454,7 +1454,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ser writer.writeMessage( 1, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getString(); @@ -1462,7 +1462,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ser writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -1474,7 +1474,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ser */ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getStructured = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 1)); }; @@ -1511,7 +1511,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.pro */ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getString = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -1548,7 +1548,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.pro */ proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -1585,7 +1585,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasS */ proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getAll = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -1730,7 +1730,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Ack.toObject = functio var f, obj = { id: msg.getId_asB64(), idsList: jspb.Message.toObjectList(msg.getIdsList(), - shared_pb.UUID.toObject, includeInstance) + kurrentdb_protocols_v1_shared_pb.UUID.toObject, includeInstance) }; if (includeInstance) { @@ -1772,8 +1772,8 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryF msg.setId(value); break; case 2: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.addIds(value); break; default: @@ -1817,7 +1817,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Ack.serializeBinaryToW writer.writeRepeatedMessage( 2, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } }; @@ -1871,7 +1871,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.setId = */ proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getIdsList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, shared_pb.UUID, 2)); + jspb.Message.getRepeatedWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 2)); }; @@ -1944,7 +1944,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Nack.toObject = functi var f, obj = { id: msg.getId_asB64(), idsList: jspb.Message.toObjectList(msg.getIdsList(), - shared_pb.UUID.toObject, includeInstance), + kurrentdb_protocols_v1_shared_pb.UUID.toObject, includeInstance), action: jspb.Message.getFieldWithDefault(msg, 3, 0), reason: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -1988,8 +1988,8 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinary msg.setId(value); break; case 2: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.addIds(value); break; case 3: @@ -2041,7 +2041,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Nack.serializeBinaryTo writer.writeRepeatedMessage( 2, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getAction(); @@ -2120,7 +2120,7 @@ proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setId = */ proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getIdsList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, shared_pb.UUID, 2)); + jspb.Message.getRepeatedWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 2)); }; @@ -2530,9 +2530,9 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.toObject = event: (f = msg.getEvent()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), link: (f = msg.getLink()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), commitPosition: jspb.Message.getFieldWithDefault(msg, 3, "0"), - noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f), + noPosition: (f = msg.getNoPosition()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), retryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - noRetryCount: (f = msg.getNoRetryCount()) && shared_pb.Empty.toObject(includeInstance, f) + noRetryCount: (f = msg.getNoRetryCount()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -2584,8 +2584,8 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserialize msg.setCommitPosition(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoPosition(value); break; case 5: @@ -2593,8 +2593,8 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserialize msg.setRetryCount(value); break; case 6: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoRetryCount(value); break; default: @@ -2654,7 +2654,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.serializeBi writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = /** @type {number} */ (jspb.Message.getField(message, 5)); @@ -2669,7 +2669,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.serializeBi writer.writeMessage( 6, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -2707,8 +2707,8 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEve */ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && shared_pb.UUID.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + id: (f = msg.getId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), streamRevision: jspb.Message.getFieldWithDefault(msg, 3, "0"), preparePosition: jspb.Message.getFieldWithDefault(msg, 4, "0"), commitPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), @@ -2752,13 +2752,13 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEve var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setId(value); break; case 2: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 3: @@ -2821,7 +2821,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEve writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getStreamIdentifier(); @@ -2829,7 +2829,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEve writer.writeMessage( 2, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getStreamRevision(); @@ -2880,7 +2880,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEve */ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; @@ -2917,7 +2917,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEve */ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 2)); }; @@ -3224,7 +3224,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.h */ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getNoPosition = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -3297,7 +3297,7 @@ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.h */ proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getNoRetryCount = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 6)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 6)); }; @@ -3715,7 +3715,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.Options.toObject = f var f, obj = { stream: (f = msg.getStream()) && proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.toObject(includeInstance, f), all: (f = msg.getAll()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), settings: (f = msg.getSettings()) && proto.event_store.client.persistent_subscriptions.CreateReq.Settings.toObject(includeInstance, f) }; @@ -3765,8 +3765,8 @@ proto.event_store.client.persistent_subscriptions.CreateReq.Options.deserializeB msg.setAll(value); break; case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -3828,7 +3828,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.Options.serializeBin writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getGroupName(); @@ -3929,7 +3929,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.ha */ proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -4074,10 +4074,10 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.protot */ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f) + start: (f = msg.getStart()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -4115,8 +4115,8 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deseri var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -4124,13 +4124,13 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deseri msg.setRevision(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStart(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setEnd(value); break; default: @@ -4167,7 +4167,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serial writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -4182,7 +4182,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serial writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getEnd(); @@ -4190,7 +4190,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serial writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -4202,7 +4202,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serial */ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -4275,7 +4275,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.protot */ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getStart = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -4312,7 +4312,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.protot */ proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getEnd = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -4419,10 +4419,10 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.toObject = function(includeInstance, msg) { var f, obj = { position: (f = msg.getPosition()) && proto.event_store.client.persistent_subscriptions.CreateReq.Position.toObject(includeInstance, f), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f), + start: (f = msg.getStart()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), filter: (f = msg.getFilter()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.toObject(includeInstance, f), - noFilter: (f = msg.getNoFilter()) && shared_pb.Empty.toObject(includeInstance, f) + noFilter: (f = msg.getNoFilter()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -4465,13 +4465,13 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deseriali msg.setPosition(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStart(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setEnd(value); break; case 4: @@ -4480,8 +4480,8 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deseriali msg.setFilter(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoFilter(value); break; default: @@ -4526,7 +4526,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serialize writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getEnd(); @@ -4534,7 +4534,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serialize writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getFilter(); @@ -4550,7 +4550,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serialize writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -4633,7 +4633,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOpt streamIdentifier: (f = msg.getStreamIdentifier()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject(includeInstance, f), eventType: (f = msg.getEventType()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject(includeInstance, f), max: jspb.Message.getFieldWithDefault(msg, 3, 0), - count: (f = msg.getCount()) && shared_pb.Empty.toObject(includeInstance, f), + count: (f = msg.getCount()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), checkpointintervalmultiplier: jspb.Message.getFieldWithDefault(msg, 5, 0) }; @@ -4686,8 +4686,8 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOpt msg.setMax(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setCount(value); break; case 5: @@ -4751,7 +4751,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOpt writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getCheckpointintervalmultiplier(); @@ -5066,7 +5066,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOpt */ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getCount = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -5158,7 +5158,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype */ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getStart = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -5195,7 +5195,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype */ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getEnd = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -5269,7 +5269,7 @@ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype */ proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getNoFilter = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -6475,7 +6475,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.Options.toObject = f var f, obj = { stream: (f = msg.getStream()) && proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.toObject(includeInstance, f), all: (f = msg.getAll()) && proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), settings: (f = msg.getSettings()) && proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.toObject(includeInstance, f) }; @@ -6525,8 +6525,8 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.Options.deserializeB msg.setAll(value); break; case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -6588,7 +6588,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.Options.serializeBin writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getGroupName(); @@ -6689,7 +6689,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.ha */ proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -6834,10 +6834,10 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.protot */ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f) + start: (f = msg.getStart()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -6875,8 +6875,8 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deseri var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -6884,13 +6884,13 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deseri msg.setRevision(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStart(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setEnd(value); break; default: @@ -6927,7 +6927,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serial writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -6942,7 +6942,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serial writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getEnd(); @@ -6950,7 +6950,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serial writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -6962,7 +6962,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serial */ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -7035,7 +7035,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.protot */ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getStart = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -7072,7 +7072,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.protot */ proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getEnd = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -7163,8 +7163,8 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.toObject = function(includeInstance, msg) { var f, obj = { position: (f = msg.getPosition()) && proto.event_store.client.persistent_subscriptions.UpdateReq.Position.toObject(includeInstance, f), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f) + start: (f = msg.getStart()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -7207,13 +7207,13 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deseriali msg.setPosition(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStart(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setEnd(value); break; default: @@ -7258,7 +7258,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.serialize writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getEnd(); @@ -7266,7 +7266,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.serialize writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -7315,7 +7315,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype */ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getStart = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -7352,7 +7352,7 @@ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype */ proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getEnd = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -8517,8 +8517,8 @@ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.to */ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), groupName: jspb.Message.getFieldWithDefault(msg, 2, "") }; @@ -8557,13 +8557,13 @@ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.deserializeB var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAll(value); break; case 2: @@ -8604,7 +8604,7 @@ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.serializeBin writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getAll(); @@ -8612,7 +8612,7 @@ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.serializeBin writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getGroupName(); @@ -8631,7 +8631,7 @@ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.serializeBin */ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -8668,7 +8668,7 @@ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.ha */ proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getAll = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -9027,8 +9027,8 @@ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.t */ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), groupName: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -9067,13 +9067,13 @@ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.deserialize var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAll(value); break; case 3: @@ -9114,7 +9114,7 @@ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.serializeBi writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getAll(); @@ -9122,7 +9122,7 @@ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.serializeBi writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getGroupName(); @@ -9141,7 +9141,7 @@ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.serializeBi */ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -9178,7 +9178,7 @@ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.h */ proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getAll = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -11134,10 +11134,10 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.protot proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.toObject = function(includeInstance, msg) { var f, obj = { groupName: jspb.Message.getFieldWithDefault(msg, 1, ""), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), stopAt: jspb.Message.getFieldWithDefault(msg, 4, "0"), - noLimit: (f = msg.getNoLimit()) && shared_pb.Empty.toObject(includeInstance, f) + noLimit: (f = msg.getNoLimit()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -11179,13 +11179,13 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.deseri msg.setGroupName(value); break; case 2: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAll(value); break; case 4: @@ -11193,8 +11193,8 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.deseri msg.setStopAt(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoLimit(value); break; default: @@ -11238,7 +11238,7 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.serial writer.writeMessage( 2, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getAll(); @@ -11246,7 +11246,7 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.serial writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 4)); @@ -11261,7 +11261,7 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.serial writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -11291,7 +11291,7 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.protot */ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 2)); }; @@ -11328,7 +11328,7 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.protot */ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getAll = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -11401,7 +11401,7 @@ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.protot */ proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getNoLimit = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -11742,7 +11742,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.toOb */ proto.event_store.client.persistent_subscriptions.ListReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - listAllSubscriptions: (f = msg.getListAllSubscriptions()) && shared_pb.Empty.toObject(includeInstance, f), + listAllSubscriptions: (f = msg.getListAllSubscriptions()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), listForStream: (f = msg.getListForStream()) && proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.toObject(includeInstance, f) }; @@ -11781,8 +11781,8 @@ proto.event_store.client.persistent_subscriptions.ListReq.Options.deserializeBin var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setListAllSubscriptions(value); break; case 2: @@ -11824,7 +11824,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.Options.serializeBinar writer.writeMessage( 1, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getListForStream(); @@ -11844,7 +11844,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.Options.serializeBinar */ proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListAllSubscriptions = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 1)); }; @@ -11970,8 +11970,8 @@ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype */ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.toObject = function(includeInstance, msg) { var f, obj = { - stream: (f = msg.getStream()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f) + stream: (f = msg.getStream()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), + all: (f = msg.getAll()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -12009,13 +12009,13 @@ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deseriali var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStream(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAll(value); break; default: @@ -12052,7 +12052,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serialize writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getAll(); @@ -12060,7 +12060,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serialize writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -12072,7 +12072,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serialize */ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getStream = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -12109,7 +12109,7 @@ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype */ proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getAll = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts new file mode 100644 index 00000000..7eac9277 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.d.ts @@ -0,0 +1,194 @@ +// package: event_store.client.projections +// file: kurrentdb/protocols/v1/projectionmanagement.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_projectionmanagement_pb from "../../../kurrentdb/protocols/v1/projectionmanagement_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; + +interface IProjectionsService extends grpc.ServiceDefinition { + create: IProjectionsService_ICreate; + update: IProjectionsService_IUpdate; + delete: IProjectionsService_IDelete; + statistics: IProjectionsService_IStatistics; + disable: IProjectionsService_IDisable; + enable: IProjectionsService_IEnable; + reset: IProjectionsService_IReset; + state: IProjectionsService_IState; + result: IProjectionsService_IResult; + restartSubsystem: IProjectionsService_IRestartSubsystem; +} + +interface IProjectionsService_ICreate extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Create"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IUpdate extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Update"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IStatistics extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Statistics"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IDisable extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Disable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IEnable extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Enable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IReset extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Reset"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IState extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/State"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IResult extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/Result"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IProjectionsService_IRestartSubsystem extends grpc.MethodDefinition { + path: "/event_store.client.projections.Projections/RestartSubsystem"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const ProjectionsService: IProjectionsService; + +export interface IProjectionsServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; + statistics: grpc.handleServerStreamingCall; + disable: grpc.handleUnaryCall; + enable: grpc.handleUnaryCall; + reset: grpc.handleUnaryCall; + state: grpc.handleUnaryCall; + result: grpc.handleUnaryCall; + restartSubsystem: grpc.handleUnaryCall; +} + +export interface IProjectionsClient { + create(request: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + statistics(request: kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; + statistics(request: kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + disable(request: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + enable(request: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + reset(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + reset(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + reset(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + state(request: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + state(request: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + state(request: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + result(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + result(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + result(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class ProjectionsClient extends grpc.Client implements IProjectionsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public create(request: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public statistics(request: kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; + public statistics(request: kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public disable(request: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public enable(request: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public reset(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + public reset(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + public reset(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; + public state(request: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + public state(request: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + public state(request: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; + public result(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + public result(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + public result(request: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; + public restartSubsystem(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_shared_pb.Empty) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/projectionmanagement_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.js similarity index 65% rename from packages/db-client/generated/projectionmanagement_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.js index 4482683f..800425ce 100644 --- a/packages/db-client/generated/projectionmanagement_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb.js @@ -2,217 +2,217 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var projectionmanagement_pb = require('./projectionmanagement_pb.js'); +var kurrentdb_protocols_v1_projectionmanagement_pb = require('../../../kurrentdb/protocols/v1/projectionmanagement_pb.js'); var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -var shared_pb = require('./shared_pb.js'); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { + if (!(arg instanceof kurrentdb_protocols_v1_shared_pb.Empty)) { throw new Error('Expected argument of type event_store.client.Empty'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_CreateReq(arg) { - if (!(arg instanceof projectionmanagement_pb.CreateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq)) { throw new Error('Expected argument of type event_store.client.projections.CreateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_CreateReq(buffer_arg) { - return projectionmanagement_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_CreateResp(arg) { - if (!(arg instanceof projectionmanagement_pb.CreateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp)) { throw new Error('Expected argument of type event_store.client.projections.CreateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_CreateResp(buffer_arg) { - return projectionmanagement_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_DeleteReq(arg) { - if (!(arg instanceof projectionmanagement_pb.DeleteReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq)) { throw new Error('Expected argument of type event_store.client.projections.DeleteReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_DeleteReq(buffer_arg) { - return projectionmanagement_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_DeleteResp(arg) { - if (!(arg instanceof projectionmanagement_pb.DeleteResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp)) { throw new Error('Expected argument of type event_store.client.projections.DeleteResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_DeleteResp(buffer_arg) { - return projectionmanagement_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_DisableReq(arg) { - if (!(arg instanceof projectionmanagement_pb.DisableReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq)) { throw new Error('Expected argument of type event_store.client.projections.DisableReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_DisableReq(buffer_arg) { - return projectionmanagement_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_DisableResp(arg) { - if (!(arg instanceof projectionmanagement_pb.DisableResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp)) { throw new Error('Expected argument of type event_store.client.projections.DisableResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_DisableResp(buffer_arg) { - return projectionmanagement_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_EnableReq(arg) { - if (!(arg instanceof projectionmanagement_pb.EnableReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq)) { throw new Error('Expected argument of type event_store.client.projections.EnableReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_EnableReq(buffer_arg) { - return projectionmanagement_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_EnableResp(arg) { - if (!(arg instanceof projectionmanagement_pb.EnableResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp)) { throw new Error('Expected argument of type event_store.client.projections.EnableResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_EnableResp(buffer_arg) { - return projectionmanagement_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_ResetReq(arg) { - if (!(arg instanceof projectionmanagement_pb.ResetReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq)) { throw new Error('Expected argument of type event_store.client.projections.ResetReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_ResetReq(buffer_arg) { - return projectionmanagement_pb.ResetReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_ResetResp(arg) { - if (!(arg instanceof projectionmanagement_pb.ResetResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp)) { throw new Error('Expected argument of type event_store.client.projections.ResetResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_ResetResp(buffer_arg) { - return projectionmanagement_pb.ResetResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_ResultReq(arg) { - if (!(arg instanceof projectionmanagement_pb.ResultReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq)) { throw new Error('Expected argument of type event_store.client.projections.ResultReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_ResultReq(buffer_arg) { - return projectionmanagement_pb.ResultReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_ResultResp(arg) { - if (!(arg instanceof projectionmanagement_pb.ResultResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp)) { throw new Error('Expected argument of type event_store.client.projections.ResultResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_ResultResp(buffer_arg) { - return projectionmanagement_pb.ResultResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_StateReq(arg) { - if (!(arg instanceof projectionmanagement_pb.StateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.StateReq)) { throw new Error('Expected argument of type event_store.client.projections.StateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_StateReq(buffer_arg) { - return projectionmanagement_pb.StateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.StateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_StateResp(arg) { - if (!(arg instanceof projectionmanagement_pb.StateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.StateResp)) { throw new Error('Expected argument of type event_store.client.projections.StateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_StateResp(buffer_arg) { - return projectionmanagement_pb.StateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.StateResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_StatisticsReq(arg) { - if (!(arg instanceof projectionmanagement_pb.StatisticsReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq)) { throw new Error('Expected argument of type event_store.client.projections.StatisticsReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_StatisticsReq(buffer_arg) { - return projectionmanagement_pb.StatisticsReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_StatisticsResp(arg) { - if (!(arg instanceof projectionmanagement_pb.StatisticsResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsResp)) { throw new Error('Expected argument of type event_store.client.projections.StatisticsResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_StatisticsResp(buffer_arg) { - return projectionmanagement_pb.StatisticsResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_UpdateReq(arg) { - if (!(arg instanceof projectionmanagement_pb.UpdateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq)) { throw new Error('Expected argument of type event_store.client.projections.UpdateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_UpdateReq(buffer_arg) { - return projectionmanagement_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_projections_UpdateResp(arg) { - if (!(arg instanceof projectionmanagement_pb.UpdateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp)) { throw new Error('Expected argument of type event_store.client.projections.UpdateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_projections_UpdateResp(buffer_arg) { - return projectionmanagement_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -221,8 +221,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Create', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.CreateReq, - responseType: projectionmanagement_pb.CreateResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.CreateReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.CreateResp, requestSerialize: serialize_event_store_client_projections_CreateReq, requestDeserialize: deserialize_event_store_client_projections_CreateReq, responseSerialize: serialize_event_store_client_projections_CreateResp, @@ -232,8 +232,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Update', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.UpdateReq, - responseType: projectionmanagement_pb.UpdateResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.UpdateResp, requestSerialize: serialize_event_store_client_projections_UpdateReq, requestDeserialize: deserialize_event_store_client_projections_UpdateReq, responseSerialize: serialize_event_store_client_projections_UpdateResp, @@ -243,8 +243,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Delete', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.DeleteReq, - responseType: projectionmanagement_pb.DeleteResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.DeleteResp, requestSerialize: serialize_event_store_client_projections_DeleteReq, requestDeserialize: deserialize_event_store_client_projections_DeleteReq, responseSerialize: serialize_event_store_client_projections_DeleteResp, @@ -254,8 +254,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Statistics', requestStream: false, responseStream: true, - requestType: projectionmanagement_pb.StatisticsReq, - responseType: projectionmanagement_pb.StatisticsResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.StatisticsResp, requestSerialize: serialize_event_store_client_projections_StatisticsReq, requestDeserialize: deserialize_event_store_client_projections_StatisticsReq, responseSerialize: serialize_event_store_client_projections_StatisticsResp, @@ -265,8 +265,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Disable', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.DisableReq, - responseType: projectionmanagement_pb.DisableResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.DisableReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.DisableResp, requestSerialize: serialize_event_store_client_projections_DisableReq, requestDeserialize: deserialize_event_store_client_projections_DisableReq, responseSerialize: serialize_event_store_client_projections_DisableResp, @@ -276,8 +276,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Enable', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.EnableReq, - responseType: projectionmanagement_pb.EnableResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.EnableReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.EnableResp, requestSerialize: serialize_event_store_client_projections_EnableReq, requestDeserialize: deserialize_event_store_client_projections_EnableReq, responseSerialize: serialize_event_store_client_projections_EnableResp, @@ -287,8 +287,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Reset', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.ResetReq, - responseType: projectionmanagement_pb.ResetResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.ResetReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.ResetResp, requestSerialize: serialize_event_store_client_projections_ResetReq, requestDeserialize: deserialize_event_store_client_projections_ResetReq, responseSerialize: serialize_event_store_client_projections_ResetResp, @@ -298,8 +298,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/State', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.StateReq, - responseType: projectionmanagement_pb.StateResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.StateReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.StateResp, requestSerialize: serialize_event_store_client_projections_StateReq, requestDeserialize: deserialize_event_store_client_projections_StateReq, responseSerialize: serialize_event_store_client_projections_StateResp, @@ -309,8 +309,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/Result', requestStream: false, responseStream: false, - requestType: projectionmanagement_pb.ResultReq, - responseType: projectionmanagement_pb.ResultResp, + requestType: kurrentdb_protocols_v1_projectionmanagement_pb.ResultReq, + responseType: kurrentdb_protocols_v1_projectionmanagement_pb.ResultResp, requestSerialize: serialize_event_store_client_projections_ResultReq, requestDeserialize: deserialize_event_store_client_projections_ResultReq, responseSerialize: serialize_event_store_client_projections_ResultResp, @@ -320,8 +320,8 @@ var ProjectionsService = exports.ProjectionsService = { path: '/event_store.client.projections.Projections/RestartSubsystem', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_shared_pb.Empty, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_Empty, diff --git a/packages/db-client/generated/projectionmanagement_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_pb.d.ts similarity index 95% rename from packages/db-client/generated/projectionmanagement_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_pb.d.ts index 4d24b66e..236a7edf 100644 --- a/packages/db-client/generated/projectionmanagement_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_pb.d.ts @@ -1,12 +1,12 @@ // package: event_store.client.projections -// file: projectionmanagement.proto +// file: kurrentdb/protocols/v1/projectionmanagement.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as shared_pb from "./shared_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; export class CreateReq extends jspb.Message { @@ -35,8 +35,8 @@ export namespace CreateReq { hasOneTime(): boolean; clearOneTime(): void; - getOneTime(): shared_pb.Empty | undefined; - setOneTime(value?: shared_pb.Empty): Options; + getOneTime(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setOneTime(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasTransient(): boolean; clearTransient(): void; @@ -64,7 +64,7 @@ export namespace CreateReq { export namespace Options { export type AsObject = { - oneTime?: shared_pb.Empty.AsObject, + oneTime?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, pb_transient?: CreateReq.Options.Transient.AsObject, continuous?: CreateReq.Options.Continuous.AsObject, query: string, @@ -182,8 +182,8 @@ export namespace UpdateReq { hasNoEmitOptions(): boolean; clearNoEmitOptions(): void; - getNoEmitOptions(): shared_pb.Empty | undefined; - setNoEmitOptions(value?: shared_pb.Empty): Options; + getNoEmitOptions(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoEmitOptions(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getEmitOptionCase(): Options.EmitOptionCase; @@ -202,7 +202,7 @@ export namespace UpdateReq { name: string, query: string, emitEnabled: boolean, - noEmitOptions?: shared_pb.Empty.AsObject, + noEmitOptions?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum EmitOptionCase { @@ -335,23 +335,23 @@ export namespace StatisticsReq { hasAll(): boolean; clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; + getAll(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAll(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasTransient(): boolean; clearTransient(): void; - getTransient(): shared_pb.Empty | undefined; - setTransient(value?: shared_pb.Empty): Options; + getTransient(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setTransient(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasContinuous(): boolean; clearContinuous(): void; - getContinuous(): shared_pb.Empty | undefined; - setContinuous(value?: shared_pb.Empty): Options; + getContinuous(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setContinuous(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasOneTime(): boolean; clearOneTime(): void; - getOneTime(): shared_pb.Empty | undefined; - setOneTime(value?: shared_pb.Empty): Options; + getOneTime(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setOneTime(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getModeCase(): Options.ModeCase; @@ -368,10 +368,10 @@ export namespace StatisticsReq { export namespace Options { export type AsObject = { name: string, - all?: shared_pb.Empty.AsObject, - pb_transient?: shared_pb.Empty.AsObject, - continuous?: shared_pb.Empty.AsObject, - oneTime?: shared_pb.Empty.AsObject, + all?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + pb_transient?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + continuous?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + oneTime?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum ModeCase { diff --git a/packages/db-client/generated/projectionmanagement_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_pb.js similarity index 98% rename from packages/db-client/generated/projectionmanagement_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_pb.js index 7b365fad..d249709b 100644 --- a/packages/db-client/generated/projectionmanagement_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/projectionmanagement_pb.js @@ -1,4 +1,4 @@ -// source: projectionmanagement.proto +// source: kurrentdb/protocols/v1/projectionmanagement.proto /** * @fileoverview * @enhanceable @@ -23,8 +23,8 @@ var global = (function() { 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); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_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); @@ -861,7 +861,7 @@ proto.event_store.client.projections.CreateReq.Options.prototype.toObject = func */ proto.event_store.client.projections.CreateReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - oneTime: (f = msg.getOneTime()) && shared_pb.Empty.toObject(includeInstance, f), + oneTime: (f = msg.getOneTime()) && kurrentdb_protocols_v1_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, "") @@ -902,8 +902,8 @@ proto.event_store.client.projections.CreateReq.Options.deserializeBinaryFromRead var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setOneTime(value); break; case 2: @@ -954,7 +954,7 @@ proto.event_store.client.projections.CreateReq.Options.serializeBinaryToWriter = writer.writeMessage( 1, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getTransient(); @@ -1309,7 +1309,7 @@ proto.event_store.client.projections.CreateReq.Options.Continuous.prototype.setT */ 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)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 1)); }; @@ -1745,7 +1745,7 @@ proto.event_store.client.projections.UpdateReq.Options.toObject = function(inclu name: jspb.Message.getFieldWithDefault(msg, 1, ""), query: jspb.Message.getFieldWithDefault(msg, 2, ""), emitEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - noEmitOptions: (f = msg.getNoEmitOptions()) && shared_pb.Empty.toObject(includeInstance, f) + noEmitOptions: (f = msg.getNoEmitOptions()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -1795,8 +1795,8 @@ proto.event_store.client.projections.UpdateReq.Options.deserializeBinaryFromRead msg.setEmitEnabled(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoEmitOptions(value); break; default: @@ -1854,7 +1854,7 @@ proto.event_store.client.projections.UpdateReq.Options.serializeBinaryToWriter = writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -1938,7 +1938,7 @@ proto.event_store.client.projections.UpdateReq.Options.prototype.hasEmitEnabled */ proto.event_store.client.projections.UpdateReq.Options.prototype.getNoEmitOptions = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -2755,10 +2755,10 @@ proto.event_store.client.projections.StatisticsReq.Options.prototype.toObject = proto.event_store.client.projections.StatisticsReq.Options.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), - pb_transient: (f = msg.getTransient()) && shared_pb.Empty.toObject(includeInstance, f), - continuous: (f = msg.getContinuous()) && shared_pb.Empty.toObject(includeInstance, f), - oneTime: (f = msg.getOneTime()) && shared_pb.Empty.toObject(includeInstance, f) + all: (f = msg.getAll()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + pb_transient: (f = msg.getTransient()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + continuous: (f = msg.getContinuous()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + oneTime: (f = msg.getOneTime()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -2800,23 +2800,23 @@ proto.event_store.client.projections.StatisticsReq.Options.deserializeBinaryFrom msg.setName(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAll(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setTransient(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setContinuous(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setOneTime(value); break; default: @@ -2860,7 +2860,7 @@ proto.event_store.client.projections.StatisticsReq.Options.serializeBinaryToWrit writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getTransient(); @@ -2868,7 +2868,7 @@ proto.event_store.client.projections.StatisticsReq.Options.serializeBinaryToWrit writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getContinuous(); @@ -2876,7 +2876,7 @@ proto.event_store.client.projections.StatisticsReq.Options.serializeBinaryToWrit writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getOneTime(); @@ -2884,7 +2884,7 @@ proto.event_store.client.projections.StatisticsReq.Options.serializeBinaryToWrit writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -2932,7 +2932,7 @@ proto.event_store.client.projections.StatisticsReq.Options.prototype.hasName = f */ proto.event_store.client.projections.StatisticsReq.Options.prototype.getAll = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -2969,7 +2969,7 @@ proto.event_store.client.projections.StatisticsReq.Options.prototype.hasAll = fu */ proto.event_store.client.projections.StatisticsReq.Options.prototype.getTransient = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -3006,7 +3006,7 @@ proto.event_store.client.projections.StatisticsReq.Options.prototype.hasTransien */ proto.event_store.client.projections.StatisticsReq.Options.prototype.getContinuous = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -3043,7 +3043,7 @@ proto.event_store.client.projections.StatisticsReq.Options.prototype.hasContinuo */ proto.event_store.client.projections.StatisticsReq.Options.prototype.getOneTime = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts new file mode 100644 index 00000000..072bde77 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.d.ts @@ -0,0 +1,42 @@ +// package: event_store.client.server_features +// file: kurrentdb/protocols/v1/serverfeatures.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_serverfeatures_pb from "../../../kurrentdb/protocols/v1/serverfeatures_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; + +interface IServerFeaturesService extends grpc.ServiceDefinition { + getSupportedMethods: IServerFeaturesService_IGetSupportedMethods; +} + +interface IServerFeaturesService_IGetSupportedMethods extends grpc.MethodDefinition { + path: "/event_store.client.server_features.ServerFeatures/GetSupportedMethods"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const ServerFeaturesService: IServerFeaturesService; + +export interface IServerFeaturesServer extends grpc.UntypedServiceImplementation { + getSupportedMethods: grpc.handleUnaryCall; +} + +export interface IServerFeaturesClient { + getSupportedMethods(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; + getSupportedMethods(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; + getSupportedMethods(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; +} + +export class ServerFeaturesClient extends grpc.Client implements IServerFeaturesClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public getSupportedMethods(request: kurrentdb_protocols_v1_shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; + public getSupportedMethods(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; + public getSupportedMethods(request: kurrentdb_protocols_v1_shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/serverfeatures_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.js similarity index 64% rename from packages/db-client/generated/serverfeatures_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.js index bad4fdba..2e8ceafc 100644 --- a/packages/db-client/generated/serverfeatures_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb.js @@ -2,29 +2,29 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var serverfeatures_pb = require('./serverfeatures_pb.js'); -var shared_pb = require('./shared_pb.js'); +var kurrentdb_protocols_v1_serverfeatures_pb = require('../../../kurrentdb/protocols/v1/serverfeatures_pb.js'); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { + if (!(arg instanceof kurrentdb_protocols_v1_shared_pb.Empty)) { throw new Error('Expected argument of type event_store.client.Empty'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_server_features_SupportedMethods(arg) { - if (!(arg instanceof serverfeatures_pb.SupportedMethods)) { + if (!(arg instanceof kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods)) { throw new Error('Expected argument of type event_store.client.server_features.SupportedMethods'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_server_features_SupportedMethods(buffer_arg) { - return serverfeatures_pb.SupportedMethods.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -33,8 +33,8 @@ var ServerFeaturesService = exports.ServerFeaturesService = { path: '/event_store.client.server_features.ServerFeatures/GetSupportedMethods', requestStream: false, responseStream: false, - requestType: shared_pb.Empty, - responseType: serverfeatures_pb.SupportedMethods, + requestType: kurrentdb_protocols_v1_shared_pb.Empty, + responseType: kurrentdb_protocols_v1_serverfeatures_pb.SupportedMethods, requestSerialize: serialize_event_store_client_Empty, requestDeserialize: deserialize_event_store_client_Empty, responseSerialize: serialize_event_store_client_server_features_SupportedMethods, diff --git a/packages/db-client/generated/serverfeatures_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_pb.d.ts similarity index 94% rename from packages/db-client/generated/serverfeatures_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_pb.d.ts index b77e94dd..0281f21f 100644 --- a/packages/db-client/generated/serverfeatures_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_pb.d.ts @@ -1,11 +1,11 @@ // package: event_store.client.server_features -// file: serverfeatures.proto +// file: kurrentdb/protocols/v1/serverfeatures.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; export class SupportedMethods extends jspb.Message { clearMethodsList(): void; diff --git a/packages/db-client/generated/serverfeatures_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_pb.js similarity index 98% rename from packages/db-client/generated/serverfeatures_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_pb.js index 3678923d..ffcdc727 100644 --- a/packages/db-client/generated/serverfeatures_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/serverfeatures_pb.js @@ -1,4 +1,4 @@ -// source: serverfeatures.proto +// source: kurrentdb/protocols/v1/serverfeatures.proto /** * @fileoverview * @enhanceable @@ -21,8 +21,8 @@ var global = (function() { return Function('return this')(); }.call(null)); -var shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_shared_pb); goog.exportSymbol('proto.event_store.client.server_features.SupportedMethod', null, global); goog.exportSymbol('proto.event_store.client.server_features.SupportedMethods', null, global); /** diff --git a/packages/db-client/generated/shared_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/shared_grpc_pb.js similarity index 100% rename from packages/db-client/generated/shared_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/shared_grpc_pb.js diff --git a/packages/db-client/generated/shared_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/shared_pb.d.ts similarity index 99% rename from packages/db-client/generated/shared_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/shared_pb.d.ts index dd1bb4bd..908e105e 100644 --- a/packages/db-client/generated/shared_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/shared_pb.d.ts @@ -1,5 +1,5 @@ // package: event_store.client -// file: shared.proto +// file: kurrentdb/protocols/v1/shared.proto /* tslint:disable */ /* eslint-disable */ diff --git a/packages/db-client/generated/shared_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/shared_pb.js similarity index 99% rename from packages/db-client/generated/shared_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/shared_pb.js index a199e513..8702dc34 100644 --- a/packages/db-client/generated/shared_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/shared_pb.js @@ -1,4 +1,4 @@ -// source: shared.proto +// source: kurrentdb/protocols/v1/shared.proto /** * @fileoverview * @enhanceable diff --git a/packages/db-client/generated/status_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/status_grpc_pb.js similarity index 100% rename from packages/db-client/generated/status_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/status_grpc_pb.js diff --git a/packages/db-client/generated/status_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/status_pb.d.ts similarity index 79% rename from packages/db-client/generated/status_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/status_pb.d.ts index 2cf644f8..7df238cf 100644 --- a/packages/db-client/generated/status_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/status_pb.d.ts @@ -1,16 +1,16 @@ // package: google.rpc -// file: status.proto +// file: kurrentdb/protocols/v1/status.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; -import * as code_pb from "./code_pb"; +import * as kurrentdb_protocols_v1_code_pb from "../../../kurrentdb/protocols/v1/code_pb"; export class Status extends jspb.Message { - getCode(): code_pb.Code; - setCode(value: code_pb.Code): Status; + getCode(): kurrentdb_protocols_v1_code_pb.Code; + setCode(value: kurrentdb_protocols_v1_code_pb.Code): Status; getMessage(): string; setMessage(value: string): Status; @@ -31,7 +31,7 @@ export class Status extends jspb.Message { export namespace Status { export type AsObject = { - code: code_pb.Code, + code: kurrentdb_protocols_v1_code_pb.Code, message: string, details?: google_protobuf_any_pb.Any.AsObject, } diff --git a/packages/db-client/generated/status_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/status_pb.js similarity index 97% rename from packages/db-client/generated/status_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/status_pb.js index 00debc35..af3639aa 100644 --- a/packages/db-client/generated/status_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/status_pb.js @@ -1,4 +1,4 @@ -// source: status.proto +// source: kurrentdb/protocols/v1/status.proto /** * @fileoverview * @enhanceable @@ -23,8 +23,8 @@ var global = (function() { var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); -var code_pb = require('./code_pb.js'); -goog.object.extend(proto, code_pb); +var kurrentdb_protocols_v1_code_pb = require('../../../kurrentdb/protocols/v1/code_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_code_pb); goog.exportSymbol('proto.google.rpc.Status', null, global); /** * Generated by JsPbCodeGenerator. diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts new file mode 100644 index 00000000..65284ce0 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.d.ts @@ -0,0 +1,113 @@ +// package: event_store.client.streams +// file: kurrentdb/protocols/v1/streams.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_streams_pb from "../../../kurrentdb/protocols/v1/streams_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; +import * as kurrentdb_protocols_v1_status_pb from "../../../kurrentdb/protocols/v1/status_pb"; +import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; +import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; + +interface IStreamsService extends grpc.ServiceDefinition { + read: IStreamsService_IRead; + append: IStreamsService_IAppend; + delete: IStreamsService_IDelete; + tombstone: IStreamsService_ITombstone; + batchAppend: IStreamsService_IBatchAppend; +} + +interface IStreamsService_IRead extends grpc.MethodDefinition { + path: "/event_store.client.streams.Streams/Read"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsService_IAppend extends grpc.MethodDefinition { + path: "/event_store.client.streams.Streams/Append"; + requestStream: true; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.streams.Streams/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsService_ITombstone extends grpc.MethodDefinition { + path: "/event_store.client.streams.Streams/Tombstone"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsService_IBatchAppend extends grpc.MethodDefinition { + path: "/event_store.client.streams.Streams/BatchAppend"; + requestStream: true; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const StreamsService: IStreamsService; + +export interface IStreamsServer extends grpc.UntypedServiceImplementation { + read: grpc.handleServerStreamingCall; + append: grpc.handleClientStreamingCall; + delete: grpc.handleUnaryCall; + tombstone: grpc.handleUnaryCall; + batchAppend: grpc.handleBidiStreamingCall; +} + +export interface IStreamsClient { + read(request: kurrentdb_protocols_v1_streams_pb.ReadReq, options?: Partial): grpc.ClientReadableStream; + read(request: kurrentdb_protocols_v1_streams_pb.ReadReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + append(callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + append(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + append(options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + append(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + delete(request: kurrentdb_protocols_v1_streams_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_streams_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_streams_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; + tombstone(request: kurrentdb_protocols_v1_streams_pb.TombstoneReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; + tombstone(request: kurrentdb_protocols_v1_streams_pb.TombstoneReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; + tombstone(request: kurrentdb_protocols_v1_streams_pb.TombstoneReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; + batchAppend(): grpc.ClientDuplexStream; + batchAppend(options: Partial): grpc.ClientDuplexStream; + batchAppend(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; +} + +export class StreamsClient extends grpc.Client implements IStreamsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public read(request: kurrentdb_protocols_v1_streams_pb.ReadReq, options?: Partial): grpc.ClientReadableStream; + public read(request: kurrentdb_protocols_v1_streams_pb.ReadReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public append(callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + public append(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + public append(options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + public append(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.AppendResp) => void): grpc.ClientWritableStream; + public delete(request: kurrentdb_protocols_v1_streams_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_streams_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_streams_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public tombstone(request: kurrentdb_protocols_v1_streams_pb.TombstoneReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; + public tombstone(request: kurrentdb_protocols_v1_streams_pb.TombstoneReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; + public tombstone(request: kurrentdb_protocols_v1_streams_pb.TombstoneReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; + public batchAppend(options?: Partial): grpc.ClientDuplexStream; + public batchAppend(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; +} diff --git a/packages/db-client/generated/streams_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.js similarity index 67% rename from packages/db-client/generated/streams_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.js index 429f3147..2268c36b 100644 --- a/packages/db-client/generated/streams_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/streams_grpc_pb.js @@ -2,121 +2,121 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var streams_pb = require('./streams_pb.js'); -var shared_pb = require('./shared_pb.js'); -var status_pb = require('./status_pb.js'); +var kurrentdb_protocols_v1_streams_pb = require('../../../kurrentdb/protocols/v1/streams_pb.js'); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +var kurrentdb_protocols_v1_status_pb = require('../../../kurrentdb/protocols/v1/status_pb.js'); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); function serialize_event_store_client_streams_AppendReq(arg) { - if (!(arg instanceof streams_pb.AppendReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.AppendReq)) { throw new Error('Expected argument of type event_store.client.streams.AppendReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_AppendReq(buffer_arg) { - return streams_pb.AppendReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.AppendReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_AppendResp(arg) { - if (!(arg instanceof streams_pb.AppendResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.AppendResp)) { throw new Error('Expected argument of type event_store.client.streams.AppendResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_AppendResp(buffer_arg) { - return streams_pb.AppendResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.AppendResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_BatchAppendReq(arg) { - if (!(arg instanceof streams_pb.BatchAppendReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.BatchAppendReq)) { throw new Error('Expected argument of type event_store.client.streams.BatchAppendReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_BatchAppendReq(buffer_arg) { - return streams_pb.BatchAppendReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.BatchAppendReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_BatchAppendResp(arg) { - if (!(arg instanceof streams_pb.BatchAppendResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.BatchAppendResp)) { throw new Error('Expected argument of type event_store.client.streams.BatchAppendResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_BatchAppendResp(buffer_arg) { - return streams_pb.BatchAppendResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.BatchAppendResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_DeleteReq(arg) { - if (!(arg instanceof streams_pb.DeleteReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.DeleteReq)) { throw new Error('Expected argument of type event_store.client.streams.DeleteReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_DeleteReq(buffer_arg) { - return streams_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_DeleteResp(arg) { - if (!(arg instanceof streams_pb.DeleteResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.DeleteResp)) { throw new Error('Expected argument of type event_store.client.streams.DeleteResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_DeleteResp(buffer_arg) { - return streams_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_ReadReq(arg) { - if (!(arg instanceof streams_pb.ReadReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.ReadReq)) { throw new Error('Expected argument of type event_store.client.streams.ReadReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_ReadReq(buffer_arg) { - return streams_pb.ReadReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.ReadReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_ReadResp(arg) { - if (!(arg instanceof streams_pb.ReadResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.ReadResp)) { throw new Error('Expected argument of type event_store.client.streams.ReadResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_ReadResp(buffer_arg) { - return streams_pb.ReadResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.ReadResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_TombstoneReq(arg) { - if (!(arg instanceof streams_pb.TombstoneReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.TombstoneReq)) { throw new Error('Expected argument of type event_store.client.streams.TombstoneReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_TombstoneReq(buffer_arg) { - return streams_pb.TombstoneReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.TombstoneReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_streams_TombstoneResp(arg) { - if (!(arg instanceof streams_pb.TombstoneResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_streams_pb.TombstoneResp)) { throw new Error('Expected argument of type event_store.client.streams.TombstoneResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_streams_TombstoneResp(buffer_arg) { - return streams_pb.TombstoneResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_streams_pb.TombstoneResp.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -125,8 +125,8 @@ var StreamsService = exports.StreamsService = { path: '/event_store.client.streams.Streams/Read', requestStream: false, responseStream: true, - requestType: streams_pb.ReadReq, - responseType: streams_pb.ReadResp, + requestType: kurrentdb_protocols_v1_streams_pb.ReadReq, + responseType: kurrentdb_protocols_v1_streams_pb.ReadResp, requestSerialize: serialize_event_store_client_streams_ReadReq, requestDeserialize: deserialize_event_store_client_streams_ReadReq, responseSerialize: serialize_event_store_client_streams_ReadResp, @@ -136,8 +136,8 @@ var StreamsService = exports.StreamsService = { path: '/event_store.client.streams.Streams/Append', requestStream: true, responseStream: false, - requestType: streams_pb.AppendReq, - responseType: streams_pb.AppendResp, + requestType: kurrentdb_protocols_v1_streams_pb.AppendReq, + responseType: kurrentdb_protocols_v1_streams_pb.AppendResp, requestSerialize: serialize_event_store_client_streams_AppendReq, requestDeserialize: deserialize_event_store_client_streams_AppendReq, responseSerialize: serialize_event_store_client_streams_AppendResp, @@ -147,8 +147,8 @@ var StreamsService = exports.StreamsService = { path: '/event_store.client.streams.Streams/Delete', requestStream: false, responseStream: false, - requestType: streams_pb.DeleteReq, - responseType: streams_pb.DeleteResp, + requestType: kurrentdb_protocols_v1_streams_pb.DeleteReq, + responseType: kurrentdb_protocols_v1_streams_pb.DeleteResp, requestSerialize: serialize_event_store_client_streams_DeleteReq, requestDeserialize: deserialize_event_store_client_streams_DeleteReq, responseSerialize: serialize_event_store_client_streams_DeleteResp, @@ -158,8 +158,8 @@ var StreamsService = exports.StreamsService = { path: '/event_store.client.streams.Streams/Tombstone', requestStream: false, responseStream: false, - requestType: streams_pb.TombstoneReq, - responseType: streams_pb.TombstoneResp, + requestType: kurrentdb_protocols_v1_streams_pb.TombstoneReq, + responseType: kurrentdb_protocols_v1_streams_pb.TombstoneResp, requestSerialize: serialize_event_store_client_streams_TombstoneReq, requestDeserialize: deserialize_event_store_client_streams_TombstoneReq, responseSerialize: serialize_event_store_client_streams_TombstoneResp, @@ -169,8 +169,8 @@ var StreamsService = exports.StreamsService = { path: '/event_store.client.streams.Streams/BatchAppend', requestStream: true, responseStream: true, - requestType: streams_pb.BatchAppendReq, - responseType: streams_pb.BatchAppendResp, + requestType: kurrentdb_protocols_v1_streams_pb.BatchAppendReq, + responseType: kurrentdb_protocols_v1_streams_pb.BatchAppendResp, requestSerialize: serialize_event_store_client_streams_BatchAppendReq, requestDeserialize: deserialize_event_store_client_streams_BatchAppendReq, responseSerialize: serialize_event_store_client_streams_BatchAppendResp, diff --git a/packages/db-client/generated/streams_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/streams_pb.d.ts similarity index 84% rename from packages/db-client/generated/streams_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/streams_pb.d.ts index 58c13289..1ccdb3e7 100644 --- a/packages/db-client/generated/streams_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/streams_pb.d.ts @@ -1,12 +1,12 @@ // package: event_store.client.streams -// file: streams.proto +// file: kurrentdb/protocols/v1/streams.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; -import * as status_pb from "./status_pb"; +import * as kurrentdb_protocols_v1_shared_pb from "../../../kurrentdb/protocols/v1/shared_pb"; +import * as kurrentdb_protocols_v1_status_pb from "../../../kurrentdb/protocols/v1/status_pb"; import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; @@ -67,8 +67,8 @@ export namespace ReadReq { hasNoFilter(): boolean; clearNoFilter(): void; - getNoFilter(): shared_pb.Empty | undefined; - setNoFilter(value?: shared_pb.Empty): Options; + getNoFilter(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoFilter(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasUuidOption(): boolean; clearUuidOption(): void; @@ -103,7 +103,7 @@ export namespace ReadReq { count: string, subscription?: ReadReq.Options.SubscriptionOptions.AsObject, filter?: ReadReq.Options.FilterOptions.AsObject, - noFilter?: shared_pb.Empty.AsObject, + noFilter?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, uuidOption?: ReadReq.Options.UUIDOption.AsObject, controlOption?: ReadReq.Options.ControlOption.AsObject, } @@ -113,8 +113,8 @@ export namespace ReadReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): StreamOptions; hasRevision(): boolean; clearRevision(): void; @@ -123,13 +123,13 @@ export namespace ReadReq { hasStart(): boolean; clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): StreamOptions; + getStart(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStart(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOptions; hasEnd(): boolean; clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): StreamOptions; + getEnd(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setEnd(value?: kurrentdb_protocols_v1_shared_pb.Empty): StreamOptions; getRevisionOptionCase(): StreamOptions.RevisionOptionCase; @@ -145,10 +145,10 @@ export namespace ReadReq { export namespace StreamOptions { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, revision: string, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, + start?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + end?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum RevisionOptionCase { @@ -169,13 +169,13 @@ export namespace ReadReq { hasStart(): boolean; clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): AllOptions; + getStart(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStart(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; hasEnd(): boolean; clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): AllOptions; + getEnd(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setEnd(value?: kurrentdb_protocols_v1_shared_pb.Empty): AllOptions; getAllOptionCase(): AllOptions.AllOptionCase; @@ -192,8 +192,8 @@ export namespace ReadReq { export namespace AllOptions { export type AsObject = { position?: ReadReq.Options.Position.AsObject, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, + start?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + end?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum AllOptionCase { @@ -264,8 +264,8 @@ export namespace ReadReq { hasCount(): boolean; clearCount(): void; - getCount(): shared_pb.Empty | undefined; - setCount(value?: shared_pb.Empty): FilterOptions; + getCount(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setCount(value?: kurrentdb_protocols_v1_shared_pb.Empty): FilterOptions; getCheckpointintervalmultiplier(): number; setCheckpointintervalmultiplier(value: number): FilterOptions; @@ -287,7 +287,7 @@ export namespace ReadReq { streamIdentifier?: ReadReq.Options.FilterOptions.Expression.AsObject, eventType?: ReadReq.Options.FilterOptions.Expression.AsObject, max: number, - count?: shared_pb.Empty.AsObject, + count?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, checkpointintervalmultiplier: number, } @@ -336,13 +336,13 @@ export namespace ReadReq { hasStructured(): boolean; clearStructured(): void; - getStructured(): shared_pb.Empty | undefined; - setStructured(value?: shared_pb.Empty): UUIDOption; + getStructured(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStructured(value?: kurrentdb_protocols_v1_shared_pb.Empty): UUIDOption; hasString(): boolean; clearString(): void; - getString(): shared_pb.Empty | undefined; - setString(value?: shared_pb.Empty): UUIDOption; + getString(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setString(value?: kurrentdb_protocols_v1_shared_pb.Empty): UUIDOption; getContentCase(): UUIDOption.ContentCase; @@ -358,8 +358,8 @@ export namespace ReadReq { export namespace UUIDOption { export type AsObject = { - structured?: shared_pb.Empty.AsObject, - string?: shared_pb.Empty.AsObject, + structured?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + string?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum ContentCase { @@ -453,8 +453,8 @@ export class ReadResp extends jspb.Message { hasLastAllStreamPosition(): boolean; clearLastAllStreamPosition(): void; - getLastAllStreamPosition(): shared_pb.AllStreamPosition | undefined; - setLastAllStreamPosition(value?: shared_pb.AllStreamPosition): ReadResp; + getLastAllStreamPosition(): kurrentdb_protocols_v1_shared_pb.AllStreamPosition | undefined; + setLastAllStreamPosition(value?: kurrentdb_protocols_v1_shared_pb.AllStreamPosition): ReadResp; hasCaughtUp(): boolean; clearCaughtUp(): void; @@ -486,7 +486,7 @@ export namespace ReadResp { streamNotFound?: ReadResp.StreamNotFound.AsObject, firstStreamPosition: string, lastStreamPosition: string, - lastAllStreamPosition?: shared_pb.AllStreamPosition.AsObject, + lastAllStreamPosition?: kurrentdb_protocols_v1_shared_pb.AllStreamPosition.AsObject, caughtUp?: ReadResp.CaughtUp.AsObject, fellBehind?: ReadResp.FellBehind.AsObject, } @@ -581,8 +581,8 @@ export namespace ReadResp { hasNoPosition(): boolean; clearNoPosition(): void; - getNoPosition(): shared_pb.Empty | undefined; - setNoPosition(value?: shared_pb.Empty): ReadEvent; + getNoPosition(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoPosition(value?: kurrentdb_protocols_v1_shared_pb.Empty): ReadEvent; getPositionCase(): ReadEvent.PositionCase; @@ -601,7 +601,7 @@ export namespace ReadResp { event?: ReadResp.ReadEvent.RecordedEvent.AsObject, link?: ReadResp.ReadEvent.RecordedEvent.AsObject, commitPosition: string, - noPosition?: shared_pb.Empty.AsObject, + noPosition?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } @@ -609,13 +609,13 @@ export namespace ReadResp { hasId(): boolean; clearId(): void; - getId(): shared_pb.UUID | undefined; - setId(value?: shared_pb.UUID): RecordedEvent; + getId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setId(value?: kurrentdb_protocols_v1_shared_pb.UUID): RecordedEvent; hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): RecordedEvent; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): RecordedEvent; getStreamRevision(): string; setStreamRevision(value: string): RecordedEvent; getPreparePosition(): string; @@ -646,8 +646,8 @@ export namespace ReadResp { export namespace RecordedEvent { export type AsObject = { - id?: shared_pb.UUID.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + id?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, streamRevision: string, preparePosition: string, commitPosition: string, @@ -743,8 +743,8 @@ export namespace ReadResp { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamNotFound; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): StreamNotFound; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StreamNotFound.AsObject; @@ -758,7 +758,7 @@ export namespace ReadResp { export namespace StreamNotFound { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, } } @@ -813,8 +813,8 @@ export namespace AppendReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasRevision(): boolean; clearRevision(): void; @@ -823,18 +823,18 @@ export namespace AppendReq { hasNoStream(): boolean; clearNoStream(): void; - getNoStream(): shared_pb.Empty | undefined; - setNoStream(value?: shared_pb.Empty): Options; + getNoStream(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoStream(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasAny(): boolean; clearAny(): void; - getAny(): shared_pb.Empty | undefined; - setAny(value?: shared_pb.Empty): Options; + getAny(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAny(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasStreamExists(): boolean; clearStreamExists(): void; - getStreamExists(): shared_pb.Empty | undefined; - setStreamExists(value?: shared_pb.Empty): Options; + getStreamExists(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStreamExists(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getExpectedStreamRevisionCase(): Options.ExpectedStreamRevisionCase; @@ -850,11 +850,11 @@ export namespace AppendReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, revision: string, - noStream?: shared_pb.Empty.AsObject, - any?: shared_pb.Empty.AsObject, - streamExists?: shared_pb.Empty.AsObject, + noStream?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + any?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + streamExists?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum ExpectedStreamRevisionCase { @@ -871,8 +871,8 @@ export namespace AppendReq { hasId(): boolean; clearId(): void; - getId(): shared_pb.UUID | undefined; - setId(value?: shared_pb.UUID): ProposedMessage; + getId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setId(value?: kurrentdb_protocols_v1_shared_pb.UUID): ProposedMessage; getMetadataMap(): jspb.Map; clearMetadataMap(): void; @@ -897,7 +897,7 @@ export namespace AppendReq { export namespace ProposedMessage { export type AsObject = { - id?: shared_pb.UUID.AsObject, + id?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, metadataMap: Array<[string, string]>, customMetadata: Uint8Array | string, @@ -977,8 +977,8 @@ export namespace AppendResp { hasNoStream(): boolean; clearNoStream(): void; - getNoStream(): shared_pb.Empty | undefined; - setNoStream(value?: shared_pb.Empty): Success; + getNoStream(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoStream(value?: kurrentdb_protocols_v1_shared_pb.Empty): Success; hasPosition(): boolean; clearPosition(): void; @@ -987,8 +987,8 @@ export namespace AppendResp { hasNoPosition(): boolean; clearNoPosition(): void; - getNoPosition(): shared_pb.Empty | undefined; - setNoPosition(value?: shared_pb.Empty): Success; + getNoPosition(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoPosition(value?: kurrentdb_protocols_v1_shared_pb.Empty): Success; getCurrentRevisionOptionCase(): Success.CurrentRevisionOptionCase; getPositionOptionCase(): Success.PositionOptionCase; @@ -1006,9 +1006,9 @@ export namespace AppendResp { export namespace Success { export type AsObject = { currentRevision: string, - noStream?: shared_pb.Empty.AsObject, + noStream?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, position?: AppendResp.Position.AsObject, - noPosition?: shared_pb.Empty.AsObject, + noPosition?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum CurrentRevisionOptionCase { @@ -1034,8 +1034,8 @@ export namespace AppendResp { hasNoStream2060(): boolean; clearNoStream2060(): void; - getNoStream2060(): shared_pb.Empty | undefined; - setNoStream2060(value?: shared_pb.Empty): WrongExpectedVersion; + getNoStream2060(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoStream2060(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; hasExpectedRevision2060(): boolean; clearExpectedRevision2060(): void; @@ -1044,13 +1044,13 @@ export namespace AppendResp { hasAny2060(): boolean; clearAny2060(): void; - getAny2060(): shared_pb.Empty | undefined; - setAny2060(value?: shared_pb.Empty): WrongExpectedVersion; + getAny2060(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAny2060(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; hasStreamExists2060(): boolean; clearStreamExists2060(): void; - getStreamExists2060(): shared_pb.Empty | undefined; - setStreamExists2060(value?: shared_pb.Empty): WrongExpectedVersion; + getStreamExists2060(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStreamExists2060(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; hasCurrentRevision(): boolean; clearCurrentRevision(): void; @@ -1059,8 +1059,8 @@ export namespace AppendResp { hasCurrentNoStream(): boolean; clearCurrentNoStream(): void; - getCurrentNoStream(): shared_pb.Empty | undefined; - setCurrentNoStream(value?: shared_pb.Empty): WrongExpectedVersion; + getCurrentNoStream(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setCurrentNoStream(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; hasExpectedRevision(): boolean; clearExpectedRevision(): void; @@ -1069,18 +1069,18 @@ export namespace AppendResp { hasExpectedAny(): boolean; clearExpectedAny(): void; - getExpectedAny(): shared_pb.Empty | undefined; - setExpectedAny(value?: shared_pb.Empty): WrongExpectedVersion; + getExpectedAny(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setExpectedAny(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; hasExpectedStreamExists(): boolean; clearExpectedStreamExists(): void; - getExpectedStreamExists(): shared_pb.Empty | undefined; - setExpectedStreamExists(value?: shared_pb.Empty): WrongExpectedVersion; + getExpectedStreamExists(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setExpectedStreamExists(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; hasExpectedNoStream(): boolean; clearExpectedNoStream(): void; - getExpectedNoStream(): shared_pb.Empty | undefined; - setExpectedNoStream(value?: shared_pb.Empty): WrongExpectedVersion; + getExpectedNoStream(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setExpectedNoStream(value?: kurrentdb_protocols_v1_shared_pb.Empty): WrongExpectedVersion; getCurrentRevisionOption2060Case(): WrongExpectedVersion.CurrentRevisionOption2060Case; getExpectedRevisionOption2060Case(): WrongExpectedVersion.ExpectedRevisionOption2060Case; @@ -1100,16 +1100,16 @@ export namespace AppendResp { export namespace WrongExpectedVersion { export type AsObject = { currentRevision2060: number, - noStream2060?: shared_pb.Empty.AsObject, + noStream2060?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, expectedRevision2060: number, - any2060?: shared_pb.Empty.AsObject, - streamExists2060?: shared_pb.Empty.AsObject, + any2060?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + streamExists2060?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, currentRevision: string, - currentNoStream?: shared_pb.Empty.AsObject, + currentNoStream?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, expectedRevision: string, - expectedAny?: shared_pb.Empty.AsObject, - expectedStreamExists?: shared_pb.Empty.AsObject, - expectedNoStream?: shared_pb.Empty.AsObject, + expectedAny?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + expectedStreamExists?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + expectedNoStream?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum CurrentRevisionOption2060Case { @@ -1154,8 +1154,8 @@ export class BatchAppendReq extends jspb.Message { hasCorrelationId(): boolean; clearCorrelationId(): void; - getCorrelationId(): shared_pb.UUID | undefined; - setCorrelationId(value?: shared_pb.UUID): BatchAppendReq; + getCorrelationId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setCorrelationId(value?: kurrentdb_protocols_v1_shared_pb.UUID): BatchAppendReq; hasOptions(): boolean; clearOptions(): void; @@ -1180,7 +1180,7 @@ export class BatchAppendReq extends jspb.Message { export namespace BatchAppendReq { export type AsObject = { - correlationId?: shared_pb.UUID.AsObject, + correlationId?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, options?: BatchAppendReq.Options.AsObject, proposedMessagesList: Array, isFinal: boolean, @@ -1191,8 +1191,8 @@ export namespace BatchAppendReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasStreamPosition(): boolean; clearStreamPosition(): void; @@ -1239,7 +1239,7 @@ export namespace BatchAppendReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, streamPosition: string, noStream?: google_protobuf_empty_pb.Empty.AsObject, any?: google_protobuf_empty_pb.Empty.AsObject, @@ -1268,8 +1268,8 @@ export namespace BatchAppendReq { hasId(): boolean; clearId(): void; - getId(): shared_pb.UUID | undefined; - setId(value?: shared_pb.UUID): ProposedMessage; + getId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setId(value?: kurrentdb_protocols_v1_shared_pb.UUID): ProposedMessage; getMetadataMap(): jspb.Map; clearMetadataMap(): void; @@ -1294,7 +1294,7 @@ export namespace BatchAppendReq { export namespace ProposedMessage { export type AsObject = { - id?: shared_pb.UUID.AsObject, + id?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, metadataMap: Array<[string, string]>, customMetadata: Uint8Array | string, @@ -1308,13 +1308,13 @@ export class BatchAppendResp extends jspb.Message { hasCorrelationId(): boolean; clearCorrelationId(): void; - getCorrelationId(): shared_pb.UUID | undefined; - setCorrelationId(value?: shared_pb.UUID): BatchAppendResp; + getCorrelationId(): kurrentdb_protocols_v1_shared_pb.UUID | undefined; + setCorrelationId(value?: kurrentdb_protocols_v1_shared_pb.UUID): BatchAppendResp; hasError(): boolean; clearError(): void; - getError(): status_pb.Status | undefined; - setError(value?: status_pb.Status): BatchAppendResp; + getError(): kurrentdb_protocols_v1_status_pb.Status | undefined; + setError(value?: kurrentdb_protocols_v1_status_pb.Status): BatchAppendResp; hasSuccess(): boolean; clearSuccess(): void; @@ -1323,8 +1323,8 @@ export class BatchAppendResp extends jspb.Message { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): BatchAppendResp; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): BatchAppendResp; hasStreamPosition(): boolean; clearStreamPosition(): void; @@ -1361,10 +1361,10 @@ export class BatchAppendResp extends jspb.Message { export namespace BatchAppendResp { export type AsObject = { - correlationId?: shared_pb.UUID.AsObject, - error?: status_pb.Status.AsObject, + correlationId?: kurrentdb_protocols_v1_shared_pb.UUID.AsObject, + error?: kurrentdb_protocols_v1_status_pb.Status.AsObject, success?: BatchAppendResp.Success.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, streamPosition: string, noStream?: google_protobuf_empty_pb.Empty.AsObject, any?: google_protobuf_empty_pb.Empty.AsObject, @@ -1386,8 +1386,8 @@ export namespace BatchAppendResp { hasPosition(): boolean; clearPosition(): void; - getPosition(): shared_pb.AllStreamPosition | undefined; - setPosition(value?: shared_pb.AllStreamPosition): Success; + getPosition(): kurrentdb_protocols_v1_shared_pb.AllStreamPosition | undefined; + setPosition(value?: kurrentdb_protocols_v1_shared_pb.AllStreamPosition): Success; hasNoPosition(): boolean; clearNoPosition(): void; @@ -1411,7 +1411,7 @@ export namespace BatchAppendResp { export type AsObject = { currentRevision: string, noStream?: google_protobuf_empty_pb.Empty.AsObject, - position?: shared_pb.AllStreamPosition.AsObject, + position?: kurrentdb_protocols_v1_shared_pb.AllStreamPosition.AsObject, noPosition?: google_protobuf_empty_pb.Empty.AsObject, } @@ -1473,8 +1473,8 @@ export namespace DeleteReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasRevision(): boolean; clearRevision(): void; @@ -1483,18 +1483,18 @@ export namespace DeleteReq { hasNoStream(): boolean; clearNoStream(): void; - getNoStream(): shared_pb.Empty | undefined; - setNoStream(value?: shared_pb.Empty): Options; + getNoStream(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoStream(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasAny(): boolean; clearAny(): void; - getAny(): shared_pb.Empty | undefined; - setAny(value?: shared_pb.Empty): Options; + getAny(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAny(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasStreamExists(): boolean; clearStreamExists(): void; - getStreamExists(): shared_pb.Empty | undefined; - setStreamExists(value?: shared_pb.Empty): Options; + getStreamExists(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStreamExists(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getExpectedStreamRevisionCase(): Options.ExpectedStreamRevisionCase; @@ -1510,11 +1510,11 @@ export namespace DeleteReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, revision: string, - noStream?: shared_pb.Empty.AsObject, - any?: shared_pb.Empty.AsObject, - streamExists?: shared_pb.Empty.AsObject, + noStream?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + any?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + streamExists?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum ExpectedStreamRevisionCase { @@ -1538,8 +1538,8 @@ export class DeleteResp extends jspb.Message { hasNoPosition(): boolean; clearNoPosition(): void; - getNoPosition(): shared_pb.Empty | undefined; - setNoPosition(value?: shared_pb.Empty): DeleteResp; + getNoPosition(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoPosition(value?: kurrentdb_protocols_v1_shared_pb.Empty): DeleteResp; getPositionOptionCase(): DeleteResp.PositionOptionCase; @@ -1556,7 +1556,7 @@ export class DeleteResp extends jspb.Message { export namespace DeleteResp { export type AsObject = { position?: DeleteResp.Position.AsObject, - noPosition?: shared_pb.Empty.AsObject, + noPosition?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } @@ -1619,8 +1619,8 @@ export namespace TombstoneReq { hasStreamIdentifier(): boolean; clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; + getStreamIdentifier(): kurrentdb_protocols_v1_shared_pb.StreamIdentifier | undefined; + setStreamIdentifier(value?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier): Options; hasRevision(): boolean; clearRevision(): void; @@ -1629,18 +1629,18 @@ export namespace TombstoneReq { hasNoStream(): boolean; clearNoStream(): void; - getNoStream(): shared_pb.Empty | undefined; - setNoStream(value?: shared_pb.Empty): Options; + getNoStream(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoStream(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasAny(): boolean; clearAny(): void; - getAny(): shared_pb.Empty | undefined; - setAny(value?: shared_pb.Empty): Options; + getAny(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setAny(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; hasStreamExists(): boolean; clearStreamExists(): void; - getStreamExists(): shared_pb.Empty | undefined; - setStreamExists(value?: shared_pb.Empty): Options; + getStreamExists(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setStreamExists(value?: kurrentdb_protocols_v1_shared_pb.Empty): Options; getExpectedStreamRevisionCase(): Options.ExpectedStreamRevisionCase; @@ -1656,11 +1656,11 @@ export namespace TombstoneReq { export namespace Options { export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, + streamIdentifier?: kurrentdb_protocols_v1_shared_pb.StreamIdentifier.AsObject, revision: string, - noStream?: shared_pb.Empty.AsObject, - any?: shared_pb.Empty.AsObject, - streamExists?: shared_pb.Empty.AsObject, + noStream?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + any?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, + streamExists?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } export enum ExpectedStreamRevisionCase { @@ -1684,8 +1684,8 @@ export class TombstoneResp extends jspb.Message { hasNoPosition(): boolean; clearNoPosition(): void; - getNoPosition(): shared_pb.Empty | undefined; - setNoPosition(value?: shared_pb.Empty): TombstoneResp; + getNoPosition(): kurrentdb_protocols_v1_shared_pb.Empty | undefined; + setNoPosition(value?: kurrentdb_protocols_v1_shared_pb.Empty): TombstoneResp; getPositionOptionCase(): TombstoneResp.PositionOptionCase; @@ -1702,7 +1702,7 @@ export class TombstoneResp extends jspb.Message { export namespace TombstoneResp { export type AsObject = { position?: TombstoneResp.Position.AsObject, - noPosition?: shared_pb.Empty.AsObject, + noPosition?: kurrentdb_protocols_v1_shared_pb.Empty.AsObject, } diff --git a/packages/db-client/generated/streams_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/streams_pb.js similarity index 95% rename from packages/db-client/generated/streams_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/streams_pb.js index 05e64f97..b1ac9cf4 100644 --- a/packages/db-client/generated/streams_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/streams_pb.js @@ -1,4 +1,4 @@ -// source: streams.proto +// source: kurrentdb/protocols/v1/streams.proto /** * @fileoverview * @enhanceable @@ -21,10 +21,10 @@ var global = (function() { return Function('return this')(); }.call(null)); -var shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); -var status_pb = require('./status_pb.js'); -goog.object.extend(proto, status_pb); +var kurrentdb_protocols_v1_shared_pb = require('../../../kurrentdb/protocols/v1/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_shared_pb); +var kurrentdb_protocols_v1_status_pb = require('../../../kurrentdb/protocols/v1/status_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v1_status_pb); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); goog.object.extend(proto, google_protobuf_duration_pb); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); @@ -1130,7 +1130,7 @@ proto.event_store.client.streams.ReadReq.Options.toObject = function(includeInst count: jspb.Message.getFieldWithDefault(msg, 5, "0"), subscription: (f = msg.getSubscription()) && proto.event_store.client.streams.ReadReq.Options.SubscriptionOptions.toObject(includeInstance, f), filter: (f = msg.getFilter()) && proto.event_store.client.streams.ReadReq.Options.FilterOptions.toObject(includeInstance, f), - noFilter: (f = msg.getNoFilter()) && shared_pb.Empty.toObject(includeInstance, f), + noFilter: (f = msg.getNoFilter()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), uuidOption: (f = msg.getUuidOption()) && proto.event_store.client.streams.ReadReq.Options.UUIDOption.toObject(includeInstance, f), controlOption: (f = msg.getControlOption()) && proto.event_store.client.streams.ReadReq.Options.ControlOption.toObject(includeInstance, f) }; @@ -1202,8 +1202,8 @@ proto.event_store.client.streams.ReadReq.Options.deserializeBinaryFromReader = f msg.setFilter(value); break; case 8: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoFilter(value); break; case 9: @@ -1303,7 +1303,7 @@ proto.event_store.client.streams.ReadReq.Options.serializeBinaryToWriter = funct writer.writeMessage( 8, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getUuidOption(); @@ -1392,10 +1392,10 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.prototype.toObjec */ proto.event_store.client.streams.ReadReq.Options.StreamOptions.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f) + start: (f = msg.getStart()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -1433,8 +1433,8 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.deserializeBinary var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -1442,13 +1442,13 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.deserializeBinary msg.setRevision(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStart(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setEnd(value); break; default: @@ -1485,7 +1485,7 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.serializeBinaryTo writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -1500,7 +1500,7 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.serializeBinaryTo writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getEnd(); @@ -1508,7 +1508,7 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.serializeBinaryTo writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -1520,7 +1520,7 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.serializeBinaryTo */ proto.event_store.client.streams.ReadReq.Options.StreamOptions.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -1593,7 +1593,7 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.prototype.hasRevi */ proto.event_store.client.streams.ReadReq.Options.StreamOptions.prototype.getStart = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -1630,7 +1630,7 @@ proto.event_store.client.streams.ReadReq.Options.StreamOptions.prototype.hasStar */ proto.event_store.client.streams.ReadReq.Options.StreamOptions.prototype.getEnd = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -1721,8 +1721,8 @@ proto.event_store.client.streams.ReadReq.Options.AllOptions.prototype.toObject = proto.event_store.client.streams.ReadReq.Options.AllOptions.toObject = function(includeInstance, msg) { var f, obj = { position: (f = msg.getPosition()) && proto.event_store.client.streams.ReadReq.Options.Position.toObject(includeInstance, f), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f) + start: (f = msg.getStart()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + end: (f = msg.getEnd()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -1765,13 +1765,13 @@ proto.event_store.client.streams.ReadReq.Options.AllOptions.deserializeBinaryFro msg.setPosition(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStart(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setEnd(value); break; default: @@ -1816,7 +1816,7 @@ proto.event_store.client.streams.ReadReq.Options.AllOptions.serializeBinaryToWri writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getEnd(); @@ -1824,7 +1824,7 @@ proto.event_store.client.streams.ReadReq.Options.AllOptions.serializeBinaryToWri writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -1873,7 +1873,7 @@ proto.event_store.client.streams.ReadReq.Options.AllOptions.prototype.hasPositio */ proto.event_store.client.streams.ReadReq.Options.AllOptions.prototype.getStart = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -1910,7 +1910,7 @@ proto.event_store.client.streams.ReadReq.Options.AllOptions.prototype.hasStart = */ proto.event_store.client.streams.ReadReq.Options.AllOptions.prototype.getEnd = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -2279,7 +2279,7 @@ proto.event_store.client.streams.ReadReq.Options.FilterOptions.toObject = functi streamIdentifier: (f = msg.getStreamIdentifier()) && proto.event_store.client.streams.ReadReq.Options.FilterOptions.Expression.toObject(includeInstance, f), eventType: (f = msg.getEventType()) && proto.event_store.client.streams.ReadReq.Options.FilterOptions.Expression.toObject(includeInstance, f), max: jspb.Message.getFieldWithDefault(msg, 3, 0), - count: (f = msg.getCount()) && shared_pb.Empty.toObject(includeInstance, f), + count: (f = msg.getCount()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), checkpointintervalmultiplier: jspb.Message.getFieldWithDefault(msg, 5, 0) }; @@ -2332,8 +2332,8 @@ proto.event_store.client.streams.ReadReq.Options.FilterOptions.deserializeBinary msg.setMax(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setCount(value); break; case 5: @@ -2397,7 +2397,7 @@ proto.event_store.client.streams.ReadReq.Options.FilterOptions.serializeBinaryTo writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getCheckpointintervalmultiplier(); @@ -2712,7 +2712,7 @@ proto.event_store.client.streams.ReadReq.Options.FilterOptions.prototype.hasMax */ proto.event_store.client.streams.ReadReq.Options.FilterOptions.prototype.getCount = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -2819,8 +2819,8 @@ proto.event_store.client.streams.ReadReq.Options.UUIDOption.prototype.toObject = */ proto.event_store.client.streams.ReadReq.Options.UUIDOption.toObject = function(includeInstance, msg) { var f, obj = { - structured: (f = msg.getStructured()) && shared_pb.Empty.toObject(includeInstance, f), - string: (f = msg.getString()) && shared_pb.Empty.toObject(includeInstance, f) + structured: (f = msg.getStructured()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + string: (f = msg.getString()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -2858,13 +2858,13 @@ proto.event_store.client.streams.ReadReq.Options.UUIDOption.deserializeBinaryFro var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStructured(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setString(value); break; default: @@ -2901,7 +2901,7 @@ proto.event_store.client.streams.ReadReq.Options.UUIDOption.serializeBinaryToWri writer.writeMessage( 1, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getString(); @@ -2909,7 +2909,7 @@ proto.event_store.client.streams.ReadReq.Options.UUIDOption.serializeBinaryToWri writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -2921,7 +2921,7 @@ proto.event_store.client.streams.ReadReq.Options.UUIDOption.serializeBinaryToWri */ proto.event_store.client.streams.ReadReq.Options.UUIDOption.prototype.getStructured = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 1)); }; @@ -2958,7 +2958,7 @@ proto.event_store.client.streams.ReadReq.Options.UUIDOption.prototype.hasStructu */ proto.event_store.client.streams.ReadReq.Options.UUIDOption.prototype.getString = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -3345,7 +3345,7 @@ proto.event_store.client.streams.ReadReq.Options.prototype.hasFilter = function( */ proto.event_store.client.streams.ReadReq.Options.prototype.getNoFilter = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 8)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 8)); }; @@ -3558,7 +3558,7 @@ proto.event_store.client.streams.ReadResp.toObject = function(includeInstance, m streamNotFound: (f = msg.getStreamNotFound()) && proto.event_store.client.streams.ReadResp.StreamNotFound.toObject(includeInstance, f), firstStreamPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), lastStreamPosition: jspb.Message.getFieldWithDefault(msg, 6, "0"), - lastAllStreamPosition: (f = msg.getLastAllStreamPosition()) && shared_pb.AllStreamPosition.toObject(includeInstance, f), + lastAllStreamPosition: (f = msg.getLastAllStreamPosition()) && kurrentdb_protocols_v1_shared_pb.AllStreamPosition.toObject(includeInstance, f), caughtUp: (f = msg.getCaughtUp()) && proto.event_store.client.streams.ReadResp.CaughtUp.toObject(includeInstance, f), fellBehind: (f = msg.getFellBehind()) && proto.event_store.client.streams.ReadResp.FellBehind.toObject(includeInstance, f) }; @@ -3626,8 +3626,8 @@ proto.event_store.client.streams.ReadResp.deserializeBinaryFromReader = function msg.setLastStreamPosition(value); break; case 7: - var value = new shared_pb.AllStreamPosition; - reader.readMessage(value,shared_pb.AllStreamPosition.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.AllStreamPosition; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.AllStreamPosition.deserializeBinaryFromReader); msg.setLastAllStreamPosition(value); break; case 8: @@ -3720,7 +3720,7 @@ proto.event_store.client.streams.ReadResp.serializeBinaryToWriter = function(mes writer.writeMessage( 7, f, - shared_pb.AllStreamPosition.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.AllStreamPosition.serializeBinaryToWriter ); } f = message.getCaughtUp(); @@ -4303,7 +4303,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.toObject = function(includeI event: (f = msg.getEvent()) && proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), link: (f = msg.getLink()) && proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), commitPosition: jspb.Message.getFieldWithDefault(msg, 3, "0"), - noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f) + noPosition: (f = msg.getNoPosition()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -4355,8 +4355,8 @@ proto.event_store.client.streams.ReadResp.ReadEvent.deserializeBinaryFromReader msg.setCommitPosition(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoPosition(value); break; default: @@ -4416,7 +4416,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.serializeBinaryToWriter = fu writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -4454,8 +4454,8 @@ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.prototype.toOb */ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && shared_pb.UUID.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + id: (f = msg.getId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), streamRevision: jspb.Message.getFieldWithDefault(msg, 3, "0"), preparePosition: jspb.Message.getFieldWithDefault(msg, 4, "0"), commitPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), @@ -4499,13 +4499,13 @@ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.deserializeBin var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setId(value); break; case 2: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 3: @@ -4568,7 +4568,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.serializeBinar writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getStreamIdentifier(); @@ -4576,7 +4576,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.serializeBinar writer.writeMessage( 2, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = message.getStreamRevision(); @@ -4627,7 +4627,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.serializeBinar */ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.prototype.getId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; @@ -4664,7 +4664,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.prototype.hasI */ proto.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 2)); }; @@ -4971,7 +4971,7 @@ proto.event_store.client.streams.ReadResp.ReadEvent.prototype.hasCommitPosition */ proto.event_store.client.streams.ReadResp.ReadEvent.prototype.getNoPosition = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -5535,7 +5535,7 @@ proto.event_store.client.streams.ReadResp.StreamNotFound.prototype.toObject = fu */ proto.event_store.client.streams.ReadResp.StreamNotFound.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f) + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f) }; if (includeInstance) { @@ -5573,8 +5573,8 @@ proto.event_store.client.streams.ReadResp.StreamNotFound.deserializeBinaryFromRe var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; default: @@ -5611,7 +5611,7 @@ proto.event_store.client.streams.ReadResp.StreamNotFound.serializeBinaryToWriter writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } }; @@ -5623,7 +5623,7 @@ proto.event_store.client.streams.ReadResp.StreamNotFound.serializeBinaryToWriter */ proto.event_store.client.streams.ReadResp.StreamNotFound.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -5880,7 +5880,7 @@ proto.event_store.client.streams.ReadResp.prototype.hasLastStreamPosition = func */ proto.event_store.client.streams.ReadResp.prototype.getLastAllStreamPosition = function() { return /** @type{?proto.event_store.client.AllStreamPosition} */ ( - jspb.Message.getWrapperField(this, shared_pb.AllStreamPosition, 7)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.AllStreamPosition, 7)); }; @@ -6199,11 +6199,11 @@ proto.event_store.client.streams.AppendReq.Options.prototype.toObject = function */ proto.event_store.client.streams.AppendReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - noStream: (f = msg.getNoStream()) && shared_pb.Empty.toObject(includeInstance, f), - any: (f = msg.getAny()) && shared_pb.Empty.toObject(includeInstance, f), - streamExists: (f = msg.getStreamExists()) && shared_pb.Empty.toObject(includeInstance, f) + noStream: (f = msg.getNoStream()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + any: (f = msg.getAny()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + streamExists: (f = msg.getStreamExists()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -6241,8 +6241,8 @@ proto.event_store.client.streams.AppendReq.Options.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -6250,18 +6250,18 @@ proto.event_store.client.streams.AppendReq.Options.deserializeBinaryFromReader = msg.setRevision(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoStream(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAny(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStreamExists(value); break; default: @@ -6298,7 +6298,7 @@ proto.event_store.client.streams.AppendReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -6313,7 +6313,7 @@ proto.event_store.client.streams.AppendReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getAny(); @@ -6321,7 +6321,7 @@ proto.event_store.client.streams.AppendReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getStreamExists(); @@ -6329,7 +6329,7 @@ proto.event_store.client.streams.AppendReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -6341,7 +6341,7 @@ proto.event_store.client.streams.AppendReq.Options.serializeBinaryToWriter = fun */ proto.event_store.client.streams.AppendReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -6414,7 +6414,7 @@ proto.event_store.client.streams.AppendReq.Options.prototype.hasRevision = funct */ proto.event_store.client.streams.AppendReq.Options.prototype.getNoStream = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -6451,7 +6451,7 @@ proto.event_store.client.streams.AppendReq.Options.prototype.hasNoStream = funct */ proto.event_store.client.streams.AppendReq.Options.prototype.getAny = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -6488,7 +6488,7 @@ proto.event_store.client.streams.AppendReq.Options.prototype.hasAny = function() */ proto.event_store.client.streams.AppendReq.Options.prototype.getStreamExists = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -6551,7 +6551,7 @@ proto.event_store.client.streams.AppendReq.ProposedMessage.prototype.toObject = */ proto.event_store.client.streams.AppendReq.ProposedMessage.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && shared_pb.UUID.toObject(includeInstance, f), + id: (f = msg.getId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], customMetadata: msg.getCustomMetadata_asB64(), data: msg.getData_asB64() @@ -6592,8 +6592,8 @@ proto.event_store.client.streams.AppendReq.ProposedMessage.deserializeBinaryFrom var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setId(value); break; case 2: @@ -6644,7 +6644,7 @@ proto.event_store.client.streams.AppendReq.ProposedMessage.serializeBinaryToWrit writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getMetadataMap(true); @@ -6674,7 +6674,7 @@ proto.event_store.client.streams.AppendReq.ProposedMessage.serializeBinaryToWrit */ proto.event_store.client.streams.AppendReq.ProposedMessage.prototype.getId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; @@ -7274,9 +7274,9 @@ proto.event_store.client.streams.AppendResp.Success.prototype.toObject = functio proto.event_store.client.streams.AppendResp.Success.toObject = function(includeInstance, msg) { var f, obj = { currentRevision: jspb.Message.getFieldWithDefault(msg, 1, "0"), - noStream: (f = msg.getNoStream()) && shared_pb.Empty.toObject(includeInstance, f), + noStream: (f = msg.getNoStream()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), position: (f = msg.getPosition()) && proto.event_store.client.streams.AppendResp.Position.toObject(includeInstance, f), - noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f) + noPosition: (f = msg.getNoPosition()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -7318,8 +7318,8 @@ proto.event_store.client.streams.AppendResp.Success.deserializeBinaryFromReader msg.setCurrentRevision(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoStream(value); break; case 3: @@ -7328,8 +7328,8 @@ proto.event_store.client.streams.AppendResp.Success.deserializeBinaryFromReader msg.setPosition(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoPosition(value); break; default: @@ -7373,7 +7373,7 @@ proto.event_store.client.streams.AppendResp.Success.serializeBinaryToWriter = fu writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getPosition(); @@ -7389,7 +7389,7 @@ proto.event_store.client.streams.AppendResp.Success.serializeBinaryToWriter = fu writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -7437,7 +7437,7 @@ proto.event_store.client.streams.AppendResp.Success.prototype.hasCurrentRevision */ proto.event_store.client.streams.AppendResp.Success.prototype.getNoStream = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -7511,7 +7511,7 @@ proto.event_store.client.streams.AppendResp.Success.prototype.hasPosition = func */ proto.event_store.client.streams.AppendResp.Success.prototype.getNoPosition = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -7652,16 +7652,16 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.toObj proto.event_store.client.streams.AppendResp.WrongExpectedVersion.toObject = function(includeInstance, msg) { var f, obj = { currentRevision2060: jspb.Message.getFieldWithDefault(msg, 1, 0), - noStream2060: (f = msg.getNoStream2060()) && shared_pb.Empty.toObject(includeInstance, f), + noStream2060: (f = msg.getNoStream2060()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), expectedRevision2060: jspb.Message.getFieldWithDefault(msg, 3, 0), - any2060: (f = msg.getAny2060()) && shared_pb.Empty.toObject(includeInstance, f), - streamExists2060: (f = msg.getStreamExists2060()) && shared_pb.Empty.toObject(includeInstance, f), + any2060: (f = msg.getAny2060()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + streamExists2060: (f = msg.getStreamExists2060()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), currentRevision: jspb.Message.getFieldWithDefault(msg, 6, "0"), - currentNoStream: (f = msg.getCurrentNoStream()) && shared_pb.Empty.toObject(includeInstance, f), + currentNoStream: (f = msg.getCurrentNoStream()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), expectedRevision: jspb.Message.getFieldWithDefault(msg, 8, "0"), - expectedAny: (f = msg.getExpectedAny()) && shared_pb.Empty.toObject(includeInstance, f), - expectedStreamExists: (f = msg.getExpectedStreamExists()) && shared_pb.Empty.toObject(includeInstance, f), - expectedNoStream: (f = msg.getExpectedNoStream()) && shared_pb.Empty.toObject(includeInstance, f) + expectedAny: (f = msg.getExpectedAny()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + expectedStreamExists: (f = msg.getExpectedStreamExists()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + expectedNoStream: (f = msg.getExpectedNoStream()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -7703,8 +7703,8 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.deserializeBina msg.setCurrentRevision2060(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoStream2060(value); break; case 3: @@ -7712,13 +7712,13 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.deserializeBina msg.setExpectedRevision2060(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAny2060(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStreamExists2060(value); break; case 6: @@ -7726,8 +7726,8 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.deserializeBina msg.setCurrentRevision(value); break; case 7: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setCurrentNoStream(value); break; case 8: @@ -7735,18 +7735,18 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.deserializeBina msg.setExpectedRevision(value); break; case 9: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setExpectedAny(value); break; case 10: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setExpectedStreamExists(value); break; case 11: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setExpectedNoStream(value); break; default: @@ -7790,7 +7790,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = /** @type {number} */ (jspb.Message.getField(message, 3)); @@ -7805,7 +7805,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getStreamExists2060(); @@ -7813,7 +7813,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 6)); @@ -7828,7 +7828,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 7, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 8)); @@ -7843,7 +7843,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 9, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getExpectedStreamExists(); @@ -7851,7 +7851,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 10, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getExpectedNoStream(); @@ -7859,7 +7859,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.serializeBinary writer.writeMessage( 11, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -7907,7 +7907,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasCu */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getNoStream2060 = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -7980,7 +7980,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasEx */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getAny2060 = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -8017,7 +8017,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasAn */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getStreamExists2060 = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -8090,7 +8090,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasCu */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getCurrentNoStream = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 7)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 7)); }; @@ -8163,7 +8163,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasEx */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getExpectedAny = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 9)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 9)); }; @@ -8200,7 +8200,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasEx */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getExpectedStreamExists = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 10)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 10)); }; @@ -8237,7 +8237,7 @@ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.hasEx */ proto.event_store.client.streams.AppendResp.WrongExpectedVersion.prototype.getExpectedNoStream = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 11)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 11)); }; @@ -8381,7 +8381,7 @@ proto.event_store.client.streams.BatchAppendReq.prototype.toObject = function(op */ proto.event_store.client.streams.BatchAppendReq.toObject = function(includeInstance, msg) { var f, obj = { - correlationId: (f = msg.getCorrelationId()) && shared_pb.UUID.toObject(includeInstance, f), + correlationId: (f = msg.getCorrelationId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), options: (f = msg.getOptions()) && proto.event_store.client.streams.BatchAppendReq.Options.toObject(includeInstance, f), proposedMessagesList: jspb.Message.toObjectList(msg.getProposedMessagesList(), proto.event_store.client.streams.BatchAppendReq.ProposedMessage.toObject, includeInstance), @@ -8423,8 +8423,8 @@ proto.event_store.client.streams.BatchAppendReq.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setCorrelationId(value); break; case 2: @@ -8475,7 +8475,7 @@ proto.event_store.client.streams.BatchAppendReq.serializeBinaryToWriter = functi writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getOptions(); @@ -8580,7 +8580,7 @@ proto.event_store.client.streams.BatchAppendReq.Options.prototype.toObject = fun */ proto.event_store.client.streams.BatchAppendReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), streamPosition: jspb.Message.getFieldWithDefault(msg, 2, "0"), noStream: (f = msg.getNoStream()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), any: (f = msg.getAny()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), @@ -8624,8 +8624,8 @@ proto.event_store.client.streams.BatchAppendReq.Options.deserializeBinaryFromRea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -8691,7 +8691,7 @@ proto.event_store.client.streams.BatchAppendReq.Options.serializeBinaryToWriter writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -8750,7 +8750,7 @@ proto.event_store.client.streams.BatchAppendReq.Options.serializeBinaryToWriter */ proto.event_store.client.streams.BatchAppendReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -9034,7 +9034,7 @@ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.prototype.toObje */ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && shared_pb.UUID.toObject(includeInstance, f), + id: (f = msg.getId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], customMetadata: msg.getCustomMetadata_asB64(), data: msg.getData_asB64() @@ -9075,8 +9075,8 @@ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.deserializeBinar var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setId(value); break; case 2: @@ -9127,7 +9127,7 @@ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.serializeBinaryT writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getMetadataMap(true); @@ -9157,7 +9157,7 @@ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.serializeBinaryT */ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.prototype.getId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; @@ -9300,7 +9300,7 @@ proto.event_store.client.streams.BatchAppendReq.ProposedMessage.prototype.setDat */ proto.event_store.client.streams.BatchAppendReq.prototype.getCorrelationId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; @@ -9500,10 +9500,10 @@ proto.event_store.client.streams.BatchAppendResp.prototype.toObject = function(o */ proto.event_store.client.streams.BatchAppendResp.toObject = function(includeInstance, msg) { var f, obj = { - correlationId: (f = msg.getCorrelationId()) && shared_pb.UUID.toObject(includeInstance, f), - error: (f = msg.getError()) && status_pb.Status.toObject(includeInstance, f), + correlationId: (f = msg.getCorrelationId()) && kurrentdb_protocols_v1_shared_pb.UUID.toObject(includeInstance, f), + error: (f = msg.getError()) && kurrentdb_protocols_v1_status_pb.Status.toObject(includeInstance, f), success: (f = msg.getSuccess()) && proto.event_store.client.streams.BatchAppendResp.Success.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), streamPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), noStream: (f = msg.getNoStream()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), any: (f = msg.getAny()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), @@ -9545,13 +9545,13 @@ proto.event_store.client.streams.BatchAppendResp.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.UUID; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.UUID.deserializeBinaryFromReader); msg.setCorrelationId(value); break; case 2: - var value = new status_pb.Status; - reader.readMessage(value,status_pb.Status.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_status_pb.Status; + reader.readMessage(value,kurrentdb_protocols_v1_status_pb.Status.deserializeBinaryFromReader); msg.setError(value); break; case 3: @@ -9560,8 +9560,8 @@ proto.event_store.client.streams.BatchAppendResp.deserializeBinaryFromReader = f msg.setSuccess(value); break; case 4: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 5: @@ -9617,7 +9617,7 @@ proto.event_store.client.streams.BatchAppendResp.serializeBinaryToWriter = funct writer.writeMessage( 1, f, - shared_pb.UUID.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.UUID.serializeBinaryToWriter ); } f = message.getError(); @@ -9625,7 +9625,7 @@ proto.event_store.client.streams.BatchAppendResp.serializeBinaryToWriter = funct writer.writeMessage( 2, f, - status_pb.Status.serializeBinaryToWriter + kurrentdb_protocols_v1_status_pb.Status.serializeBinaryToWriter ); } f = message.getSuccess(); @@ -9641,7 +9641,7 @@ proto.event_store.client.streams.BatchAppendResp.serializeBinaryToWriter = funct writer.writeMessage( 4, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 5)); @@ -9754,7 +9754,7 @@ proto.event_store.client.streams.BatchAppendResp.Success.toObject = function(inc var f, obj = { currentRevision: jspb.Message.getFieldWithDefault(msg, 1, "0"), noStream: (f = msg.getNoStream()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), - position: (f = msg.getPosition()) && shared_pb.AllStreamPosition.toObject(includeInstance, f), + position: (f = msg.getPosition()) && kurrentdb_protocols_v1_shared_pb.AllStreamPosition.toObject(includeInstance, f), noPosition: (f = msg.getNoPosition()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f) }; @@ -9802,8 +9802,8 @@ proto.event_store.client.streams.BatchAppendResp.Success.deserializeBinaryFromRe msg.setNoStream(value); break; case 3: - var value = new shared_pb.AllStreamPosition; - reader.readMessage(value,shared_pb.AllStreamPosition.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.AllStreamPosition; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.AllStreamPosition.deserializeBinaryFromReader); msg.setPosition(value); break; case 4: @@ -9860,7 +9860,7 @@ proto.event_store.client.streams.BatchAppendResp.Success.serializeBinaryToWriter writer.writeMessage( 3, f, - shared_pb.AllStreamPosition.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.AllStreamPosition.serializeBinaryToWriter ); } f = message.getNoPosition(); @@ -9953,7 +9953,7 @@ proto.event_store.client.streams.BatchAppendResp.Success.prototype.hasNoStream = */ proto.event_store.client.streams.BatchAppendResp.Success.prototype.getPosition = function() { return /** @type{?proto.event_store.client.AllStreamPosition} */ ( - jspb.Message.getWrapperField(this, shared_pb.AllStreamPosition, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.AllStreamPosition, 3)); }; @@ -10027,7 +10027,7 @@ proto.event_store.client.streams.BatchAppendResp.Success.prototype.hasNoPosition */ proto.event_store.client.streams.BatchAppendResp.prototype.getCorrelationId = function() { return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.UUID, 1)); }; @@ -10064,7 +10064,7 @@ proto.event_store.client.streams.BatchAppendResp.prototype.hasCorrelationId = fu */ proto.event_store.client.streams.BatchAppendResp.prototype.getError = function() { return /** @type{?proto.google.rpc.Status} */ ( - jspb.Message.getWrapperField(this, status_pb.Status, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_status_pb.Status, 2)); }; @@ -10138,7 +10138,7 @@ proto.event_store.client.streams.BatchAppendResp.prototype.hasSuccess = function */ proto.event_store.client.streams.BatchAppendResp.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 4)); }; @@ -10490,11 +10490,11 @@ proto.event_store.client.streams.DeleteReq.Options.prototype.toObject = function */ proto.event_store.client.streams.DeleteReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - noStream: (f = msg.getNoStream()) && shared_pb.Empty.toObject(includeInstance, f), - any: (f = msg.getAny()) && shared_pb.Empty.toObject(includeInstance, f), - streamExists: (f = msg.getStreamExists()) && shared_pb.Empty.toObject(includeInstance, f) + noStream: (f = msg.getNoStream()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + any: (f = msg.getAny()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + streamExists: (f = msg.getStreamExists()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -10532,8 +10532,8 @@ proto.event_store.client.streams.DeleteReq.Options.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -10541,18 +10541,18 @@ proto.event_store.client.streams.DeleteReq.Options.deserializeBinaryFromReader = msg.setRevision(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoStream(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAny(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStreamExists(value); break; default: @@ -10589,7 +10589,7 @@ proto.event_store.client.streams.DeleteReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -10604,7 +10604,7 @@ proto.event_store.client.streams.DeleteReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getAny(); @@ -10612,7 +10612,7 @@ proto.event_store.client.streams.DeleteReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getStreamExists(); @@ -10620,7 +10620,7 @@ proto.event_store.client.streams.DeleteReq.Options.serializeBinaryToWriter = fun writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -10632,7 +10632,7 @@ proto.event_store.client.streams.DeleteReq.Options.serializeBinaryToWriter = fun */ proto.event_store.client.streams.DeleteReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -10705,7 +10705,7 @@ proto.event_store.client.streams.DeleteReq.Options.prototype.hasRevision = funct */ proto.event_store.client.streams.DeleteReq.Options.prototype.getNoStream = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -10742,7 +10742,7 @@ proto.event_store.client.streams.DeleteReq.Options.prototype.hasNoStream = funct */ proto.event_store.client.streams.DeleteReq.Options.prototype.getAny = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -10779,7 +10779,7 @@ proto.event_store.client.streams.DeleteReq.Options.prototype.hasAny = function() */ proto.event_store.client.streams.DeleteReq.Options.prototype.getStreamExists = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -10906,7 +10906,7 @@ proto.event_store.client.streams.DeleteResp.prototype.toObject = function(opt_in proto.event_store.client.streams.DeleteResp.toObject = function(includeInstance, msg) { var f, obj = { position: (f = msg.getPosition()) && proto.event_store.client.streams.DeleteResp.Position.toObject(includeInstance, f), - noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f) + noPosition: (f = msg.getNoPosition()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -10949,8 +10949,8 @@ proto.event_store.client.streams.DeleteResp.deserializeBinaryFromReader = functi msg.setPosition(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoPosition(value); break; default: @@ -10995,7 +10995,7 @@ proto.event_store.client.streams.DeleteResp.serializeBinaryToWriter = function(m writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -11204,7 +11204,7 @@ proto.event_store.client.streams.DeleteResp.prototype.hasPosition = function() { */ proto.event_store.client.streams.DeleteResp.prototype.getNoPosition = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; @@ -11409,11 +11409,11 @@ proto.event_store.client.streams.TombstoneReq.Options.prototype.toObject = funct */ proto.event_store.client.streams.TombstoneReq.Options.toObject = function(includeInstance, msg) { var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), + streamIdentifier: (f = msg.getStreamIdentifier()) && kurrentdb_protocols_v1_shared_pb.StreamIdentifier.toObject(includeInstance, f), revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - noStream: (f = msg.getNoStream()) && shared_pb.Empty.toObject(includeInstance, f), - any: (f = msg.getAny()) && shared_pb.Empty.toObject(includeInstance, f), - streamExists: (f = msg.getStreamExists()) && shared_pb.Empty.toObject(includeInstance, f) + noStream: (f = msg.getNoStream()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + any: (f = msg.getAny()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f), + streamExists: (f = msg.getStreamExists()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -11451,8 +11451,8 @@ proto.event_store.client.streams.TombstoneReq.Options.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.StreamIdentifier; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.StreamIdentifier.deserializeBinaryFromReader); msg.setStreamIdentifier(value); break; case 2: @@ -11460,18 +11460,18 @@ proto.event_store.client.streams.TombstoneReq.Options.deserializeBinaryFromReade msg.setRevision(value); break; case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoStream(value); break; case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setAny(value); break; case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setStreamExists(value); break; default: @@ -11508,7 +11508,7 @@ proto.event_store.client.streams.TombstoneReq.Options.serializeBinaryToWriter = writer.writeMessage( 1, f, - shared_pb.StreamIdentifier.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.StreamIdentifier.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); @@ -11523,7 +11523,7 @@ proto.event_store.client.streams.TombstoneReq.Options.serializeBinaryToWriter = writer.writeMessage( 3, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getAny(); @@ -11531,7 +11531,7 @@ proto.event_store.client.streams.TombstoneReq.Options.serializeBinaryToWriter = writer.writeMessage( 4, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } f = message.getStreamExists(); @@ -11539,7 +11539,7 @@ proto.event_store.client.streams.TombstoneReq.Options.serializeBinaryToWriter = writer.writeMessage( 5, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -11551,7 +11551,7 @@ proto.event_store.client.streams.TombstoneReq.Options.serializeBinaryToWriter = */ proto.event_store.client.streams.TombstoneReq.Options.prototype.getStreamIdentifier = function() { return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.StreamIdentifier, 1)); }; @@ -11624,7 +11624,7 @@ proto.event_store.client.streams.TombstoneReq.Options.prototype.hasRevision = fu */ proto.event_store.client.streams.TombstoneReq.Options.prototype.getNoStream = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 3)); }; @@ -11661,7 +11661,7 @@ proto.event_store.client.streams.TombstoneReq.Options.prototype.hasNoStream = fu */ proto.event_store.client.streams.TombstoneReq.Options.prototype.getAny = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 4)); }; @@ -11698,7 +11698,7 @@ proto.event_store.client.streams.TombstoneReq.Options.prototype.hasAny = functio */ proto.event_store.client.streams.TombstoneReq.Options.prototype.getStreamExists = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 5)); }; @@ -11825,7 +11825,7 @@ proto.event_store.client.streams.TombstoneResp.prototype.toObject = function(opt proto.event_store.client.streams.TombstoneResp.toObject = function(includeInstance, msg) { var f, obj = { position: (f = msg.getPosition()) && proto.event_store.client.streams.TombstoneResp.Position.toObject(includeInstance, f), - noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f) + noPosition: (f = msg.getNoPosition()) && kurrentdb_protocols_v1_shared_pb.Empty.toObject(includeInstance, f) }; if (includeInstance) { @@ -11868,8 +11868,8 @@ proto.event_store.client.streams.TombstoneResp.deserializeBinaryFromReader = fun msg.setPosition(value); break; case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v1_shared_pb.Empty; + reader.readMessage(value,kurrentdb_protocols_v1_shared_pb.Empty.deserializeBinaryFromReader); msg.setNoPosition(value); break; default: @@ -11914,7 +11914,7 @@ proto.event_store.client.streams.TombstoneResp.serializeBinaryToWriter = functio writer.writeMessage( 2, f, - shared_pb.Empty.serializeBinaryToWriter + kurrentdb_protocols_v1_shared_pb.Empty.serializeBinaryToWriter ); } }; @@ -12123,7 +12123,7 @@ proto.event_store.client.streams.TombstoneResp.prototype.hasPosition = function( */ proto.event_store.client.streams.TombstoneResp.prototype.getNoPosition = function() { return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v1_shared_pb.Empty, 2)); }; diff --git a/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts new file mode 100644 index 00000000..6e0d89c0 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.d.ts @@ -0,0 +1,158 @@ +// package: event_store.client.users +// file: kurrentdb/protocols/v1/usermanagement.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v1_usermanagement_pb from "../../../kurrentdb/protocols/v1/usermanagement_pb"; + +interface IUsersService extends grpc.ServiceDefinition { + create: IUsersService_ICreate; + update: IUsersService_IUpdate; + delete: IUsersService_IDelete; + disable: IUsersService_IDisable; + enable: IUsersService_IEnable; + details: IUsersService_IDetails; + changePassword: IUsersService_IChangePassword; + resetPassword: IUsersService_IResetPassword; +} + +interface IUsersService_ICreate extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Create"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IUpdate extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Update"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IDelete extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Delete"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IDisable extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Disable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IEnable extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Enable"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IDetails extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/Details"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IChangePassword extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/ChangePassword"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IUsersService_IResetPassword extends grpc.MethodDefinition { + path: "/event_store.client.users.Users/ResetPassword"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const UsersService: IUsersService; + +export interface IUsersServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; + disable: grpc.handleUnaryCall; + enable: grpc.handleUnaryCall; + details: grpc.handleServerStreamingCall; + changePassword: grpc.handleUnaryCall; + resetPassword: grpc.handleUnaryCall; +} + +export interface IUsersClient { + create(request: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + create(request: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + update(request: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + delete(request: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + disable(request: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + disable(request: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + enable(request: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + enable(request: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + details(request: kurrentdb_protocols_v1_usermanagement_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; + details(request: kurrentdb_protocols_v1_usermanagement_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + changePassword(request: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + changePassword(request: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + changePassword(request: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + resetPassword(request: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + resetPassword(request: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + resetPassword(request: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; +} + +export class UsersClient extends grpc.Client implements IUsersClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public create(request: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public create(request: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public update(request: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public delete(request: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; + public disable(request: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public disable(request: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; + public enable(request: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public enable(request: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; + public details(request: kurrentdb_protocols_v1_usermanagement_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; + public details(request: kurrentdb_protocols_v1_usermanagement_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; + public changePassword(request: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + public changePassword(request: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + public changePassword(request: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; + public resetPassword(request: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + public resetPassword(request: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; + public resetPassword(request: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/usermanagement_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.js similarity index 65% rename from packages/db-client/generated/usermanagement_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.js index 9ac499b1..b6df3368 100644 --- a/packages/db-client/generated/usermanagement_grpc_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_grpc_pb.js @@ -2,182 +2,182 @@ 'use strict'; var grpc = require('@grpc/grpc-js'); -var usermanagement_pb = require('./usermanagement_pb.js'); +var kurrentdb_protocols_v1_usermanagement_pb = require('../../../kurrentdb/protocols/v1/usermanagement_pb.js'); function serialize_event_store_client_users_ChangePasswordReq(arg) { - if (!(arg instanceof usermanagement_pb.ChangePasswordReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq)) { throw new Error('Expected argument of type event_store.client.users.ChangePasswordReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_ChangePasswordReq(buffer_arg) { - return usermanagement_pb.ChangePasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_ChangePasswordResp(arg) { - if (!(arg instanceof usermanagement_pb.ChangePasswordResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp)) { throw new Error('Expected argument of type event_store.client.users.ChangePasswordResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_ChangePasswordResp(buffer_arg) { - return usermanagement_pb.ChangePasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_CreateReq(arg) { - if (!(arg instanceof usermanagement_pb.CreateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.CreateReq)) { throw new Error('Expected argument of type event_store.client.users.CreateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_CreateReq(buffer_arg) { - return usermanagement_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_CreateResp(arg) { - if (!(arg instanceof usermanagement_pb.CreateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.CreateResp)) { throw new Error('Expected argument of type event_store.client.users.CreateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_CreateResp(buffer_arg) { - return usermanagement_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_DeleteReq(arg) { - if (!(arg instanceof usermanagement_pb.DeleteReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.DeleteReq)) { throw new Error('Expected argument of type event_store.client.users.DeleteReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_DeleteReq(buffer_arg) { - return usermanagement_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_DeleteResp(arg) { - if (!(arg instanceof usermanagement_pb.DeleteResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.DeleteResp)) { throw new Error('Expected argument of type event_store.client.users.DeleteResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_DeleteResp(buffer_arg) { - return usermanagement_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_DetailsReq(arg) { - if (!(arg instanceof usermanagement_pb.DetailsReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.DetailsReq)) { throw new Error('Expected argument of type event_store.client.users.DetailsReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_DetailsReq(buffer_arg) { - return usermanagement_pb.DetailsReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.DetailsReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_DetailsResp(arg) { - if (!(arg instanceof usermanagement_pb.DetailsResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.DetailsResp)) { throw new Error('Expected argument of type event_store.client.users.DetailsResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_DetailsResp(buffer_arg) { - return usermanagement_pb.DetailsResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.DetailsResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_DisableReq(arg) { - if (!(arg instanceof usermanagement_pb.DisableReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.DisableReq)) { throw new Error('Expected argument of type event_store.client.users.DisableReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_DisableReq(buffer_arg) { - return usermanagement_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_DisableResp(arg) { - if (!(arg instanceof usermanagement_pb.DisableResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.DisableResp)) { throw new Error('Expected argument of type event_store.client.users.DisableResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_DisableResp(buffer_arg) { - return usermanagement_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_EnableReq(arg) { - if (!(arg instanceof usermanagement_pb.EnableReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.EnableReq)) { throw new Error('Expected argument of type event_store.client.users.EnableReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_EnableReq(buffer_arg) { - return usermanagement_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_EnableResp(arg) { - if (!(arg instanceof usermanagement_pb.EnableResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.EnableResp)) { throw new Error('Expected argument of type event_store.client.users.EnableResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_EnableResp(buffer_arg) { - return usermanagement_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_ResetPasswordReq(arg) { - if (!(arg instanceof usermanagement_pb.ResetPasswordReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq)) { throw new Error('Expected argument of type event_store.client.users.ResetPasswordReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_ResetPasswordReq(buffer_arg) { - return usermanagement_pb.ResetPasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_ResetPasswordResp(arg) { - if (!(arg instanceof usermanagement_pb.ResetPasswordResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp)) { throw new Error('Expected argument of type event_store.client.users.ResetPasswordResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_ResetPasswordResp(buffer_arg) { - return usermanagement_pb.ResetPasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_UpdateReq(arg) { - if (!(arg instanceof usermanagement_pb.UpdateReq)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.UpdateReq)) { throw new Error('Expected argument of type event_store.client.users.UpdateReq'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_UpdateReq(buffer_arg) { - return usermanagement_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_event_store_client_users_UpdateResp(arg) { - if (!(arg instanceof usermanagement_pb.UpdateResp)) { + if (!(arg instanceof kurrentdb_protocols_v1_usermanagement_pb.UpdateResp)) { throw new Error('Expected argument of type event_store.client.users.UpdateResp'); } return Buffer.from(arg.serializeBinary()); } function deserialize_event_store_client_users_UpdateResp(buffer_arg) { - return usermanagement_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); + return kurrentdb_protocols_v1_usermanagement_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); } @@ -186,8 +186,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/Create', requestStream: false, responseStream: false, - requestType: usermanagement_pb.CreateReq, - responseType: usermanagement_pb.CreateResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.CreateReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.CreateResp, requestSerialize: serialize_event_store_client_users_CreateReq, requestDeserialize: deserialize_event_store_client_users_CreateReq, responseSerialize: serialize_event_store_client_users_CreateResp, @@ -197,8 +197,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/Update', requestStream: false, responseStream: false, - requestType: usermanagement_pb.UpdateReq, - responseType: usermanagement_pb.UpdateResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.UpdateReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.UpdateResp, requestSerialize: serialize_event_store_client_users_UpdateReq, requestDeserialize: deserialize_event_store_client_users_UpdateReq, responseSerialize: serialize_event_store_client_users_UpdateResp, @@ -208,8 +208,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/Delete', requestStream: false, responseStream: false, - requestType: usermanagement_pb.DeleteReq, - responseType: usermanagement_pb.DeleteResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.DeleteReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.DeleteResp, requestSerialize: serialize_event_store_client_users_DeleteReq, requestDeserialize: deserialize_event_store_client_users_DeleteReq, responseSerialize: serialize_event_store_client_users_DeleteResp, @@ -219,8 +219,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/Disable', requestStream: false, responseStream: false, - requestType: usermanagement_pb.DisableReq, - responseType: usermanagement_pb.DisableResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.DisableReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.DisableResp, requestSerialize: serialize_event_store_client_users_DisableReq, requestDeserialize: deserialize_event_store_client_users_DisableReq, responseSerialize: serialize_event_store_client_users_DisableResp, @@ -230,8 +230,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/Enable', requestStream: false, responseStream: false, - requestType: usermanagement_pb.EnableReq, - responseType: usermanagement_pb.EnableResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.EnableReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.EnableResp, requestSerialize: serialize_event_store_client_users_EnableReq, requestDeserialize: deserialize_event_store_client_users_EnableReq, responseSerialize: serialize_event_store_client_users_EnableResp, @@ -241,8 +241,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/Details', requestStream: false, responseStream: true, - requestType: usermanagement_pb.DetailsReq, - responseType: usermanagement_pb.DetailsResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.DetailsReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.DetailsResp, requestSerialize: serialize_event_store_client_users_DetailsReq, requestDeserialize: deserialize_event_store_client_users_DetailsReq, responseSerialize: serialize_event_store_client_users_DetailsResp, @@ -252,8 +252,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/ChangePassword', requestStream: false, responseStream: false, - requestType: usermanagement_pb.ChangePasswordReq, - responseType: usermanagement_pb.ChangePasswordResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.ChangePasswordResp, requestSerialize: serialize_event_store_client_users_ChangePasswordReq, requestDeserialize: deserialize_event_store_client_users_ChangePasswordReq, responseSerialize: serialize_event_store_client_users_ChangePasswordResp, @@ -263,8 +263,8 @@ var UsersService = exports.UsersService = { path: '/event_store.client.users.Users/ResetPassword', requestStream: false, responseStream: false, - requestType: usermanagement_pb.ResetPasswordReq, - responseType: usermanagement_pb.ResetPasswordResp, + requestType: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordReq, + responseType: kurrentdb_protocols_v1_usermanagement_pb.ResetPasswordResp, requestSerialize: serialize_event_store_client_users_ResetPasswordReq, requestDeserialize: deserialize_event_store_client_users_ResetPasswordReq, responseSerialize: serialize_event_store_client_users_ResetPasswordResp, diff --git a/packages/db-client/generated/usermanagement_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_pb.d.ts similarity index 99% rename from packages/db-client/generated/usermanagement_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_pb.d.ts index 1127e3fc..d3edbc19 100644 --- a/packages/db-client/generated/usermanagement_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_pb.d.ts @@ -1,5 +1,5 @@ // package: event_store.client.users -// file: usermanagement.proto +// file: kurrentdb/protocols/v1/usermanagement.proto /* tslint:disable */ /* eslint-disable */ diff --git a/packages/db-client/generated/usermanagement_pb.js b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_pb.js similarity index 99% rename from packages/db-client/generated/usermanagement_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_pb.js index 89caa94d..3d518691 100644 --- a/packages/db-client/generated/usermanagement_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v1/usermanagement_pb.js @@ -1,4 +1,4 @@ -// source: usermanagement.proto +// source: kurrentdb/protocols/v1/usermanagement.proto /** * @fileoverview * @enhanceable diff --git a/packages/db-client/generated/dynamic-value_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/core_grpc_pb.js similarity index 100% rename from packages/db-client/generated/dynamic-value_grpc_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v2/core_grpc_pb.js diff --git a/packages/db-client/generated/dynamic-value_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v2/core_pb.d.ts similarity index 51% rename from packages/db-client/generated/dynamic-value_pb.d.ts rename to packages/db-client/generated/kurrentdb/protocols/v2/core_pb.d.ts index 0166e105..79e2c053 100644 --- a/packages/db-client/generated/dynamic-value_pb.d.ts +++ b/packages/db-client/generated/kurrentdb/protocols/v2/core_pb.d.ts @@ -1,13 +1,93 @@ -// package: kurrentdb.protobuf -// file: dynamic-value.proto +// package: kurrentdb.protocol +// file: kurrentdb/protocols/v2/core.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; -import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; +import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; + +export class ErrorAnnotations extends jspb.Message { + getCode(): string; + setCode(value: string): ErrorAnnotations; + getSeverity(): ErrorAnnotations.Severity; + setSeverity(value: ErrorAnnotations.Severity): ErrorAnnotations; + + hasMessage(): boolean; + clearMessage(): void; + getMessage(): string | undefined; + setMessage(value: string): ErrorAnnotations; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ErrorAnnotations.AsObject; + static toObject(includeInstance: boolean, msg: ErrorAnnotations): ErrorAnnotations.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ErrorAnnotations, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ErrorAnnotations; + static deserializeBinaryFromReader(message: ErrorAnnotations, reader: jspb.BinaryReader): ErrorAnnotations; +} + +export namespace ErrorAnnotations { + export type AsObject = { + code: string, + severity: ErrorAnnotations.Severity, + message?: string, + } + + export enum Severity { + RECOVERABLE = 0, + FATAL = 1, + } + +} + +export class DynamicValueList extends jspb.Message { + clearValuesList(): void; + getValuesList(): Array; + setValuesList(value: Array): DynamicValueList; + addValues(value?: DynamicValue, index?: number): DynamicValue; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DynamicValueList.AsObject; + static toObject(includeInstance: boolean, msg: DynamicValueList): DynamicValueList.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DynamicValueList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DynamicValueList; + static deserializeBinaryFromReader(message: DynamicValueList, reader: jspb.BinaryReader): DynamicValueList; +} + +export namespace DynamicValueList { + export type AsObject = { + valuesList: Array, + } +} + +export class DynamicValueMap extends jspb.Message { + + getValuesMap(): jspb.Map; + clearValuesMap(): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DynamicValueMap.AsObject; + static toObject(includeInstance: boolean, msg: DynamicValueMap): DynamicValueMap.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DynamicValueMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DynamicValueMap; + static deserializeBinaryFromReader(message: DynamicValueMap, reader: jspb.BinaryReader): DynamicValueMap; +} + +export namespace DynamicValueMap { + export type AsObject = { + + valuesMap: Array<[string, DynamicValue.AsObject]>, + } +} export class DynamicValue extends jspb.Message { @@ -104,3 +184,5 @@ export namespace DynamicValue { } } + +export const errorInfo: jspb.ExtensionFieldInfo; diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/core_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/core_pb.js new file mode 100644 index 00000000..79048fe0 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/core_pb.js @@ -0,0 +1,1301 @@ +// source: kurrentdb/protocols/v2/core.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.kurrentdb.protocol.DynamicValue', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.DynamicValue.KindCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.DynamicValueList', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.DynamicValueMap', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.ErrorAnnotations', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.ErrorAnnotations.Severity', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.errorInfo', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.ErrorAnnotations = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.ErrorAnnotations, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.ErrorAnnotations.displayName = 'proto.kurrentdb.protocol.ErrorAnnotations'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.DynamicValueList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.DynamicValueList.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.DynamicValueList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.DynamicValueList.displayName = 'proto.kurrentdb.protocol.DynamicValueList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.DynamicValueMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.DynamicValueMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.DynamicValueMap.displayName = 'proto.kurrentdb.protocol.DynamicValueMap'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.DynamicValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.DynamicValue.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.DynamicValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.DynamicValue.displayName = 'proto.kurrentdb.protocol.DynamicValue'; +} + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.ErrorAnnotations.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.ErrorAnnotations} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.ErrorAnnotations.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, ""), + severity: jspb.Message.getFieldWithDefault(msg, 2, 0), + message: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.ErrorAnnotations} + */ +proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.ErrorAnnotations; + return proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.ErrorAnnotations} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.ErrorAnnotations} + */ +proto.kurrentdb.protocol.ErrorAnnotations.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.setCode(value); + break; + case 2: + var value = /** @type {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} */ (reader.readEnum()); + msg.setSeverity(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.ErrorAnnotations.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.ErrorAnnotations} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.ErrorAnnotations.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSeverity(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.ErrorAnnotations.Severity = { + RECOVERABLE: 0, + FATAL: 1 +}; + +/** + * optional string code = 1; + * @return {string} + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.getCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.setCode = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Severity severity = 2; + * @return {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.getSeverity = function() { + return /** @type {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.ErrorAnnotations.Severity} value + * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.setSeverity = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional string message = 3; + * @return {string} + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.setMessage = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.ErrorAnnotations} returns this + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.clearMessage = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.ErrorAnnotations.prototype.hasMessage = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.DynamicValueList.repeatedFields_ = [1]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.DynamicValueList.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.DynamicValueList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.DynamicValueList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.DynamicValueList.toObject = function(includeInstance, msg) { + var f, obj = { + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.kurrentdb.protocol.DynamicValue.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.DynamicValueList} + */ +proto.kurrentdb.protocol.DynamicValueList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.DynamicValueList; + return proto.kurrentdb.protocol.DynamicValueList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.DynamicValueList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.DynamicValueList} + */ +proto.kurrentdb.protocol.DynamicValueList.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.DynamicValue; + reader.readMessage(value,proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.DynamicValueList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.DynamicValueList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.DynamicValueList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.DynamicValueList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated DynamicValue values = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.DynamicValueList.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.DynamicValue, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.DynamicValueList} returns this +*/ +proto.kurrentdb.protocol.DynamicValueList.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.DynamicValue=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.DynamicValue} + */ +proto.kurrentdb.protocol.DynamicValueList.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.DynamicValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.DynamicValueList} returns this + */ +proto.kurrentdb.protocol.DynamicValueList.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.DynamicValueMap.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.DynamicValueMap.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.DynamicValueMap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.DynamicValueMap.toObject = function(includeInstance, msg) { + var f, obj = { + valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.DynamicValue.toObject) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.DynamicValueMap} + */ +proto.kurrentdb.protocol.DynamicValueMap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.DynamicValueMap; + return proto.kurrentdb.protocol.DynamicValueMap.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.DynamicValueMap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.DynamicValueMap} + */ +proto.kurrentdb.protocol.DynamicValueMap.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getValuesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.DynamicValue()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.DynamicValueMap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.DynamicValueMap.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.DynamicValueMap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.DynamicValueMap.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValuesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter); + } +}; + + +/** + * map values = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.DynamicValueMap.prototype.getValuesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.kurrentdb.protocol.DynamicValue)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.DynamicValueMap} returns this + */ +proto.kurrentdb.protocol.DynamicValueMap.prototype.clearValuesMap = function() { + this.getValuesMap().clear(); + return this;}; + + + +/** + * 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>} + * @const + */ +proto.kurrentdb.protocol.DynamicValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.DynamicValue.KindCase = { + KIND_NOT_SET: 0, + NULL_VALUE: 1, + INT32_VALUE: 2, + INT64_VALUE: 3, + BYTES_VALUE: 4, + DOUBLE_VALUE: 5, + FLOAT_VALUE: 6, + STRING_VALUE: 7, + BOOLEAN_VALUE: 8, + TIMESTAMP_VALUE: 9, + DURATION_VALUE: 10 +}; + +/** + * @return {proto.kurrentdb.protocol.DynamicValue.KindCase} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getKindCase = function() { + return /** @type {proto.kurrentdb.protocol.DynamicValue.KindCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.DynamicValue.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.DynamicValue.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.DynamicValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.DynamicValue.toObject = function(includeInstance, msg) { + var f, obj = { + nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0), + int32Value: jspb.Message.getFieldWithDefault(msg, 2, 0), + int64Value: jspb.Message.getFieldWithDefault(msg, 3, 0), + bytesValue: msg.getBytesValue_asB64(), + doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), + stringValue: jspb.Message.getFieldWithDefault(msg, 7, ""), + booleanValue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + timestampValue: (f = msg.getTimestampValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + durationValue: (f = msg.getDurationValue()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.DynamicValue} + */ +proto.kurrentdb.protocol.DynamicValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.DynamicValue; + return proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.DynamicValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.DynamicValue} + */ +proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum()); + msg.setNullValue(value); + break; + case 2: + var value = /** @type {number} */ (reader.readSint32()); + msg.setInt32Value(value); + break; + case 3: + var value = /** @type {number} */ (reader.readSint64()); + msg.setInt64Value(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBytesValue(value); + break; + case 5: + var value = /** @type {number} */ (reader.readDouble()); + msg.setDoubleValue(value); + break; + case 6: + var value = /** @type {number} */ (reader.readFloat()); + msg.setFloatValue(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setStringValue(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBooleanValue(value); + break; + case 9: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTimestampValue(value); + break; + case 10: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setDurationValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.DynamicValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeEnum( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeSint32( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeSint64( + 3, + f + ); + } + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeBytes( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeDouble( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeFloat( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( + 8, + f + ); + } + f = message.getTimestampValue(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDurationValue(); + if (f != null) { + writer.writeMessage( + 10, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.NullValue null_value = 1; + * @return {!proto.google.protobuf.NullValue} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getNullValue = function() { + return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.google.protobuf.NullValue} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setNullValue = function(value) { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearNullValue = function() { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasNullValue = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional sint32 int32_value = 2; + * @return {number} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getInt32Value = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setInt32Value = function(value) { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearInt32Value = function() { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasInt32Value = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional sint64 int64_value = 3; + * @return {number} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getInt64Value = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setInt64Value = function(value) { + return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearInt64Value = function() { + return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasInt64Value = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bytes bytes_value = 4; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getBytesValue = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes bytes_value = 4; + * This is a type-conversion wrapper around `getBytesValue()` + * @return {string} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getBytesValue_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBytesValue())); +}; + + +/** + * optional bytes bytes_value = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBytesValue()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getBytesValue_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBytesValue())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setBytesValue = function(value) { + return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearBytesValue = function() { + return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasBytesValue = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional double double_value = 5; + * @return {number} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getDoubleValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setDoubleValue = function(value) { + return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearDoubleValue = function() { + return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasDoubleValue = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional float float_value = 6; + * @return {number} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getFloatValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setFloatValue = function(value) { + return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearFloatValue = function() { + return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasFloatValue = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional string string_value = 7; + * @return {string} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getStringValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setStringValue = function(value) { + return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearStringValue = function() { + return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasStringValue = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool boolean_value = 8; + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getBooleanValue = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.setBooleanValue = function(value) { + return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearBooleanValue = function() { + return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasBooleanValue = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional google.protobuf.Timestamp timestamp_value = 9; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getTimestampValue = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this +*/ +proto.kurrentdb.protocol.DynamicValue.prototype.setTimestampValue = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearTimestampValue = function() { + return this.setTimestampValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasTimestampValue = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional google.protobuf.Duration duration_value = 10; + * @return {?proto.google.protobuf.Duration} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.getDurationValue = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 10)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this +*/ +proto.kurrentdb.protocol.DynamicValue.prototype.setDurationValue = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.kurrentdb.protocol.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.DynamicValue} returns this + */ +proto.kurrentdb.protocol.DynamicValue.prototype.clearDurationValue = function() { + return this.setDurationValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.DynamicValue.prototype.hasDurationValue = function() { + return jspb.Message.getField(this, 10) != null; +}; + + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `errorInfo`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.kurrentdb.protocol.errorInfo = new jspb.ExtensionFieldInfo( + 50000, + {errorInfo: 0}, + proto.kurrentdb.protocol.ErrorAnnotations, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.kurrentdb.protocol.ErrorAnnotations.toObject), + 0); + +google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[50000] = new jspb.ExtensionFieldBinaryInfo( + proto.kurrentdb.protocol.errorInfo, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.kurrentdb.protocol.ErrorAnnotations.serializeBinaryToWriter, + proto.kurrentdb.protocol.ErrorAnnotations.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MessageOptions.extensions[50000] = proto.kurrentdb.protocol.errorInfo; + +goog.object.extend(exports, proto.kurrentdb.protocol); diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts new file mode 100644 index 00000000..bfef7254 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts @@ -0,0 +1,43 @@ +// package: kurrentdb.protocol.v2 +// file: kurrentdb/protocols/v2/features/service.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v2_features_service_pb from "../../../../kurrentdb/protocols/v2/features/service_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb"; + +interface IServerInfoServiceService extends grpc.ServiceDefinition { + getServerInfo: IServerInfoServiceService_IGetServerInfo; +} + +interface IServerInfoServiceService_IGetServerInfo extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.v2.ServerInfoService/GetServerInfo"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const ServerInfoServiceService: IServerInfoServiceService; + +export interface IServerInfoServiceServer extends grpc.UntypedServiceImplementation { + getServerInfo: grpc.handleUnaryCall; +} + +export interface IServerInfoServiceClient { + getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall; + getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall; + getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall; +} + +export class ServerInfoServiceClient extends grpc.Client implements IServerInfoServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall; + public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall; + public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js new file mode 100644 index 00000000..7470bacb --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js @@ -0,0 +1,50 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var kurrentdb_protocols_v2_features_service_pb = require('../../../../kurrentdb/protocols/v2/features/service_pb.js'); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js'); + +function serialize_kurrentdb_protocol_v2_ServerInfoRequest(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.ServerInfoRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_ServerInfoRequest(buffer_arg) { + return kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_ServerInfoResponse(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.ServerInfoResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_ServerInfoResponse(buffer_arg) { + return kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +// * +// Service for retrieving information about the server, including features +// and metadata. +var ServerInfoServiceService = exports.ServerInfoServiceService = { + // Retrieves server information and available features +getServerInfo: { + path: '/kurrentdb.protocol.v2.ServerInfoService/GetServerInfo', + requestStream: false, + responseStream: false, + requestType: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, + responseType: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse, + requestSerialize: serialize_kurrentdb_protocol_v2_ServerInfoRequest, + requestDeserialize: deserialize_kurrentdb_protocol_v2_ServerInfoRequest, + responseSerialize: serialize_kurrentdb_protocol_v2_ServerInfoResponse, + responseDeserialize: deserialize_kurrentdb_protocol_v2_ServerInfoResponse, + }, +}; + +exports.ServerInfoServiceClient = grpc.makeGenericClientConstructor(ServerInfoServiceService, 'ServerInfoService'); diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.d.ts new file mode 100644 index 00000000..56ddf5d0 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.d.ts @@ -0,0 +1,227 @@ +// package: kurrentdb.protocol.v2 +// file: kurrentdb/protocols/v2/features/service.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb"; + +export class ServerMetadata extends jspb.Message { + getVersion(): string; + setVersion(value: string): ServerMetadata; + getBuild(): string; + setBuild(value: string): ServerMetadata; + getMinCompatibleClientVersion(): string; + setMinCompatibleClientVersion(value: string): ServerMetadata; + getNodeId(): string; + setNodeId(value: string): ServerMetadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ServerMetadata.AsObject; + static toObject(includeInstance: boolean, msg: ServerMetadata): ServerMetadata.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ServerMetadata, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ServerMetadata; + static deserializeBinaryFromReader(message: ServerMetadata, reader: jspb.BinaryReader): ServerMetadata; +} + +export namespace ServerMetadata { + export type AsObject = { + version: string, + build: string, + minCompatibleClientVersion: string, + nodeId: string, + } +} + +export class ServerInfoRequest extends jspb.Message { + getClientVersion(): string; + setClientVersion(value: string): ServerInfoRequest; + getClientId(): string; + setClientId(value: string): ServerInfoRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ServerInfoRequest.AsObject; + static toObject(includeInstance: boolean, msg: ServerInfoRequest): ServerInfoRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ServerInfoRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ServerInfoRequest; + static deserializeBinaryFromReader(message: ServerInfoRequest, reader: jspb.BinaryReader): ServerInfoRequest; +} + +export namespace ServerInfoRequest { + export type AsObject = { + clientVersion: string, + clientId: string, + } +} + +export class ServerInfoResponse extends jspb.Message { + + hasInfo(): boolean; + clearInfo(): void; + getInfo(): ServerInfo | undefined; + setInfo(value?: ServerInfo): ServerInfoResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ServerInfoResponse.AsObject; + static toObject(includeInstance: boolean, msg: ServerInfoResponse): ServerInfoResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ServerInfoResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ServerInfoResponse; + static deserializeBinaryFromReader(message: ServerInfoResponse, reader: jspb.BinaryReader): ServerInfoResponse; +} + +export namespace ServerInfoResponse { + export type AsObject = { + info?: ServerInfo.AsObject, + } +} + +export class ServerInfo extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): ServerMetadata | undefined; + setMetadata(value?: ServerMetadata): ServerInfo; + + getFeaturesMap(): jspb.Map; + clearFeaturesMap(): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ServerInfo.AsObject; + static toObject(includeInstance: boolean, msg: ServerInfo): ServerInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ServerInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ServerInfo; + static deserializeBinaryFromReader(message: ServerInfo, reader: jspb.BinaryReader): ServerInfo; +} + +export namespace ServerInfo { + export type AsObject = { + metadata?: ServerMetadata.AsObject, + + featuresMap: Array<[string, FeaturesList.AsObject]>, + } +} + +export class FeaturesList extends jspb.Message { + clearFeaturesList(): void; + getFeaturesList(): Array; + setFeaturesList(value: Array): FeaturesList; + addFeatures(value?: Feature, index?: number): Feature; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FeaturesList.AsObject; + static toObject(includeInstance: boolean, msg: FeaturesList): FeaturesList.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FeaturesList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FeaturesList; + static deserializeBinaryFromReader(message: FeaturesList, reader: jspb.BinaryReader): FeaturesList; +} + +export namespace FeaturesList { + export type AsObject = { + featuresList: Array, + } +} + +export class Feature extends jspb.Message { + getName(): string; + setName(value: string): Feature; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string | undefined; + setDescription(value: string): Feature; + getEnabled(): boolean; + setEnabled(value: boolean): Feature; + getDeprecated(): boolean; + setDeprecated(value: boolean): Feature; + clearRequirementsList(): void; + getRequirementsList(): Array; + setRequirementsList(value: Array): Feature; + addRequirements(value?: FeatureRequirement, index?: number): FeatureRequirement; + getClientConfigurable(): boolean; + setClientConfigurable(value: boolean): Feature; + + hasAvailableUntil(): boolean; + clearAvailableUntil(): void; + getAvailableUntil(): google_protobuf_timestamp_pb.Timestamp | undefined; + setAvailableUntil(value?: google_protobuf_timestamp_pb.Timestamp): Feature; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Feature.AsObject; + static toObject(includeInstance: boolean, msg: Feature): Feature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Feature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Feature; + static deserializeBinaryFromReader(message: Feature, reader: jspb.BinaryReader): Feature; +} + +export namespace Feature { + export type AsObject = { + name: string, + description?: string, + enabled: boolean, + deprecated: boolean, + requirementsList: Array, + clientConfigurable: boolean, + availableUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class FeatureRequirement extends jspb.Message { + getName(): string; + setName(value: string): FeatureRequirement; + + hasValue(): boolean; + clearValue(): void; + getValue(): kurrentdb_protocols_v2_core_pb.DynamicValue | undefined; + setValue(value?: kurrentdb_protocols_v2_core_pb.DynamicValue): FeatureRequirement; + getPolicyStatus(): PolicyStatus; + setPolicyStatus(value: PolicyStatus): FeatureRequirement; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string | undefined; + setDescription(value: string): FeatureRequirement; + + hasViolationMessage(): boolean; + clearViolationMessage(): void; + getViolationMessage(): string | undefined; + setViolationMessage(value: string): FeatureRequirement; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FeatureRequirement.AsObject; + static toObject(includeInstance: boolean, msg: FeatureRequirement): FeatureRequirement.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FeatureRequirement, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FeatureRequirement; + static deserializeBinaryFromReader(message: FeatureRequirement, reader: jspb.BinaryReader): FeatureRequirement; +} + +export namespace FeatureRequirement { + export type AsObject = { + name: string, + value?: kurrentdb_protocols_v2_core_pb.DynamicValue.AsObject, + policyStatus: PolicyStatus, + description?: string, + violationMessage?: string, + } +} + +export enum PolicyStatus { + OPTIONAL = 0, + REQUIRED = 3, + PROHIBITED = 4, +} diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.js new file mode 100644 index 00000000..f09f0df8 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/features/service_pb.js @@ -0,0 +1,1753 @@ +// source: kurrentdb/protocols/v2/features/service.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v2_core_pb); +goog.exportSymbol('proto.kurrentdb.protocol.v2.Feature', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.FeatureRequirement', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.FeaturesList', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.PolicyStatus', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ServerInfo', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ServerInfoRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ServerInfoResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ServerMetadata', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ServerMetadata = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ServerMetadata, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ServerMetadata.displayName = 'proto.kurrentdb.protocol.v2.ServerMetadata'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ServerInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ServerInfoRequest.displayName = 'proto.kurrentdb.protocol.v2.ServerInfoRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ServerInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ServerInfoResponse.displayName = 'proto.kurrentdb.protocol.v2.ServerInfoResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ServerInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ServerInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ServerInfo.displayName = 'proto.kurrentdb.protocol.v2.ServerInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.FeaturesList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.FeaturesList.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.FeaturesList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.FeaturesList.displayName = 'proto.kurrentdb.protocol.v2.FeaturesList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.Feature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.Feature.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.Feature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.Feature.displayName = 'proto.kurrentdb.protocol.v2.Feature'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.FeatureRequirement = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.FeatureRequirement, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.FeatureRequirement.displayName = 'proto.kurrentdb.protocol.v2.FeatureRequirement'; +} + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ServerMetadata.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ServerMetadata} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerMetadata.toObject = function(includeInstance, msg) { + var f, obj = { + version: jspb.Message.getFieldWithDefault(msg, 1, ""), + build: jspb.Message.getFieldWithDefault(msg, 2, ""), + minCompatibleClientVersion: jspb.Message.getFieldWithDefault(msg, 3, ""), + nodeId: 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.kurrentdb.protocol.v2.ServerMetadata} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ServerMetadata; + return proto.kurrentdb.protocol.v2.ServerMetadata.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ServerMetadata} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ServerMetadata} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.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.setVersion(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBuild(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMinCompatibleClientVersion(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNodeId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ServerMetadata.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ServerMetadata} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerMetadata.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBuild(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getMinCompatibleClientVersion(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getNodeId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string version = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ServerMetadata} returns this + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string build = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.getBuild = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ServerMetadata} returns this + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.setBuild = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string min_compatible_client_version = 3; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.getMinCompatibleClientVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ServerMetadata} returns this + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.setMinCompatibleClientVersion = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string node_id = 4; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.getNodeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ServerMetadata} returns this + */ +proto.kurrentdb.protocol.v2.ServerMetadata.prototype.setNodeId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ServerInfoRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ServerInfoRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.toObject = function(includeInstance, msg) { + var f, obj = { + clientVersion: jspb.Message.getFieldWithDefault(msg, 1, ""), + clientId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ServerInfoRequest} + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ServerInfoRequest; + return proto.kurrentdb.protocol.v2.ServerInfoRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ServerInfoRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ServerInfoRequest} + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.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.setClientVersion(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setClientId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ServerInfoRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ServerInfoRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClientVersion(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getClientId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string client_version = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.prototype.getClientVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ServerInfoRequest} returns this + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.prototype.setClientVersion = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string client_id = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.prototype.getClientId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ServerInfoRequest} returns this + */ +proto.kurrentdb.protocol.v2.ServerInfoRequest.prototype.setClientId = function(value) { + return jspb.Message.setProto3StringField(this, 2, 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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ServerInfoResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ServerInfoResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.toObject = function(includeInstance, msg) { + var f, obj = { + info: (f = msg.getInfo()) && proto.kurrentdb.protocol.v2.ServerInfo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ServerInfoResponse} + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ServerInfoResponse; + return proto.kurrentdb.protocol.v2.ServerInfoResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ServerInfoResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ServerInfoResponse} + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.ServerInfo; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ServerInfo.deserializeBinaryFromReader); + msg.setInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ServerInfoResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ServerInfoResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.v2.ServerInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ServerInfo info = 1; + * @return {?proto.kurrentdb.protocol.v2.ServerInfo} + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.prototype.getInfo = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ServerInfo} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ServerInfo, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ServerInfo|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ServerInfoResponse} returns this +*/ +proto.kurrentdb.protocol.v2.ServerInfoResponse.prototype.setInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ServerInfoResponse} returns this + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.prototype.clearInfo = function() { + return this.setInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ServerInfoResponse.prototype.hasInfo = 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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ServerInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ServerInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerInfo.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.kurrentdb.protocol.v2.ServerMetadata.toObject(includeInstance, f), + featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.v2.FeaturesList.toObject) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ServerInfo} + */ +proto.kurrentdb.protocol.v2.ServerInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ServerInfo; + return proto.kurrentdb.protocol.v2.ServerInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ServerInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ServerInfo} + */ +proto.kurrentdb.protocol.v2.ServerInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.ServerMetadata; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ServerMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = msg.getFeaturesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protocol.v2.FeaturesList.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.v2.FeaturesList()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ServerInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ServerInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ServerInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.v2.ServerMetadata.serializeBinaryToWriter + ); + } + f = message.getFeaturesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protocol.v2.FeaturesList.serializeBinaryToWriter); + } +}; + + +/** + * optional ServerMetadata metadata = 1; + * @return {?proto.kurrentdb.protocol.v2.ServerMetadata} + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.getMetadata = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ServerMetadata} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ServerMetadata, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ServerMetadata|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ServerInfo} returns this +*/ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ServerInfo} returns this + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * map features = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.getFeaturesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + proto.kurrentdb.protocol.v2.FeaturesList)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.v2.ServerInfo} returns this + */ +proto.kurrentdb.protocol.v2.ServerInfo.prototype.clearFeaturesMap = function() { + this.getFeaturesMap().clear(); + return this;}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.FeaturesList.repeatedFields_ = [1]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.FeaturesList.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.FeaturesList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.FeaturesList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.FeaturesList.toObject = function(includeInstance, msg) { + var f, obj = { + featuresList: jspb.Message.toObjectList(msg.getFeaturesList(), + proto.kurrentdb.protocol.v2.Feature.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.FeaturesList} + */ +proto.kurrentdb.protocol.v2.FeaturesList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.FeaturesList; + return proto.kurrentdb.protocol.v2.FeaturesList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.FeaturesList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.FeaturesList} + */ +proto.kurrentdb.protocol.v2.FeaturesList.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.Feature; + reader.readMessage(value,proto.kurrentdb.protocol.v2.Feature.deserializeBinaryFromReader); + msg.addFeatures(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.FeaturesList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.FeaturesList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.FeaturesList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.FeaturesList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFeaturesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.v2.Feature.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Feature features = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.FeaturesList.prototype.getFeaturesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.Feature, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.FeaturesList} returns this +*/ +proto.kurrentdb.protocol.v2.FeaturesList.prototype.setFeaturesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.Feature=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.Feature} + */ +proto.kurrentdb.protocol.v2.FeaturesList.prototype.addFeatures = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.Feature, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.FeaturesList} returns this + */ +proto.kurrentdb.protocol.v2.FeaturesList.prototype.clearFeaturesList = function() { + return this.setFeaturesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.Feature.repeatedFields_ = [5]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.Feature.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.Feature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.Feature.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + enabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(), + proto.kurrentdb.protocol.v2.FeatureRequirement.toObject, includeInstance), + clientConfigurable: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + availableUntil: (f = msg.getAvailableUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.Feature} + */ +proto.kurrentdb.protocol.v2.Feature.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.Feature; + return proto.kurrentdb.protocol.v2.Feature.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.Feature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.Feature} + */ +proto.kurrentdb.protocol.v2.Feature.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 {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setEnabled(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeprecated(value); + break; + case 5: + var value = new proto.kurrentdb.protocol.v2.FeatureRequirement; + reader.readMessage(value,proto.kurrentdb.protocol.v2.FeatureRequirement.deserializeBinaryFromReader); + msg.addRequirements(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setClientConfigurable(value); + break; + case 7: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setAvailableUntil(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.Feature.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.Feature} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.Feature.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getEnabled(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getDeprecated(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getRequirementsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.kurrentdb.protocol.v2.FeatureRequirement.serializeBinaryToWriter + ); + } + f = message.getClientConfigurable(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getAvailableUntil(); + if (f != null) { + writer.writeMessage( + 7, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.clearDescription = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.hasDescription = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bool enabled = 3; + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.setEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional bool deprecated = 4; + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getDeprecated = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.setDeprecated = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * repeated FeatureRequirement requirements = 5; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getRequirementsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.FeatureRequirement, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this +*/ +proto.kurrentdb.protocol.v2.Feature.prototype.setRequirementsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.FeatureRequirement=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.addRequirements = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.kurrentdb.protocol.v2.FeatureRequirement, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.clearRequirementsList = function() { + return this.setRequirementsList([]); +}; + + +/** + * optional bool client_configurable = 6; + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getClientConfigurable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.setClientConfigurable = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional google.protobuf.Timestamp available_until = 7; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.getAvailableUntil = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this +*/ +proto.kurrentdb.protocol.v2.Feature.prototype.setAvailableUntil = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.Feature} returns this + */ +proto.kurrentdb.protocol.v2.Feature.prototype.clearAvailableUntil = function() { + return this.setAvailableUntil(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Feature.prototype.hasAvailableUntil = function() { + return jspb.Message.getField(this, 7) != 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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.FeatureRequirement.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.FeatureRequirement} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: (f = msg.getValue()) && kurrentdb_protocols_v2_core_pb.DynamicValue.toObject(includeInstance, f), + policyStatus: jspb.Message.getFieldWithDefault(msg, 3, 0), + description: jspb.Message.getFieldWithDefault(msg, 4, ""), + violationMessage: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.FeatureRequirement; + return proto.kurrentdb.protocol.v2.FeatureRequirement.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.FeatureRequirement} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.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 = new kurrentdb_protocols_v2_core_pb.DynamicValue; + reader.readMessage(value,kurrentdb_protocols_v2_core_pb.DynamicValue.deserializeBinaryFromReader); + msg.setValue(value); + break; + case 3: + var value = /** @type {!proto.kurrentdb.protocol.v2.PolicyStatus} */ (reader.readEnum()); + msg.setPolicyStatus(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setViolationMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.FeatureRequirement.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.FeatureRequirement} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValue(); + if (f != null) { + writer.writeMessage( + 2, + f, + kurrentdb_protocols_v2_core_pb.DynamicValue.serializeBinaryToWriter + ); + } + f = message.getPolicyStatus(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional kurrentdb.protocol.DynamicValue value = 2; + * @return {?proto.kurrentdb.protocol.DynamicValue} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.getValue = function() { + return /** @type{?proto.kurrentdb.protocol.DynamicValue} */ ( + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_core_pb.DynamicValue, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.DynamicValue|undefined} value + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this +*/ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.setValue = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.clearValue = function() { + return this.setValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.hasValue = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional PolicyStatus policy_status = 3; + * @return {!proto.kurrentdb.protocol.v2.PolicyStatus} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.getPolicyStatus = function() { + return /** @type {!proto.kurrentdb.protocol.v2.PolicyStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.PolicyStatus} value + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.setPolicyStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional string description = 4; + * @return {string} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.clearDescription = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.hasDescription = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string violation_message = 5; + * @return {string} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.getViolationMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.setViolationMessage = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.FeatureRequirement} returns this + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.clearViolationMessage = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.FeatureRequirement.prototype.hasViolationMessage = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.PolicyStatus = { + OPTIONAL: 0, + REQUIRED: 3, + PROHIBITED: 4 +}; + +goog.object.extend(exports, proto.kurrentdb.protocol.v2); diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts new file mode 100644 index 00000000..5c2f0a62 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts @@ -0,0 +1,218 @@ +// package: kurrentdb.protocol.v2 +// file: kurrentdb/protocols/v2/streams/shared.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; +import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb"; + +export class ErrorDetails extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ErrorDetails.AsObject; + static toObject(includeInstance: boolean, msg: ErrorDetails): ErrorDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ErrorDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ErrorDetails; + static deserializeBinaryFromReader(message: ErrorDetails, reader: jspb.BinaryReader): ErrorDetails; +} + +export namespace ErrorDetails { + export type AsObject = { + } + + + export class AccessDenied extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AccessDenied.AsObject; + static toObject(includeInstance: boolean, msg: AccessDenied): AccessDenied.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AccessDenied, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AccessDenied; + static deserializeBinaryFromReader(message: AccessDenied, reader: jspb.BinaryReader): AccessDenied; + } + + export namespace AccessDenied { + export type AsObject = { + } + } + + export class StreamDeleted extends jspb.Message { + + hasStream(): boolean; + clearStream(): void; + getStream(): string | undefined; + setStream(value: string): StreamDeleted; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setDeletedAt(value?: google_protobuf_timestamp_pb.Timestamp): StreamDeleted; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamDeleted.AsObject; + static toObject(includeInstance: boolean, msg: StreamDeleted): StreamDeleted.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamDeleted, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamDeleted; + static deserializeBinaryFromReader(message: StreamDeleted, reader: jspb.BinaryReader): StreamDeleted; + } + + export namespace StreamDeleted { + export type AsObject = { + stream?: string, + deletedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } + } + + export class StreamTombstoned extends jspb.Message { + + hasStream(): boolean; + clearStream(): void; + getStream(): string | undefined; + setStream(value: string): StreamTombstoned; + + hasTombstonedAt(): boolean; + clearTombstonedAt(): void; + getTombstonedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTombstonedAt(value?: google_protobuf_timestamp_pb.Timestamp): StreamTombstoned; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamTombstoned.AsObject; + static toObject(includeInstance: boolean, msg: StreamTombstoned): StreamTombstoned.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamTombstoned, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamTombstoned; + static deserializeBinaryFromReader(message: StreamTombstoned, reader: jspb.BinaryReader): StreamTombstoned; + } + + export namespace StreamTombstoned { + export type AsObject = { + stream?: string, + tombstonedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } + } + + export class StreamNotFound extends jspb.Message { + + hasStream(): boolean; + clearStream(): void; + getStream(): string | undefined; + setStream(value: string): StreamNotFound; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamNotFound.AsObject; + static toObject(includeInstance: boolean, msg: StreamNotFound): StreamNotFound.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamNotFound, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamNotFound; + static deserializeBinaryFromReader(message: StreamNotFound, reader: jspb.BinaryReader): StreamNotFound; + } + + export namespace StreamNotFound { + export type AsObject = { + stream?: string, + } + } + + export class StreamRevisionConflict extends jspb.Message { + getStreamRevision(): string; + setStreamRevision(value: string): StreamRevisionConflict; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamRevisionConflict.AsObject; + static toObject(includeInstance: boolean, msg: StreamRevisionConflict): StreamRevisionConflict.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamRevisionConflict, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamRevisionConflict; + static deserializeBinaryFromReader(message: StreamRevisionConflict, reader: jspb.BinaryReader): StreamRevisionConflict; + } + + export namespace StreamRevisionConflict { + export type AsObject = { + streamRevision: string, + } + } + + export class TransactionMaxSizeExceeded extends jspb.Message { + getMaxSize(): number; + setMaxSize(value: number): TransactionMaxSizeExceeded; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransactionMaxSizeExceeded.AsObject; + static toObject(includeInstance: boolean, msg: TransactionMaxSizeExceeded): TransactionMaxSizeExceeded.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransactionMaxSizeExceeded, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransactionMaxSizeExceeded; + static deserializeBinaryFromReader(message: TransactionMaxSizeExceeded, reader: jspb.BinaryReader): TransactionMaxSizeExceeded; + } + + export namespace TransactionMaxSizeExceeded { + export type AsObject = { + maxSize: number, + } + } + + export class UserNotFound extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UserNotFound.AsObject; + static toObject(includeInstance: boolean, msg: UserNotFound): UserNotFound.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UserNotFound, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UserNotFound; + static deserializeBinaryFromReader(message: UserNotFound, reader: jspb.BinaryReader): UserNotFound; + } + + export namespace UserNotFound { + export type AsObject = { + } + } + + export class NotAuthenticated extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NotAuthenticated.AsObject; + static toObject(includeInstance: boolean, msg: NotAuthenticated): NotAuthenticated.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NotAuthenticated, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NotAuthenticated; + static deserializeBinaryFromReader(message: NotAuthenticated, reader: jspb.BinaryReader): NotAuthenticated; + } + + export namespace NotAuthenticated { + export type AsObject = { + } + } + + export class LogPositionNotFound extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LogPositionNotFound.AsObject; + static toObject(includeInstance: boolean, msg: LogPositionNotFound): LogPositionNotFound.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LogPositionNotFound, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LogPositionNotFound; + static deserializeBinaryFromReader(message: LogPositionNotFound, reader: jspb.BinaryReader): LogPositionNotFound; + } + + export namespace LogPositionNotFound { + export type AsObject = { + } + } + +} diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.js new file mode 100644 index 00000000..f53dcc5a --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/shared_pb.js @@ -0,0 +1,1561 @@ +// source: kurrentdb/protocols/v2/streams/shared.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v2_core_pb); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails; + return proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied; + return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted; + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getDeletedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setStream = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearStream = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasStream = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional google.protobuf.Timestamp deleted_at = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.getDeletedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this +*/ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.setDeletedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.clearDeletedAt = function() { + return this.setDeletedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.hasDeletedAt = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + tombstonedAt: (f = msg.getTombstonedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned; + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTombstonedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getTombstonedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setStream = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearStream = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasStream = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional google.protobuf.Timestamp tombstoned_at = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.getTombstonedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this +*/ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.setTombstonedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.clearTombstonedAt = function() { + return this.setTombstonedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamTombstoned.prototype.hasTombstonedAt = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound; + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.setStream = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.clearStream = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound.prototype.hasStream = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.toObject = function(includeInstance, msg) { + var f, obj = { + streamRevision: jspb.Message.getFieldWithDefault(msg, 1, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict; + return proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setStreamRevision(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStreamRevision(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 1, + f + ); + } +}; + + +/** + * optional int64 stream_revision = 1; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict.prototype.setStreamRevision = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = function(includeInstance, msg) { + var f, obj = { + maxSize: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded; + return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxSize(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMaxSize(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } +}; + + +/** + * optional uint32 max_size = 1; + * @return {number} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this + */ +proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound; + return proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.UserNotFound.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated; + return proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.NotAuthenticated.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound; + return proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ErrorDetails.LogPositionNotFound.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.kurrentdb.protocol.v2); diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts new file mode 100644 index 00000000..4ea72462 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.d.ts @@ -0,0 +1,80 @@ +// package: kurrentdb.protocol.v2 +// file: kurrentdb/protocols/v2/streams/streams.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as kurrentdb_protocols_v2_streams_streams_pb from "../../../../kurrentdb/protocols/v2/streams/streams_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; +import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; +import * as kurrentdb_protocols_v2_streams_shared_pb from "../../../../kurrentdb/protocols/v2/streams/shared_pb"; +import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb"; + +interface IStreamsServiceService extends grpc.ServiceDefinition { + multiStreamAppend: IStreamsServiceService_IMultiStreamAppend; + multiStreamAppendSession: IStreamsServiceService_IMultiStreamAppendSession; + readSession: IStreamsServiceService_IReadSession; +} + +interface IStreamsServiceService_IMultiStreamAppend extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.v2.StreamsService/MultiStreamAppend"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsServiceService_IMultiStreamAppendSession extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.v2.StreamsService/MultiStreamAppendSession"; + requestStream: true; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IStreamsServiceService_IReadSession extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.v2.StreamsService/ReadSession"; + requestStream: false; + responseStream: true; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const StreamsServiceService: IStreamsServiceService; + +export interface IStreamsServiceServer extends grpc.UntypedServiceImplementation { + multiStreamAppend: grpc.handleUnaryCall; + multiStreamAppendSession: grpc.handleClientStreamingCall; + readSession: grpc.handleServerStreamingCall; +} + +export interface IStreamsServiceClient { + multiStreamAppend(request: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppend(request: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppend(request: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + readSession(request: kurrentdb_protocols_v2_streams_streams_pb.ReadRequest, options?: Partial): grpc.ClientReadableStream; + readSession(request: kurrentdb_protocols_v2_streams_streams_pb.ReadRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; +} + +export class StreamsServiceClient extends grpc.Client implements IStreamsServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public multiStreamAppend(request: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppend(request: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppend(request: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public readSession(request: kurrentdb_protocols_v2_streams_streams_pb.ReadRequest, options?: Partial): grpc.ClientReadableStream; + public readSession(request: kurrentdb_protocols_v2_streams_streams_pb.ReadRequest, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; +} diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js new file mode 100644 index 00000000..c376ee61 --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_grpc_pb.js @@ -0,0 +1,124 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var kurrentdb_protocols_v2_streams_streams_pb = require('../../../../kurrentdb/protocols/v2/streams/streams_pb.js'); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +var kurrentdb_protocols_v2_streams_shared_pb = require('../../../../kurrentdb/protocols/v2/streams/shared_pb.js'); +var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js'); + +function serialize_kurrentdb_protocol_v2_AppendStreamRequest(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_streams_streams_pb.AppendStreamRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.AppendStreamRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_AppendStreamRequest(buffer_arg) { + return kurrentdb_protocols_v2_streams_streams_pb.AppendStreamRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_MultiStreamAppendRequest(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.MultiStreamAppendRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_MultiStreamAppendRequest(buffer_arg) { + return kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.MultiStreamAppendResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse(buffer_arg) { + return kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_ReadRequest(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_streams_streams_pb.ReadRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.ReadRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_ReadRequest(buffer_arg) { + return kurrentdb_protocols_v2_streams_streams_pb.ReadRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_v2_ReadResponse(arg) { + if (!(arg instanceof kurrentdb_protocols_v2_streams_streams_pb.ReadResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.v2.ReadResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_v2_ReadResponse(buffer_arg) { + return kurrentdb_protocols_v2_streams_streams_pb.ReadResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var StreamsServiceService = exports.StreamsServiceService = { + // Executes an atomic operation to append records to multiple streams. +// This transactional method ensures that all appends either succeed +// completely, or are entirely rolled back, thereby maintaining strict data +// consistency across all involved streams. +multiStreamAppend: { + path: '/kurrentdb.protocol.v2.StreamsService/MultiStreamAppend', + requestStream: false, + responseStream: false, + requestType: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendRequest, + responseType: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse, + requestSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendRequest, + requestDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendRequest, + responseSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + responseDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + }, + // Streaming version of MultiStreamAppend that allows clients to send multiple +// append requests over a single connection. When the stream completes, all +// records are appended transactionally (all succeed or fail together). +// Provides improved efficiency for high-throughput scenarios while +// maintaining the same transactional guarantees. +multiStreamAppendSession: { + path: '/kurrentdb.protocol.v2.StreamsService/MultiStreamAppendSession', + requestStream: true, + responseStream: false, + requestType: kurrentdb_protocols_v2_streams_streams_pb.AppendStreamRequest, + responseType: kurrentdb_protocols_v2_streams_streams_pb.MultiStreamAppendResponse, + requestSerialize: serialize_kurrentdb_protocol_v2_AppendStreamRequest, + requestDeserialize: deserialize_kurrentdb_protocol_v2_AppendStreamRequest, + responseSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + responseDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, + }, + // // Appends records to a specific stream. +// rpc AppendStream(AppendStreamRequest) returns (AppendStreamResponse); +// +// // Append batches of records to a stream continuously, while guaranteeing pipelined +// // requests are processed in order. If any request fails, the session is terminated. +// rpc AppendStreamSession(stream AppendStreamRequest) returns (stream AppendStreamResponse); +// +// // Retrieve a batch of records +// rpc ReadStream(ReadRequest) returns (ReadResponse); +// +// Retrieve batches of records continuously. +readSession: { + path: '/kurrentdb.protocol.v2.StreamsService/ReadSession', + requestStream: false, + responseStream: true, + requestType: kurrentdb_protocols_v2_streams_streams_pb.ReadRequest, + responseType: kurrentdb_protocols_v2_streams_streams_pb.ReadResponse, + requestSerialize: serialize_kurrentdb_protocol_v2_ReadRequest, + requestDeserialize: deserialize_kurrentdb_protocol_v2_ReadRequest, + responseSerialize: serialize_kurrentdb_protocol_v2_ReadResponse, + responseDeserialize: deserialize_kurrentdb_protocol_v2_ReadResponse, + }, +}; + +exports.StreamsServiceClient = grpc.makeGenericClientConstructor(StreamsServiceService, 'StreamsService'); diff --git a/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts new file mode 100644 index 00000000..328dbe2d --- /dev/null +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.d.ts @@ -0,0 +1,640 @@ +// package: kurrentdb.protocol.v2 +// file: kurrentdb/protocols/v2/streams/streams.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; +import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; +import * as kurrentdb_protocols_v2_streams_shared_pb from "../../../../kurrentdb/protocols/v2/streams/shared_pb"; +import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb"; + +export class AppendRecord extends jspb.Message { + + hasRecordId(): boolean; + clearRecordId(): void; + getRecordId(): string | undefined; + setRecordId(value: string): AppendRecord; + + getPropertiesMap(): jspb.Map; + clearPropertiesMap(): void; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): AppendRecord; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendRecord.AsObject; + static toObject(includeInstance: boolean, msg: AppendRecord): AppendRecord.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendRecord, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendRecord; + static deserializeBinaryFromReader(message: AppendRecord, reader: jspb.BinaryReader): AppendRecord; +} + +export namespace AppendRecord { + export type AsObject = { + recordId?: string, + + propertiesMap: Array<[string, kurrentdb_protocols_v2_core_pb.DynamicValue.AsObject]>, + data: Uint8Array | string, + } +} + +export class AppendStreamRequest extends jspb.Message { + getStream(): string; + setStream(value: string): AppendStreamRequest; + clearRecordsList(): void; + getRecordsList(): Array; + setRecordsList(value: Array): AppendStreamRequest; + addRecords(value?: AppendRecord, index?: number): AppendRecord; + + hasExpectedRevision(): boolean; + clearExpectedRevision(): void; + getExpectedRevision(): string | undefined; + setExpectedRevision(value: string): AppendStreamRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamRequest.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamRequest): AppendStreamRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamRequest; + static deserializeBinaryFromReader(message: AppendStreamRequest, reader: jspb.BinaryReader): AppendStreamRequest; +} + +export namespace AppendStreamRequest { + export type AsObject = { + stream: string, + recordsList: Array, + expectedRevision?: string, + } +} + +export class AppendStreamSuccess extends jspb.Message { + getStream(): string; + setStream(value: string): AppendStreamSuccess; + getPosition(): string; + setPosition(value: string): AppendStreamSuccess; + getStreamRevision(): string; + setStreamRevision(value: string): AppendStreamSuccess; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamSuccess.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamSuccess): AppendStreamSuccess.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamSuccess, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamSuccess; + static deserializeBinaryFromReader(message: AppendStreamSuccess, reader: jspb.BinaryReader): AppendStreamSuccess; +} + +export namespace AppendStreamSuccess { + export type AsObject = { + stream: string, + position: string, + streamRevision: string, + } +} + +export class AppendStreamFailure extends jspb.Message { + getStream(): string; + setStream(value: string): AppendStreamFailure; + + hasStreamRevisionConflict(): boolean; + clearStreamRevisionConflict(): void; + getStreamRevisionConflict(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict | undefined; + setStreamRevisionConflict(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict): AppendStreamFailure; + + hasAccessDenied(): boolean; + clearAccessDenied(): void; + getAccessDenied(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied | undefined; + setAccessDenied(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied): AppendStreamFailure; + + hasStreamDeleted(): boolean; + clearStreamDeleted(): void; + getStreamDeleted(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted | undefined; + setStreamDeleted(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted): AppendStreamFailure; + + hasStreamNotFound(): boolean; + clearStreamNotFound(): void; + getStreamNotFound(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound | undefined; + setStreamNotFound(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound): AppendStreamFailure; + + hasTransactionMaxSizeExceeded(): boolean; + clearTransactionMaxSizeExceeded(): void; + getTransactionMaxSizeExceeded(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded | undefined; + setTransactionMaxSizeExceeded(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded): AppendStreamFailure; + + getErrorCase(): AppendStreamFailure.ErrorCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamFailure.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamFailure): AppendStreamFailure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamFailure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamFailure; + static deserializeBinaryFromReader(message: AppendStreamFailure, reader: jspb.BinaryReader): AppendStreamFailure; +} + +export namespace AppendStreamFailure { + export type AsObject = { + stream: string, + streamRevisionConflict?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict.AsObject, + accessDenied?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.AsObject, + streamDeleted?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.AsObject, + streamNotFound?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.AsObject, + transactionMaxSizeExceeded?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded.AsObject, + } + + export enum ErrorCase { + ERROR_NOT_SET = 0, + STREAM_REVISION_CONFLICT = 2, + ACCESS_DENIED = 3, + STREAM_DELETED = 4, + STREAM_NOT_FOUND = 5, + TRANSACTION_MAX_SIZE_EXCEEDED = 6, + } + +} + +export class AppendStreamResponse extends jspb.Message { + + hasSuccess(): boolean; + clearSuccess(): void; + getSuccess(): AppendStreamSuccess | undefined; + setSuccess(value?: AppendStreamSuccess): AppendStreamResponse; + + hasFailure(): boolean; + clearFailure(): void; + getFailure(): AppendStreamFailure | undefined; + setFailure(value?: AppendStreamFailure): AppendStreamResponse; + + getResultCase(): AppendStreamResponse.ResultCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppendStreamResponse.AsObject; + static toObject(includeInstance: boolean, msg: AppendStreamResponse): AppendStreamResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppendStreamResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppendStreamResponse; + static deserializeBinaryFromReader(message: AppendStreamResponse, reader: jspb.BinaryReader): AppendStreamResponse; +} + +export namespace AppendStreamResponse { + export type AsObject = { + success?: AppendStreamSuccess.AsObject, + failure?: AppendStreamFailure.AsObject, + } + + export enum ResultCase { + RESULT_NOT_SET = 0, + SUCCESS = 1, + FAILURE = 2, + } + +} + +export class MultiStreamAppendRequest extends jspb.Message { + clearInputList(): void; + getInputList(): Array; + setInputList(value: Array): MultiStreamAppendRequest; + addInput(value?: AppendStreamRequest, index?: number): AppendStreamRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiStreamAppendRequest.AsObject; + static toObject(includeInstance: boolean, msg: MultiStreamAppendRequest): MultiStreamAppendRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiStreamAppendRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiStreamAppendRequest; + static deserializeBinaryFromReader(message: MultiStreamAppendRequest, reader: jspb.BinaryReader): MultiStreamAppendRequest; +} + +export namespace MultiStreamAppendRequest { + export type AsObject = { + inputList: Array, + } +} + +export class MultiStreamAppendResponse extends jspb.Message { + + hasSuccess(): boolean; + clearSuccess(): void; + getSuccess(): MultiStreamAppendResponse.Success | undefined; + setSuccess(value?: MultiStreamAppendResponse.Success): MultiStreamAppendResponse; + + hasFailure(): boolean; + clearFailure(): void; + getFailure(): MultiStreamAppendResponse.Failure | undefined; + setFailure(value?: MultiStreamAppendResponse.Failure): MultiStreamAppendResponse; + + getResultCase(): MultiStreamAppendResponse.ResultCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiStreamAppendResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiStreamAppendResponse): MultiStreamAppendResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiStreamAppendResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiStreamAppendResponse; + static deserializeBinaryFromReader(message: MultiStreamAppendResponse, reader: jspb.BinaryReader): MultiStreamAppendResponse; +} + +export namespace MultiStreamAppendResponse { + export type AsObject = { + success?: MultiStreamAppendResponse.Success.AsObject, + failure?: MultiStreamAppendResponse.Failure.AsObject, + } + + + export class Success extends jspb.Message { + clearOutputList(): void; + getOutputList(): Array; + setOutputList(value: Array): Success; + addOutput(value?: AppendStreamSuccess, index?: number): AppendStreamSuccess; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Success.AsObject; + static toObject(includeInstance: boolean, msg: Success): Success.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Success, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Success; + static deserializeBinaryFromReader(message: Success, reader: jspb.BinaryReader): Success; + } + + export namespace Success { + export type AsObject = { + outputList: Array, + } + } + + export class Failure extends jspb.Message { + clearOutputList(): void; + getOutputList(): Array; + setOutputList(value: Array): Failure; + addOutput(value?: AppendStreamFailure, index?: number): AppendStreamFailure; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Failure.AsObject; + static toObject(includeInstance: boolean, msg: Failure): Failure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Failure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Failure; + static deserializeBinaryFromReader(message: Failure, reader: jspb.BinaryReader): Failure; + } + + export namespace Failure { + export type AsObject = { + outputList: Array, + } + } + + + export enum ResultCase { + RESULT_NOT_SET = 0, + SUCCESS = 1, + FAILURE = 2, + } + +} + +export class ReadFilter extends jspb.Message { + getScope(): ReadFilterScope; + setScope(value: ReadFilterScope): ReadFilter; + getExpression(): string; + setExpression(value: string): ReadFilter; + clearPropertyNamesList(): void; + getPropertyNamesList(): Array; + setPropertyNamesList(value: Array): ReadFilter; + addPropertyNames(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadFilter.AsObject; + static toObject(includeInstance: boolean, msg: ReadFilter): ReadFilter.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadFilter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadFilter; + static deserializeBinaryFromReader(message: ReadFilter, reader: jspb.BinaryReader): ReadFilter; +} + +export namespace ReadFilter { + export type AsObject = { + scope: ReadFilterScope, + expression: string, + propertyNamesList: Array, + } +} + +export class Record extends jspb.Message { + getRecordId(): string; + setRecordId(value: string): Record; + getPosition(): string; + setPosition(value: string): Record; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): Record; + + getPropertiesMap(): jspb.Map; + clearPropertiesMap(): void; + + hasTimestamp(): boolean; + clearTimestamp(): void; + getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): Record; + + hasStream(): boolean; + clearStream(): void; + getStream(): string | undefined; + setStream(value: string): Record; + + hasStreamRevision(): boolean; + clearStreamRevision(): void; + getStreamRevision(): string | undefined; + setStreamRevision(value: string): Record; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Record.AsObject; + static toObject(includeInstance: boolean, msg: Record): Record.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Record, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Record; + static deserializeBinaryFromReader(message: Record, reader: jspb.BinaryReader): Record; +} + +export namespace Record { + export type AsObject = { + recordId: string, + position: string, + data: Uint8Array | string, + + propertiesMap: Array<[string, kurrentdb_protocols_v2_core_pb.DynamicValue.AsObject]>, + timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, + stream?: string, + streamRevision?: string, + } +} + +export class ReadSuccess extends jspb.Message { + clearRecordsList(): void; + getRecordsList(): Array; + setRecordsList(value: Array): ReadSuccess; + addRecords(value?: Record, index?: number): Record; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadSuccess.AsObject; + static toObject(includeInstance: boolean, msg: ReadSuccess): ReadSuccess.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadSuccess, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadSuccess; + static deserializeBinaryFromReader(message: ReadSuccess, reader: jspb.BinaryReader): ReadSuccess; +} + +export namespace ReadSuccess { + export type AsObject = { + recordsList: Array, + } +} + +export class ReadFailure extends jspb.Message { + + hasAccessDenied(): boolean; + clearAccessDenied(): void; + getAccessDenied(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied | undefined; + setAccessDenied(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied): ReadFailure; + + hasStreamDeleted(): boolean; + clearStreamDeleted(): void; + getStreamDeleted(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted | undefined; + setStreamDeleted(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted): ReadFailure; + + hasStreamNotFound(): boolean; + clearStreamNotFound(): void; + getStreamNotFound(): kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound | undefined; + setStreamNotFound(value?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound): ReadFailure; + + getErrorCase(): ReadFailure.ErrorCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadFailure.AsObject; + static toObject(includeInstance: boolean, msg: ReadFailure): ReadFailure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadFailure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadFailure; + static deserializeBinaryFromReader(message: ReadFailure, reader: jspb.BinaryReader): ReadFailure; +} + +export namespace ReadFailure { + export type AsObject = { + accessDenied?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.AsObject, + streamDeleted?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.AsObject, + streamNotFound?: kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.AsObject, + } + + export enum ErrorCase { + ERROR_NOT_SET = 0, + ACCESS_DENIED = 1, + STREAM_DELETED = 2, + STREAM_NOT_FOUND = 3, + } + +} + +export class ReadRequest extends jspb.Message { + + hasFilter(): boolean; + clearFilter(): void; + getFilter(): ReadFilter | undefined; + setFilter(value?: ReadFilter): ReadRequest; + + hasStartPosition(): boolean; + clearStartPosition(): void; + getStartPosition(): string | undefined; + setStartPosition(value: string): ReadRequest; + + hasLimit(): boolean; + clearLimit(): void; + getLimit(): string | undefined; + setLimit(value: string): ReadRequest; + getDirection(): ReadDirection; + setDirection(value: ReadDirection): ReadRequest; + + hasHeartbeats(): boolean; + clearHeartbeats(): void; + getHeartbeats(): HeartbeatOptions | undefined; + setHeartbeats(value?: HeartbeatOptions): ReadRequest; + getBatchSize(): number; + setBatchSize(value: number): ReadRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadRequest.AsObject; + static toObject(includeInstance: boolean, msg: ReadRequest): ReadRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadRequest; + static deserializeBinaryFromReader(message: ReadRequest, reader: jspb.BinaryReader): ReadRequest; +} + +export namespace ReadRequest { + export type AsObject = { + filter?: ReadFilter.AsObject, + startPosition?: string, + limit?: string, + direction: ReadDirection, + heartbeats?: HeartbeatOptions.AsObject, + batchSize: number, + } +} + +export class ReadResponse extends jspb.Message { + + hasSuccess(): boolean; + clearSuccess(): void; + getSuccess(): ReadSuccess | undefined; + setSuccess(value?: ReadSuccess): ReadResponse; + + hasFailure(): boolean; + clearFailure(): void; + getFailure(): ReadFailure | undefined; + setFailure(value?: ReadFailure): ReadResponse; + + hasHeartbeat(): boolean; + clearHeartbeat(): void; + getHeartbeat(): Heartbeat | undefined; + setHeartbeat(value?: Heartbeat): ReadResponse; + + getResultCase(): ReadResponse.ResultCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReadResponse.AsObject; + static toObject(includeInstance: boolean, msg: ReadResponse): ReadResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ReadResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReadResponse; + static deserializeBinaryFromReader(message: ReadResponse, reader: jspb.BinaryReader): ReadResponse; +} + +export namespace ReadResponse { + export type AsObject = { + success?: ReadSuccess.AsObject, + failure?: ReadFailure.AsObject, + heartbeat?: Heartbeat.AsObject, + } + + export enum ResultCase { + RESULT_NOT_SET = 0, + SUCCESS = 1, + FAILURE = 2, + HEARTBEAT = 3, + } + +} + +export class HeartbeatOptions extends jspb.Message { + getEnable(): boolean; + setEnable(value: boolean): HeartbeatOptions; + + hasPeriod(): boolean; + clearPeriod(): void; + getPeriod(): google_protobuf_duration_pb.Duration | undefined; + setPeriod(value?: google_protobuf_duration_pb.Duration): HeartbeatOptions; + + hasRecordsThreshold(): boolean; + clearRecordsThreshold(): void; + getRecordsThreshold(): number | undefined; + setRecordsThreshold(value: number): HeartbeatOptions; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HeartbeatOptions.AsObject; + static toObject(includeInstance: boolean, msg: HeartbeatOptions): HeartbeatOptions.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HeartbeatOptions, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HeartbeatOptions; + static deserializeBinaryFromReader(message: HeartbeatOptions, reader: jspb.BinaryReader): HeartbeatOptions; +} + +export namespace HeartbeatOptions { + export type AsObject = { + enable: boolean, + period?: google_protobuf_duration_pb.Duration.AsObject, + recordsThreshold?: number, + } +} + +export class Heartbeat extends jspb.Message { + getType(): HeartbeatType; + setType(value: HeartbeatType): Heartbeat; + getPosition(): string; + setPosition(value: string): Heartbeat; + + hasTimestamp(): boolean; + clearTimestamp(): void; + getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; + setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): Heartbeat; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Heartbeat.AsObject; + static toObject(includeInstance: boolean, msg: Heartbeat): Heartbeat.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Heartbeat, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Heartbeat; + static deserializeBinaryFromReader(message: Heartbeat, reader: jspb.BinaryReader): Heartbeat; +} + +export namespace Heartbeat { + export type AsObject = { + type: HeartbeatType, + position: string, + timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export enum ExpectedRevisionConstants { + EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT = 0, + EXPECTED_REVISION_CONSTANTS_ANY = -2, + EXPECTED_REVISION_CONSTANTS_NO_STREAM = -1, + EXPECTED_REVISION_CONSTANTS_EXISTS = -4, +} + +export enum ReadFilterScope { + READ_FILTER_SCOPE_UNSPECIFIED = 0, + READ_FILTER_SCOPE_STREAM = 1, + READ_FILTER_SCOPE_SCHEMA_NAME = 2, + READ_FILTER_SCOPE_PROPERTIES = 3, + READ_FILTER_SCOPE_RECORD = 4, +} + +export enum ReadDirection { + READ_DIRECTION_FORWARDS = 0, + READ_DIRECTION_BACKWARDS = 1, +} + +export enum ReadPositionConstants { + READ_POSITION_CONSTANTS_UNSPECIFIED = 0, + READ_POSITION_CONSTANTS_EARLIEST = 1, + READ_POSITION_CONSTANTS_LATEST = 2, +} + +export enum HeartbeatType { + HEARTBEAT_TYPE_UNSPECIFIED = 0, + HEARTBEAT_TYPE_CHECKPOINT = 1, + HEARTBEAT_TYPE_CAUGHT_UP = 2, + HEARTBEAT_TYPE_FELL_BEHIND = 3, +} diff --git a/packages/db-client/generated/streams.v2_pb.js b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.js similarity index 57% rename from packages/db-client/generated/streams.v2_pb.js rename to packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.js index a915ff47..0d52b6a3 100644 --- a/packages/db-client/generated/streams.v2_pb.js +++ b/packages/db-client/generated/kurrentdb/protocols/v2/streams/streams_pb.js @@ -1,4 +1,4 @@ -// source: streams.v2.proto +// source: kurrentdb/protocols/v2/streams/streams.proto /** * @fileoverview * @enhanceable @@ -21,8 +21,16 @@ var global = (function() { return Function('return this')(); }.call(null)); -var dynamic$value_pb = require('./dynamic-value_pb.js'); -goog.object.extend(proto, dynamic$value_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +var kurrentdb_protocols_v2_streams_shared_pb = require('../../../../kurrentdb/protocols/v2/streams/shared_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v2_streams_shared_pb); +var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js'); +goog.object.extend(proto, kurrentdb_protocols_v2_core_pb); goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendRecord', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamFailure', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamFailure.ErrorCase', null, global); @@ -30,17 +38,26 @@ goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamRequest', null, globa goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamResponse', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamResponse.ResultCase', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.AppendStreamSuccess', null, global); -goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails', null, global); -goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied', null, global); -goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted', null, global); -goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global); -goog.exportSymbol('proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.ExpectedRevisionConstants', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.Heartbeat', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.HeartbeatOptions', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.HeartbeatType', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendRequest', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Failure', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.ResultCase', null, global); goog.exportSymbol('proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.Success', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadDirection', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadFailure', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadFailure.ErrorCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadFilter', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadFilterScope', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadPositionConstants', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadResponse.ResultCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.ReadSuccess', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.v2.Record', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -240,16 +257,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.kurrentdb.protocol.v2.ErrorDetails = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.kurrentdb.protocol.v2.ReadFilter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.ReadFilter.repeatedFields_, null); }; -goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails, jspb.Message); +goog.inherits(proto.kurrentdb.protocol.v2.ReadFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.kurrentdb.protocol.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails'; + proto.kurrentdb.protocol.v2.ReadFilter.displayName = 'proto.kurrentdb.protocol.v2.ReadFilter'; } /** * Generated by JsPbCodeGenerator. @@ -261,16 +278,58 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied = function(opt_data) { +proto.kurrentdb.protocol.v2.Record = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, jspb.Message); +goog.inherits(proto.kurrentdb.protocol.v2.Record, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.Record.displayName = 'proto.kurrentdb.protocol.v2.Record'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ReadSuccess = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.v2.ReadSuccess.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ReadSuccess, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ReadSuccess.displayName = 'proto.kurrentdb.protocol.v2.ReadSuccess'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ReadFailure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.ReadFailure.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ReadFailure, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied'; + proto.kurrentdb.protocol.v2.ReadFailure.displayName = 'proto.kurrentdb.protocol.v2.ReadFailure'; } /** * Generated by JsPbCodeGenerator. @@ -282,16 +341,37 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted = function(opt_data) { +proto.kurrentdb.protocol.v2.ReadRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, jspb.Message); +goog.inherits(proto.kurrentdb.protocol.v2.ReadRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.v2.ReadRequest.displayName = 'proto.kurrentdb.protocol.v2.ReadRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.kurrentdb.protocol.v2.ReadResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.v2.ReadResponse.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.v2.ReadResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted'; + proto.kurrentdb.protocol.v2.ReadResponse.displayName = 'proto.kurrentdb.protocol.v2.ReadResponse'; } /** * Generated by JsPbCodeGenerator. @@ -303,16 +383,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision = function(opt_data) { +proto.kurrentdb.protocol.v2.HeartbeatOptions = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision, jspb.Message); +goog.inherits(proto.kurrentdb.protocol.v2.HeartbeatOptions, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision'; + proto.kurrentdb.protocol.v2.HeartbeatOptions.displayName = 'proto.kurrentdb.protocol.v2.HeartbeatOptions'; } /** * Generated by JsPbCodeGenerator. @@ -324,16 +404,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) { +proto.kurrentdb.protocol.v2.Heartbeat = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message); +goog.inherits(proto.kurrentdb.protocol.v2.Heartbeat, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded'; + proto.kurrentdb.protocol.v2.Heartbeat.displayName = 'proto.kurrentdb.protocol.v2.Heartbeat'; } @@ -368,7 +448,7 @@ proto.kurrentdb.protocol.v2.AppendRecord.prototype.toObject = function(opt_inclu proto.kurrentdb.protocol.v2.AppendRecord.toObject = function(includeInstance, msg) { var f, obj = { recordId: jspb.Message.getFieldWithDefault(msg, 1, ""), - propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protobuf.DynamicValue.toObject) : [], + propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.DynamicValue.toObject) : [], data: msg.getData_asB64() }; @@ -413,7 +493,7 @@ proto.kurrentdb.protocol.v2.AppendRecord.deserializeBinaryFromReader = function( case 2: var value = msg.getPropertiesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protobuf.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protobuf.DynamicValue()); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.DynamicValue()); }); break; case 3: @@ -458,7 +538,7 @@ proto.kurrentdb.protocol.v2.AppendRecord.serializeBinaryToWriter = function(mess } f = message.getPropertiesMap(true); if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protobuf.DynamicValue.serializeBinaryToWriter); + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter); } f = message.getData_asU8(); if (f.length > 0) { @@ -507,15 +587,15 @@ proto.kurrentdb.protocol.v2.AppendRecord.prototype.hasRecordId = function() { /** - * map properties = 2; + * map properties = 2; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` - * @return {!jspb.Map} + * @return {!jspb.Map} */ proto.kurrentdb.protocol.v2.AppendRecord.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( + return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.kurrentdb.protobuf.DynamicValue)); + proto.kurrentdb.protocol.DynamicValue)); }; @@ -1007,17 +1087,18 @@ proto.kurrentdb.protocol.v2.AppendStreamSuccess.prototype.setStreamRevision = fu * @private {!Array>} * @const */ -proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_ = [[2,3,4,5]]; +proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_ = [[2,3,4,5,6]]; /** * @enum {number} */ proto.kurrentdb.protocol.v2.AppendStreamFailure.ErrorCase = { ERROR_NOT_SET: 0, - WRONG_EXPECTED_REVISION: 2, + STREAM_REVISION_CONFLICT: 2, ACCESS_DENIED: 3, STREAM_DELETED: 4, - TRANSACTION_MAX_SIZE_EXCEEDED: 5 + STREAM_NOT_FOUND: 5, + TRANSACTION_MAX_SIZE_EXCEEDED: 6 }; /** @@ -1059,10 +1140,11 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.toObject = function(op proto.kurrentdb.protocol.v2.AppendStreamFailure.toObject = function(includeInstance, msg) { var f, obj = { stream: jspb.Message.getFieldWithDefault(msg, 1, ""), - wrongExpectedRevision: (f = msg.getWrongExpectedRevision()) && proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject(includeInstance, f), - accessDenied: (f = msg.getAccessDenied()) && proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(includeInstance, f), - streamDeleted: (f = msg.getStreamDeleted()) && proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(includeInstance, f), - transactionMaxSizeExceeded: (f = msg.getTransactionMaxSizeExceeded()) && proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(includeInstance, f) + streamRevisionConflict: (f = msg.getStreamRevisionConflict()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict.toObject(includeInstance, f), + accessDenied: (f = msg.getAccessDenied()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.toObject(includeInstance, f), + streamDeleted: (f = msg.getStreamDeleted()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.toObject(includeInstance, f), + streamNotFound: (f = msg.getStreamNotFound()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.toObject(includeInstance, f), + transactionMaxSizeExceeded: (f = msg.getTransactionMaxSizeExceeded()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded.toObject(includeInstance, f) }; if (includeInstance) { @@ -1104,23 +1186,28 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.deserializeBinaryFromReader = fu msg.setStream(value); break; case 2: - var value = new proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision; - reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader); - msg.setWrongExpectedRevision(value); + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict.deserializeBinaryFromReader); + msg.setStreamRevisionConflict(value); break; case 3: - var value = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied; - reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.deserializeBinaryFromReader); msg.setAccessDenied(value); break; case 4: - var value = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted; - reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.deserializeBinaryFromReader); msg.setStreamDeleted(value); break; case 5: - var value = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded; - reader.readMessage(value,proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader); + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.deserializeBinaryFromReader); + msg.setStreamNotFound(value); + break; + case 6: + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader); msg.setTransactionMaxSizeExceeded(value); break; default: @@ -1159,12 +1246,12 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter = functi f ); } - f = message.getWrongExpectedRevision(); + f = message.getStreamRevisionConflict(); if (f != null) { writer.writeMessage( 2, f, - proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict.serializeBinaryToWriter ); } f = message.getAccessDenied(); @@ -1172,7 +1259,7 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter = functi writer.writeMessage( 3, f, - proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.serializeBinaryToWriter ); } f = message.getStreamDeleted(); @@ -1180,15 +1267,23 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.serializeBinaryToWriter = functi writer.writeMessage( 4, f, - proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.serializeBinaryToWriter ); } - f = message.getTransactionMaxSizeExceeded(); + f = message.getStreamNotFound(); if (f != null) { writer.writeMessage( 5, f, - proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.serializeBinaryToWriter + ); + } + f = message.getTransactionMaxSizeExceeded(); + if (f != null) { + writer.writeMessage( + 6, + f, + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter ); } }; @@ -1213,20 +1308,20 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setStream = function(v /** - * optional ErrorDetails.WrongExpectedRevision wrong_expected_revision = 2; - * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} + * optional ErrorDetails.StreamRevisionConflict stream_revision_conflict = 2; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} */ -proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getWrongExpectedRevision = function() { - return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} */ ( - jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision, 2)); +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getStreamRevisionConflict = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict} */ ( + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamRevisionConflict, 2)); }; /** - * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision|undefined} value + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamRevisionConflict|undefined} value * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this */ -proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setWrongExpectedRevision = function(value) { +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setStreamRevisionConflict = function(value) { return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); }; @@ -1235,8 +1330,8 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setWrongExpectedRevisi * Clears the message field making it undefined. * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this */ -proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearWrongExpectedRevision = function() { - return this.setWrongExpectedRevision(undefined); +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearStreamRevisionConflict = function() { + return this.setStreamRevisionConflict(undefined); }; @@ -1244,7 +1339,7 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearWrongExpectedRevi * Returns whether this field is set. * @return {boolean} */ -proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasWrongExpectedRevision = function() { +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasStreamRevisionConflict = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1255,7 +1350,7 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasWrongExpectedRevisi */ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getAccessDenied = function() { return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} */ ( - jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied, 3)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied, 3)); }; @@ -1292,7 +1387,7 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasAccessDenied = func */ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getStreamDeleted = function() { return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} */ ( - jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted, 4)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted, 4)); }; @@ -1324,12 +1419,49 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasStreamDeleted = fun /** - * optional ErrorDetails.TransactionMaxSizeExceeded transaction_max_size_exceeded = 5; + * optional ErrorDetails.StreamNotFound stream_not_found = 5; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getStreamNotFound = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} */ ( + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound, 5)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound|undefined} value + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setStreamNotFound = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearStreamNotFound = function() { + return this.setStreamNotFound(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasStreamNotFound = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ErrorDetails.TransactionMaxSizeExceeded transaction_max_size_exceeded = 6; * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} */ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getTransactionMaxSizeExceeded = function() { return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} */ ( - jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded, 5)); + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.TransactionMaxSizeExceeded, 6)); }; @@ -1338,7 +1470,7 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.getTransactionMaxSizeE * @return {!proto.kurrentdb.protocol.v2.AppendStreamFailure} returns this */ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.setTransactionMaxSizeExceeded = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 6, proto.kurrentdb.protocol.v2.AppendStreamFailure.oneofGroups_[0], value); }; @@ -1356,7 +1488,7 @@ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.clearTransactionMaxSiz * @return {boolean} */ proto.kurrentdb.protocol.v2.AppendStreamFailure.prototype.hasTransactionMaxSizeExceeded = function() { - return jspb.Message.getField(this, 5) != null; + return jspb.Message.getField(this, 6) != null; }; @@ -2297,6 +2429,13 @@ proto.kurrentdb.protocol.v2.MultiStreamAppendResponse.prototype.hasFailure = fun +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.ReadFilter.repeatedFields_ = [4]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -2312,8 +2451,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.kurrentdb.protocol.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) { - return proto.kurrentdb.protocol.v2.ErrorDetails.toObject(opt_includeInstance, this); +proto.kurrentdb.protocol.v2.ReadFilter.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ReadFilter.toObject(opt_includeInstance, this); }; @@ -2322,13 +2461,15 @@ proto.kurrentdb.protocol.v2.ErrorDetails.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The msg instance to transform. + * @param {!proto.kurrentdb.protocol.v2.ReadFilter} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, msg) { +proto.kurrentdb.protocol.v2.ReadFilter.toObject = function(includeInstance, msg) { var f, obj = { - + scope: jspb.Message.getFieldWithDefault(msg, 1, 0), + expression: jspb.Message.getFieldWithDefault(msg, 2, ""), + propertyNamesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f }; if (includeInstance) { @@ -2342,29 +2483,41 @@ proto.kurrentdb.protocol.v2.ErrorDetails.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} */ -proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinary = function(bytes) { +proto.kurrentdb.protocol.v2.ReadFilter.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.kurrentdb.protocol.v2.ErrorDetails; - return proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader(msg, reader); + var msg = new proto.kurrentdb.protocol.v2.ReadFilter; + return proto.kurrentdb.protocol.v2.ReadFilter.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} msg The message object to deserialize into. + * @param {!proto.kurrentdb.protocol.v2.ReadFilter} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails} + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} */ -proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function(msg, reader) { +proto.kurrentdb.protocol.v2.ReadFilter.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {!proto.kurrentdb.protocol.v2.ReadFilterScope} */ (reader.readEnum()); + msg.setScope(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setExpression(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addPropertyNames(value); + break; default: reader.skipField(); break; @@ -2378,9 +2531,9 @@ proto.kurrentdb.protocol.v2.ErrorDetails.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() { +proto.kurrentdb.protocol.v2.ReadFilter.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter(this, writer); + proto.kurrentdb.protocol.v2.ReadFilter.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2388,12 +2541,106 @@ proto.kurrentdb.protocol.v2.ErrorDetails.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails} message + * @param {!proto.kurrentdb.protocol.v2.ReadFilter} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) { +proto.kurrentdb.protocol.v2.ReadFilter.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getScope(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getExpression(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPropertyNamesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } +}; + + +/** + * optional ReadFilterScope scope = 1; + * @return {!proto.kurrentdb.protocol.v2.ReadFilterScope} + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.getScope = function() { + return /** @type {!proto.kurrentdb.protocol.v2.ReadFilterScope} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.ReadFilterScope} value + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} returns this + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.setScope = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string expression = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.getExpression = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} returns this + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.setExpression = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string property_names = 4; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.getPropertyNamesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} returns this + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.setPropertyNamesList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} returns this + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.addPropertyNames = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.ReadFilter} returns this + */ +proto.kurrentdb.protocol.v2.ReadFilter.prototype.clearPropertyNamesList = function() { + return this.setPropertyNamesList([]); }; @@ -2413,8 +2660,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) { - return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject(opt_includeInstance, this); +proto.kurrentdb.protocol.v2.Record.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.Record.toObject(opt_includeInstance, this); }; @@ -2423,13 +2670,19 @@ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The msg instance to transform. + * @param {!proto.kurrentdb.protocol.v2.Record} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includeInstance, msg) { +proto.kurrentdb.protocol.v2.Record.toObject = function(includeInstance, msg) { var f, obj = { - reason: jspb.Message.getFieldWithDefault(msg, 1, "") + recordId: jspb.Message.getFieldWithDefault(msg, 1, ""), + position: jspb.Message.getFieldWithDefault(msg, 5, "0"), + data: msg.getData_asB64(), + propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.DynamicValue.toObject) : [], + timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 6, ""), + streamRevision: jspb.Message.getFieldWithDefault(msg, 7, "0") }; if (includeInstance) { @@ -2443,23 +2696,23 @@ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + * @return {!proto.kurrentdb.protocol.v2.Record} */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) { +proto.kurrentdb.protocol.v2.Record.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied; - return proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader(msg, reader); + var msg = new proto.kurrentdb.protocol.v2.Record; + return proto.kurrentdb.protocol.v2.Record.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into. + * @param {!proto.kurrentdb.protocol.v2.Record} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + * @return {!proto.kurrentdb.protocol.v2.Record} */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader = function(msg, reader) { +proto.kurrentdb.protocol.v2.Record.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2468,7 +2721,34 @@ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReade switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setReason(value); + msg.setRecordId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setPosition(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + case 3: + var value = msg.getPropertiesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.kurrentdb.protocol.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.DynamicValue()); + }); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTimestamp(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setStream(value); + break; + case 7: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setStreamRevision(value); break; default: reader.skipField(); @@ -2483,9 +2763,9 @@ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() { +proto.kurrentdb.protocol.v2.Record.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter(this, writer); + proto.kurrentdb.protocol.v2.Record.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2493,109 +2773,1182 @@ proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} message + * @param {!proto.kurrentdb.protocol.v2.Record} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter = function(message, writer) { +proto.kurrentdb.protocol.v2.Record.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getReason(); + f = message.getRecordId(); if (f.length > 0) { writer.writeString( 1, f ); } + f = message.getPosition(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 5, + f + ); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getPropertiesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.kurrentdb.protocol.DynamicValue.serializeBinaryToWriter); + } + f = message.getTimestamp(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeInt64String( + 7, + f + ); + } }; /** - * optional string reason = 1; + * optional string record_id = 1; * @return {string} */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.getReason = function() { +proto.kurrentdb.protocol.v2.Record.prototype.getRecordId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} returns this + * @return {!proto.kurrentdb.protocol.v2.Record} returns this */ -proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied.prototype.setReason = function(value) { +proto.kurrentdb.protocol.v2.Record.prototype.setRecordId = 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_, 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} + * optional int64 position = 5; + * @return {string} */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) { - return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject(opt_includeInstance, this); +proto.kurrentdb.protocol.v2.Record.prototype.getPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.Record} returns this */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.kurrentdb.protocol.v2.Record.prototype.setPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 5, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + * optional bytes data = 2; + * @return {!(string|Uint8Array)} */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted; - return proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader(msg, reader); +proto.kurrentdb.protocol.v2.Record.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes data = 2; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.kurrentdb.protocol.v2.Record.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.Record.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * map properties = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.v2.Record.prototype.getPropertiesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + proto.kurrentdb.protocol.DynamicValue)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.clearPropertiesMap = function() { + this.getPropertiesMap().clear(); + return this;}; + + +/** + * optional google.protobuf.Timestamp timestamp = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.v2.Record.prototype.getTimestamp = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.v2.Record} returns this +*/ +proto.kurrentdb.protocol.v2.Record.prototype.setTimestamp = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.clearTimestamp = function() { + return this.setTimestamp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Record.prototype.hasTimestamp = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string stream = 6; + * @return {string} + */ +proto.kurrentdb.protocol.v2.Record.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.setStream = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.clearStream = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Record.prototype.hasStream = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional int64 stream_revision = 7; + * @return {string} + */ +proto.kurrentdb.protocol.v2.Record.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.setStreamRevision = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.Record} returns this + */ +proto.kurrentdb.protocol.v2.Record.prototype.clearStreamRevision = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.Record.prototype.hasStreamRevision = function() { + return jspb.Message.getField(this, 7) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.v2.ReadSuccess.repeatedFields_ = [1]; + + + +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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ReadSuccess.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ReadSuccess.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ReadSuccess} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadSuccess.toObject = function(includeInstance, msg) { + var f, obj = { + recordsList: jspb.Message.toObjectList(msg.getRecordsList(), + proto.kurrentdb.protocol.v2.Record.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ReadSuccess} + */ +proto.kurrentdb.protocol.v2.ReadSuccess.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ReadSuccess; + return proto.kurrentdb.protocol.v2.ReadSuccess.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ReadSuccess} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ReadSuccess} + */ +proto.kurrentdb.protocol.v2.ReadSuccess.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.Record; + reader.readMessage(value,proto.kurrentdb.protocol.v2.Record.deserializeBinaryFromReader); + msg.addRecords(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ReadSuccess.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ReadSuccess.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ReadSuccess} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadSuccess.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRecordsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.v2.Record.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Record records = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.v2.ReadSuccess.prototype.getRecordsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.v2.Record, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.v2.ReadSuccess} returns this +*/ +proto.kurrentdb.protocol.v2.ReadSuccess.prototype.setRecordsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.Record=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.v2.Record} + */ +proto.kurrentdb.protocol.v2.ReadSuccess.prototype.addRecords = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.v2.Record, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.v2.ReadSuccess} returns this + */ +proto.kurrentdb.protocol.v2.ReadSuccess.prototype.clearRecordsList = function() { + return this.setRecordsList([]); +}; + + + +/** + * 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>} + * @const + */ +proto.kurrentdb.protocol.v2.ReadFailure.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.ReadFailure.ErrorCase = { + ERROR_NOT_SET: 0, + ACCESS_DENIED: 1, + STREAM_DELETED: 2, + STREAM_NOT_FOUND: 3 +}; + +/** + * @return {proto.kurrentdb.protocol.v2.ReadFailure.ErrorCase} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.getErrorCase = function() { + return /** @type {proto.kurrentdb.protocol.v2.ReadFailure.ErrorCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.v2.ReadFailure.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ReadFailure.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ReadFailure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadFailure.toObject = function(includeInstance, msg) { + var f, obj = { + accessDenied: (f = msg.getAccessDenied()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.toObject(includeInstance, f), + streamDeleted: (f = msg.getStreamDeleted()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.toObject(includeInstance, f), + streamNotFound: (f = msg.getStreamNotFound()) && kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} + */ +proto.kurrentdb.protocol.v2.ReadFailure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ReadFailure; + return proto.kurrentdb.protocol.v2.ReadFailure.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ReadFailure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} + */ +proto.kurrentdb.protocol.v2.ReadFailure.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.deserializeBinaryFromReader); + msg.setAccessDenied(value); + break; + case 2: + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.deserializeBinaryFromReader); + msg.setStreamDeleted(value); + break; + case 3: + var value = new kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound; + reader.readMessage(value,kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.deserializeBinaryFromReader); + msg.setStreamNotFound(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ReadFailure.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ReadFailure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadFailure.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccessDenied(); + if (f != null) { + writer.writeMessage( + 1, + f, + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied.serializeBinaryToWriter + ); + } + f = message.getStreamDeleted(); + if (f != null) { + writer.writeMessage( + 2, + f, + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted.serializeBinaryToWriter + ); + } + f = message.getStreamNotFound(); + if (f != null) { + writer.writeMessage( + 3, + f, + kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ErrorDetails.AccessDenied access_denied = 1; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.getAccessDenied = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied} */ ( + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.AccessDenied, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.AccessDenied|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} returns this +*/ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.setAccessDenied = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.v2.ReadFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} returns this + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.clearAccessDenied = function() { + return this.setAccessDenied(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.hasAccessDenied = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ErrorDetails.StreamDeleted stream_deleted = 2; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.getStreamDeleted = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} */ ( + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamDeleted, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} returns this +*/ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.setStreamDeleted = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.v2.ReadFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} returns this + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.clearStreamDeleted = function() { + return this.setStreamDeleted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.hasStreamDeleted = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ErrorDetails.StreamNotFound stream_not_found = 3; + * @return {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.getStreamNotFound = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound} */ ( + jspb.Message.getWrapperField(this, kurrentdb_protocols_v2_streams_shared_pb.ErrorDetails.StreamNotFound, 3)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ErrorDetails.StreamNotFound|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} returns this +*/ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.setStreamNotFound = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.kurrentdb.protocol.v2.ReadFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadFailure} returns this + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.clearStreamNotFound = function() { + return this.setStreamNotFound(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadFailure.prototype.hasStreamNotFound = function() { + return jspb.Message.getField(this, 3) != 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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ReadRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ReadRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadRequest.toObject = function(includeInstance, msg) { + var f, obj = { + filter: (f = msg.getFilter()) && proto.kurrentdb.protocol.v2.ReadFilter.toObject(includeInstance, f), + startPosition: jspb.Message.getFieldWithDefault(msg, 2, "0"), + limit: jspb.Message.getFieldWithDefault(msg, 3, "0"), + direction: jspb.Message.getFieldWithDefault(msg, 4, 0), + heartbeats: (f = msg.getHeartbeats()) && proto.kurrentdb.protocol.v2.HeartbeatOptions.toObject(includeInstance, f), + batchSize: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} + */ +proto.kurrentdb.protocol.v2.ReadRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ReadRequest; + return proto.kurrentdb.protocol.v2.ReadRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.v2.ReadRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} + */ +proto.kurrentdb.protocol.v2.ReadRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.ReadFilter; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ReadFilter.deserializeBinaryFromReader); + msg.setFilter(value); + break; + case 2: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setStartPosition(value); + break; + case 3: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setLimit(value); + break; + case 4: + var value = /** @type {!proto.kurrentdb.protocol.v2.ReadDirection} */ (reader.readEnum()); + msg.setDirection(value); + break; + case 5: + var value = new proto.kurrentdb.protocol.v2.HeartbeatOptions; + reader.readMessage(value,proto.kurrentdb.protocol.v2.HeartbeatOptions.deserializeBinaryFromReader); + msg.setHeartbeats(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBatchSize(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.v2.ReadRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.kurrentdb.protocol.v2.ReadRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFilter(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.v2.ReadFilter.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeInt64String( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeInt64String( + 3, + f + ); + } + f = message.getDirection(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getHeartbeats(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.kurrentdb.protocol.v2.HeartbeatOptions.serializeBinaryToWriter + ); + } + f = message.getBatchSize(); + if (f !== 0) { + writer.writeInt32( + 6, + f + ); + } +}; + + +/** + * optional ReadFilter filter = 1; + * @return {?proto.kurrentdb.protocol.v2.ReadFilter} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.getFilter = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ReadFilter} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ReadFilter, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ReadFilter|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this +*/ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.setFilter = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.clearFilter = function() { + return this.setFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.hasFilter = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 start_position = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.getStartPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.setStartPosition = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.clearStartPosition = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.hasStartPosition = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int64 limit = 3; + * @return {string} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.getLimit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.setLimit = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.clearLimit = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.hasLimit = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ReadDirection direction = 4; + * @return {!proto.kurrentdb.protocol.v2.ReadDirection} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.getDirection = function() { + return /** @type {!proto.kurrentdb.protocol.v2.ReadDirection} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.v2.ReadDirection} value + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.setDirection = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional HeartbeatOptions heartbeats = 5; + * @return {?proto.kurrentdb.protocol.v2.HeartbeatOptions} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.getHeartbeats = function() { + return /** @type{?proto.kurrentdb.protocol.v2.HeartbeatOptions} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.HeartbeatOptions, 5)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.HeartbeatOptions|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this +*/ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.setHeartbeats = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.clearHeartbeats = function() { + return this.setHeartbeats(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.hasHeartbeats = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional int32 batch_size = 6; + * @return {number} + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.getBatchSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.v2.ReadRequest} returns this + */ +proto.kurrentdb.protocol.v2.ReadRequest.prototype.setBatchSize = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + + +/** + * 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>} + * @const + */ +proto.kurrentdb.protocol.v2.ReadResponse.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.ReadResponse.ResultCase = { + RESULT_NOT_SET: 0, + SUCCESS: 1, + FAILURE: 2, + HEARTBEAT: 3 +}; + +/** + * @return {proto.kurrentdb.protocol.v2.ReadResponse.ResultCase} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.getResultCase = function() { + return /** @type {proto.kurrentdb.protocol.v2.ReadResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.v2.ReadResponse.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_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.ReadResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.kurrentdb.protocol.v2.ReadResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.v2.ReadResponse.toObject = function(includeInstance, msg) { + var f, obj = { + success: (f = msg.getSuccess()) && proto.kurrentdb.protocol.v2.ReadSuccess.toObject(includeInstance, f), + failure: (f = msg.getFailure()) && proto.kurrentdb.protocol.v2.ReadFailure.toObject(includeInstance, f), + heartbeat: (f = msg.getHeartbeat()) && proto.kurrentdb.protocol.v2.Heartbeat.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} + */ +proto.kurrentdb.protocol.v2.ReadResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.v2.ReadResponse; + return proto.kurrentdb.protocol.v2.ReadResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into. + * @param {!proto.kurrentdb.protocol.v2.ReadResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) { +proto.kurrentdb.protocol.v2.ReadResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new proto.kurrentdb.protocol.v2.ReadSuccess; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ReadSuccess.deserializeBinaryFromReader); + msg.setSuccess(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.v2.ReadFailure; + reader.readMessage(value,proto.kurrentdb.protocol.v2.ReadFailure.deserializeBinaryFromReader); + msg.setFailure(value); + break; + case 3: + var value = new proto.kurrentdb.protocol.v2.Heartbeat; + reader.readMessage(value,proto.kurrentdb.protocol.v2.Heartbeat.deserializeBinaryFromReader); + msg.setHeartbeat(value); + break; default: reader.skipField(); break; @@ -2609,9 +3962,9 @@ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromRead * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() { +proto.kurrentdb.protocol.v2.ReadResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter(this, writer); + proto.kurrentdb.protocol.v2.ReadResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2619,12 +3972,147 @@ proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted} message + * @param {!proto.kurrentdb.protocol.v2.ReadResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) { +proto.kurrentdb.protocol.v2.ReadResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getSuccess(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.v2.ReadSuccess.serializeBinaryToWriter + ); + } + f = message.getFailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.v2.ReadFailure.serializeBinaryToWriter + ); + } + f = message.getHeartbeat(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.kurrentdb.protocol.v2.Heartbeat.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ReadSuccess success = 1; + * @return {?proto.kurrentdb.protocol.v2.ReadSuccess} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.getSuccess = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ReadSuccess} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ReadSuccess, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ReadSuccess|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} returns this +*/ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.setSuccess = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.v2.ReadResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} returns this + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.clearSuccess = function() { + return this.setSuccess(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.hasSuccess = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ReadFailure failure = 2; + * @return {?proto.kurrentdb.protocol.v2.ReadFailure} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.getFailure = function() { + return /** @type{?proto.kurrentdb.protocol.v2.ReadFailure} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.ReadFailure, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.ReadFailure|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} returns this +*/ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.setFailure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.v2.ReadResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} returns this + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.clearFailure = function() { + return this.setFailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.hasFailure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Heartbeat heartbeat = 3; + * @return {?proto.kurrentdb.protocol.v2.Heartbeat} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.getHeartbeat = function() { + return /** @type{?proto.kurrentdb.protocol.v2.Heartbeat} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.v2.Heartbeat, 3)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.v2.Heartbeat|undefined} value + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} returns this +*/ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.setHeartbeat = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.kurrentdb.protocol.v2.ReadResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.ReadResponse} returns this + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.clearHeartbeat = function() { + return this.setHeartbeat(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.ReadResponse.prototype.hasHeartbeat = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -2644,8 +4132,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.toObject = function(opt_includeInstance) { - return proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject(opt_includeInstance, this); +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.HeartbeatOptions.toObject(opt_includeInstance, this); }; @@ -2654,13 +4142,15 @@ proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.toObjec * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} msg The msg instance to transform. + * @param {!proto.kurrentdb.protocol.v2.HeartbeatOptions} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject = function(includeInstance, msg) { +proto.kurrentdb.protocol.v2.HeartbeatOptions.toObject = function(includeInstance, msg) { var f, obj = { - streamRevision: jspb.Message.getFieldWithDefault(msg, 1, "0") + enable: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + period: (f = msg.getPeriod()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + recordsThreshold: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -2674,23 +4164,23 @@ proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.toObject = functi /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinary = function(bytes) { +proto.kurrentdb.protocol.v2.HeartbeatOptions.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision; - return proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader(msg, reader); + var msg = new proto.kurrentdb.protocol.v2.HeartbeatOptions; + return proto.kurrentdb.protocol.v2.HeartbeatOptions.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} msg The message object to deserialize into. + * @param {!proto.kurrentdb.protocol.v2.HeartbeatOptions} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader = function(msg, reader) { +proto.kurrentdb.protocol.v2.HeartbeatOptions.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2698,8 +4188,17 @@ proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinary var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setStreamRevision(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setEnable(value); + break; + case 2: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setPeriod(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRecordsThreshold(value); break; default: reader.skipField(); @@ -2714,9 +4213,9 @@ proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.deserializeBinary * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.serializeBinary = function() { +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter(this, writer); + proto.kurrentdb.protocol.v2.HeartbeatOptions.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2724,37 +4223,125 @@ proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.seriali /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} message + * @param {!proto.kurrentdb.protocol.v2.HeartbeatOptions} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter = function(message, writer) { +proto.kurrentdb.protocol.v2.HeartbeatOptions.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStreamRevision(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( + f = message.getEnable(); + if (f) { + writer.writeBool( 1, f ); } + f = message.getPeriod(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeInt32( + 3, + f + ); + } }; /** - * optional int64 stream_revision = 1; - * @return {string} + * optional bool enable = 1; + * @return {boolean} */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.getStreamRevision = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.getEnable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * @param {string} value - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision} returns this + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} returns this + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.setEnable = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional google.protobuf.Duration period = 2; + * @return {?proto.google.protobuf.Duration} + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.getPeriod = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} returns this +*/ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.setPeriod = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} returns this + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.clearPeriod = function() { + return this.setPeriod(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.hasPeriod = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 records_threshold = 3; + * @return {number} + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.getRecordsThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} returns this + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.setRecordsThreshold = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.HeartbeatOptions} returns this + */ +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.clearRecordsThreshold = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} */ -proto.kurrentdb.protocol.v2.ErrorDetails.WrongExpectedRevision.prototype.setStreamRevision = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.kurrentdb.protocol.v2.HeartbeatOptions.prototype.hasRecordsThreshold = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -2774,8 +4361,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) { - return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject(opt_includeInstance, this); +proto.kurrentdb.protocol.v2.Heartbeat.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.v2.Heartbeat.toObject(opt_includeInstance, this); }; @@ -2784,13 +4371,15 @@ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.to * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform. + * @param {!proto.kurrentdb.protocol.v2.Heartbeat} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = function(includeInstance, msg) { +proto.kurrentdb.protocol.v2.Heartbeat.toObject = function(includeInstance, msg) { var f, obj = { - maxSize: jspb.Message.getFieldWithDefault(msg, 1, 0) + type: jspb.Message.getFieldWithDefault(msg, 1, 0), + position: jspb.Message.getFieldWithDefault(msg, 2, "0"), + timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -2804,23 +4393,23 @@ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.toObject = f /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + * @return {!proto.kurrentdb.protocol.v2.Heartbeat} */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) { +proto.kurrentdb.protocol.v2.Heartbeat.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded; - return proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader(msg, reader); + var msg = new proto.kurrentdb.protocol.v2.Heartbeat; + return proto.kurrentdb.protocol.v2.Heartbeat.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into. + * @param {!proto.kurrentdb.protocol.v2.Heartbeat} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} + * @return {!proto.kurrentdb.protocol.v2.Heartbeat} */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinaryFromReader = function(msg, reader) { +proto.kurrentdb.protocol.v2.Heartbeat.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2828,8 +4417,17 @@ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeB var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxSize(value); + var value = /** @type {!proto.kurrentdb.protocol.v2.HeartbeatType} */ (reader.readEnum()); + msg.setType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readInt64String()); + msg.setPosition(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTimestamp(value); break; default: reader.skipField(); @@ -2844,9 +4442,9 @@ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeB * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() { +proto.kurrentdb.protocol.v2.Heartbeat.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter(this, writer); + proto.kurrentdb.protocol.v2.Heartbeat.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2854,37 +4452,107 @@ proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.se /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} message + * @param {!proto.kurrentdb.protocol.v2.Heartbeat} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.serializeBinaryToWriter = function(message, writer) { +proto.kurrentdb.protocol.v2.Heartbeat.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMaxSize(); - if (f !== 0) { - writer.writeInt32( + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( 1, f ); } + f = message.getPosition(); + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( + 2, + f + ); + } + f = message.getTimestamp(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } }; /** - * optional int32 max_size = 1; - * @return {number} + * optional HeartbeatType type = 1; + * @return {!proto.kurrentdb.protocol.v2.HeartbeatType} */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.kurrentdb.protocol.v2.Heartbeat.prototype.getType = function() { + return /** @type {!proto.kurrentdb.protocol.v2.HeartbeatType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {number} value - * @return {!proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this + * @param {!proto.kurrentdb.protocol.v2.HeartbeatType} value + * @return {!proto.kurrentdb.protocol.v2.Heartbeat} returns this + */ +proto.kurrentdb.protocol.v2.Heartbeat.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional int64 position = 2; + * @return {string} + */ +proto.kurrentdb.protocol.v2.Heartbeat.prototype.getPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.v2.Heartbeat} returns this + */ +proto.kurrentdb.protocol.v2.Heartbeat.prototype.setPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional google.protobuf.Timestamp timestamp = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.v2.Heartbeat.prototype.getTimestamp = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.v2.Heartbeat} returns this +*/ +proto.kurrentdb.protocol.v2.Heartbeat.prototype.setTimestamp = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.v2.Heartbeat} returns this + */ +proto.kurrentdb.protocol.v2.Heartbeat.prototype.clearTimestamp = function() { + return this.setTimestamp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} */ -proto.kurrentdb.protocol.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.kurrentdb.protocol.v2.Heartbeat.prototype.hasTimestamp = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -2898,4 +4566,42 @@ proto.kurrentdb.protocol.v2.ExpectedRevisionConstants = { EXPECTED_REVISION_CONSTANTS_EXISTS: -4 }; +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.ReadFilterScope = { + READ_FILTER_SCOPE_UNSPECIFIED: 0, + READ_FILTER_SCOPE_STREAM: 1, + READ_FILTER_SCOPE_SCHEMA_NAME: 2, + READ_FILTER_SCOPE_PROPERTIES: 3, + READ_FILTER_SCOPE_RECORD: 4 +}; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.ReadDirection = { + READ_DIRECTION_FORWARDS: 0, + READ_DIRECTION_BACKWARDS: 1 +}; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.ReadPositionConstants = { + READ_POSITION_CONSTANTS_UNSPECIFIED: 0, + READ_POSITION_CONSTANTS_EARLIEST: 1, + READ_POSITION_CONSTANTS_LATEST: 2 +}; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.v2.HeartbeatType = { + HEARTBEAT_TYPE_UNSPECIFIED: 0, + HEARTBEAT_TYPE_CHECKPOINT: 1, + HEARTBEAT_TYPE_CAUGHT_UP: 2, + HEARTBEAT_TYPE_FELL_BEHIND: 3 +}; + goog.object.extend(exports, proto.kurrentdb.protocol.v2); diff --git a/packages/db-client/generated/monitoring_grpc_pb.d.ts b/packages/db-client/generated/monitoring_grpc_pb.d.ts deleted file mode 100644 index fa353abd..00000000 --- a/packages/db-client/generated/monitoring_grpc_pb.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// package: event_store.client.monitoring -// file: monitoring.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as monitoring_pb from "./monitoring_pb"; - -interface IMonitoringService extends grpc.ServiceDefinition { - stats: IMonitoringService_IStats; -} - -interface IMonitoringService_IStats extends grpc.MethodDefinition { - path: "/event_store.client.monitoring.Monitoring/Stats"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const MonitoringService: IMonitoringService; - -export interface IMonitoringServer extends grpc.UntypedServiceImplementation { - stats: grpc.handleServerStreamingCall; -} - -export interface IMonitoringClient { - stats(request: monitoring_pb.StatsReq, options?: Partial): grpc.ClientReadableStream; - stats(request: monitoring_pb.StatsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; -} - -export class MonitoringClient extends grpc.Client implements IMonitoringClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public stats(request: monitoring_pb.StatsReq, options?: Partial): grpc.ClientReadableStream; - public stats(request: monitoring_pb.StatsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; -} diff --git a/packages/db-client/generated/monitoring_grpc_pb.js b/packages/db-client/generated/monitoring_grpc_pb.js deleted file mode 100644 index f049a7ac..00000000 --- a/packages/db-client/generated/monitoring_grpc_pb.js +++ /dev/null @@ -1,44 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var monitoring_pb = require('./monitoring_pb.js'); - -function serialize_event_store_client_monitoring_StatsReq(arg) { - if (!(arg instanceof monitoring_pb.StatsReq)) { - throw new Error('Expected argument of type event_store.client.monitoring.StatsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_monitoring_StatsReq(buffer_arg) { - return monitoring_pb.StatsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_monitoring_StatsResp(arg) { - if (!(arg instanceof monitoring_pb.StatsResp)) { - throw new Error('Expected argument of type event_store.client.monitoring.StatsResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_monitoring_StatsResp(buffer_arg) { - return monitoring_pb.StatsResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var MonitoringService = exports.MonitoringService = { - stats: { - path: '/event_store.client.monitoring.Monitoring/Stats', - requestStream: false, - responseStream: true, - requestType: monitoring_pb.StatsReq, - responseType: monitoring_pb.StatsResp, - requestSerialize: serialize_event_store_client_monitoring_StatsReq, - requestDeserialize: deserialize_event_store_client_monitoring_StatsReq, - responseSerialize: serialize_event_store_client_monitoring_StatsResp, - responseDeserialize: deserialize_event_store_client_monitoring_StatsResp, - }, -}; - -exports.MonitoringClient = grpc.makeGenericClientConstructor(MonitoringService, 'Monitoring'); diff --git a/packages/db-client/generated/monitoring_pb.d.ts b/packages/db-client/generated/monitoring_pb.d.ts deleted file mode 100644 index 079de880..00000000 --- a/packages/db-client/generated/monitoring_pb.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -// package: event_store.client.monitoring -// file: monitoring.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class StatsReq extends jspb.Message { - getUseMetadata(): boolean; - setUseMetadata(value: boolean): StatsReq; - getRefreshTimePeriodInMs(): string; - setRefreshTimePeriodInMs(value: string): StatsReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatsReq.AsObject; - static toObject(includeInstance: boolean, msg: StatsReq): StatsReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatsReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatsReq; - static deserializeBinaryFromReader(message: StatsReq, reader: jspb.BinaryReader): StatsReq; -} - -export namespace StatsReq { - export type AsObject = { - useMetadata: boolean, - refreshTimePeriodInMs: string, - } -} - -export class StatsResp extends jspb.Message { - - getStatsMap(): jspb.Map; - clearStatsMap(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatsResp.AsObject; - static toObject(includeInstance: boolean, msg: StatsResp): StatsResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatsResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatsResp; - static deserializeBinaryFromReader(message: StatsResp, reader: jspb.BinaryReader): StatsResp; -} - -export namespace StatsResp { - export type AsObject = { - - statsMap: Array<[string, string]>, - } -} diff --git a/packages/db-client/generated/monitoring_pb.js b/packages/db-client/generated/monitoring_pb.js deleted file mode 100644 index ab90f1a0..00000000 --- a/packages/db-client/generated/monitoring_pb.js +++ /dev/null @@ -1,361 +0,0 @@ -// source: monitoring.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.monitoring.StatsReq', null, global); -goog.exportSymbol('proto.event_store.client.monitoring.StatsResp', 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.monitoring.StatsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.monitoring.StatsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.monitoring.StatsReq.displayName = 'proto.event_store.client.monitoring.StatsReq'; -} -/** - * 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.monitoring.StatsResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.monitoring.StatsResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.monitoring.StatsResp.displayName = 'proto.event_store.client.monitoring.StatsResp'; -} - - - -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_, 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.monitoring.StatsReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.monitoring.StatsReq.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.monitoring.StatsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.monitoring.StatsReq.toObject = function(includeInstance, msg) { - var f, obj = { - useMetadata: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - refreshTimePeriodInMs: jspb.Message.getFieldWithDefault(msg, 4, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.monitoring.StatsReq} - */ -proto.event_store.client.monitoring.StatsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.monitoring.StatsReq; - return proto.event_store.client.monitoring.StatsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.monitoring.StatsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.monitoring.StatsReq} - */ -proto.event_store.client.monitoring.StatsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseMetadata(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRefreshTimePeriodInMs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.monitoring.StatsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.monitoring.StatsReq.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.monitoring.StatsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.monitoring.StatsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUseMetadata(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRefreshTimePeriodInMs(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } -}; - - -/** - * optional bool use_metadata = 1; - * @return {boolean} - */ -proto.event_store.client.monitoring.StatsReq.prototype.getUseMetadata = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.monitoring.StatsReq} returns this - */ -proto.event_store.client.monitoring.StatsReq.prototype.setUseMetadata = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional uint64 refresh_time_period_in_ms = 4; - * @return {string} - */ -proto.event_store.client.monitoring.StatsReq.prototype.getRefreshTimePeriodInMs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.monitoring.StatsReq} returns this - */ -proto.event_store.client.monitoring.StatsReq.prototype.setRefreshTimePeriodInMs = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.monitoring.StatsResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.monitoring.StatsResp.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.monitoring.StatsResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.monitoring.StatsResp.toObject = function(includeInstance, msg) { - var f, obj = { - statsMap: (f = msg.getStatsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - 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.monitoring.StatsResp} - */ -proto.event_store.client.monitoring.StatsResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.monitoring.StatsResp; - return proto.event_store.client.monitoring.StatsResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.monitoring.StatsResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.monitoring.StatsResp} - */ -proto.event_store.client.monitoring.StatsResp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getStatsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.monitoring.StatsResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.monitoring.StatsResp.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.monitoring.StatsResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.monitoring.StatsResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * map stats = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.event_store.client.monitoring.StatsResp.prototype.getStatsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.event_store.client.monitoring.StatsResp} returns this - */ -proto.event_store.client.monitoring.StatsResp.prototype.clearStatsMap = function() { - this.getStatsMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.event_store.client.monitoring); diff --git a/packages/db-client/generated/operations_grpc_pb.d.ts b/packages/db-client/generated/operations_grpc_pb.d.ts deleted file mode 100644 index 12af92e5..00000000 --- a/packages/db-client/generated/operations_grpc_pb.d.ts +++ /dev/null @@ -1,144 +0,0 @@ -// package: event_store.client.operations -// file: operations.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as operations_pb from "./operations_pb"; -import * as shared_pb from "./shared_pb"; - -interface IOperationsService extends grpc.ServiceDefinition { - startScavenge: IOperationsService_IStartScavenge; - stopScavenge: IOperationsService_IStopScavenge; - shutdown: IOperationsService_IShutdown; - mergeIndexes: IOperationsService_IMergeIndexes; - resignNode: IOperationsService_IResignNode; - setNodePriority: IOperationsService_ISetNodePriority; - restartPersistentSubscriptions: IOperationsService_IRestartPersistentSubscriptions; -} - -interface IOperationsService_IStartScavenge extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/StartScavenge"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperationsService_IStopScavenge extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/StopScavenge"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperationsService_IShutdown extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/Shutdown"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperationsService_IMergeIndexes extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/MergeIndexes"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperationsService_IResignNode extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/ResignNode"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperationsService_ISetNodePriority extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/SetNodePriority"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IOperationsService_IRestartPersistentSubscriptions extends grpc.MethodDefinition { - path: "/event_store.client.operations.Operations/RestartPersistentSubscriptions"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const OperationsService: IOperationsService; - -export interface IOperationsServer extends grpc.UntypedServiceImplementation { - startScavenge: grpc.handleUnaryCall; - stopScavenge: grpc.handleUnaryCall; - shutdown: grpc.handleUnaryCall; - mergeIndexes: grpc.handleUnaryCall; - resignNode: grpc.handleUnaryCall; - setNodePriority: grpc.handleUnaryCall; - restartPersistentSubscriptions: grpc.handleUnaryCall; -} - -export interface IOperationsClient { - startScavenge(request: operations_pb.StartScavengeReq, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - startScavenge(request: operations_pb.StartScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - startScavenge(request: operations_pb.StartScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - stopScavenge(request: operations_pb.StopScavengeReq, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - stopScavenge(request: operations_pb.StopScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - stopScavenge(request: operations_pb.StopScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - shutdown(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - shutdown(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - shutdown(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - mergeIndexes(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - mergeIndexes(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - mergeIndexes(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - resignNode(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - resignNode(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - resignNode(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - setNodePriority(request: operations_pb.SetNodePriorityReq, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - setNodePriority(request: operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - setNodePriority(request: operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartPersistentSubscriptions(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartPersistentSubscriptions(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartPersistentSubscriptions(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} - -export class OperationsClient extends grpc.Client implements IOperationsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public startScavenge(request: operations_pb.StartScavengeReq, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - public startScavenge(request: operations_pb.StartScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - public startScavenge(request: operations_pb.StartScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - public stopScavenge(request: operations_pb.StopScavengeReq, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - public stopScavenge(request: operations_pb.StopScavengeReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - public stopScavenge(request: operations_pb.StopScavengeReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: operations_pb.ScavengeResp) => void): grpc.ClientUnaryCall; - public shutdown(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public shutdown(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public shutdown(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public mergeIndexes(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public mergeIndexes(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public mergeIndexes(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public resignNode(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public resignNode(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public resignNode(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public setNodePriority(request: operations_pb.SetNodePriorityReq, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public setNodePriority(request: operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public setNodePriority(request: operations_pb.SetNodePriorityReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartPersistentSubscriptions(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartPersistentSubscriptions(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartPersistentSubscriptions(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/persistent_grpc_pb.d.ts b/packages/db-client/generated/persistent_grpc_pb.d.ts deleted file mode 100644 index 24ac52f0..00000000 --- a/packages/db-client/generated/persistent_grpc_pb.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -// package: event_store.client.persistent_subscriptions -// file: persistent.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as persistent_pb from "./persistent_pb"; -import * as shared_pb from "./shared_pb"; - -interface IPersistentSubscriptionsService extends grpc.ServiceDefinition { - create: IPersistentSubscriptionsService_ICreate; - update: IPersistentSubscriptionsService_IUpdate; - delete: IPersistentSubscriptionsService_IDelete; - read: IPersistentSubscriptionsService_IRead; - getInfo: IPersistentSubscriptionsService_IGetInfo; - replayParked: IPersistentSubscriptionsService_IReplayParked; - list: IPersistentSubscriptionsService_IList; - restartSubsystem: IPersistentSubscriptionsService_IRestartSubsystem; -} - -interface IPersistentSubscriptionsService_ICreate extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IRead extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IGetInfo extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IReplayParked extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IList extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/List"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IRestartSubsystem extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const PersistentSubscriptionsService: IPersistentSubscriptionsService; - -export interface IPersistentSubscriptionsServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - read: grpc.handleBidiStreamingCall; - getInfo: grpc.handleUnaryCall; - replayParked: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - restartSubsystem: grpc.handleUnaryCall; -} - -export interface IPersistentSubscriptionsClient { - create(request: persistent_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: persistent_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: persistent_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.CreateResp) => void): grpc.ClientUnaryCall; - update(request: persistent_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: persistent_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: persistent_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.UpdateResp) => void): grpc.ClientUnaryCall; - delete(request: persistent_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: persistent_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: persistent_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.DeleteResp) => void): grpc.ClientUnaryCall; - read(): grpc.ClientDuplexStream; - read(options: Partial): grpc.ClientDuplexStream; - read(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - getInfo(request: persistent_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - getInfo(request: persistent_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - getInfo(request: persistent_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - replayParked(request: persistent_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - replayParked(request: persistent_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - replayParked(request: persistent_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - list(request: persistent_pb.ListReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.ListResp) => void): grpc.ClientUnaryCall; - list(request: persistent_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.ListResp) => void): grpc.ClientUnaryCall; - list(request: persistent_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.ListResp) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} - -export class PersistentSubscriptionsClient extends grpc.Client implements IPersistentSubscriptionsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public create(request: persistent_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: persistent_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: persistent_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.CreateResp) => void): grpc.ClientUnaryCall; - public update(request: persistent_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: persistent_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: persistent_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public delete(request: persistent_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: persistent_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: persistent_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public read(options?: Partial): grpc.ClientDuplexStream; - public read(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public getInfo(request: persistent_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - public getInfo(request: persistent_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - public getInfo(request: persistent_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - public replayParked(request: persistent_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - public replayParked(request: persistent_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - public replayParked(request: persistent_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - public list(request: persistent_pb.ListReq, callback: (error: grpc.ServiceError | null, response: persistent_pb.ListResp) => void): grpc.ClientUnaryCall; - public list(request: persistent_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistent_pb.ListResp) => void): grpc.ClientUnaryCall; - public list(request: persistent_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistent_pb.ListResp) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/persistent_grpc_pb.js b/packages/db-client/generated/persistent_grpc_pb.js deleted file mode 100644 index 5360983c..00000000 --- a/packages/db-client/generated/persistent_grpc_pb.js +++ /dev/null @@ -1,265 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var persistent_pb = require('./persistent_pb.js'); -var shared_pb = require('./shared_pb.js'); - -function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { - throw new Error('Expected argument of type event_store.client.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_CreateReq(arg) { - if (!(arg instanceof persistent_pb.CreateReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.CreateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_CreateReq(buffer_arg) { - return persistent_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_CreateResp(arg) { - if (!(arg instanceof persistent_pb.CreateResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.CreateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_CreateResp(buffer_arg) { - return persistent_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_DeleteReq(arg) { - if (!(arg instanceof persistent_pb.DeleteReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.DeleteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_DeleteReq(buffer_arg) { - return persistent_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_DeleteResp(arg) { - if (!(arg instanceof persistent_pb.DeleteResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.DeleteResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_DeleteResp(buffer_arg) { - return persistent_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_GetInfoReq(arg) { - if (!(arg instanceof persistent_pb.GetInfoReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.GetInfoReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_GetInfoReq(buffer_arg) { - return persistent_pb.GetInfoReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_GetInfoResp(arg) { - if (!(arg instanceof persistent_pb.GetInfoResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.GetInfoResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_GetInfoResp(buffer_arg) { - return persistent_pb.GetInfoResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_ListReq(arg) { - if (!(arg instanceof persistent_pb.ListReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ListReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_ListReq(buffer_arg) { - return persistent_pb.ListReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_ListResp(arg) { - if (!(arg instanceof persistent_pb.ListResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ListResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_ListResp(buffer_arg) { - return persistent_pb.ListResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_ReadReq(arg) { - if (!(arg instanceof persistent_pb.ReadReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReadReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_ReadReq(buffer_arg) { - return persistent_pb.ReadReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_ReadResp(arg) { - if (!(arg instanceof persistent_pb.ReadResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReadResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_ReadResp(buffer_arg) { - return persistent_pb.ReadResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_ReplayParkedReq(arg) { - if (!(arg instanceof persistent_pb.ReplayParkedReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReplayParkedReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_ReplayParkedReq(buffer_arg) { - return persistent_pb.ReplayParkedReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_ReplayParkedResp(arg) { - if (!(arg instanceof persistent_pb.ReplayParkedResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.ReplayParkedResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_ReplayParkedResp(buffer_arg) { - return persistent_pb.ReplayParkedResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_UpdateReq(arg) { - if (!(arg instanceof persistent_pb.UpdateReq)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.UpdateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_UpdateReq(buffer_arg) { - return persistent_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_persistent_subscriptions_UpdateResp(arg) { - if (!(arg instanceof persistent_pb.UpdateResp)) { - throw new Error('Expected argument of type event_store.client.persistent_subscriptions.UpdateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_persistent_subscriptions_UpdateResp(buffer_arg) { - return persistent_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var PersistentSubscriptionsService = exports.PersistentSubscriptionsService = { - create: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create', - requestStream: false, - responseStream: false, - requestType: persistent_pb.CreateReq, - responseType: persistent_pb.CreateResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_CreateReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_CreateReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_CreateResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_CreateResp, - }, - update: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update', - requestStream: false, - responseStream: false, - requestType: persistent_pb.UpdateReq, - responseType: persistent_pb.UpdateResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_UpdateReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_UpdateReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_UpdateResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_UpdateResp, - }, - delete: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete', - requestStream: false, - responseStream: false, - requestType: persistent_pb.DeleteReq, - responseType: persistent_pb.DeleteResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_DeleteReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_DeleteReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_DeleteResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_DeleteResp, - }, - read: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read', - requestStream: true, - responseStream: true, - requestType: persistent_pb.ReadReq, - responseType: persistent_pb.ReadResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_ReadReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ReadReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_ReadResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_ReadResp, - }, - getInfo: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo', - requestStream: false, - responseStream: false, - requestType: persistent_pb.GetInfoReq, - responseType: persistent_pb.GetInfoResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_GetInfoReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_GetInfoReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_GetInfoResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_GetInfoResp, - }, - replayParked: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked', - requestStream: false, - responseStream: false, - requestType: persistent_pb.ReplayParkedReq, - responseType: persistent_pb.ReplayParkedResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_ReplayParkedReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ReplayParkedReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_ReplayParkedResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_ReplayParkedResp, - }, - list: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/List', - requestStream: false, - responseStream: false, - requestType: persistent_pb.ListReq, - responseType: persistent_pb.ListResp, - requestSerialize: serialize_event_store_client_persistent_subscriptions_ListReq, - requestDeserialize: deserialize_event_store_client_persistent_subscriptions_ListReq, - responseSerialize: serialize_event_store_client_persistent_subscriptions_ListResp, - responseDeserialize: deserialize_event_store_client_persistent_subscriptions_ListResp, - }, - restartSubsystem: { - path: '/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem', - requestStream: false, - responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_client_Empty, - requestDeserialize: deserialize_event_store_client_Empty, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, -}; - -exports.PersistentSubscriptionsClient = grpc.makeGenericClientConstructor(PersistentSubscriptionsService, 'PersistentSubscriptions'); diff --git a/packages/db-client/generated/persistent_pb.d.ts b/packages/db-client/generated/persistent_pb.d.ts deleted file mode 100644 index de965294..00000000 --- a/packages/db-client/generated/persistent_pb.d.ts +++ /dev/null @@ -1,1702 +0,0 @@ -// package: event_store.client.persistent_subscriptions -// file: persistent.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as shared_pb from "./shared_pb"; - -export class ReadReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ReadReq.Options | undefined; - setOptions(value?: ReadReq.Options): ReadReq; - - hasAck(): boolean; - clearAck(): void; - getAck(): ReadReq.Ack | undefined; - setAck(value?: ReadReq.Ack): ReadReq; - - hasNack(): boolean; - clearNack(): void; - getNack(): ReadReq.Nack | undefined; - setNack(value?: ReadReq.Nack): ReadReq; - - getContentCase(): ReadReq.ContentCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadReq.AsObject; - static toObject(includeInstance: boolean, msg: ReadReq): ReadReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadReq; - static deserializeBinaryFromReader(message: ReadReq, reader: jspb.BinaryReader): ReadReq; -} - -export namespace ReadReq { - export type AsObject = { - options?: ReadReq.Options.AsObject, - ack?: ReadReq.Ack.AsObject, - nack?: ReadReq.Nack.AsObject, - } - - - export class Options extends jspb.Message { - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; - getGroupName(): string; - setGroupName(value: string): Options; - getBufferSize(): number; - setBufferSize(value: number): Options; - - hasUuidOption(): boolean; - clearUuidOption(): void; - getUuidOption(): ReadReq.Options.UUIDOption | undefined; - setUuidOption(value?: ReadReq.Options.UUIDOption): Options; - - getStreamOptionCase(): Options.StreamOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, - groupName: string, - bufferSize: number, - uuidOption?: ReadReq.Options.UUIDOption.AsObject, - } - - - export class UUIDOption extends jspb.Message { - - hasStructured(): boolean; - clearStructured(): void; - getStructured(): shared_pb.Empty | undefined; - setStructured(value?: shared_pb.Empty): UUIDOption; - - hasString(): boolean; - clearString(): void; - getString(): shared_pb.Empty | undefined; - setString(value?: shared_pb.Empty): UUIDOption; - - getContentCase(): UUIDOption.ContentCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UUIDOption.AsObject; - static toObject(includeInstance: boolean, msg: UUIDOption): UUIDOption.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UUIDOption, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UUIDOption; - static deserializeBinaryFromReader(message: UUIDOption, reader: jspb.BinaryReader): UUIDOption; - } - - export namespace UUIDOption { - export type AsObject = { - structured?: shared_pb.Empty.AsObject, - string?: shared_pb.Empty.AsObject, - } - - export enum ContentCase { - CONTENT_NOT_SET = 0, - STRUCTURED = 1, - STRING = 2, - } - - } - - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM_IDENTIFIER = 1, - ALL = 5, - } - - } - - export class Ack extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): Ack; - clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): Ack; - addIds(value?: shared_pb.UUID, index?: number): shared_pb.UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Ack.AsObject; - static toObject(includeInstance: boolean, msg: Ack): Ack.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Ack, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Ack; - static deserializeBinaryFromReader(message: Ack, reader: jspb.BinaryReader): Ack; - } - - export namespace Ack { - export type AsObject = { - id: Uint8Array | string, - idsList: Array, - } - } - - export class Nack extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): Nack; - clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): Nack; - addIds(value?: shared_pb.UUID, index?: number): shared_pb.UUID; - getAction(): ReadReq.Nack.Action; - setAction(value: ReadReq.Nack.Action): Nack; - getReason(): string; - setReason(value: string): Nack; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Nack.AsObject; - static toObject(includeInstance: boolean, msg: Nack): Nack.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Nack, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Nack; - static deserializeBinaryFromReader(message: Nack, reader: jspb.BinaryReader): Nack; - } - - export namespace Nack { - export type AsObject = { - id: Uint8Array | string, - idsList: Array, - action: ReadReq.Nack.Action, - reason: string, - } - - export enum Action { - UNKNOWN = 0, - PARK = 1, - RETRY = 2, - SKIP = 3, - STOP = 4, - } - - } - - - export enum ContentCase { - CONTENT_NOT_SET = 0, - OPTIONS = 1, - ACK = 2, - NACK = 3, - } - -} - -export class ReadResp extends jspb.Message { - - hasEvent(): boolean; - clearEvent(): void; - getEvent(): ReadResp.ReadEvent | undefined; - setEvent(value?: ReadResp.ReadEvent): ReadResp; - - hasSubscriptionConfirmation(): boolean; - clearSubscriptionConfirmation(): void; - getSubscriptionConfirmation(): ReadResp.SubscriptionConfirmation | undefined; - setSubscriptionConfirmation(value?: ReadResp.SubscriptionConfirmation): ReadResp; - - getContentCase(): ReadResp.ContentCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadResp.AsObject; - static toObject(includeInstance: boolean, msg: ReadResp): ReadResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadResp; - static deserializeBinaryFromReader(message: ReadResp, reader: jspb.BinaryReader): ReadResp; -} - -export namespace ReadResp { - export type AsObject = { - event?: ReadResp.ReadEvent.AsObject, - subscriptionConfirmation?: ReadResp.SubscriptionConfirmation.AsObject, - } - - - export class ReadEvent extends jspb.Message { - - hasEvent(): boolean; - clearEvent(): void; - getEvent(): ReadResp.ReadEvent.RecordedEvent | undefined; - setEvent(value?: ReadResp.ReadEvent.RecordedEvent): ReadEvent; - - hasLink(): boolean; - clearLink(): void; - getLink(): ReadResp.ReadEvent.RecordedEvent | undefined; - setLink(value?: ReadResp.ReadEvent.RecordedEvent): ReadEvent; - - hasCommitPosition(): boolean; - clearCommitPosition(): void; - getCommitPosition(): string; - setCommitPosition(value: string): ReadEvent; - - hasNoPosition(): boolean; - clearNoPosition(): void; - getNoPosition(): shared_pb.Empty | undefined; - setNoPosition(value?: shared_pb.Empty): ReadEvent; - - hasRetryCount(): boolean; - clearRetryCount(): void; - getRetryCount(): number; - setRetryCount(value: number): ReadEvent; - - hasNoRetryCount(): boolean; - clearNoRetryCount(): void; - getNoRetryCount(): shared_pb.Empty | undefined; - setNoRetryCount(value?: shared_pb.Empty): ReadEvent; - - getPositionCase(): ReadEvent.PositionCase; - getCountCase(): ReadEvent.CountCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReadEvent.AsObject; - static toObject(includeInstance: boolean, msg: ReadEvent): ReadEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReadEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReadEvent; - static deserializeBinaryFromReader(message: ReadEvent, reader: jspb.BinaryReader): ReadEvent; - } - - export namespace ReadEvent { - export type AsObject = { - event?: ReadResp.ReadEvent.RecordedEvent.AsObject, - link?: ReadResp.ReadEvent.RecordedEvent.AsObject, - commitPosition: string, - noPosition?: shared_pb.Empty.AsObject, - retryCount: number, - noRetryCount?: shared_pb.Empty.AsObject, - } - - - export class RecordedEvent extends jspb.Message { - - hasId(): boolean; - clearId(): void; - getId(): shared_pb.UUID | undefined; - setId(value?: shared_pb.UUID): RecordedEvent; - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): RecordedEvent; - getStreamRevision(): string; - setStreamRevision(value: string): RecordedEvent; - getPreparePosition(): string; - setPreparePosition(value: string): RecordedEvent; - getCommitPosition(): string; - setCommitPosition(value: string): RecordedEvent; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getCustomMetadata(): Uint8Array | string; - getCustomMetadata_asU8(): Uint8Array; - getCustomMetadata_asB64(): string; - setCustomMetadata(value: Uint8Array | string): RecordedEvent; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): RecordedEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RecordedEvent.AsObject; - static toObject(includeInstance: boolean, msg: RecordedEvent): RecordedEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RecordedEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RecordedEvent; - static deserializeBinaryFromReader(message: RecordedEvent, reader: jspb.BinaryReader): RecordedEvent; - } - - export namespace RecordedEvent { - export type AsObject = { - id?: shared_pb.UUID.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - streamRevision: string, - preparePosition: string, - commitPosition: string, - - metadataMap: Array<[string, string]>, - customMetadata: Uint8Array | string, - data: Uint8Array | string, - } - } - - - export enum PositionCase { - POSITION_NOT_SET = 0, - COMMIT_POSITION = 3, - NO_POSITION = 4, - } - - export enum CountCase { - COUNT_NOT_SET = 0, - RETRY_COUNT = 5, - NO_RETRY_COUNT = 6, - } - - } - - export class SubscriptionConfirmation extends jspb.Message { - getSubscriptionId(): string; - setSubscriptionId(value: string): SubscriptionConfirmation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubscriptionConfirmation.AsObject; - static toObject(includeInstance: boolean, msg: SubscriptionConfirmation): SubscriptionConfirmation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubscriptionConfirmation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubscriptionConfirmation; - static deserializeBinaryFromReader(message: SubscriptionConfirmation, reader: jspb.BinaryReader): SubscriptionConfirmation; - } - - export namespace SubscriptionConfirmation { - export type AsObject = { - subscriptionId: string, - } - } - - - export enum ContentCase { - CONTENT_NOT_SET = 0, - EVENT = 1, - SUBSCRIPTION_CONFIRMATION = 2, - } - -} - -export class CreateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): CreateReq.Options | undefined; - setOptions(value?: CreateReq.Options): CreateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateReq.AsObject; - static toObject(includeInstance: boolean, msg: CreateReq): CreateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateReq; - static deserializeBinaryFromReader(message: CreateReq, reader: jspb.BinaryReader): CreateReq; -} - -export namespace CreateReq { - export type AsObject = { - options?: CreateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasStream(): boolean; - clearStream(): void; - getStream(): CreateReq.StreamOptions | undefined; - setStream(value?: CreateReq.StreamOptions): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): CreateReq.AllOptions | undefined; - setAll(value?: CreateReq.AllOptions): Options; - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; - getGroupName(): string; - setGroupName(value: string): Options; - - hasSettings(): boolean; - clearSettings(): void; - getSettings(): CreateReq.Settings | undefined; - setSettings(value?: CreateReq.Settings): Options; - - getStreamOptionCase(): Options.StreamOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - stream?: CreateReq.StreamOptions.AsObject, - all?: CreateReq.AllOptions.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - groupName: string, - settings?: CreateReq.Settings.AsObject, - } - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM = 4, - ALL = 5, - } - - } - - export class StreamOptions extends jspb.Message { - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; - - hasRevision(): boolean; - clearRevision(): void; - getRevision(): string; - setRevision(value: string): StreamOptions; - - hasStart(): boolean; - clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): StreamOptions; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): StreamOptions; - - getRevisionOptionCase(): StreamOptions.RevisionOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamOptions.AsObject; - static toObject(includeInstance: boolean, msg: StreamOptions): StreamOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamOptions; - static deserializeBinaryFromReader(message: StreamOptions, reader: jspb.BinaryReader): StreamOptions; - } - - export namespace StreamOptions { - export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - revision: string, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, - } - - export enum RevisionOptionCase { - REVISION_OPTION_NOT_SET = 0, - REVISION = 2, - START = 3, - END = 4, - } - - } - - export class AllOptions extends jspb.Message { - - hasPosition(): boolean; - clearPosition(): void; - getPosition(): CreateReq.Position | undefined; - setPosition(value?: CreateReq.Position): AllOptions; - - hasStart(): boolean; - clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): AllOptions; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): AllOptions; - - hasFilter(): boolean; - clearFilter(): void; - getFilter(): CreateReq.AllOptions.FilterOptions | undefined; - setFilter(value?: CreateReq.AllOptions.FilterOptions): AllOptions; - - hasNoFilter(): boolean; - clearNoFilter(): void; - getNoFilter(): shared_pb.Empty | undefined; - setNoFilter(value?: shared_pb.Empty): AllOptions; - - getAllOptionCase(): AllOptions.AllOptionCase; - getFilterOptionCase(): AllOptions.FilterOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AllOptions.AsObject; - static toObject(includeInstance: boolean, msg: AllOptions): AllOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AllOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AllOptions; - static deserializeBinaryFromReader(message: AllOptions, reader: jspb.BinaryReader): AllOptions; - } - - export namespace AllOptions { - export type AsObject = { - position?: CreateReq.Position.AsObject, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, - filter?: CreateReq.AllOptions.FilterOptions.AsObject, - noFilter?: shared_pb.Empty.AsObject, - } - - - export class FilterOptions extends jspb.Message { - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): CreateReq.AllOptions.FilterOptions.Expression | undefined; - setStreamIdentifier(value?: CreateReq.AllOptions.FilterOptions.Expression): FilterOptions; - - hasEventType(): boolean; - clearEventType(): void; - getEventType(): CreateReq.AllOptions.FilterOptions.Expression | undefined; - setEventType(value?: CreateReq.AllOptions.FilterOptions.Expression): FilterOptions; - - hasMax(): boolean; - clearMax(): void; - getMax(): number; - setMax(value: number): FilterOptions; - - hasCount(): boolean; - clearCount(): void; - getCount(): shared_pb.Empty | undefined; - setCount(value?: shared_pb.Empty): FilterOptions; - getCheckpointintervalmultiplier(): number; - setCheckpointintervalmultiplier(value: number): FilterOptions; - - getFilterCase(): FilterOptions.FilterCase; - getWindowCase(): FilterOptions.WindowCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FilterOptions.AsObject; - static toObject(includeInstance: boolean, msg: FilterOptions): FilterOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FilterOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FilterOptions; - static deserializeBinaryFromReader(message: FilterOptions, reader: jspb.BinaryReader): FilterOptions; - } - - export namespace FilterOptions { - export type AsObject = { - streamIdentifier?: CreateReq.AllOptions.FilterOptions.Expression.AsObject, - eventType?: CreateReq.AllOptions.FilterOptions.Expression.AsObject, - max: number, - count?: shared_pb.Empty.AsObject, - checkpointintervalmultiplier: number, - } - - - export class Expression extends jspb.Message { - getRegex(): string; - setRegex(value: string): Expression; - clearPrefixList(): void; - getPrefixList(): Array; - setPrefixList(value: Array): Expression; - addPrefix(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Expression.AsObject; - static toObject(includeInstance: boolean, msg: Expression): Expression.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Expression, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Expression; - static deserializeBinaryFromReader(message: Expression, reader: jspb.BinaryReader): Expression; - } - - export namespace Expression { - export type AsObject = { - regex: string, - prefixList: Array, - } - } - - - export enum FilterCase { - FILTER_NOT_SET = 0, - STREAM_IDENTIFIER = 1, - EVENT_TYPE = 2, - } - - export enum WindowCase { - WINDOW_NOT_SET = 0, - MAX = 3, - COUNT = 4, - } - - } - - - export enum AllOptionCase { - ALL_OPTION_NOT_SET = 0, - POSITION = 1, - START = 2, - END = 3, - } - - export enum FilterOptionCase { - FILTER_OPTION_NOT_SET = 0, - FILTER = 4, - NO_FILTER = 5, - } - - } - - export class Position extends jspb.Message { - getCommitPosition(): string; - setCommitPosition(value: string): Position; - getPreparePosition(): string; - setPreparePosition(value: string): Position; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Position.AsObject; - static toObject(includeInstance: boolean, msg: Position): Position.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Position, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Position; - static deserializeBinaryFromReader(message: Position, reader: jspb.BinaryReader): Position; - } - - export namespace Position { - export type AsObject = { - commitPosition: string, - preparePosition: string, - } - } - - export class Settings extends jspb.Message { - getResolveLinks(): boolean; - setResolveLinks(value: boolean): Settings; - getRevision(): string; - setRevision(value: string): Settings; - getExtraStatistics(): boolean; - setExtraStatistics(value: boolean): Settings; - getMaxRetryCount(): number; - setMaxRetryCount(value: number): Settings; - getMinCheckpointCount(): number; - setMinCheckpointCount(value: number): Settings; - getMaxCheckpointCount(): number; - setMaxCheckpointCount(value: number): Settings; - getMaxSubscriberCount(): number; - setMaxSubscriberCount(value: number): Settings; - getLiveBufferSize(): number; - setLiveBufferSize(value: number): Settings; - getReadBatchSize(): number; - setReadBatchSize(value: number): Settings; - getHistoryBufferSize(): number; - setHistoryBufferSize(value: number): Settings; - getNamedConsumerStrategy(): CreateReq.ConsumerStrategy; - setNamedConsumerStrategy(value: CreateReq.ConsumerStrategy): Settings; - - hasMessageTimeoutTicks(): boolean; - clearMessageTimeoutTicks(): void; - getMessageTimeoutTicks(): string; - setMessageTimeoutTicks(value: string): Settings; - - hasMessageTimeoutMs(): boolean; - clearMessageTimeoutMs(): void; - getMessageTimeoutMs(): number; - setMessageTimeoutMs(value: number): Settings; - - hasCheckpointAfterTicks(): boolean; - clearCheckpointAfterTicks(): void; - getCheckpointAfterTicks(): string; - setCheckpointAfterTicks(value: string): Settings; - - hasCheckpointAfterMs(): boolean; - clearCheckpointAfterMs(): void; - getCheckpointAfterMs(): number; - setCheckpointAfterMs(value: number): Settings; - getConsumerStrategy(): string; - setConsumerStrategy(value: string): Settings; - - getMessageTimeoutCase(): Settings.MessageTimeoutCase; - getCheckpointAfterCase(): Settings.CheckpointAfterCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Settings.AsObject; - static toObject(includeInstance: boolean, msg: Settings): Settings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Settings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Settings; - static deserializeBinaryFromReader(message: Settings, reader: jspb.BinaryReader): Settings; - } - - export namespace Settings { - export type AsObject = { - resolveLinks: boolean, - revision: string, - extraStatistics: boolean, - maxRetryCount: number, - minCheckpointCount: number, - maxCheckpointCount: number, - maxSubscriberCount: number, - liveBufferSize: number, - readBatchSize: number, - historyBufferSize: number, - namedConsumerStrategy: CreateReq.ConsumerStrategy, - messageTimeoutTicks: string, - messageTimeoutMs: number, - checkpointAfterTicks: string, - checkpointAfterMs: number, - consumerStrategy: string, - } - - export enum MessageTimeoutCase { - MESSAGE_TIMEOUT_NOT_SET = 0, - MESSAGE_TIMEOUT_TICKS = 4, - MESSAGE_TIMEOUT_MS = 14, - } - - export enum CheckpointAfterCase { - CHECKPOINT_AFTER_NOT_SET = 0, - CHECKPOINT_AFTER_TICKS = 6, - CHECKPOINT_AFTER_MS = 15, - } - - } - - - export enum ConsumerStrategy { - DISPATCHTOSINGLE = 0, - ROUNDROBIN = 1, - PINNED = 2, - } - -} - -export class CreateResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateResp.AsObject; - static toObject(includeInstance: boolean, msg: CreateResp): CreateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateResp; - static deserializeBinaryFromReader(message: CreateResp, reader: jspb.BinaryReader): CreateResp; -} - -export namespace CreateResp { - export type AsObject = { - } -} - -export class UpdateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): UpdateReq.Options | undefined; - setOptions(value?: UpdateReq.Options): UpdateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateReq.AsObject; - static toObject(includeInstance: boolean, msg: UpdateReq): UpdateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateReq; - static deserializeBinaryFromReader(message: UpdateReq, reader: jspb.BinaryReader): UpdateReq; -} - -export namespace UpdateReq { - export type AsObject = { - options?: UpdateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasStream(): boolean; - clearStream(): void; - getStream(): UpdateReq.StreamOptions | undefined; - setStream(value?: UpdateReq.StreamOptions): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): UpdateReq.AllOptions | undefined; - setAll(value?: UpdateReq.AllOptions): Options; - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; - getGroupName(): string; - setGroupName(value: string): Options; - - hasSettings(): boolean; - clearSettings(): void; - getSettings(): UpdateReq.Settings | undefined; - setSettings(value?: UpdateReq.Settings): Options; - - getStreamOptionCase(): Options.StreamOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - stream?: UpdateReq.StreamOptions.AsObject, - all?: UpdateReq.AllOptions.AsObject, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - groupName: string, - settings?: UpdateReq.Settings.AsObject, - } - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM = 4, - ALL = 5, - } - - } - - export class StreamOptions extends jspb.Message { - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): StreamOptions; - - hasRevision(): boolean; - clearRevision(): void; - getRevision(): string; - setRevision(value: string): StreamOptions; - - hasStart(): boolean; - clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): StreamOptions; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): StreamOptions; - - getRevisionOptionCase(): StreamOptions.RevisionOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamOptions.AsObject; - static toObject(includeInstance: boolean, msg: StreamOptions): StreamOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamOptions; - static deserializeBinaryFromReader(message: StreamOptions, reader: jspb.BinaryReader): StreamOptions; - } - - export namespace StreamOptions { - export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - revision: string, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, - } - - export enum RevisionOptionCase { - REVISION_OPTION_NOT_SET = 0, - REVISION = 2, - START = 3, - END = 4, - } - - } - - export class AllOptions extends jspb.Message { - - hasPosition(): boolean; - clearPosition(): void; - getPosition(): UpdateReq.Position | undefined; - setPosition(value?: UpdateReq.Position): AllOptions; - - hasStart(): boolean; - clearStart(): void; - getStart(): shared_pb.Empty | undefined; - setStart(value?: shared_pb.Empty): AllOptions; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): shared_pb.Empty | undefined; - setEnd(value?: shared_pb.Empty): AllOptions; - - getAllOptionCase(): AllOptions.AllOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AllOptions.AsObject; - static toObject(includeInstance: boolean, msg: AllOptions): AllOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AllOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AllOptions; - static deserializeBinaryFromReader(message: AllOptions, reader: jspb.BinaryReader): AllOptions; - } - - export namespace AllOptions { - export type AsObject = { - position?: UpdateReq.Position.AsObject, - start?: shared_pb.Empty.AsObject, - end?: shared_pb.Empty.AsObject, - } - - export enum AllOptionCase { - ALL_OPTION_NOT_SET = 0, - POSITION = 1, - START = 2, - END = 3, - } - - } - - export class Position extends jspb.Message { - getCommitPosition(): string; - setCommitPosition(value: string): Position; - getPreparePosition(): string; - setPreparePosition(value: string): Position; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Position.AsObject; - static toObject(includeInstance: boolean, msg: Position): Position.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Position, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Position; - static deserializeBinaryFromReader(message: Position, reader: jspb.BinaryReader): Position; - } - - export namespace Position { - export type AsObject = { - commitPosition: string, - preparePosition: string, - } - } - - export class Settings extends jspb.Message { - getResolveLinks(): boolean; - setResolveLinks(value: boolean): Settings; - getRevision(): string; - setRevision(value: string): Settings; - getExtraStatistics(): boolean; - setExtraStatistics(value: boolean): Settings; - getMaxRetryCount(): number; - setMaxRetryCount(value: number): Settings; - getMinCheckpointCount(): number; - setMinCheckpointCount(value: number): Settings; - getMaxCheckpointCount(): number; - setMaxCheckpointCount(value: number): Settings; - getMaxSubscriberCount(): number; - setMaxSubscriberCount(value: number): Settings; - getLiveBufferSize(): number; - setLiveBufferSize(value: number): Settings; - getReadBatchSize(): number; - setReadBatchSize(value: number): Settings; - getHistoryBufferSize(): number; - setHistoryBufferSize(value: number): Settings; - getNamedConsumerStrategy(): UpdateReq.ConsumerStrategy; - setNamedConsumerStrategy(value: UpdateReq.ConsumerStrategy): Settings; - - hasMessageTimeoutTicks(): boolean; - clearMessageTimeoutTicks(): void; - getMessageTimeoutTicks(): string; - setMessageTimeoutTicks(value: string): Settings; - - hasMessageTimeoutMs(): boolean; - clearMessageTimeoutMs(): void; - getMessageTimeoutMs(): number; - setMessageTimeoutMs(value: number): Settings; - - hasCheckpointAfterTicks(): boolean; - clearCheckpointAfterTicks(): void; - getCheckpointAfterTicks(): string; - setCheckpointAfterTicks(value: string): Settings; - - hasCheckpointAfterMs(): boolean; - clearCheckpointAfterMs(): void; - getCheckpointAfterMs(): number; - setCheckpointAfterMs(value: number): Settings; - - getMessageTimeoutCase(): Settings.MessageTimeoutCase; - getCheckpointAfterCase(): Settings.CheckpointAfterCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Settings.AsObject; - static toObject(includeInstance: boolean, msg: Settings): Settings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Settings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Settings; - static deserializeBinaryFromReader(message: Settings, reader: jspb.BinaryReader): Settings; - } - - export namespace Settings { - export type AsObject = { - resolveLinks: boolean, - revision: string, - extraStatistics: boolean, - maxRetryCount: number, - minCheckpointCount: number, - maxCheckpointCount: number, - maxSubscriberCount: number, - liveBufferSize: number, - readBatchSize: number, - historyBufferSize: number, - namedConsumerStrategy: UpdateReq.ConsumerStrategy, - messageTimeoutTicks: string, - messageTimeoutMs: number, - checkpointAfterTicks: string, - checkpointAfterMs: number, - } - - export enum MessageTimeoutCase { - MESSAGE_TIMEOUT_NOT_SET = 0, - MESSAGE_TIMEOUT_TICKS = 4, - MESSAGE_TIMEOUT_MS = 14, - } - - export enum CheckpointAfterCase { - CHECKPOINT_AFTER_NOT_SET = 0, - CHECKPOINT_AFTER_TICKS = 6, - CHECKPOINT_AFTER_MS = 15, - } - - } - - - export enum ConsumerStrategy { - DISPATCHTOSINGLE = 0, - ROUNDROBIN = 1, - PINNED = 2, - } - -} - -export class UpdateResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResp.AsObject; - static toObject(includeInstance: boolean, msg: UpdateResp): UpdateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateResp; - static deserializeBinaryFromReader(message: UpdateResp, reader: jspb.BinaryReader): UpdateResp; -} - -export namespace UpdateResp { - export type AsObject = { - } -} - -export class DeleteReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DeleteReq.Options | undefined; - setOptions(value?: DeleteReq.Options): DeleteReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteReq.AsObject; - static toObject(includeInstance: boolean, msg: DeleteReq): DeleteReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteReq; - static deserializeBinaryFromReader(message: DeleteReq, reader: jspb.BinaryReader): DeleteReq; -} - -export namespace DeleteReq { - export type AsObject = { - options?: DeleteReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; - getGroupName(): string; - setGroupName(value: string): Options; - - getStreamOptionCase(): Options.StreamOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, - groupName: string, - } - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM_IDENTIFIER = 1, - ALL = 3, - } - - } - -} - -export class DeleteResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResp.AsObject; - static toObject(includeInstance: boolean, msg: DeleteResp): DeleteResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteResp; - static deserializeBinaryFromReader(message: DeleteResp, reader: jspb.BinaryReader): DeleteResp; -} - -export namespace DeleteResp { - export type AsObject = { - } -} - -export class GetInfoReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): GetInfoReq.Options | undefined; - setOptions(value?: GetInfoReq.Options): GetInfoReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInfoReq.AsObject; - static toObject(includeInstance: boolean, msg: GetInfoReq): GetInfoReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetInfoReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInfoReq; - static deserializeBinaryFromReader(message: GetInfoReq, reader: jspb.BinaryReader): GetInfoReq; -} - -export namespace GetInfoReq { - export type AsObject = { - options?: GetInfoReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; - getGroupName(): string; - setGroupName(value: string): Options; - - getStreamOptionCase(): Options.StreamOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, - groupName: string, - } - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM_IDENTIFIER = 1, - ALL = 2, - } - - } - -} - -export class GetInfoResp extends jspb.Message { - - hasSubscriptionInfo(): boolean; - clearSubscriptionInfo(): void; - getSubscriptionInfo(): SubscriptionInfo | undefined; - setSubscriptionInfo(value?: SubscriptionInfo): GetInfoResp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInfoResp.AsObject; - static toObject(includeInstance: boolean, msg: GetInfoResp): GetInfoResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetInfoResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInfoResp; - static deserializeBinaryFromReader(message: GetInfoResp, reader: jspb.BinaryReader): GetInfoResp; -} - -export namespace GetInfoResp { - export type AsObject = { - subscriptionInfo?: SubscriptionInfo.AsObject, - } -} - -export class SubscriptionInfo extends jspb.Message { - getEventSource(): string; - setEventSource(value: string): SubscriptionInfo; - getGroupName(): string; - setGroupName(value: string): SubscriptionInfo; - getStatus(): string; - setStatus(value: string): SubscriptionInfo; - clearConnectionsList(): void; - getConnectionsList(): Array; - setConnectionsList(value: Array): SubscriptionInfo; - addConnections(value?: SubscriptionInfo.ConnectionInfo, index?: number): SubscriptionInfo.ConnectionInfo; - getAveragePerSecond(): number; - setAveragePerSecond(value: number): SubscriptionInfo; - getTotalItems(): string; - setTotalItems(value: string): SubscriptionInfo; - getCountSinceLastMeasurement(): string; - setCountSinceLastMeasurement(value: string): SubscriptionInfo; - getLastCheckpointedEventPosition(): string; - setLastCheckpointedEventPosition(value: string): SubscriptionInfo; - getLastKnownEventPosition(): string; - setLastKnownEventPosition(value: string): SubscriptionInfo; - getResolveLinkTos(): boolean; - setResolveLinkTos(value: boolean): SubscriptionInfo; - getStartFrom(): string; - setStartFrom(value: string): SubscriptionInfo; - getMessageTimeoutMilliseconds(): number; - setMessageTimeoutMilliseconds(value: number): SubscriptionInfo; - getExtraStatistics(): boolean; - setExtraStatistics(value: boolean): SubscriptionInfo; - getMaxRetryCount(): number; - setMaxRetryCount(value: number): SubscriptionInfo; - getLiveBufferSize(): number; - setLiveBufferSize(value: number): SubscriptionInfo; - getBufferSize(): number; - setBufferSize(value: number): SubscriptionInfo; - getReadBatchSize(): number; - setReadBatchSize(value: number): SubscriptionInfo; - getCheckPointAfterMilliseconds(): number; - setCheckPointAfterMilliseconds(value: number): SubscriptionInfo; - getMinCheckPointCount(): number; - setMinCheckPointCount(value: number): SubscriptionInfo; - getMaxCheckPointCount(): number; - setMaxCheckPointCount(value: number): SubscriptionInfo; - getReadBufferCount(): number; - setReadBufferCount(value: number): SubscriptionInfo; - getLiveBufferCount(): string; - setLiveBufferCount(value: string): SubscriptionInfo; - getRetryBufferCount(): number; - setRetryBufferCount(value: number): SubscriptionInfo; - getTotalInFlightMessages(): number; - setTotalInFlightMessages(value: number): SubscriptionInfo; - getOutstandingMessagesCount(): number; - setOutstandingMessagesCount(value: number): SubscriptionInfo; - getNamedConsumerStrategy(): string; - setNamedConsumerStrategy(value: string): SubscriptionInfo; - getMaxSubscriberCount(): number; - setMaxSubscriberCount(value: number): SubscriptionInfo; - getParkedMessageCount(): string; - setParkedMessageCount(value: string): SubscriptionInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SubscriptionInfo.AsObject; - static toObject(includeInstance: boolean, msg: SubscriptionInfo): SubscriptionInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SubscriptionInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SubscriptionInfo; - static deserializeBinaryFromReader(message: SubscriptionInfo, reader: jspb.BinaryReader): SubscriptionInfo; -} - -export namespace SubscriptionInfo { - export type AsObject = { - eventSource: string, - groupName: string, - status: string, - connectionsList: Array, - averagePerSecond: number, - totalItems: string, - countSinceLastMeasurement: string, - lastCheckpointedEventPosition: string, - lastKnownEventPosition: string, - resolveLinkTos: boolean, - startFrom: string, - messageTimeoutMilliseconds: number, - extraStatistics: boolean, - maxRetryCount: number, - liveBufferSize: number, - bufferSize: number, - readBatchSize: number, - checkPointAfterMilliseconds: number, - minCheckPointCount: number, - maxCheckPointCount: number, - readBufferCount: number, - liveBufferCount: string, - retryBufferCount: number, - totalInFlightMessages: number, - outstandingMessagesCount: number, - namedConsumerStrategy: string, - maxSubscriberCount: number, - parkedMessageCount: string, - } - - - export class ConnectionInfo extends jspb.Message { - getFrom(): string; - setFrom(value: string): ConnectionInfo; - getUsername(): string; - setUsername(value: string): ConnectionInfo; - getAverageItemsPerSecond(): number; - setAverageItemsPerSecond(value: number): ConnectionInfo; - getTotalItems(): string; - setTotalItems(value: string): ConnectionInfo; - getCountSinceLastMeasurement(): string; - setCountSinceLastMeasurement(value: string): ConnectionInfo; - clearObservedMeasurementsList(): void; - getObservedMeasurementsList(): Array; - setObservedMeasurementsList(value: Array): ConnectionInfo; - addObservedMeasurements(value?: SubscriptionInfo.Measurement, index?: number): SubscriptionInfo.Measurement; - getAvailableSlots(): number; - setAvailableSlots(value: number): ConnectionInfo; - getInFlightMessages(): number; - setInFlightMessages(value: number): ConnectionInfo; - getConnectionName(): string; - setConnectionName(value: string): ConnectionInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnectionInfo.AsObject; - static toObject(includeInstance: boolean, msg: ConnectionInfo): ConnectionInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnectionInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnectionInfo; - static deserializeBinaryFromReader(message: ConnectionInfo, reader: jspb.BinaryReader): ConnectionInfo; - } - - export namespace ConnectionInfo { - export type AsObject = { - from: string, - username: string, - averageItemsPerSecond: number, - totalItems: string, - countSinceLastMeasurement: string, - observedMeasurementsList: Array, - availableSlots: number, - inFlightMessages: number, - connectionName: string, - } - } - - export class Measurement extends jspb.Message { - getKey(): string; - setKey(value: string): Measurement; - getValue(): string; - setValue(value: string): Measurement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Measurement.AsObject; - static toObject(includeInstance: boolean, msg: Measurement): Measurement.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Measurement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Measurement; - static deserializeBinaryFromReader(message: Measurement, reader: jspb.BinaryReader): Measurement; - } - - export namespace Measurement { - export type AsObject = { - key: string, - value: string, - } - } - -} - -export class ReplayParkedReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ReplayParkedReq.Options | undefined; - setOptions(value?: ReplayParkedReq.Options): ReplayParkedReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReplayParkedReq.AsObject; - static toObject(includeInstance: boolean, msg: ReplayParkedReq): ReplayParkedReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReplayParkedReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReplayParkedReq; - static deserializeBinaryFromReader(message: ReplayParkedReq, reader: jspb.BinaryReader): ReplayParkedReq; -} - -export namespace ReplayParkedReq { - export type AsObject = { - options?: ReplayParkedReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getGroupName(): string; - setGroupName(value: string): Options; - - hasStreamIdentifier(): boolean; - clearStreamIdentifier(): void; - getStreamIdentifier(): shared_pb.StreamIdentifier | undefined; - setStreamIdentifier(value?: shared_pb.StreamIdentifier): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; - - hasStopAt(): boolean; - clearStopAt(): void; - getStopAt(): string; - setStopAt(value: string): Options; - - hasNoLimit(): boolean; - clearNoLimit(): void; - getNoLimit(): shared_pb.Empty | undefined; - setNoLimit(value?: shared_pb.Empty): Options; - - getStreamOptionCase(): Options.StreamOptionCase; - getStopAtOptionCase(): Options.StopAtOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - groupName: string, - streamIdentifier?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, - stopAt: string, - noLimit?: shared_pb.Empty.AsObject, - } - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM_IDENTIFIER = 2, - ALL = 3, - } - - export enum StopAtOptionCase { - STOP_AT_OPTION_NOT_SET = 0, - STOP_AT = 4, - NO_LIMIT = 5, - } - - } - -} - -export class ReplayParkedResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReplayParkedResp.AsObject; - static toObject(includeInstance: boolean, msg: ReplayParkedResp): ReplayParkedResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReplayParkedResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReplayParkedResp; - static deserializeBinaryFromReader(message: ReplayParkedResp, reader: jspb.BinaryReader): ReplayParkedResp; -} - -export namespace ReplayParkedResp { - export type AsObject = { - } -} - -export class ListReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ListReq.Options | undefined; - setOptions(value?: ListReq.Options): ListReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListReq.AsObject; - static toObject(includeInstance: boolean, msg: ListReq): ListReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListReq; - static deserializeBinaryFromReader(message: ListReq, reader: jspb.BinaryReader): ListReq; -} - -export namespace ListReq { - export type AsObject = { - options?: ListReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasListAllSubscriptions(): boolean; - clearListAllSubscriptions(): void; - getListAllSubscriptions(): shared_pb.Empty | undefined; - setListAllSubscriptions(value?: shared_pb.Empty): Options; - - hasListForStream(): boolean; - clearListForStream(): void; - getListForStream(): ListReq.StreamOption | undefined; - setListForStream(value?: ListReq.StreamOption): Options; - - getListOptionCase(): Options.ListOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - listAllSubscriptions?: shared_pb.Empty.AsObject, - listForStream?: ListReq.StreamOption.AsObject, - } - - export enum ListOptionCase { - LIST_OPTION_NOT_SET = 0, - LIST_ALL_SUBSCRIPTIONS = 1, - LIST_FOR_STREAM = 2, - } - - } - - export class StreamOption extends jspb.Message { - - hasStream(): boolean; - clearStream(): void; - getStream(): shared_pb.StreamIdentifier | undefined; - setStream(value?: shared_pb.StreamIdentifier): StreamOption; - - hasAll(): boolean; - clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): StreamOption; - - getStreamOptionCase(): StreamOption.StreamOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamOption.AsObject; - static toObject(includeInstance: boolean, msg: StreamOption): StreamOption.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamOption, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamOption; - static deserializeBinaryFromReader(message: StreamOption, reader: jspb.BinaryReader): StreamOption; - } - - export namespace StreamOption { - export type AsObject = { - stream?: shared_pb.StreamIdentifier.AsObject, - all?: shared_pb.Empty.AsObject, - } - - export enum StreamOptionCase { - STREAM_OPTION_NOT_SET = 0, - STREAM = 1, - ALL = 2, - } - - } - -} - -export class ListResp extends jspb.Message { - clearSubscriptionsList(): void; - getSubscriptionsList(): Array; - setSubscriptionsList(value: Array): ListResp; - addSubscriptions(value?: SubscriptionInfo, index?: number): SubscriptionInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListResp.AsObject; - static toObject(includeInstance: boolean, msg: ListResp): ListResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListResp; - static deserializeBinaryFromReader(message: ListResp, reader: jspb.BinaryReader): ListResp; -} - -export namespace ListResp { - export type AsObject = { - subscriptionsList: Array, - } -} diff --git a/packages/db-client/generated/persistent_pb.js b/packages/db-client/generated/persistent_pb.js deleted file mode 100644 index bb5df39e..00000000 --- a/packages/db-client/generated/persistent_pb.js +++ /dev/null @@ -1,12340 +0,0 @@ -// source: persistent.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 shared_pb = require('./shared_pb.js'); -goog.object.extend(proto, shared_pb); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Position', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Settings', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.CreateResp', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.DeleteResp', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.GetInfoResp', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.StreamOption', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ListResp', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Ack', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Nack', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.ReplayParkedResp', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.SubscriptionInfo', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Options', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Position', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Settings', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase', null, global); -goog.exportSymbol('proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.ReadReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadReq.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq'; -} -/** - * 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.persistent_subscriptions.ReadReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options.UUIDOption = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption'; -} -/** - * 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.persistent_subscriptions.ReadReq.Ack = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.ReadReq.Ack.repeatedFields_, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Ack, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadReq.Ack.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.Ack'; -} -/** - * 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.persistent_subscriptions.ReadReq.Nack = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.ReadReq.Nack.repeatedFields_, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadReq.Nack, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadReq.Nack.displayName = 'proto.event_store.client.persistent_subscriptions.ReadReq.Nack'; -} -/** - * 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.persistent_subscriptions.ReadResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadResp.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp'; -} -/** - * 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.persistent_subscriptions.ReadResp.ReadEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent'; -} -/** - * 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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent'; -} -/** - * 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.persistent_subscriptions.ReadResp.SubscriptionConfirmation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.displayName = 'proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation'; -} -/** - * 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.persistent_subscriptions.CreateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.StreamOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions'; -} -/** - * 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.persistent_subscriptions.CreateReq.AllOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions'; -} -/** - * 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions'; -} -/** - * 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.repeatedFields_, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression'; -} -/** - * 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.persistent_subscriptions.CreateReq.Position = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.Position, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.Position.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.Position'; -} -/** - * 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.persistent_subscriptions.CreateReq.Settings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateReq.Settings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateReq.Settings.displayName = 'proto.event_store.client.persistent_subscriptions.CreateReq.Settings'; -} -/** - * 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.persistent_subscriptions.CreateResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.CreateResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.CreateResp.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateReq.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.StreamOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions'; -} -/** - * 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.persistent_subscriptions.UpdateReq.AllOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions'; -} -/** - * 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.persistent_subscriptions.UpdateReq.Position = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.Position, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateReq.Position.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.Position'; -} -/** - * 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.persistent_subscriptions.UpdateReq.Settings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateReq.Settings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.displayName = 'proto.event_store.client.persistent_subscriptions.UpdateReq.Settings'; -} -/** - * 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.persistent_subscriptions.UpdateResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.UpdateResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.UpdateResp.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.DeleteReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.DeleteReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.DeleteReq.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.DeleteReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.DeleteReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.DeleteReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.DeleteResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.DeleteResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.DeleteResp.displayName = 'proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.GetInfoReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.GetInfoReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.GetInfoReq.displayName = 'proto.event_store.client.persistent_subscriptions.GetInfoReq'; -} -/** - * 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.persistent_subscriptions.GetInfoReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.GetInfoReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.GetInfoResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.GetInfoResp.displayName = 'proto.event_store.client.persistent_subscriptions.GetInfoResp'; -} -/** - * 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.persistent_subscriptions.SubscriptionInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.repeatedFields_, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.SubscriptionInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.displayName = 'proto.event_store.client.persistent_subscriptions.SubscriptionInfo'; -} -/** - * 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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.repeatedFields_, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.displayName = 'proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo'; -} -/** - * 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.persistent_subscriptions.SubscriptionInfo.Measurement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.displayName = 'proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement'; -} -/** - * 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.persistent_subscriptions.ReplayParkedReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReplayParkedReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReplayParkedReq.displayName = 'proto.event_store.client.persistent_subscriptions.ReplayParkedReq'; -} -/** - * 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.persistent_subscriptions.ReplayParkedReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ReplayParkedResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ReplayParkedResp.displayName = 'proto.event_store.client.persistent_subscriptions.ReplayParkedResp'; -} -/** - * 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.persistent_subscriptions.ListReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ListReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ListReq.displayName = 'proto.event_store.client.persistent_subscriptions.ListReq'; -} -/** - * 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.persistent_subscriptions.ListReq.Options = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ListReq.Options, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ListReq.Options.displayName = 'proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.StreamOption = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ListReq.StreamOption, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.displayName = 'proto.event_store.client.persistent_subscriptions.ListReq.StreamOption'; -} -/** - * 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.persistent_subscriptions.ListResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.event_store.client.persistent_subscriptions.ListResp.repeatedFields_, null); -}; -goog.inherits(proto.event_store.client.persistent_subscriptions.ListResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.event_store.client.persistent_subscriptions.ListResp.displayName = 'proto.event_store.client.persistent_subscriptions.ListResp'; -} - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase = { - CONTENT_NOT_SET: 0, - OPTIONS: 1, - ACK: 2, - NACK: 3 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getContentCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReadReq.ContentCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadReq.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_, 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.persistent_subscriptions.ReadReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.ReadReq.Options.toObject(includeInstance, f), - ack: (f = msg.getAck()) && proto.event_store.client.persistent_subscriptions.ReadReq.Ack.toObject(includeInstance, f), - nack: (f = msg.getNack()) && proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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.persistent_subscriptions.ReadReq} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadReq; - return proto.event_store.client.persistent_subscriptions.ReadReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Options.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 2: - var value = new proto.event_store.client.persistent_subscriptions.ReadReq.Ack; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryFromReader); - msg.setAck(value); - break; - case 3: - var value = new proto.event_store.client.persistent_subscriptions.ReadReq.Nack; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinaryFromReader); - msg.setNack(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.ReadReq.Options.serializeBinaryToWriter - ); - } - f = message.getAck(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.client.persistent_subscriptions.ReadReq.Ack.serializeBinaryToWriter - ); - } - f = message.getNack(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_ = [[1,5]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM_IDENTIFIER: 1, - ALL: 5 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReadReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadReq.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_, 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.persistent_subscriptions.ReadReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), - groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), - bufferSize: jspb.Message.getFieldWithDefault(msg, 3, 0), - uuidOption: (f = msg.getUuidOption()) && proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.persistent_subscriptions.ReadReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Options; - return proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.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.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupName(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBufferSize(value); - break; - case 4: - var value = new proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.deserializeBinaryFromReader); - msg.setUuidOption(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadReq.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.persistent_subscriptions.ReadReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 5, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBufferSize(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getUuidOption(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase = { - CONTENT_NOT_SET: 0, - STRUCTURED: 1, - STRING: 2 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getContentCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.ContentCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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_, 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.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.persistent_subscriptions.ReadReq.Options.UUIDOption} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.toObject = function(includeInstance, msg) { - var f, obj = { - structured: (f = msg.getStructured()) && shared_pb.Empty.toObject(includeInstance, f), - string: (f = msg.getString()) && shared_pb.Empty.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.persistent_subscriptions.ReadReq.Options.UUIDOption} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption; - return proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.setStructured(value); - break; - case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setString(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.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.persistent_subscriptions.ReadReq.Options.UUIDOption} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStructured(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getString(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.Empty structured = 1; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getStructured = 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.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.setStructured = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.clearStructured = function() { - return this.setStructured(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.hasStructured = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty string = 2; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.getString = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.setString = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.clearString = function() { - return this.setString(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption.prototype.hasString = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty all = 5; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.ReadReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string group_name = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 buffer_size = 3; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional UUIDOption uuid_option = 4; - * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.getUuidOption = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption, 4)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Options.UUIDOption|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.setUuidOption = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.clearUuidOption = function() { - return this.setUuidOption(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Options.prototype.hasUuidOption = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.repeatedFields_ = [2]; - - - -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_, 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.persistent_subscriptions.ReadReq.Ack.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadReq.Ack.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.persistent_subscriptions.ReadReq.Ack} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.toObject = function(includeInstance, msg) { - var f, obj = { - id: msg.getId_asB64(), - idsList: jspb.Message.toObjectList(msg.getIdsList(), - shared_pb.UUID.toObject, includeInstance) - }; - - 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.persistent_subscriptions.ReadReq.Ack} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Ack; - return proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setId(value); - break; - case 2: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadReq.Ack.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.persistent_subscriptions.ReadReq.Ack} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * repeated event_store.client.UUID ids = 2; - * @return {!Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.getIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, shared_pb.UUID, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.setIdsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.event_store.client.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.event_store.client.UUID} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.addIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.event_store.client.UUID, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Ack} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Ack.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.repeatedFields_ = [2]; - - - -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_, 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.persistent_subscriptions.ReadReq.Nack.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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.persistent_subscriptions.ReadReq.Nack} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.toObject = function(includeInstance, msg) { - var f, obj = { - id: msg.getId_asB64(), - idsList: jspb.Message.toObjectList(msg.getIdsList(), - shared_pb.UUID.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, 0), - reason: 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.persistent_subscriptions.ReadReq.Nack} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadReq.Nack; - return proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setId(value); - break; - case 2: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.addIds(value); - break; - case 3: - var value = /** @type {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} */ (reader.readEnum()); - msg.setAction(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setReason(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadReq.Nack.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.persistent_subscriptions.ReadReq.Nack} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getAction(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getReason(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action = { - UNKNOWN: 0, - PARK: 1, - RETRY: 2, - SKIP: 3, - STOP: 4 -}; - -/** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * repeated event_store.client.UUID ids = 2; - * @return {!Array} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, shared_pb.UUID, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setIdsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.event_store.client.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.event_store.client.UUID} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.addIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.event_store.client.UUID, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - -/** - * optional Action action = 3; - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getAction = function() { - return /** @type {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack.Action} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setAction = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional string reason = 4; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.getReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq.Nack} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.Nack.prototype.setReason = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.setOptions = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.hasOptions = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Ack ack = 2; - * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Ack} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getAck = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Ack} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Ack, 2)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Ack|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.setAck = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.clearAck = function() { - return this.setAck(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.hasAck = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Nack nack = 3; - * @return {?proto.event_store.client.persistent_subscriptions.ReadReq.Nack} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.getNack = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadReq.Nack} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadReq.Nack, 3)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadReq.Nack|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.setNack = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.ReadReq.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadReq} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.clearNack = function() { - return this.setNack(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadReq.prototype.hasNack = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase = { - CONTENT_NOT_SET: 0, - EVENT: 1, - SUBSCRIPTION_CONFIRMATION: 2 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.getContentCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReadResp.ContentCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadResp.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_, 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.persistent_subscriptions.ReadResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadResp.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.persistent_subscriptions.ReadResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.toObject = function(includeInstance, msg) { - var f, obj = { - event: (f = msg.getEvent()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.toObject(includeInstance, f), - subscriptionConfirmation: (f = msg.getSubscriptionConfirmation()) && proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.persistent_subscriptions.ReadResp} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadResp; - return proto.event_store.client.persistent_subscriptions.ReadResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.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.persistent_subscriptions.ReadResp.ReadEvent; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserializeBinaryFromReader); - msg.setEvent(value); - break; - case 2: - var value = new proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.deserializeBinaryFromReader); - msg.setSubscriptionConfirmation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadResp.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.persistent_subscriptions.ReadResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEvent(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.serializeBinaryToWriter - ); - } - f = message.getSubscriptionConfirmation(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_ = [[3,4],[5,6]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase = { - POSITION_NOT_SET: 0, - COMMIT_POSITION: 3, - NO_POSITION: 4 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getPositionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.PositionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase = { - COUNT_NOT_SET: 0, - RETRY_COUNT: 5, - NO_RETRY_COUNT: 6 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getCountCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.CountCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1])); -}; - - - -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_, 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.persistent_subscriptions.ReadResp.ReadEvent.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.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.persistent_subscriptions.ReadResp.ReadEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.toObject = function(includeInstance, msg) { - var f, obj = { - event: (f = msg.getEvent()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), - link: (f = msg.getLink()) && proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject(includeInstance, f), - commitPosition: jspb.Message.getFieldWithDefault(msg, 3, "0"), - noPosition: (f = msg.getNoPosition()) && shared_pb.Empty.toObject(includeInstance, f), - retryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - noRetryCount: (f = msg.getNoRetryCount()) && shared_pb.Empty.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.persistent_subscriptions.ReadResp.ReadEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent; - return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader); - msg.setEvent(value); - break; - case 2: - var value = new proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader); - msg.setLink(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCommitPosition(value); - break; - case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setNoPosition(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRetryCount(value); - break; - case 6: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setNoRetryCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.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.persistent_subscriptions.ReadResp.ReadEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEvent(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.serializeBinaryToWriter - ); - } - f = message.getLink(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getNoPosition(); - if (f != null) { - writer.writeMessage( - 4, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeInt32( - 5, - f - ); - } - f = message.getNoRetryCount(); - if (f != null) { - writer.writeMessage( - 6, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.toObject = function(includeInstance, msg) { - var f, obj = { - id: (f = msg.getId()) && shared_pb.UUID.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - streamRevision: jspb.Message.getFieldWithDefault(msg, 3, "0"), - preparePosition: jspb.Message.getFieldWithDefault(msg, 4, "0"), - commitPosition: jspb.Message.getFieldWithDefault(msg, 5, "0"), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - customMetadata: msg.getCustomMetadata_asB64(), - data: msg.getData_asB64() - }; - - 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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent; - return proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.UUID; - reader.readMessage(value,shared_pb.UUID.deserializeBinaryFromReader); - msg.setId(value); - break; - case 2: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStreamRevision(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setPreparePosition(value); - break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCommitPosition(value); - break; - case 6: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCustomMetadata(value); - break; - case 8: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.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.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getStreamRevision(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getPreparePosition(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getCommitPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getCustomMetadata_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 8, - f - ); - } -}; - - -/** - * optional event_store.client.UUID id = 1; - * @return {?proto.event_store.client.UUID} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getId = function() { - return /** @type{?proto.event_store.client.UUID} */ ( - jspb.Message.getWrapperField(this, shared_pb.UUID, 1)); -}; - - -/** - * @param {?proto.event_store.client.UUID|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.clearId = function() { - return this.setId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.hasId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 2; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional uint64 stream_revision = 3; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getStreamRevision = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setStreamRevision = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional uint64 prepare_position = 4; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getPreparePosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setPreparePosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional uint64 commit_position = 5; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setCommitPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); -}; - - -/** - * map metadata = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional bytes custom_metadata = 7; - * @return {!(string|Uint8Array)} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCustomMetadata = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes custom_metadata = 7; - * This is a type-conversion wrapper around `getCustomMetadata()` - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCustomMetadata_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCustomMetadata())); -}; - - -/** - * optional bytes custom_metadata = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCustomMetadata()` - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getCustomMetadata_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCustomMetadata())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setCustomMetadata = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * optional bytes data = 8; - * @return {!(string|Uint8Array)} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * optional bytes data = 8; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 8; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 8, value); -}; - - -/** - * optional RecordedEvent event = 1; - * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getEvent = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setEvent = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearEvent = function() { - return this.setEvent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasEvent = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional RecordedEvent link = 2; - * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getLink = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent, 2)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.RecordedEvent|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setLink = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearLink = function() { - return this.setLink(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasLink = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional uint64 commit_position = 3; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setCommitPosition = function(value) { - return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearCommitPosition = function() { - return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasCommitPosition = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional event_store.client.Empty no_position = 4; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getNoPosition = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setNoPosition = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearNoPosition = function() { - return this.setNoPosition(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasNoPosition = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int32 retry_count = 5; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getRetryCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setRetryCount = function(value) { - return jspb.Message.setOneofField(this, 5, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearRetryCount = function() { - return jspb.Message.setOneofField(this, 5, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasRetryCount = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional event_store.client.Empty no_retry_count = 6; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.getNoRetryCount = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 6)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.setNoRetryCount = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.clearNoRetryCount = function() { - return this.setNoRetryCount(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent.prototype.hasNoRetryCount = function() { - return jspb.Message.getField(this, 6) != 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_, 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.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.persistent_subscriptions.ReadResp.SubscriptionConfirmation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.toObject = function(includeInstance, msg) { - var f, obj = { - subscriptionId: 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.persistent_subscriptions.ReadResp.SubscriptionConfirmation} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation; - return proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.setSubscriptionId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.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.persistent_subscriptions.ReadResp.SubscriptionConfirmation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubscriptionId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string subscription_id = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.getSubscriptionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation.prototype.setSubscriptionId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ReadEvent event = 1; - * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.getEvent = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.ReadEvent|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.setEvent = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.clearEvent = function() { - return this.setEvent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.hasEvent = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional SubscriptionConfirmation subscription_confirmation = 2; - * @return {?proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.getSubscriptionConfirmation = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation, 2)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReadResp.SubscriptionConfirmation|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.setSubscriptionConfirmation = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReadResp.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReadResp} returns this - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.clearSubscriptionConfirmation = function() { - return this.setSubscriptionConfirmation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReadResp.prototype.hasSubscriptionConfirmation = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, 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.persistent_subscriptions.CreateReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq; - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq} - */ -proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.Options.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy = { - DISPATCHTOSINGLE: 0, - ROUNDROBIN: 1, - PINNED: 2 -}; - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_ = [[4,5]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM: 4, - ALL: 5 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.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_, 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.persistent_subscriptions.CreateReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - stream: (f = msg.getStream()) && proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.toObject(includeInstance, f), - all: (f = msg.getAll()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), - settings: (f = msg.getSettings()) && proto.event_store.client.persistent_subscriptions.CreateReq.Settings.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.persistent_subscriptions.CreateReq.Options} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.Options; - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 4: - var value = new proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinaryFromReader); - msg.setStream(value); - break; - case 5: - var value = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupName(value); - break; - case 3: - var value = new proto.event_store.client.persistent_subscriptions.CreateReq.Settings; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinaryFromReader); - msg.setSettings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStream(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serializeBinaryToWriter - ); - } - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSettings(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.Settings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional StreamOptions stream = 4; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStream = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions, 4)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setStream = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearStream = function() { - return this.setStream(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasStream = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional AllOptions all = 5; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions, 5)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.CreateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string group_name = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Settings settings = 3; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.Settings} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.getSettings = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.Settings} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.Settings, 3)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.Settings|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.setSettings = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.clearSettings = function() { - return this.setSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Options.prototype.hasSettings = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_ = [[2,3,4]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase = { - REVISION_OPTION_NOT_SET: 0, - REVISION: 2, - START: 3, - END: 4 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getRevisionOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.RevisionOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.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_, 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.persistent_subscriptions.CreateReq.StreamOptions.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.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.persistent_subscriptions.CreateReq.StreamOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.toObject = function(includeInstance, msg) { - var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.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.persistent_subscriptions.CreateReq.StreamOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions; - return proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRevision(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setEnd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.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.persistent_subscriptions.CreateReq.StreamOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 4, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint64 revision = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getRevision = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setRevision = function(value) { - return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearRevision = function() { - return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasRevision = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.Empty start = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getStart = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasStart = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional event_store.client.Empty end = 4; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.getEnd = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.setEnd = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.StreamOptions.prototype.hasEnd = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_ = [[1,2,3],[4,5]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase = { - ALL_OPTION_NOT_SET: 0, - POSITION: 1, - START: 2, - END: 3 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getAllOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.AllOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase = { - FILTER_OPTION_NOT_SET: 0, - FILTER: 4, - NO_FILTER: 5 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getFilterOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[1])); -}; - - - -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_, 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.persistent_subscriptions.CreateReq.AllOptions.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.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.persistent_subscriptions.CreateReq.AllOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.toObject = function(includeInstance, msg) { - var f, obj = { - position: (f = msg.getPosition()) && proto.event_store.client.persistent_subscriptions.CreateReq.Position.toObject(includeInstance, f), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.toObject(includeInstance, f), - filter: (f = msg.getFilter()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.toObject(includeInstance, f), - noFilter: (f = msg.getNoFilter()) && shared_pb.Empty.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.persistent_subscriptions.CreateReq.AllOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions; - return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.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.persistent_subscriptions.CreateReq.Position; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinaryFromReader); - msg.setPosition(value); - break; - case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.deserializeBinaryFromReader); - msg.setFilter(value); - break; - case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setNoFilter(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.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.persistent_subscriptions.CreateReq.AllOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPosition(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.Position.serializeBinaryToWriter - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getFilter(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.serializeBinaryToWriter - ); - } - f = message.getNoFilter(); - if (f != null) { - writer.writeMessage( - 5, - f, - shared_pb.Empty.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_ = [[1,2],[3,4]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase = { - FILTER_NOT_SET: 0, - STREAM_IDENTIFIER: 1, - EVENT_TYPE: 2 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getFilterCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.FilterCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase = { - WINDOW_NOT_SET: 0, - MAX: 3, - COUNT: 4 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getWindowCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.WindowCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1])); -}; - - - -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_, 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.toObject = function(includeInstance, msg) { - var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject(includeInstance, f), - eventType: (f = msg.getEventType()) && proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject(includeInstance, f), - max: jspb.Message.getFieldWithDefault(msg, 3, 0), - count: (f = msg.getCount()) && shared_pb.Empty.toObject(includeInstance, f), - checkpointintervalmultiplier: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions; - return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 2: - var value = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinaryFromReader); - msg.setEventType(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMax(value); - break; - case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setCount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCheckpointintervalmultiplier(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.serializeBinaryToWriter - ); - } - f = message.getEventType(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.serializeBinaryToWriter - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint32( - 3, - f - ); - } - f = message.getCount(); - if (f != null) { - writer.writeMessage( - 4, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getCheckpointintervalmultiplier(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.repeatedFields_ = [2]; - - - -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_, 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.toObject = function(includeInstance, msg) { - var f, obj = { - regex: jspb.Message.getFieldWithDefault(msg, 1, ""), - prefixList: (f = jspb.Message.getRepeatedField(msg, 2)) == 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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression; - return proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.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.setRegex(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addPrefix(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.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.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRegex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrefixList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string regex = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.getRegex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.setRegex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string prefix = 2; - * @return {!Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.getPrefixList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.setPrefixList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.addPrefix = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression.prototype.clearPrefixList = function() { - return this.setPrefixList([]); -}; - - -/** - * optional Expression stream_identifier = 1; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Expression event_type = 2; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getEventType = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression, 2)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.Expression|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setEventType = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearEventType = function() { - return this.setEventType(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasEventType = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional uint32 max = 3; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getMax = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setMax = function(value) { - return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearMax = function() { - return jspb.Message.setOneofField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasMax = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional event_store.client.Empty count = 4; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getCount = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setCount = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.clearCount = function() { - return this.setCount(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.hasCount = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint32 checkpointIntervalMultiplier = 5; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.getCheckpointintervalmultiplier = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions.prototype.setCheckpointintervalmultiplier = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional Position position = 1; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.Position} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getPosition = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.Position} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.Position, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.Position|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setPosition = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearPosition = function() { - return this.setPosition(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasPosition = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty start = 2; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getStart = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.Empty end = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getEnd = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setEnd = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FilterOptions filter = 4; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getFilter = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions, 4)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.FilterOptions|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setFilter = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearFilter = function() { - return this.setFilter(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasFilter = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional event_store.client.Empty no_filter = 5; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.getNoFilter = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.setNoFilter = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.clearNoFilter = function() { - return this.setNoFilter(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.AllOptions.prototype.hasNoFilter = function() { - return jspb.Message.getField(this, 5) != 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_, 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.persistent_subscriptions.CreateReq.Position.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.CreateReq.Position.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.persistent_subscriptions.CreateReq.Position} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.toObject = function(includeInstance, msg) { - var f, obj = { - commitPosition: jspb.Message.getFieldWithDefault(msg, 1, "0"), - preparePosition: jspb.Message.getFieldWithDefault(msg, 2, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.Position; - return proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCommitPosition(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setPreparePosition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.CreateReq.Position.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.persistent_subscriptions.CreateReq.Position} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommitPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getPreparePosition(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } -}; - - -/** - * optional uint64 commit_position = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.getCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.setCommitPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 prepare_position = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.getPreparePosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Position} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Position.prototype.setPreparePosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_ = [[4,14],[6,15]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase = { - MESSAGE_TIMEOUT_NOT_SET: 0, - MESSAGE_TIMEOUT_TICKS: 4, - MESSAGE_TIMEOUT_MS: 14 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMessageTimeoutCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.MessageTimeoutCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase = { - CHECKPOINT_AFTER_NOT_SET: 0, - CHECKPOINT_AFTER_TICKS: 6, - CHECKPOINT_AFTER_MS: 15 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getCheckpointAfterCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.CreateReq.Settings.CheckpointAfterCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1])); -}; - - - -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_, 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.persistent_subscriptions.CreateReq.Settings.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.CreateReq.Settings.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.persistent_subscriptions.CreateReq.Settings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.toObject = function(includeInstance, msg) { - var f, obj = { - resolveLinks: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - extraStatistics: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - maxRetryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - minCheckpointCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - maxCheckpointCount: jspb.Message.getFieldWithDefault(msg, 8, 0), - maxSubscriberCount: jspb.Message.getFieldWithDefault(msg, 9, 0), - liveBufferSize: jspb.Message.getFieldWithDefault(msg, 10, 0), - readBatchSize: jspb.Message.getFieldWithDefault(msg, 11, 0), - historyBufferSize: jspb.Message.getFieldWithDefault(msg, 12, 0), - namedConsumerStrategy: jspb.Message.getFieldWithDefault(msg, 13, 0), - messageTimeoutTicks: jspb.Message.getFieldWithDefault(msg, 4, "0"), - messageTimeoutMs: jspb.Message.getFieldWithDefault(msg, 14, 0), - checkpointAfterTicks: jspb.Message.getFieldWithDefault(msg, 6, "0"), - checkpointAfterMs: jspb.Message.getFieldWithDefault(msg, 15, 0), - consumerStrategy: jspb.Message.getFieldWithDefault(msg, 16, "") - }; - - 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.persistent_subscriptions.CreateReq.Settings} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateReq.Settings; - return proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setResolveLinks(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRevision(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExtraStatistics(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxRetryCount(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMinCheckpointCount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxCheckpointCount(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxSubscriberCount(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLiveBufferSize(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReadBatchSize(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt32()); - msg.setHistoryBufferSize(value); - break; - case 13: - var value = /** @type {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} */ (reader.readEnum()); - msg.setNamedConsumerStrategy(value); - break; - case 4: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setMessageTimeoutTicks(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMessageTimeoutMs(value); - break; - case 6: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setCheckpointAfterTicks(value); - break; - case 15: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCheckpointAfterMs(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setConsumerStrategy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.CreateReq.Settings.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.persistent_subscriptions.CreateReq.Settings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResolveLinks(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRevision(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getExtraStatistics(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getMaxRetryCount(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getMinCheckpointCount(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getMaxCheckpointCount(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } - f = message.getMaxSubscriberCount(); - if (f !== 0) { - writer.writeInt32( - 9, - f - ); - } - f = message.getLiveBufferSize(); - if (f !== 0) { - writer.writeInt32( - 10, - f - ); - } - f = message.getReadBatchSize(); - if (f !== 0) { - writer.writeInt32( - 11, - f - ); - } - f = message.getHistoryBufferSize(); - if (f !== 0) { - writer.writeInt32( - 12, - f - ); - } - f = message.getNamedConsumerStrategy(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeInt64String( - 4, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 14)); - if (f != null) { - writer.writeInt32( - 14, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeInt64String( - 6, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 15)); - if (f != null) { - writer.writeInt32( - 15, - f - ); - } - f = message.getConsumerStrategy(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } -}; - - -/** - * optional bool resolve_links = 1; - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getResolveLinks = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setResolveLinks = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional uint64 revision = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getRevision = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setRevision = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional bool extra_statistics = 3; - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getExtraStatistics = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setExtraStatistics = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional int32 max_retry_count = 5; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMaxRetryCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMaxRetryCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int32 min_checkpoint_count = 7; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMinCheckpointCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMinCheckpointCount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional int32 max_checkpoint_count = 8; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMaxCheckpointCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMaxCheckpointCount = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional int32 max_subscriber_count = 9; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMaxSubscriberCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMaxSubscriberCount = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional int32 live_buffer_size = 10; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getLiveBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setLiveBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional int32 read_batch_size = 11; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getReadBatchSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setReadBatchSize = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional int32 history_buffer_size = 12; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getHistoryBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setHistoryBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional ConsumerStrategy named_consumer_strategy = 13; - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getNamedConsumerStrategy = function() { - return /** @type {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {!proto.event_store.client.persistent_subscriptions.CreateReq.ConsumerStrategy} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setNamedConsumerStrategy = function(value) { - return jspb.Message.setProto3EnumField(this, 13, value); -}; - - -/** - * optional int64 message_timeout_ticks = 4; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMessageTimeoutTicks = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMessageTimeoutTicks = function(value) { - return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearMessageTimeoutTicks = function() { - return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasMessageTimeoutTicks = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int32 message_timeout_ms = 14; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getMessageTimeoutMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setMessageTimeoutMs = function(value) { - return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearMessageTimeoutMs = function() { - return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasMessageTimeoutMs = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional int64 checkpoint_after_ticks = 6; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getCheckpointAfterTicks = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setCheckpointAfterTicks = function(value) { - return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearCheckpointAfterTicks = function() { - return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasCheckpointAfterTicks = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional int32 checkpoint_after_ms = 15; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getCheckpointAfterMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setCheckpointAfterMs = function(value) { - return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.clearCheckpointAfterMs = function() { - return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.CreateReq.Settings.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.hasCheckpointAfterMs = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional string consumer_strategy = 16; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.getConsumerStrategy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.Settings.prototype.setConsumerStrategy = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.CreateReq.Options} - */ -proto.event_store.client.persistent_subscriptions.CreateReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.CreateReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.CreateReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.CreateReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.CreateReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.CreateReq} returns this - */ -proto.event_store.client.persistent_subscriptions.CreateReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.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_, 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.persistent_subscriptions.CreateResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} - */ -proto.event_store.client.persistent_subscriptions.CreateResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.CreateResp; - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.CreateResp} - */ -proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.CreateResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.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_, 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.persistent_subscriptions.UpdateReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq; - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq} - */ -proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.UpdateReq.Options.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy = { - DISPATCHTOSINGLE: 0, - ROUNDROBIN: 1, - PINNED: 2 -}; - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_ = [[4,5]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM: 4, - ALL: 5 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.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_, 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.persistent_subscriptions.UpdateReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - stream: (f = msg.getStream()) && proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.toObject(includeInstance, f), - all: (f = msg.getAll()) && proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.toObject(includeInstance, f), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), - settings: (f = msg.getSettings()) && proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.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.persistent_subscriptions.UpdateReq.Options} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.Options; - return proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 4: - var value = new proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinaryFromReader); - msg.setStream(value); - break; - case 5: - var value = new proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupName(value); - break; - case 3: - var value = new proto.event_store.client.persistent_subscriptions.UpdateReq.Settings; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinaryFromReader); - msg.setSettings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.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.persistent_subscriptions.UpdateReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStream(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.serializeBinaryToWriter - ); - } - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSettings(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional StreamOptions stream = 4; - * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStream = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions, 4)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setStream = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearStream = function() { - return this.setStream(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasStream = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional AllOptions all = 5; - * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions, 5)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.UpdateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string group_name = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Settings settings = 3; - * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.getSettings = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings, 3)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.Settings|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.setSettings = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.clearSettings = function() { - return this.setSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Options.prototype.hasSettings = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_ = [[2,3,4]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase = { - REVISION_OPTION_NOT_SET: 0, - REVISION: 2, - START: 3, - END: 4 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getRevisionOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.RevisionOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.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_, 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.persistent_subscriptions.UpdateReq.StreamOptions.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.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.persistent_subscriptions.UpdateReq.StreamOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.toObject = function(includeInstance, msg) { - var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.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.persistent_subscriptions.UpdateReq.StreamOptions} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions; - return proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRevision(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setEnd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.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.persistent_subscriptions.UpdateReq.StreamOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 4, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint64 revision = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getRevision = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setRevision = function(value) { - return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearRevision = function() { - return jspb.Message.setOneofField(this, 2, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasRevision = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.Empty start = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getStart = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasStart = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional event_store.client.Empty end = 4; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.getEnd = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.setEnd = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.StreamOptions.prototype.hasEnd = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase = { - ALL_OPTION_NOT_SET: 0, - POSITION: 1, - START: 2, - END: 3 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getAllOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.AllOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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_, 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.persistent_subscriptions.UpdateReq.AllOptions.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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.persistent_subscriptions.UpdateReq.AllOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.toObject = function(includeInstance, msg) { - var f, obj = { - position: (f = msg.getPosition()) && proto.event_store.client.persistent_subscriptions.UpdateReq.Position.toObject(includeInstance, f), - start: (f = msg.getStart()) && shared_pb.Empty.toObject(includeInstance, f), - end: (f = msg.getEnd()) && shared_pb.Empty.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.persistent_subscriptions.UpdateReq.AllOptions} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions; - return proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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.persistent_subscriptions.UpdateReq.Position; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinaryFromReader); - msg.setPosition(value); - break; - case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setEnd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.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.persistent_subscriptions.UpdateReq.AllOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPosition(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.UpdateReq.Position.serializeBinaryToWriter - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Position position = 1; - * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.Position} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getPosition = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.Position} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Position, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.Position|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.setPosition = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.clearPosition = function() { - return this.setPosition(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.hasPosition = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty start = 2; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getStart = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.setStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.Empty end = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.getEnd = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.setEnd = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.AllOptions.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != 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_, 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.persistent_subscriptions.UpdateReq.Position.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.UpdateReq.Position.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.persistent_subscriptions.UpdateReq.Position} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.toObject = function(includeInstance, msg) { - var f, obj = { - commitPosition: jspb.Message.getFieldWithDefault(msg, 1, "0"), - preparePosition: jspb.Message.getFieldWithDefault(msg, 2, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.Position; - return proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCommitPosition(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setPreparePosition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.UpdateReq.Position.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.persistent_subscriptions.UpdateReq.Position} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommitPosition(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getPreparePosition(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } -}; - - -/** - * optional uint64 commit_position = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.getCommitPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.setCommitPosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 prepare_position = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.getPreparePosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Position} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Position.prototype.setPreparePosition = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_ = [[4,14],[6,15]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase = { - MESSAGE_TIMEOUT_NOT_SET: 0, - MESSAGE_TIMEOUT_TICKS: 4, - MESSAGE_TIMEOUT_MS: 14 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMessageTimeoutCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.MessageTimeoutCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase = { - CHECKPOINT_AFTER_NOT_SET: 0, - CHECKPOINT_AFTER_TICKS: 6, - CHECKPOINT_AFTER_MS: 15 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getCheckpointAfterCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.CheckpointAfterCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1])); -}; - - - -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_, 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.persistent_subscriptions.UpdateReq.Settings.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.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.persistent_subscriptions.UpdateReq.Settings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.toObject = function(includeInstance, msg) { - var f, obj = { - resolveLinks: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - revision: jspb.Message.getFieldWithDefault(msg, 2, "0"), - extraStatistics: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - maxRetryCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - minCheckpointCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - maxCheckpointCount: jspb.Message.getFieldWithDefault(msg, 8, 0), - maxSubscriberCount: jspb.Message.getFieldWithDefault(msg, 9, 0), - liveBufferSize: jspb.Message.getFieldWithDefault(msg, 10, 0), - readBatchSize: jspb.Message.getFieldWithDefault(msg, 11, 0), - historyBufferSize: jspb.Message.getFieldWithDefault(msg, 12, 0), - namedConsumerStrategy: jspb.Message.getFieldWithDefault(msg, 13, 0), - messageTimeoutTicks: jspb.Message.getFieldWithDefault(msg, 4, "0"), - messageTimeoutMs: jspb.Message.getFieldWithDefault(msg, 14, 0), - checkpointAfterTicks: jspb.Message.getFieldWithDefault(msg, 6, "0"), - checkpointAfterMs: jspb.Message.getFieldWithDefault(msg, 15, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateReq.Settings; - return proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setResolveLinks(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRevision(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExtraStatistics(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxRetryCount(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMinCheckpointCount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxCheckpointCount(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxSubscriberCount(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLiveBufferSize(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReadBatchSize(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt32()); - msg.setHistoryBufferSize(value); - break; - case 13: - var value = /** @type {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} */ (reader.readEnum()); - msg.setNamedConsumerStrategy(value); - break; - case 4: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setMessageTimeoutTicks(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMessageTimeoutMs(value); - break; - case 6: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setCheckpointAfterTicks(value); - break; - case 15: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCheckpointAfterMs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.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.persistent_subscriptions.UpdateReq.Settings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResolveLinks(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRevision(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getExtraStatistics(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getMaxRetryCount(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getMinCheckpointCount(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getMaxCheckpointCount(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } - f = message.getMaxSubscriberCount(); - if (f !== 0) { - writer.writeInt32( - 9, - f - ); - } - f = message.getLiveBufferSize(); - if (f !== 0) { - writer.writeInt32( - 10, - f - ); - } - f = message.getReadBatchSize(); - if (f !== 0) { - writer.writeInt32( - 11, - f - ); - } - f = message.getHistoryBufferSize(); - if (f !== 0) { - writer.writeInt32( - 12, - f - ); - } - f = message.getNamedConsumerStrategy(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeInt64String( - 4, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 14)); - if (f != null) { - writer.writeInt32( - 14, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeInt64String( - 6, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 15)); - if (f != null) { - writer.writeInt32( - 15, - f - ); - } -}; - - -/** - * optional bool resolve_links = 1; - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getResolveLinks = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setResolveLinks = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional uint64 revision = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getRevision = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setRevision = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional bool extra_statistics = 3; - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getExtraStatistics = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setExtraStatistics = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional int32 max_retry_count = 5; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMaxRetryCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMaxRetryCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int32 min_checkpoint_count = 7; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMinCheckpointCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMinCheckpointCount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional int32 max_checkpoint_count = 8; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMaxCheckpointCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMaxCheckpointCount = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional int32 max_subscriber_count = 9; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMaxSubscriberCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMaxSubscriberCount = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional int32 live_buffer_size = 10; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getLiveBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setLiveBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional int32 read_batch_size = 11; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getReadBatchSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setReadBatchSize = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional int32 history_buffer_size = 12; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getHistoryBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setHistoryBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional ConsumerStrategy named_consumer_strategy = 13; - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getNamedConsumerStrategy = function() { - return /** @type {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {!proto.event_store.client.persistent_subscriptions.UpdateReq.ConsumerStrategy} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setNamedConsumerStrategy = function(value) { - return jspb.Message.setProto3EnumField(this, 13, value); -}; - - -/** - * optional int64 message_timeout_ticks = 4; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMessageTimeoutTicks = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMessageTimeoutTicks = function(value) { - return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearMessageTimeoutTicks = function() { - return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasMessageTimeoutTicks = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int32 message_timeout_ms = 14; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getMessageTimeoutMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setMessageTimeoutMs = function(value) { - return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearMessageTimeoutMs = function() { - return jspb.Message.setOneofField(this, 14, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasMessageTimeoutMs = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional int64 checkpoint_after_ticks = 6; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getCheckpointAfterTicks = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setCheckpointAfterTicks = function(value) { - return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearCheckpointAfterTicks = function() { - return jspb.Message.setOneofField(this, 6, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasCheckpointAfterTicks = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional int32 checkpoint_after_ms = 15; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.getCheckpointAfterMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.setCheckpointAfterMs = function(value) { - return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq.Settings} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.clearCheckpointAfterMs = function() { - return jspb.Message.setOneofField(this, 15, proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.Settings.prototype.hasCheckpointAfterMs = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.UpdateReq.Options} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.UpdateReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.UpdateReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.UpdateReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.UpdateReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateReq} returns this - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.UpdateReq.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_, 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.persistent_subscriptions.UpdateResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp} - */ -proto.event_store.client.persistent_subscriptions.UpdateResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.UpdateResp; - return proto.event_store.client.persistent_subscriptions.UpdateResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.UpdateResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.UpdateResp} - */ -proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.UpdateResp.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.persistent_subscriptions.UpdateResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.UpdateResp.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_, 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.persistent_subscriptions.DeleteReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.DeleteReq; - return proto.event_store.client.persistent_subscriptions.DeleteReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.DeleteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.DeleteReq.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_ = [[1,3]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM_IDENTIFIER: 1, - ALL: 3 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.DeleteReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.DeleteReq.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_, 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.persistent_subscriptions.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), - groupName: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - 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.persistent_subscriptions.DeleteReq.Options} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.DeleteReq.Options; - return proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.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.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.DeleteReq.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.persistent_subscriptions.DeleteReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty all = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.DeleteReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string group_name = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.Options.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.DeleteReq.Options} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.DeleteReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.DeleteReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.DeleteReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.DeleteReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.DeleteReq} returns this - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.DeleteReq.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_, 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.persistent_subscriptions.DeleteResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp} - */ -proto.event_store.client.persistent_subscriptions.DeleteResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.DeleteResp; - return proto.event_store.client.persistent_subscriptions.DeleteResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.DeleteResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.DeleteResp} - */ -proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.DeleteResp.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.persistent_subscriptions.DeleteResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.DeleteResp.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_, 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.persistent_subscriptions.GetInfoReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.GetInfoReq; - return proto.event_store.client.persistent_subscriptions.GetInfoReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.GetInfoReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.GetInfoReq.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM_IDENTIFIER: 1, - ALL: 2 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.GetInfoReq.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_, 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.persistent_subscriptions.GetInfoReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), - groupName: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - 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.persistent_subscriptions.GetInfoReq.Options} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.GetInfoReq.Options; - return proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.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.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.GetInfoReq.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.persistent_subscriptions.GetInfoReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty all = 2; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string group_name = 3; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.Options.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.GetInfoReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.GetInfoReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.GetInfoReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.GetInfoReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoReq} returns this - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.GetInfoReq.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_, 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.persistent_subscriptions.GetInfoResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.GetInfoResp.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.persistent_subscriptions.GetInfoResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.toObject = function(includeInstance, msg) { - var f, obj = { - subscriptionInfo: (f = msg.getSubscriptionInfo()) && proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.persistent_subscriptions.GetInfoResp} - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.GetInfoResp; - return proto.event_store.client.persistent_subscriptions.GetInfoResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.GetInfoResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoResp} - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.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.persistent_subscriptions.SubscriptionInfo; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinaryFromReader); - msg.setSubscriptionInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.GetInfoResp.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.persistent_subscriptions.GetInfoResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubscriptionInfo(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional SubscriptionInfo subscription_info = 1; - * @return {?proto.event_store.client.persistent_subscriptions.SubscriptionInfo} - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.getSubscriptionInfo = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.SubscriptionInfo} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.SubscriptionInfo|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoResp} returns this -*/ -proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.setSubscriptionInfo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.GetInfoResp} returns this - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.clearSubscriptionInfo = function() { - return this.setSubscriptionInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.GetInfoResp.prototype.hasSubscriptionInfo = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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_, 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.persistent_subscriptions.SubscriptionInfo.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.persistent_subscriptions.SubscriptionInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.toObject = function(includeInstance, msg) { - var f, obj = { - eventSource: jspb.Message.getFieldWithDefault(msg, 1, ""), - groupName: jspb.Message.getFieldWithDefault(msg, 2, ""), - status: jspb.Message.getFieldWithDefault(msg, 3, ""), - connectionsList: jspb.Message.toObjectList(msg.getConnectionsList(), - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.toObject, includeInstance), - averagePerSecond: jspb.Message.getFieldWithDefault(msg, 5, 0), - totalItems: jspb.Message.getFieldWithDefault(msg, 6, "0"), - countSinceLastMeasurement: jspb.Message.getFieldWithDefault(msg, 7, "0"), - lastCheckpointedEventPosition: jspb.Message.getFieldWithDefault(msg, 8, ""), - lastKnownEventPosition: jspb.Message.getFieldWithDefault(msg, 9, ""), - resolveLinkTos: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - startFrom: jspb.Message.getFieldWithDefault(msg, 11, ""), - messageTimeoutMilliseconds: jspb.Message.getFieldWithDefault(msg, 12, 0), - extraStatistics: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - maxRetryCount: jspb.Message.getFieldWithDefault(msg, 14, 0), - liveBufferSize: jspb.Message.getFieldWithDefault(msg, 15, 0), - bufferSize: jspb.Message.getFieldWithDefault(msg, 16, 0), - readBatchSize: jspb.Message.getFieldWithDefault(msg, 17, 0), - checkPointAfterMilliseconds: jspb.Message.getFieldWithDefault(msg, 18, 0), - minCheckPointCount: jspb.Message.getFieldWithDefault(msg, 19, 0), - maxCheckPointCount: jspb.Message.getFieldWithDefault(msg, 20, 0), - readBufferCount: jspb.Message.getFieldWithDefault(msg, 21, 0), - liveBufferCount: jspb.Message.getFieldWithDefault(msg, 22, "0"), - retryBufferCount: jspb.Message.getFieldWithDefault(msg, 23, 0), - totalInFlightMessages: jspb.Message.getFieldWithDefault(msg, 24, 0), - outstandingMessagesCount: jspb.Message.getFieldWithDefault(msg, 25, 0), - namedConsumerStrategy: jspb.Message.getFieldWithDefault(msg, 26, ""), - maxSubscriberCount: jspb.Message.getFieldWithDefault(msg, 27, 0), - parkedMessageCount: jspb.Message.getFieldWithDefault(msg, 28, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo; - return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.setEventSource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGroupName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 4: - var value = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.deserializeBinaryFromReader); - msg.addConnections(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAveragePerSecond(value); - break; - case 6: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setTotalItems(value); - break; - case 7: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setCountSinceLastMeasurement(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setLastCheckpointedEventPosition(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setLastKnownEventPosition(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setResolveLinkTos(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setStartFrom(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMessageTimeoutMilliseconds(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExtraStatistics(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxRetryCount(value); - break; - case 15: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLiveBufferSize(value); - break; - case 16: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBufferSize(value); - break; - case 17: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReadBatchSize(value); - break; - case 18: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCheckPointAfterMilliseconds(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMinCheckPointCount(value); - break; - case 20: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxCheckPointCount(value); - break; - case 21: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReadBufferCount(value); - break; - case 22: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setLiveBufferCount(value); - break; - case 23: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRetryBufferCount(value); - break; - case 24: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTotalInFlightMessages(value); - break; - case 25: - var value = /** @type {number} */ (reader.readInt32()); - msg.setOutstandingMessagesCount(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setNamedConsumerStrategy(value); - break; - case 27: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxSubscriberCount(value); - break; - case 28: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setParkedMessageCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.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.persistent_subscriptions.SubscriptionInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEventSource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getConnectionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.serializeBinaryToWriter - ); - } - f = message.getAveragePerSecond(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getTotalItems(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 6, - f - ); - } - f = message.getCountSinceLastMeasurement(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 7, - f - ); - } - f = message.getLastCheckpointedEventPosition(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getLastKnownEventPosition(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getResolveLinkTos(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getStartFrom(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getMessageTimeoutMilliseconds(); - if (f !== 0) { - writer.writeInt32( - 12, - f - ); - } - f = message.getExtraStatistics(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getMaxRetryCount(); - if (f !== 0) { - writer.writeInt32( - 14, - f - ); - } - f = message.getLiveBufferSize(); - if (f !== 0) { - writer.writeInt32( - 15, - f - ); - } - f = message.getBufferSize(); - if (f !== 0) { - writer.writeInt32( - 16, - f - ); - } - f = message.getReadBatchSize(); - if (f !== 0) { - writer.writeInt32( - 17, - f - ); - } - f = message.getCheckPointAfterMilliseconds(); - if (f !== 0) { - writer.writeInt32( - 18, - f - ); - } - f = message.getMinCheckPointCount(); - if (f !== 0) { - writer.writeInt32( - 19, - f - ); - } - f = message.getMaxCheckPointCount(); - if (f !== 0) { - writer.writeInt32( - 20, - f - ); - } - f = message.getReadBufferCount(); - if (f !== 0) { - writer.writeInt32( - 21, - f - ); - } - f = message.getLiveBufferCount(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 22, - f - ); - } - f = message.getRetryBufferCount(); - if (f !== 0) { - writer.writeInt32( - 23, - f - ); - } - f = message.getTotalInFlightMessages(); - if (f !== 0) { - writer.writeInt32( - 24, - f - ); - } - f = message.getOutstandingMessagesCount(); - if (f !== 0) { - writer.writeInt32( - 25, - f - ); - } - f = message.getNamedConsumerStrategy(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } - f = message.getMaxSubscriberCount(); - if (f !== 0) { - writer.writeInt32( - 27, - f - ); - } - f = message.getParkedMessageCount(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 28, - f - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.repeatedFields_ = [6]; - - - -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_, 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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.toObject = function(includeInstance, msg) { - var f, obj = { - from: jspb.Message.getFieldWithDefault(msg, 1, ""), - username: jspb.Message.getFieldWithDefault(msg, 2, ""), - averageItemsPerSecond: jspb.Message.getFieldWithDefault(msg, 3, 0), - totalItems: jspb.Message.getFieldWithDefault(msg, 4, "0"), - countSinceLastMeasurement: jspb.Message.getFieldWithDefault(msg, 5, "0"), - observedMeasurementsList: jspb.Message.toObjectList(msg.getObservedMeasurementsList(), - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.toObject, includeInstance), - availableSlots: jspb.Message.getFieldWithDefault(msg, 7, 0), - inFlightMessages: jspb.Message.getFieldWithDefault(msg, 8, 0), - connectionName: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - 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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo; - return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.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.setFrom(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAverageItemsPerSecond(value); - break; - case 4: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setTotalItems(value); - break; - case 5: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setCountSinceLastMeasurement(value); - break; - case 6: - var value = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.deserializeBinaryFromReader); - msg.addObservedMeasurements(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAvailableSlots(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setInFlightMessages(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectionName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.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.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrom(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAverageItemsPerSecond(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getTotalItems(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 4, - f - ); - } - f = message.getCountSinceLastMeasurement(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 5, - f - ); - } - f = message.getObservedMeasurementsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.serializeBinaryToWriter - ); - } - f = message.getAvailableSlots(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getInFlightMessages(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } - f = message.getConnectionName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string from = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getFrom = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setFrom = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string username = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 average_items_per_second = 3; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getAverageItemsPerSecond = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setAverageItemsPerSecond = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 total_items = 4; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getTotalItems = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setTotalItems = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional int64 count_since_last_measurement = 5; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getCountSinceLastMeasurement = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setCountSinceLastMeasurement = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); -}; - - -/** - * repeated Measurement observed_measurements = 6; - * @return {!Array} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getObservedMeasurementsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this -*/ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setObservedMeasurementsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement=} opt_value - * @param {number=} opt_index - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.addObservedMeasurements = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.clearObservedMeasurementsList = function() { - return this.setObservedMeasurementsList([]); -}; - - -/** - * optional int32 available_slots = 7; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getAvailableSlots = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setAvailableSlots = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional int32 in_flight_messages = 8; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getInFlightMessages = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setInFlightMessages = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional string connection_name = 9; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.getConnectionName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo.prototype.setConnectionName = function(value) { - return jspb.Message.setProto3StringField(this, 9, 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_, 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.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.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.persistent_subscriptions.SubscriptionInfo.Measurement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement; - return proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.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.setKey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.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.persistent_subscriptions.SubscriptionInfo.Measurement} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValue(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 2, - f - ); - } -}; - - -/** - * optional string key = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 value = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.Measurement.prototype.setValue = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional string event_source = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getEventSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setEventSource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string group_name = 2; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string status = 3; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated ConnectionInfo connections = 4; - * @return {!Array} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getConnectionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this -*/ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setConnectionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.addConnections = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.event_store.client.persistent_subscriptions.SubscriptionInfo.ConnectionInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.clearConnectionsList = function() { - return this.setConnectionsList([]); -}; - - -/** - * optional int32 average_per_second = 5; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getAveragePerSecond = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setAveragePerSecond = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int64 total_items = 6; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getTotalItems = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setTotalItems = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); -}; - - -/** - * optional int64 count_since_last_measurement = 7; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getCountSinceLastMeasurement = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setCountSinceLastMeasurement = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); -}; - - -/** - * optional string last_checkpointed_event_position = 8; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLastCheckpointedEventPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLastCheckpointedEventPosition = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string last_known_event_position = 9; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLastKnownEventPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLastKnownEventPosition = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional bool resolve_link_tos = 10; - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getResolveLinkTos = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setResolveLinkTos = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional string start_from = 11; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getStartFrom = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setStartFrom = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional int32 message_timeout_milliseconds = 12; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMessageTimeoutMilliseconds = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMessageTimeoutMilliseconds = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional bool extra_statistics = 13; - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getExtraStatistics = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setExtraStatistics = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional int32 max_retry_count = 14; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMaxRetryCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMaxRetryCount = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional int32 live_buffer_size = 15; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLiveBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLiveBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 15, value); -}; - - -/** - * optional int32 buffer_size = 16; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional int32 read_batch_size = 17; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getReadBatchSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setReadBatchSize = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - -/** - * optional int32 check_point_after_milliseconds = 18; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getCheckPointAfterMilliseconds = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setCheckPointAfterMilliseconds = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional int32 min_check_point_count = 19; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMinCheckPointCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMinCheckPointCount = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional int32 max_check_point_count = 20; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMaxCheckPointCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMaxCheckPointCount = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional int32 read_buffer_count = 21; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getReadBufferCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setReadBufferCount = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional int64 live_buffer_count = 22; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getLiveBufferCount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setLiveBufferCount = function(value) { - return jspb.Message.setProto3StringIntField(this, 22, value); -}; - - -/** - * optional int32 retry_buffer_count = 23; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getRetryBufferCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setRetryBufferCount = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional int32 total_in_flight_messages = 24; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getTotalInFlightMessages = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setTotalInFlightMessages = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * optional int32 outstanding_messages_count = 25; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getOutstandingMessagesCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setOutstandingMessagesCount = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - -/** - * optional string named_consumer_strategy = 26; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getNamedConsumerStrategy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setNamedConsumerStrategy = function(value) { - return jspb.Message.setProto3StringField(this, 26, value); -}; - - -/** - * optional int32 max_subscriber_count = 27; - * @return {number} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getMaxSubscriberCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setMaxSubscriberCount = function(value) { - return jspb.Message.setProto3IntField(this, 27, value); -}; - - -/** - * optional int64 parked_message_count = 28; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.getParkedMessageCount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} returns this - */ -proto.event_store.client.persistent_subscriptions.SubscriptionInfo.prototype.setParkedMessageCount = function(value) { - return jspb.Message.setProto3StringIntField(this, 28, 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_, 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.persistent_subscriptions.ReplayParkedReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReplayParkedReq; - return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_ = [[2,3],[4,5]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM_IDENTIFIER: 2, - ALL: 3 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase = { - STOP_AT_OPTION_NOT_SET: 0, - STOP_AT: 4, - NO_LIMIT: 5 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStopAtOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.StopAtOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1])); -}; - - - -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_, 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.persistent_subscriptions.ReplayParkedReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - groupName: jspb.Message.getFieldWithDefault(msg, 1, ""), - streamIdentifier: (f = msg.getStreamIdentifier()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), - stopAt: jspb.Message.getFieldWithDefault(msg, 4, "0"), - noLimit: (f = msg.getNoLimit()) && shared_pb.Empty.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.persistent_subscriptions.ReplayParkedReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options; - return proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.setGroupName(value); - break; - case 2: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStreamIdentifier(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 4: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setStopAt(value); - break; - case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setNoLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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.persistent_subscriptions.ReplayParkedReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGroupName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStreamIdentifier(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeInt64String( - 4, - f - ); - } - f = message.getNoLimit(); - if (f != null) { - writer.writeMessage( - 5, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string group_name = 1; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getGroupName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setGroupName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional event_store.client.StreamIdentifier stream_identifier = 2; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStreamIdentifier = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 2)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setStreamIdentifier = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearStreamIdentifier = function() { - return this.setStreamIdentifier(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasStreamIdentifier = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.Empty all = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int64 stop_at = 4; - * @return {string} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getStopAt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setStopAt = function(value) { - return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearStopAt = function() { - return jspb.Message.setOneofField(this, 4, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasStopAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional event_store.client.Empty no_limit = 5; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.getNoLimit = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.setNoLimit = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.clearNoLimit = function() { - return this.setNoLimit(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options.prototype.hasNoLimit = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ReplayParkedReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedReq} returns this - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedReq.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_, 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.persistent_subscriptions.ReplayParkedResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ReplayParkedResp; - return proto.event_store.client.persistent_subscriptions.ReplayParkedResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ReplayParkedResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ReplayParkedResp} - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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.persistent_subscriptions.ReplayParkedResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ReplayParkedResp.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_, 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.persistent_subscriptions.ListReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq} - */ -proto.event_store.client.persistent_subscriptions.ListReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ListReq; - return proto.event_store.client.persistent_subscriptions.ListReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ListReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq} - */ -proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.ListReq.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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase = { - LIST_OPTION_NOT_SET: 0, - LIST_ALL_SUBSCRIPTIONS: 1, - LIST_FOR_STREAM: 2 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ListReq.Options.ListOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ListReq.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_, 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.persistent_subscriptions.ListReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - listAllSubscriptions: (f = msg.getListAllSubscriptions()) && shared_pb.Empty.toObject(includeInstance, f), - listForStream: (f = msg.getListForStream()) && proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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.persistent_subscriptions.ListReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ListReq.Options; - return proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ListReq.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.setListAllSubscriptions(value); - break; - case 2: - var value = new proto.event_store.client.persistent_subscriptions.ListReq.StreamOption; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinaryFromReader); - msg.setListForStream(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ListReq.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.persistent_subscriptions.ListReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getListAllSubscriptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getListForStream(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.Empty list_all_subscriptions = 1; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListAllSubscriptions = 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.persistent_subscriptions.ListReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.setListAllSubscriptions = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.clearListAllSubscriptions = function() { - return this.setListAllSubscriptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.hasListAllSubscriptions = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional StreamOption list_for_stream = 2; - * @return {?proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.getListForStream = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption, 2)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ListReq.StreamOption|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} returns this -*/ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.setListForStream = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ListReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.Options} returns this - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.clearListForStream = function() { - return this.setListForStream(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ListReq.Options.prototype.hasListForStream = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * 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>} - * @const - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase = { - STREAM_OPTION_NOT_SET: 0, - STREAM: 1, - ALL: 2 -}; - -/** - * @return {proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getStreamOptionCase = function() { - return /** @type {proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.StreamOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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_, 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.persistent_subscriptions.ListReq.StreamOption.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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.persistent_subscriptions.ListReq.StreamOption} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.toObject = function(includeInstance, msg) { - var f, obj = { - stream: (f = msg.getStream()) && shared_pb.StreamIdentifier.toObject(includeInstance, f), - all: (f = msg.getAll()) && shared_pb.Empty.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.persistent_subscriptions.ListReq.StreamOption} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ListReq.StreamOption; - return proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new shared_pb.StreamIdentifier; - reader.readMessage(value,shared_pb.StreamIdentifier.deserializeBinaryFromReader); - msg.setStream(value); - break; - case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setAll(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.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.persistent_subscriptions.ListReq.StreamOption} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStream(); - if (f != null) { - writer.writeMessage( - 1, - f, - shared_pb.StreamIdentifier.serializeBinaryToWriter - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional event_store.client.StreamIdentifier stream = 1; - * @return {?proto.event_store.client.StreamIdentifier} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getStream = function() { - return /** @type{?proto.event_store.client.StreamIdentifier} */ ( - jspb.Message.getWrapperField(this, shared_pb.StreamIdentifier, 1)); -}; - - -/** - * @param {?proto.event_store.client.StreamIdentifier|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this -*/ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.setStream = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.clearStream = function() { - return this.setStream(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.hasStream = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty all = 2; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.getAll = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this -*/ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq.StreamOption} returns this - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ListReq.StreamOption.prototype.hasAll = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.persistent_subscriptions.ListReq.Options} - */ -proto.event_store.client.persistent_subscriptions.ListReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.persistent_subscriptions.ListReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.persistent_subscriptions.ListReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.persistent_subscriptions.ListReq.Options|undefined} value - * @return {!proto.event_store.client.persistent_subscriptions.ListReq} returns this -*/ -proto.event_store.client.persistent_subscriptions.ListReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.persistent_subscriptions.ListReq} returns this - */ -proto.event_store.client.persistent_subscriptions.ListReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.persistent_subscriptions.ListReq.prototype.hasOptions = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.persistent_subscriptions.ListResp.repeatedFields_ = [1]; - - - -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_, 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.persistent_subscriptions.ListResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.persistent_subscriptions.ListResp.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.persistent_subscriptions.ListResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListResp.toObject = function(includeInstance, msg) { - var f, obj = { - subscriptionsList: jspb.Message.toObjectList(msg.getSubscriptionsList(), - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.toObject, includeInstance) - }; - - 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.persistent_subscriptions.ListResp} - */ -proto.event_store.client.persistent_subscriptions.ListResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.persistent_subscriptions.ListResp; - return proto.event_store.client.persistent_subscriptions.ListResp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.event_store.client.persistent_subscriptions.ListResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.persistent_subscriptions.ListResp} - */ -proto.event_store.client.persistent_subscriptions.ListResp.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.persistent_subscriptions.SubscriptionInfo; - reader.readMessage(value,proto.event_store.client.persistent_subscriptions.SubscriptionInfo.deserializeBinaryFromReader); - msg.addSubscriptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.persistent_subscriptions.ListResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.persistent_subscriptions.ListResp.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.persistent_subscriptions.ListResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.persistent_subscriptions.ListResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubscriptionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.event_store.client.persistent_subscriptions.SubscriptionInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SubscriptionInfo subscriptions = 1; - * @return {!Array} - */ -proto.event_store.client.persistent_subscriptions.ListResp.prototype.getSubscriptionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.event_store.client.persistent_subscriptions.SubscriptionInfo, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.persistent_subscriptions.ListResp} returns this -*/ -proto.event_store.client.persistent_subscriptions.ListResp.prototype.setSubscriptionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.event_store.client.persistent_subscriptions.SubscriptionInfo} - */ -proto.event_store.client.persistent_subscriptions.ListResp.prototype.addSubscriptions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.event_store.client.persistent_subscriptions.SubscriptionInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.persistent_subscriptions.ListResp} returns this - */ -proto.event_store.client.persistent_subscriptions.ListResp.prototype.clearSubscriptionsList = function() { - return this.setSubscriptionsList([]); -}; - - -goog.object.extend(exports, proto.event_store.client.persistent_subscriptions); diff --git a/packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts b/packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts deleted file mode 100644 index 2d4fe678..00000000 --- a/packages/db-client/generated/persistentsubscriptions_grpc_pb.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -// package: event_store.client.persistent_subscriptions -// file: persistentsubscriptions.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as persistentsubscriptions_pb from "./persistentsubscriptions_pb"; -import * as shared_pb from "./shared_pb"; - -interface IPersistentSubscriptionsService extends grpc.ServiceDefinition { - create: IPersistentSubscriptionsService_ICreate; - update: IPersistentSubscriptionsService_IUpdate; - delete: IPersistentSubscriptionsService_IDelete; - read: IPersistentSubscriptionsService_IRead; - getInfo: IPersistentSubscriptionsService_IGetInfo; - replayParked: IPersistentSubscriptionsService_IReplayParked; - list: IPersistentSubscriptionsService_IList; - restartSubsystem: IPersistentSubscriptionsService_IRestartSubsystem; -} - -interface IPersistentSubscriptionsService_ICreate extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Create"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IRead extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/Read"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IGetInfo extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/GetInfo"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IReplayParked extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/ReplayParked"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IList extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/List"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPersistentSubscriptionsService_IRestartSubsystem extends grpc.MethodDefinition { - path: "/event_store.client.persistent_subscriptions.PersistentSubscriptions/RestartSubsystem"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const PersistentSubscriptionsService: IPersistentSubscriptionsService; - -export interface IPersistentSubscriptionsServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - read: grpc.handleBidiStreamingCall; - getInfo: grpc.handleUnaryCall; - replayParked: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - restartSubsystem: grpc.handleUnaryCall; -} - -export interface IPersistentSubscriptionsClient { - create(request: persistentsubscriptions_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; - update(request: persistentsubscriptions_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; - delete(request: persistentsubscriptions_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; - read(): grpc.ClientDuplexStream; - read(options: Partial): grpc.ClientDuplexStream; - read(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - getInfo(request: persistentsubscriptions_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - list(request: persistentsubscriptions_pb.ListReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; - list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; - list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} - -export class PersistentSubscriptionsClient extends grpc.Client implements IPersistentSubscriptionsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public create(request: persistentsubscriptions_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: persistentsubscriptions_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.CreateResp) => void): grpc.ClientUnaryCall; - public update(request: persistentsubscriptions_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: persistentsubscriptions_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public delete(request: persistentsubscriptions_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: persistentsubscriptions_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public read(options?: Partial): grpc.ClientDuplexStream; - public read(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public getInfo(request: persistentsubscriptions_pb.GetInfoReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - public getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - public getInfo(request: persistentsubscriptions_pb.GetInfoReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.GetInfoResp) => void): grpc.ClientUnaryCall; - public replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - public replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - public replayParked(request: persistentsubscriptions_pb.ReplayParkedReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ReplayParkedResp) => void): grpc.ClientUnaryCall; - public list(request: persistentsubscriptions_pb.ListReq, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; - public list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; - public list(request: persistentsubscriptions_pb.ListReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: persistentsubscriptions_pb.ListResp) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/projectionmanagement_grpc_pb.d.ts b/packages/db-client/generated/projectionmanagement_grpc_pb.d.ts deleted file mode 100644 index a1b9ad2b..00000000 --- a/packages/db-client/generated/projectionmanagement_grpc_pb.d.ts +++ /dev/null @@ -1,194 +0,0 @@ -// package: event_store.client.projections -// file: projectionmanagement.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as projectionmanagement_pb from "./projectionmanagement_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as shared_pb from "./shared_pb"; - -interface IProjectionsService extends grpc.ServiceDefinition { - create: IProjectionsService_ICreate; - update: IProjectionsService_IUpdate; - delete: IProjectionsService_IDelete; - statistics: IProjectionsService_IStatistics; - disable: IProjectionsService_IDisable; - enable: IProjectionsService_IEnable; - reset: IProjectionsService_IReset; - state: IProjectionsService_IState; - result: IProjectionsService_IResult; - restartSubsystem: IProjectionsService_IRestartSubsystem; -} - -interface IProjectionsService_ICreate extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Create"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IStatistics extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Statistics"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IDisable extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Disable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IEnable extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Enable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IReset extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Reset"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IState extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/State"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IResult extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Result"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IRestartSubsystem extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/RestartSubsystem"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ProjectionsService: IProjectionsService; - -export interface IProjectionsServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - statistics: grpc.handleServerStreamingCall; - disable: grpc.handleUnaryCall; - enable: grpc.handleUnaryCall; - reset: grpc.handleUnaryCall; - state: grpc.handleUnaryCall; - result: grpc.handleUnaryCall; - restartSubsystem: grpc.handleUnaryCall; -} - -export interface IProjectionsClient { - create(request: projectionmanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - update(request: projectionmanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - delete(request: projectionmanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - statistics(request: projectionmanagement_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; - statistics(request: projectionmanagement_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - disable(request: projectionmanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - enable(request: projectionmanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - reset(request: projectionmanagement_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; - reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; - reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; - state(request: projectionmanagement_pb.StateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; - state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; - state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; - result(request: projectionmanagement_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; - result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; - result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} - -export class ProjectionsClient extends grpc.Client implements IProjectionsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public create(request: projectionmanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: projectionmanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - public update(request: projectionmanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: projectionmanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public delete(request: projectionmanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: projectionmanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public statistics(request: projectionmanagement_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; - public statistics(request: projectionmanagement_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public disable(request: projectionmanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: projectionmanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - public enable(request: projectionmanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: projectionmanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - public reset(request: projectionmanagement_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; - public reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; - public reset(request: projectionmanagement_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResetResp) => void): grpc.ClientUnaryCall; - public state(request: projectionmanagement_pb.StateReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; - public state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; - public state(request: projectionmanagement_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.StateResp) => void): grpc.ClientUnaryCall; - public result(request: projectionmanagement_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; - public result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; - public result(request: projectionmanagement_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projectionmanagement_pb.ResultResp) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/projections_grpc_pb.d.ts b/packages/db-client/generated/projections_grpc_pb.d.ts deleted file mode 100644 index 1483a079..00000000 --- a/packages/db-client/generated/projections_grpc_pb.d.ts +++ /dev/null @@ -1,194 +0,0 @@ -// package: event_store.client.projections -// file: projections.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as projections_pb from "./projections_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as shared_pb from "./shared_pb"; - -interface IProjectionsService extends grpc.ServiceDefinition { - create: IProjectionsService_ICreate; - update: IProjectionsService_IUpdate; - delete: IProjectionsService_IDelete; - statistics: IProjectionsService_IStatistics; - disable: IProjectionsService_IDisable; - enable: IProjectionsService_IEnable; - reset: IProjectionsService_IReset; - state: IProjectionsService_IState; - result: IProjectionsService_IResult; - restartSubsystem: IProjectionsService_IRestartSubsystem; -} - -interface IProjectionsService_ICreate extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Create"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IStatistics extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Statistics"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IDisable extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Disable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IEnable extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Enable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IReset extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Reset"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IState extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/State"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IResult extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/Result"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IProjectionsService_IRestartSubsystem extends grpc.MethodDefinition { - path: "/event_store.client.projections.Projections/RestartSubsystem"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ProjectionsService: IProjectionsService; - -export interface IProjectionsServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - statistics: grpc.handleServerStreamingCall; - disable: grpc.handleUnaryCall; - enable: grpc.handleUnaryCall; - reset: grpc.handleUnaryCall; - state: grpc.handleUnaryCall; - result: grpc.handleUnaryCall; - restartSubsystem: grpc.handleUnaryCall; -} - -export interface IProjectionsClient { - create(request: projections_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: projections_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: projections_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: projections_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.CreateResp) => void): grpc.ClientUnaryCall; - update(request: projections_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: projections_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: projections_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: projections_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.UpdateResp) => void): grpc.ClientUnaryCall; - delete(request: projections_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: projections_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: projections_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: projections_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.DeleteResp) => void): grpc.ClientUnaryCall; - statistics(request: projections_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; - statistics(request: projections_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - disable(request: projections_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: projections_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: projections_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: projections_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.DisableResp) => void): grpc.ClientUnaryCall; - enable(request: projections_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: projections_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: projections_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: projections_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.EnableResp) => void): grpc.ClientUnaryCall; - reset(request: projections_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: projections_pb.ResetResp) => void): grpc.ClientUnaryCall; - reset(request: projections_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.ResetResp) => void): grpc.ClientUnaryCall; - reset(request: projections_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.ResetResp) => void): grpc.ClientUnaryCall; - state(request: projections_pb.StateReq, callback: (error: grpc.ServiceError | null, response: projections_pb.StateResp) => void): grpc.ClientUnaryCall; - state(request: projections_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.StateResp) => void): grpc.ClientUnaryCall; - state(request: projections_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.StateResp) => void): grpc.ClientUnaryCall; - result(request: projections_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: projections_pb.ResultResp) => void): grpc.ClientUnaryCall; - result(request: projections_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.ResultResp) => void): grpc.ClientUnaryCall; - result(request: projections_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.ResultResp) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} - -export class ProjectionsClient extends grpc.Client implements IProjectionsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public create(request: projections_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: projections_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: projections_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: projections_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.CreateResp) => void): grpc.ClientUnaryCall; - public update(request: projections_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: projections_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: projections_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: projections_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public delete(request: projections_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: projections_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: projections_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: projections_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public statistics(request: projections_pb.StatisticsReq, options?: Partial): grpc.ClientReadableStream; - public statistics(request: projections_pb.StatisticsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public disable(request: projections_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: projections_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: projections_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: projections_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.DisableResp) => void): grpc.ClientUnaryCall; - public enable(request: projections_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: projections_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: projections_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: projections_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.EnableResp) => void): grpc.ClientUnaryCall; - public reset(request: projections_pb.ResetReq, callback: (error: grpc.ServiceError | null, response: projections_pb.ResetResp) => void): grpc.ClientUnaryCall; - public reset(request: projections_pb.ResetReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.ResetResp) => void): grpc.ClientUnaryCall; - public reset(request: projections_pb.ResetReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.ResetResp) => void): grpc.ClientUnaryCall; - public state(request: projections_pb.StateReq, callback: (error: grpc.ServiceError | null, response: projections_pb.StateResp) => void): grpc.ClientUnaryCall; - public state(request: projections_pb.StateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.StateResp) => void): grpc.ClientUnaryCall; - public state(request: projections_pb.StateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.StateResp) => void): grpc.ClientUnaryCall; - public result(request: projections_pb.ResultReq, callback: (error: grpc.ServiceError | null, response: projections_pb.ResultResp) => void): grpc.ClientUnaryCall; - public result(request: projections_pb.ResultReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: projections_pb.ResultResp) => void): grpc.ClientUnaryCall; - public result(request: projections_pb.ResultReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: projections_pb.ResultResp) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; - public restartSubsystem(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: shared_pb.Empty) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/projections_grpc_pb.js b/packages/db-client/generated/projections_grpc_pb.js deleted file mode 100644 index be554d8b..00000000 --- a/packages/db-client/generated/projections_grpc_pb.js +++ /dev/null @@ -1,332 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var projections_pb = require('./projections_pb.js'); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -var shared_pb = require('./shared_pb.js'); - -function serialize_event_store_client_Empty(arg) { - if (!(arg instanceof shared_pb.Empty)) { - throw new Error('Expected argument of type event_store.client.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_Empty(buffer_arg) { - return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_CreateReq(arg) { - if (!(arg instanceof projections_pb.CreateReq)) { - throw new Error('Expected argument of type event_store.client.projections.CreateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_CreateReq(buffer_arg) { - return projections_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_CreateResp(arg) { - if (!(arg instanceof projections_pb.CreateResp)) { - throw new Error('Expected argument of type event_store.client.projections.CreateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_CreateResp(buffer_arg) { - return projections_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_DeleteReq(arg) { - if (!(arg instanceof projections_pb.DeleteReq)) { - throw new Error('Expected argument of type event_store.client.projections.DeleteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_DeleteReq(buffer_arg) { - return projections_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_DeleteResp(arg) { - if (!(arg instanceof projections_pb.DeleteResp)) { - throw new Error('Expected argument of type event_store.client.projections.DeleteResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_DeleteResp(buffer_arg) { - return projections_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_DisableReq(arg) { - if (!(arg instanceof projections_pb.DisableReq)) { - throw new Error('Expected argument of type event_store.client.projections.DisableReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_DisableReq(buffer_arg) { - return projections_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_DisableResp(arg) { - if (!(arg instanceof projections_pb.DisableResp)) { - throw new Error('Expected argument of type event_store.client.projections.DisableResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_DisableResp(buffer_arg) { - return projections_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_EnableReq(arg) { - if (!(arg instanceof projections_pb.EnableReq)) { - throw new Error('Expected argument of type event_store.client.projections.EnableReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_EnableReq(buffer_arg) { - return projections_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_EnableResp(arg) { - if (!(arg instanceof projections_pb.EnableResp)) { - throw new Error('Expected argument of type event_store.client.projections.EnableResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_EnableResp(buffer_arg) { - return projections_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_ResetReq(arg) { - if (!(arg instanceof projections_pb.ResetReq)) { - throw new Error('Expected argument of type event_store.client.projections.ResetReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_ResetReq(buffer_arg) { - return projections_pb.ResetReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_ResetResp(arg) { - if (!(arg instanceof projections_pb.ResetResp)) { - throw new Error('Expected argument of type event_store.client.projections.ResetResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_ResetResp(buffer_arg) { - return projections_pb.ResetResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_ResultReq(arg) { - if (!(arg instanceof projections_pb.ResultReq)) { - throw new Error('Expected argument of type event_store.client.projections.ResultReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_ResultReq(buffer_arg) { - return projections_pb.ResultReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_ResultResp(arg) { - if (!(arg instanceof projections_pb.ResultResp)) { - throw new Error('Expected argument of type event_store.client.projections.ResultResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_ResultResp(buffer_arg) { - return projections_pb.ResultResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_StateReq(arg) { - if (!(arg instanceof projections_pb.StateReq)) { - throw new Error('Expected argument of type event_store.client.projections.StateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_StateReq(buffer_arg) { - return projections_pb.StateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_StateResp(arg) { - if (!(arg instanceof projections_pb.StateResp)) { - throw new Error('Expected argument of type event_store.client.projections.StateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_StateResp(buffer_arg) { - return projections_pb.StateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_StatisticsReq(arg) { - if (!(arg instanceof projections_pb.StatisticsReq)) { - throw new Error('Expected argument of type event_store.client.projections.StatisticsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_StatisticsReq(buffer_arg) { - return projections_pb.StatisticsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_StatisticsResp(arg) { - if (!(arg instanceof projections_pb.StatisticsResp)) { - throw new Error('Expected argument of type event_store.client.projections.StatisticsResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_StatisticsResp(buffer_arg) { - return projections_pb.StatisticsResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_UpdateReq(arg) { - if (!(arg instanceof projections_pb.UpdateReq)) { - throw new Error('Expected argument of type event_store.client.projections.UpdateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_UpdateReq(buffer_arg) { - return projections_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_projections_UpdateResp(arg) { - if (!(arg instanceof projections_pb.UpdateResp)) { - throw new Error('Expected argument of type event_store.client.projections.UpdateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_projections_UpdateResp(buffer_arg) { - return projections_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var ProjectionsService = exports.ProjectionsService = { - create: { - path: '/event_store.client.projections.Projections/Create', - requestStream: false, - responseStream: false, - requestType: projections_pb.CreateReq, - responseType: projections_pb.CreateResp, - requestSerialize: serialize_event_store_client_projections_CreateReq, - requestDeserialize: deserialize_event_store_client_projections_CreateReq, - responseSerialize: serialize_event_store_client_projections_CreateResp, - responseDeserialize: deserialize_event_store_client_projections_CreateResp, - }, - update: { - path: '/event_store.client.projections.Projections/Update', - requestStream: false, - responseStream: false, - requestType: projections_pb.UpdateReq, - responseType: projections_pb.UpdateResp, - requestSerialize: serialize_event_store_client_projections_UpdateReq, - requestDeserialize: deserialize_event_store_client_projections_UpdateReq, - responseSerialize: serialize_event_store_client_projections_UpdateResp, - responseDeserialize: deserialize_event_store_client_projections_UpdateResp, - }, - delete: { - path: '/event_store.client.projections.Projections/Delete', - requestStream: false, - responseStream: false, - requestType: projections_pb.DeleteReq, - responseType: projections_pb.DeleteResp, - requestSerialize: serialize_event_store_client_projections_DeleteReq, - requestDeserialize: deserialize_event_store_client_projections_DeleteReq, - responseSerialize: serialize_event_store_client_projections_DeleteResp, - responseDeserialize: deserialize_event_store_client_projections_DeleteResp, - }, - statistics: { - path: '/event_store.client.projections.Projections/Statistics', - requestStream: false, - responseStream: true, - requestType: projections_pb.StatisticsReq, - responseType: projections_pb.StatisticsResp, - requestSerialize: serialize_event_store_client_projections_StatisticsReq, - requestDeserialize: deserialize_event_store_client_projections_StatisticsReq, - responseSerialize: serialize_event_store_client_projections_StatisticsResp, - responseDeserialize: deserialize_event_store_client_projections_StatisticsResp, - }, - disable: { - path: '/event_store.client.projections.Projections/Disable', - requestStream: false, - responseStream: false, - requestType: projections_pb.DisableReq, - responseType: projections_pb.DisableResp, - requestSerialize: serialize_event_store_client_projections_DisableReq, - requestDeserialize: deserialize_event_store_client_projections_DisableReq, - responseSerialize: serialize_event_store_client_projections_DisableResp, - responseDeserialize: deserialize_event_store_client_projections_DisableResp, - }, - enable: { - path: '/event_store.client.projections.Projections/Enable', - requestStream: false, - responseStream: false, - requestType: projections_pb.EnableReq, - responseType: projections_pb.EnableResp, - requestSerialize: serialize_event_store_client_projections_EnableReq, - requestDeserialize: deserialize_event_store_client_projections_EnableReq, - responseSerialize: serialize_event_store_client_projections_EnableResp, - responseDeserialize: deserialize_event_store_client_projections_EnableResp, - }, - reset: { - path: '/event_store.client.projections.Projections/Reset', - requestStream: false, - responseStream: false, - requestType: projections_pb.ResetReq, - responseType: projections_pb.ResetResp, - requestSerialize: serialize_event_store_client_projections_ResetReq, - requestDeserialize: deserialize_event_store_client_projections_ResetReq, - responseSerialize: serialize_event_store_client_projections_ResetResp, - responseDeserialize: deserialize_event_store_client_projections_ResetResp, - }, - state: { - path: '/event_store.client.projections.Projections/State', - requestStream: false, - responseStream: false, - requestType: projections_pb.StateReq, - responseType: projections_pb.StateResp, - requestSerialize: serialize_event_store_client_projections_StateReq, - requestDeserialize: deserialize_event_store_client_projections_StateReq, - responseSerialize: serialize_event_store_client_projections_StateResp, - responseDeserialize: deserialize_event_store_client_projections_StateResp, - }, - result: { - path: '/event_store.client.projections.Projections/Result', - requestStream: false, - responseStream: false, - requestType: projections_pb.ResultReq, - responseType: projections_pb.ResultResp, - requestSerialize: serialize_event_store_client_projections_ResultReq, - requestDeserialize: deserialize_event_store_client_projections_ResultReq, - responseSerialize: serialize_event_store_client_projections_ResultResp, - responseDeserialize: deserialize_event_store_client_projections_ResultResp, - }, - restartSubsystem: { - path: '/event_store.client.projections.Projections/RestartSubsystem', - requestStream: false, - responseStream: false, - requestType: shared_pb.Empty, - responseType: shared_pb.Empty, - requestSerialize: serialize_event_store_client_Empty, - requestDeserialize: deserialize_event_store_client_Empty, - responseSerialize: serialize_event_store_client_Empty, - responseDeserialize: deserialize_event_store_client_Empty, - }, -}; - -exports.ProjectionsClient = grpc.makeGenericClientConstructor(ProjectionsService, 'Projections'); diff --git a/packages/db-client/generated/projections_pb.d.ts b/packages/db-client/generated/projections_pb.d.ts deleted file mode 100644 index 91a575c8..00000000 --- a/packages/db-client/generated/projections_pb.d.ts +++ /dev/null @@ -1,821 +0,0 @@ -// package: event_store.client.projections -// file: projections.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as shared_pb from "./shared_pb"; - -export class CreateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): CreateReq.Options | undefined; - setOptions(value?: CreateReq.Options): CreateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateReq.AsObject; - static toObject(includeInstance: boolean, msg: CreateReq): CreateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateReq; - static deserializeBinaryFromReader(message: CreateReq, reader: jspb.BinaryReader): CreateReq; -} - -export namespace CreateReq { - export type AsObject = { - options?: CreateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasOneTime(): boolean; - clearOneTime(): void; - getOneTime(): shared_pb.Empty | undefined; - setOneTime(value?: shared_pb.Empty): Options; - - hasTransient(): boolean; - clearTransient(): void; - getTransient(): CreateReq.Options.Transient | undefined; - setTransient(value?: CreateReq.Options.Transient): Options; - - hasContinuous(): boolean; - clearContinuous(): void; - getContinuous(): CreateReq.Options.Continuous | undefined; - setContinuous(value?: CreateReq.Options.Continuous): Options; - getQuery(): string; - setQuery(value: string): Options; - - getModeCase(): Options.ModeCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - oneTime?: shared_pb.Empty.AsObject, - pb_transient?: CreateReq.Options.Transient.AsObject, - continuous?: CreateReq.Options.Continuous.AsObject, - query: string, - } - - - export class Transient extends jspb.Message { - getName(): string; - setName(value: string): Transient; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Transient.AsObject; - static toObject(includeInstance: boolean, msg: Transient): Transient.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Transient, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Transient; - static deserializeBinaryFromReader(message: Transient, reader: jspb.BinaryReader): Transient; - } - - export namespace Transient { - export type AsObject = { - name: string, - } - } - - export class Continuous extends jspb.Message { - getName(): string; - setName(value: string): Continuous; - getEmitEnabled(): boolean; - setEmitEnabled(value: boolean): Continuous; - getTrackEmittedStreams(): boolean; - setTrackEmittedStreams(value: boolean): Continuous; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Continuous.AsObject; - static toObject(includeInstance: boolean, msg: Continuous): Continuous.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Continuous, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Continuous; - static deserializeBinaryFromReader(message: Continuous, reader: jspb.BinaryReader): Continuous; - } - - export namespace Continuous { - export type AsObject = { - name: string, - emitEnabled: boolean, - trackEmittedStreams: boolean, - } - } - - - export enum ModeCase { - MODE_NOT_SET = 0, - ONE_TIME = 1, - TRANSIENT = 2, - CONTINUOUS = 3, - } - - } - -} - -export class CreateResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateResp.AsObject; - static toObject(includeInstance: boolean, msg: CreateResp): CreateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateResp; - static deserializeBinaryFromReader(message: CreateResp, reader: jspb.BinaryReader): CreateResp; -} - -export namespace CreateResp { - export type AsObject = { - } -} - -export class UpdateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): UpdateReq.Options | undefined; - setOptions(value?: UpdateReq.Options): UpdateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateReq.AsObject; - static toObject(includeInstance: boolean, msg: UpdateReq): UpdateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateReq; - static deserializeBinaryFromReader(message: UpdateReq, reader: jspb.BinaryReader): UpdateReq; -} - -export namespace UpdateReq { - export type AsObject = { - options?: UpdateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - getQuery(): string; - setQuery(value: string): Options; - - hasEmitEnabled(): boolean; - clearEmitEnabled(): void; - getEmitEnabled(): boolean; - setEmitEnabled(value: boolean): Options; - - hasNoEmitOptions(): boolean; - clearNoEmitOptions(): void; - getNoEmitOptions(): shared_pb.Empty | undefined; - setNoEmitOptions(value?: shared_pb.Empty): Options; - - getEmitOptionCase(): Options.EmitOptionCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - query: string, - emitEnabled: boolean, - noEmitOptions?: shared_pb.Empty.AsObject, - } - - export enum EmitOptionCase { - EMIT_OPTION_NOT_SET = 0, - EMIT_ENABLED = 3, - NO_EMIT_OPTIONS = 4, - } - - } - -} - -export class UpdateResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResp.AsObject; - static toObject(includeInstance: boolean, msg: UpdateResp): UpdateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateResp; - static deserializeBinaryFromReader(message: UpdateResp, reader: jspb.BinaryReader): UpdateResp; -} - -export namespace UpdateResp { - export type AsObject = { - } -} - -export class DeleteReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DeleteReq.Options | undefined; - setOptions(value?: DeleteReq.Options): DeleteReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteReq.AsObject; - static toObject(includeInstance: boolean, msg: DeleteReq): DeleteReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteReq; - static deserializeBinaryFromReader(message: DeleteReq, reader: jspb.BinaryReader): DeleteReq; -} - -export namespace DeleteReq { - export type AsObject = { - options?: DeleteReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - getDeleteEmittedStreams(): boolean; - setDeleteEmittedStreams(value: boolean): Options; - getDeleteStateStream(): boolean; - setDeleteStateStream(value: boolean): Options; - getDeleteCheckpointStream(): boolean; - setDeleteCheckpointStream(value: boolean): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - deleteEmittedStreams: boolean, - deleteStateStream: boolean, - deleteCheckpointStream: boolean, - } - } - -} - -export class DeleteResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResp.AsObject; - static toObject(includeInstance: boolean, msg: DeleteResp): DeleteResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteResp; - static deserializeBinaryFromReader(message: DeleteResp, reader: jspb.BinaryReader): DeleteResp; -} - -export namespace DeleteResp { - export type AsObject = { - } -} - -export class StatisticsReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): StatisticsReq.Options | undefined; - setOptions(value?: StatisticsReq.Options): StatisticsReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatisticsReq.AsObject; - static toObject(includeInstance: boolean, msg: StatisticsReq): StatisticsReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatisticsReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatisticsReq; - static deserializeBinaryFromReader(message: StatisticsReq, reader: jspb.BinaryReader): StatisticsReq; -} - -export namespace StatisticsReq { - export type AsObject = { - options?: StatisticsReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - - hasName(): boolean; - clearName(): void; - getName(): string; - setName(value: string): Options; - - hasAll(): boolean; - clearAll(): void; - getAll(): shared_pb.Empty | undefined; - setAll(value?: shared_pb.Empty): Options; - - hasTransient(): boolean; - clearTransient(): void; - getTransient(): shared_pb.Empty | undefined; - setTransient(value?: shared_pb.Empty): Options; - - hasContinuous(): boolean; - clearContinuous(): void; - getContinuous(): shared_pb.Empty | undefined; - setContinuous(value?: shared_pb.Empty): Options; - - hasOneTime(): boolean; - clearOneTime(): void; - getOneTime(): shared_pb.Empty | undefined; - setOneTime(value?: shared_pb.Empty): Options; - - getModeCase(): Options.ModeCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - all?: shared_pb.Empty.AsObject, - pb_transient?: shared_pb.Empty.AsObject, - continuous?: shared_pb.Empty.AsObject, - oneTime?: shared_pb.Empty.AsObject, - } - - export enum ModeCase { - MODE_NOT_SET = 0, - NAME = 1, - ALL = 2, - TRANSIENT = 3, - CONTINUOUS = 4, - ONE_TIME = 5, - } - - } - -} - -export class StatisticsResp extends jspb.Message { - - hasDetails(): boolean; - clearDetails(): void; - getDetails(): StatisticsResp.Details | undefined; - setDetails(value?: StatisticsResp.Details): StatisticsResp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatisticsResp.AsObject; - static toObject(includeInstance: boolean, msg: StatisticsResp): StatisticsResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatisticsResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatisticsResp; - static deserializeBinaryFromReader(message: StatisticsResp, reader: jspb.BinaryReader): StatisticsResp; -} - -export namespace StatisticsResp { - export type AsObject = { - details?: StatisticsResp.Details.AsObject, - } - - - export class Details extends jspb.Message { - getCoreprocessingtime(): string; - setCoreprocessingtime(value: string): Details; - getVersion(): string; - setVersion(value: string): Details; - getEpoch(): string; - setEpoch(value: string): Details; - getEffectivename(): string; - setEffectivename(value: string): Details; - getWritesinprogress(): number; - setWritesinprogress(value: number): Details; - getReadsinprogress(): number; - setReadsinprogress(value: number): Details; - getPartitionscached(): number; - setPartitionscached(value: number): Details; - getStatus(): string; - setStatus(value: string): Details; - getStatereason(): string; - setStatereason(value: string): Details; - getName(): string; - setName(value: string): Details; - getMode(): string; - setMode(value: string): Details; - getPosition(): string; - setPosition(value: string): Details; - getProgress(): number; - setProgress(value: number): Details; - getLastcheckpoint(): string; - setLastcheckpoint(value: string): Details; - getEventsprocessedafterrestart(): string; - setEventsprocessedafterrestart(value: string): Details; - getCheckpointstatus(): string; - setCheckpointstatus(value: string): Details; - getBufferedevents(): string; - setBufferedevents(value: string): Details; - getWritependingeventsbeforecheckpoint(): number; - setWritependingeventsbeforecheckpoint(value: number): Details; - getWritependingeventsaftercheckpoint(): number; - setWritependingeventsaftercheckpoint(value: number): Details; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Details.AsObject; - static toObject(includeInstance: boolean, msg: Details): Details.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Details, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Details; - static deserializeBinaryFromReader(message: Details, reader: jspb.BinaryReader): Details; - } - - export namespace Details { - export type AsObject = { - coreprocessingtime: string, - version: string, - epoch: string, - effectivename: string, - writesinprogress: number, - readsinprogress: number, - partitionscached: number, - status: string, - statereason: string, - name: string, - mode: string, - position: string, - progress: number, - lastcheckpoint: string, - eventsprocessedafterrestart: string, - checkpointstatus: string, - bufferedevents: string, - writependingeventsbeforecheckpoint: number, - writependingeventsaftercheckpoint: number, - } - } - -} - -export class StateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): StateReq.Options | undefined; - setOptions(value?: StateReq.Options): StateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StateReq.AsObject; - static toObject(includeInstance: boolean, msg: StateReq): StateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StateReq; - static deserializeBinaryFromReader(message: StateReq, reader: jspb.BinaryReader): StateReq; -} - -export namespace StateReq { - export type AsObject = { - options?: StateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - getPartition(): string; - setPartition(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - partition: string, - } - } - -} - -export class StateResp extends jspb.Message { - - hasState(): boolean; - clearState(): void; - getState(): google_protobuf_struct_pb.Value | undefined; - setState(value?: google_protobuf_struct_pb.Value): StateResp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StateResp.AsObject; - static toObject(includeInstance: boolean, msg: StateResp): StateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StateResp; - static deserializeBinaryFromReader(message: StateResp, reader: jspb.BinaryReader): StateResp; -} - -export namespace StateResp { - export type AsObject = { - state?: google_protobuf_struct_pb.Value.AsObject, - } -} - -export class ResultReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ResultReq.Options | undefined; - setOptions(value?: ResultReq.Options): ResultReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResultReq.AsObject; - static toObject(includeInstance: boolean, msg: ResultReq): ResultReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResultReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResultReq; - static deserializeBinaryFromReader(message: ResultReq, reader: jspb.BinaryReader): ResultReq; -} - -export namespace ResultReq { - export type AsObject = { - options?: ResultReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - getPartition(): string; - setPartition(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - partition: string, - } - } - -} - -export class ResultResp extends jspb.Message { - - hasResult(): boolean; - clearResult(): void; - getResult(): google_protobuf_struct_pb.Value | undefined; - setResult(value?: google_protobuf_struct_pb.Value): ResultResp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResultResp.AsObject; - static toObject(includeInstance: boolean, msg: ResultResp): ResultResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResultResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResultResp; - static deserializeBinaryFromReader(message: ResultResp, reader: jspb.BinaryReader): ResultResp; -} - -export namespace ResultResp { - export type AsObject = { - result?: google_protobuf_struct_pb.Value.AsObject, - } -} - -export class ResetReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ResetReq.Options | undefined; - setOptions(value?: ResetReq.Options): ResetReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetReq.AsObject; - static toObject(includeInstance: boolean, msg: ResetReq): ResetReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetReq; - static deserializeBinaryFromReader(message: ResetReq, reader: jspb.BinaryReader): ResetReq; -} - -export namespace ResetReq { - export type AsObject = { - options?: ResetReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - getWriteCheckpoint(): boolean; - setWriteCheckpoint(value: boolean): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - writeCheckpoint: boolean, - } - } - -} - -export class ResetResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetResp.AsObject; - static toObject(includeInstance: boolean, msg: ResetResp): ResetResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetResp; - static deserializeBinaryFromReader(message: ResetResp, reader: jspb.BinaryReader): ResetResp; -} - -export namespace ResetResp { - export type AsObject = { - } -} - -export class EnableReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): EnableReq.Options | undefined; - setOptions(value?: EnableReq.Options): EnableReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnableReq.AsObject; - static toObject(includeInstance: boolean, msg: EnableReq): EnableReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnableReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnableReq; - static deserializeBinaryFromReader(message: EnableReq, reader: jspb.BinaryReader): EnableReq; -} - -export namespace EnableReq { - export type AsObject = { - options?: EnableReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - } - } - -} - -export class EnableResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnableResp.AsObject; - static toObject(includeInstance: boolean, msg: EnableResp): EnableResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnableResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnableResp; - static deserializeBinaryFromReader(message: EnableResp, reader: jspb.BinaryReader): EnableResp; -} - -export namespace EnableResp { - export type AsObject = { - } -} - -export class DisableReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DisableReq.Options | undefined; - setOptions(value?: DisableReq.Options): DisableReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisableReq.AsObject; - static toObject(includeInstance: boolean, msg: DisableReq): DisableReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DisableReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisableReq; - static deserializeBinaryFromReader(message: DisableReq, reader: jspb.BinaryReader): DisableReq; -} - -export namespace DisableReq { - export type AsObject = { - options?: DisableReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getName(): string; - setName(value: string): Options; - getWriteCheckpoint(): boolean; - setWriteCheckpoint(value: boolean): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - name: string, - writeCheckpoint: boolean, - } - } - -} - -export class DisableResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisableResp.AsObject; - static toObject(includeInstance: boolean, msg: DisableResp): DisableResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DisableResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisableResp; - static deserializeBinaryFromReader(message: DisableResp, reader: jspb.BinaryReader): DisableResp; -} - -export namespace DisableResp { - export type AsObject = { - } -} diff --git a/packages/db-client/generated/projections_pb.js b/packages/db-client/generated/projections_pb.js deleted file mode 100644 index d8cf0b11..00000000 --- a/packages/db-client/generated/projections_pb.js +++ /dev/null @@ -1,6065 +0,0 @@ -// 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_, 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>} - * @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_, 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_, 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_, 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_store.client.projections.CreateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.CreateReq.Options} returns this - */ -proto.event_store.client.projections.CreateReq.Options.prototype.clearOneTime = function() { - return this.setOneTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.CreateReq.Options.prototype.hasOneTime = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Transient transient = 2; - * @return {?proto.event_store.client.projections.CreateReq.Options.Transient} - */ -proto.event_store.client.projections.CreateReq.Options.prototype.getTransient = function() { - return /** @type{?proto.event_store.client.projections.CreateReq.Options.Transient} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.CreateReq.Options.Transient, 2)); -}; - - -/** - * @param {?proto.event_store.client.projections.CreateReq.Options.Transient|undefined} value - * @return {!proto.event_store.client.projections.CreateReq.Options} returns this -*/ -proto.event_store.client.projections.CreateReq.Options.prototype.setTransient = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.projections.CreateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.CreateReq.Options} returns this - */ -proto.event_store.client.projections.CreateReq.Options.prototype.clearTransient = function() { - return this.setTransient(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.CreateReq.Options.prototype.hasTransient = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Continuous continuous = 3; - * @return {?proto.event_store.client.projections.CreateReq.Options.Continuous} - */ -proto.event_store.client.projections.CreateReq.Options.prototype.getContinuous = function() { - return /** @type{?proto.event_store.client.projections.CreateReq.Options.Continuous} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.CreateReq.Options.Continuous, 3)); -}; - - -/** - * @param {?proto.event_store.client.projections.CreateReq.Options.Continuous|undefined} value - * @return {!proto.event_store.client.projections.CreateReq.Options} returns this -*/ -proto.event_store.client.projections.CreateReq.Options.prototype.setContinuous = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.projections.CreateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.CreateReq.Options} returns this - */ -proto.event_store.client.projections.CreateReq.Options.prototype.clearContinuous = function() { - return this.setContinuous(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.CreateReq.Options.prototype.hasContinuous = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string query = 4; - * @return {string} - */ -proto.event_store.client.projections.CreateReq.Options.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.CreateReq.Options} returns this - */ -proto.event_store.client.projections.CreateReq.Options.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.CreateReq.Options} - */ -proto.event_store.client.projections.CreateReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.CreateReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.CreateReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.CreateReq.Options|undefined} value - * @return {!proto.event_store.client.projections.CreateReq} returns this -*/ -proto.event_store.client.projections.CreateReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.CreateReq} returns this - */ -proto.event_store.client.projections.CreateReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.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_, 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.CreateResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.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.projections.CreateResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.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.projections.CreateResp} - */ -proto.event_store.client.projections.CreateResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.CreateResp; - return proto.event_store.client.projections.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.projections.CreateResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.CreateResp} - */ -proto.event_store.client.projections.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.projections.CreateResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.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.projections.CreateResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.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_, 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.UpdateReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.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.projections.UpdateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.UpdateReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.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.projections.UpdateReq} - */ -proto.event_store.client.projections.UpdateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.UpdateReq; - return proto.event_store.client.projections.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.projections.UpdateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.UpdateReq} - */ -proto.event_store.client.projections.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.projections.UpdateReq.Options; - reader.readMessage(value,proto.event_store.client.projections.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.projections.UpdateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.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.projections.UpdateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.UpdateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.UpdateReq.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>} - * @const - */ -proto.event_store.client.projections.UpdateReq.Options.oneofGroups_ = [[3,4]]; - -/** - * @enum {number} - */ -proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase = { - EMIT_OPTION_NOT_SET: 0, - EMIT_ENABLED: 3, - NO_EMIT_OPTIONS: 4 -}; - -/** - * @return {proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.getEmitOptionCase = function() { - return /** @type {proto.event_store.client.projections.UpdateReq.Options.EmitOptionCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.projections.UpdateReq.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_, 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.UpdateReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.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.projections.UpdateReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.UpdateReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - query: jspb.Message.getFieldWithDefault(msg, 2, ""), - emitEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - noEmitOptions: (f = msg.getNoEmitOptions()) && shared_pb.Empty.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.UpdateReq.Options} - */ -proto.event_store.client.projections.UpdateReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.UpdateReq.Options; - return proto.event_store.client.projections.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.projections.UpdateReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.UpdateReq.Options} - */ -proto.event_store.client.projections.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.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEmitEnabled(value); - break; - case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setNoEmitOptions(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.UpdateReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.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.projections.UpdateReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.UpdateReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBool( - 3, - f - ); - } - f = message.getNoEmitOptions(); - if (f != null) { - writer.writeMessage( - 4, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string query = 2; - * @return {string} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool emit_enabled = 3; - * @return {boolean} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.getEmitEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.setEmitEnabled = function(value) { - return jspb.Message.setOneofField(this, 3, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.clearEmitEnabled = function() { - return jspb.Message.setOneofField(this, 3, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.hasEmitEnabled = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional event_store.client.Empty no_emit_options = 4; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.getNoEmitOptions = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this -*/ -proto.event_store.client.projections.UpdateReq.Options.prototype.setNoEmitOptions = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.projections.UpdateReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.UpdateReq.Options} returns this - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.clearNoEmitOptions = function() { - return this.setNoEmitOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.UpdateReq.Options.prototype.hasNoEmitOptions = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.UpdateReq.Options} - */ -proto.event_store.client.projections.UpdateReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.UpdateReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.UpdateReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.UpdateReq.Options|undefined} value - * @return {!proto.event_store.client.projections.UpdateReq} returns this -*/ -proto.event_store.client.projections.UpdateReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.UpdateReq} returns this - */ -proto.event_store.client.projections.UpdateReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.UpdateReq.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_, 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.UpdateResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.UpdateResp.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.UpdateResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.UpdateResp.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.projections.UpdateResp} - */ -proto.event_store.client.projections.UpdateResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.UpdateResp; - return proto.event_store.client.projections.UpdateResp.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.UpdateResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.UpdateResp} - */ -proto.event_store.client.projections.UpdateResp.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.projections.UpdateResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.UpdateResp.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.UpdateResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.UpdateResp.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_, 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.DeleteReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.DeleteReq.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.DeleteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DeleteReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.DeleteReq.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.DeleteReq} - */ -proto.event_store.client.projections.DeleteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.DeleteReq; - return proto.event_store.client.projections.DeleteReq.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.DeleteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.DeleteReq} - */ -proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options; - reader.readMessage(value,proto.event_store.client.projections.DeleteReq.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.DeleteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.DeleteReq.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.DeleteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DeleteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.DeleteReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DeleteReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - deleteEmittedStreams: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - deleteStateStream: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - deleteCheckpointStream: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.DeleteReq.Options} - */ -proto.event_store.client.projections.DeleteReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.DeleteReq.Options; - return proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.DeleteReq.Options} - */ -proto.event_store.client.projections.DeleteReq.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.setName(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeleteEmittedStreams(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeleteStateStream(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeleteCheckpointStream(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.DeleteReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.DeleteReq.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.DeleteReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDeleteEmittedStreams(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getDeleteStateStream(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getDeleteCheckpointStream(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool delete_emitted_streams = 2; - * @return {boolean} - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.getDeleteEmittedStreams = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.setDeleteEmittedStreams = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool delete_state_stream = 3; - * @return {boolean} - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.getDeleteStateStream = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.setDeleteStateStream = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool delete_checkpoint_stream = 4; - * @return {boolean} - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.getDeleteCheckpointStream = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.projections.DeleteReq.Options} returns this - */ -proto.event_store.client.projections.DeleteReq.Options.prototype.setDeleteCheckpointStream = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.DeleteReq.Options} - */ -proto.event_store.client.projections.DeleteReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.DeleteReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.DeleteReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.DeleteReq.Options|undefined} value - * @return {!proto.event_store.client.projections.DeleteReq} returns this -*/ -proto.event_store.client.projections.DeleteReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.DeleteReq} returns this - */ -proto.event_store.client.projections.DeleteReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.DeleteReq.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_, 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.DeleteResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.DeleteResp.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.DeleteResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DeleteResp.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.projections.DeleteResp} - */ -proto.event_store.client.projections.DeleteResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.DeleteResp; - return proto.event_store.client.projections.DeleteResp.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.DeleteResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.DeleteResp} - */ -proto.event_store.client.projections.DeleteResp.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.projections.DeleteResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.DeleteResp.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.DeleteResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DeleteResp.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_, 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.StatisticsReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} - */ -proto.event_store.client.projections.StatisticsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StatisticsReq; - return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StatisticsReq} - */ -proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options; - reader.readMessage(value,proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StatisticsReq.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.StatisticsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.StatisticsReq.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>} - * @const - */ -proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_ = [[1,2,3,4,5]]; - -/** - * @enum {number} - */ -proto.event_store.client.projections.StatisticsReq.Options.ModeCase = { - MODE_NOT_SET: 0, - NAME: 1, - ALL: 2, - TRANSIENT: 3, - CONTINUOUS: 4, - ONE_TIME: 5 -}; - -/** - * @return {proto.event_store.client.projections.StatisticsReq.Options.ModeCase} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.getModeCase = function() { - return /** @type {proto.event_store.client.projections.StatisticsReq.Options.ModeCase} */(jspb.Message.computeOneofCase(this, proto.event_store.client.projections.StatisticsReq.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_, 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.StatisticsReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - all: (f = msg.getAll()) && shared_pb.Empty.toObject(includeInstance, f), - pb_transient: (f = msg.getTransient()) && shared_pb.Empty.toObject(includeInstance, f), - continuous: (f = msg.getContinuous()) && shared_pb.Empty.toObject(includeInstance, f), - oneTime: (f = msg.getOneTime()) && shared_pb.Empty.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.StatisticsReq.Options} - */ -proto.event_store.client.projections.StatisticsReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StatisticsReq.Options; - return proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StatisticsReq.Options} - */ -proto.event_store.client.projections.StatisticsReq.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.setName(value); - break; - case 2: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setAll(value); - break; - case 3: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setTransient(value); - break; - case 4: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setContinuous(value); - break; - case 5: - var value = new shared_pb.Empty; - reader.readMessage(value,shared_pb.Empty.deserializeBinaryFromReader); - msg.setOneTime(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.StatisticsReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StatisticsReq.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.StatisticsReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getAll(); - if (f != null) { - writer.writeMessage( - 2, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getTransient(); - if (f != null) { - writer.writeMessage( - 3, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getContinuous(); - if (f != null) { - writer.writeMessage( - 4, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } - f = message.getOneTime(); - if (f != null) { - writer.writeMessage( - 5, - f, - shared_pb.Empty.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.setName = function(value) { - return jspb.Message.setOneofField(this, 1, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.clearName = function() { - return jspb.Message.setOneofField(this, 1, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional event_store.client.Empty all = 2; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.getAll = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 2)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this -*/ -proto.event_store.client.projections.StatisticsReq.Options.prototype.setAll = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.clearAll = function() { - return this.setAll(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.hasAll = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional event_store.client.Empty transient = 3; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.getTransient = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 3)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this -*/ -proto.event_store.client.projections.StatisticsReq.Options.prototype.setTransient = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.clearTransient = function() { - return this.setTransient(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.hasTransient = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional event_store.client.Empty continuous = 4; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.getContinuous = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 4)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this -*/ -proto.event_store.client.projections.StatisticsReq.Options.prototype.setContinuous = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.clearContinuous = function() { - return this.setContinuous(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.hasContinuous = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional event_store.client.Empty one_time = 5; - * @return {?proto.event_store.client.Empty} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.getOneTime = function() { - return /** @type{?proto.event_store.client.Empty} */ ( - jspb.Message.getWrapperField(this, shared_pb.Empty, 5)); -}; - - -/** - * @param {?proto.event_store.client.Empty|undefined} value - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this -*/ -proto.event_store.client.projections.StatisticsReq.Options.prototype.setOneTime = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.event_store.client.projections.StatisticsReq.Options.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsReq.Options} returns this - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.clearOneTime = function() { - return this.setOneTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsReq.Options.prototype.hasOneTime = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.StatisticsReq.Options} - */ -proto.event_store.client.projections.StatisticsReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.StatisticsReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.StatisticsReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.StatisticsReq.Options|undefined} value - * @return {!proto.event_store.client.projections.StatisticsReq} returns this -*/ -proto.event_store.client.projections.StatisticsReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsReq} returns this - */ -proto.event_store.client.projections.StatisticsReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsReq.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_, 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.StatisticsResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StatisticsResp.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.StatisticsResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsResp.toObject = function(includeInstance, msg) { - var f, obj = { - details: (f = msg.getDetails()) && proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp} - */ -proto.event_store.client.projections.StatisticsResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StatisticsResp; - return proto.event_store.client.projections.StatisticsResp.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.StatisticsResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StatisticsResp} - */ -proto.event_store.client.projections.StatisticsResp.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.StatisticsResp.Details; - reader.readMessage(value,proto.event_store.client.projections.StatisticsResp.Details.deserializeBinaryFromReader); - msg.setDetails(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.StatisticsResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StatisticsResp.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.StatisticsResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDetails(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.StatisticsResp.Details.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.StatisticsResp.Details.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp.Details} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsResp.Details.toObject = function(includeInstance, msg) { - var f, obj = { - coreprocessingtime: jspb.Message.getFieldWithDefault(msg, 1, "0"), - version: jspb.Message.getFieldWithDefault(msg, 2, "0"), - epoch: jspb.Message.getFieldWithDefault(msg, 3, "0"), - effectivename: jspb.Message.getFieldWithDefault(msg, 4, ""), - writesinprogress: jspb.Message.getFieldWithDefault(msg, 5, 0), - readsinprogress: jspb.Message.getFieldWithDefault(msg, 6, 0), - partitionscached: jspb.Message.getFieldWithDefault(msg, 7, 0), - status: jspb.Message.getFieldWithDefault(msg, 8, ""), - statereason: jspb.Message.getFieldWithDefault(msg, 9, ""), - name: jspb.Message.getFieldWithDefault(msg, 10, ""), - mode: jspb.Message.getFieldWithDefault(msg, 11, ""), - position: jspb.Message.getFieldWithDefault(msg, 12, ""), - progress: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0), - lastcheckpoint: jspb.Message.getFieldWithDefault(msg, 14, ""), - eventsprocessedafterrestart: jspb.Message.getFieldWithDefault(msg, 15, "0"), - checkpointstatus: jspb.Message.getFieldWithDefault(msg, 16, ""), - bufferedevents: jspb.Message.getFieldWithDefault(msg, 17, "0"), - writependingeventsbeforecheckpoint: jspb.Message.getFieldWithDefault(msg, 18, 0), - writependingeventsaftercheckpoint: jspb.Message.getFieldWithDefault(msg, 19, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.projections.StatisticsResp.Details} - */ -proto.event_store.client.projections.StatisticsResp.Details.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StatisticsResp.Details; - return proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp.Details} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StatisticsResp.Details} - */ -proto.event_store.client.projections.StatisticsResp.Details.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setCoreprocessingtime(value); - break; - case 2: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setVersion(value); - break; - case 3: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setEpoch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEffectivename(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setWritesinprogress(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReadsinprogress(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPartitionscached(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setStatus(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setStatereason(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setMode(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPosition(value); - break; - case 13: - var value = /** @type {number} */ (reader.readFloat()); - msg.setProgress(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setLastcheckpoint(value); - break; - case 15: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setEventsprocessedafterrestart(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setCheckpointstatus(value); - break; - case 17: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setBufferedevents(value); - break; - case 18: - var value = /** @type {number} */ (reader.readInt32()); - msg.setWritependingeventsbeforecheckpoint(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt32()); - msg.setWritependingeventsaftercheckpoint(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.StatisticsResp.Details.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StatisticsResp.Details.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.StatisticsResp.Details} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StatisticsResp.Details.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCoreprocessingtime(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 1, - f - ); - } - f = message.getVersion(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 2, - f - ); - } - f = message.getEpoch(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 3, - f - ); - } - f = message.getEffectivename(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getWritesinprogress(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getReadsinprogress(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getPartitionscached(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getStatus(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getStatereason(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getMode(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getPosition(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getProgress(); - if (f !== 0.0) { - writer.writeFloat( - 13, - f - ); - } - f = message.getLastcheckpoint(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getEventsprocessedafterrestart(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 15, - f - ); - } - f = message.getCheckpointstatus(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getBufferedevents(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 17, - f - ); - } - f = message.getWritependingeventsbeforecheckpoint(); - if (f !== 0) { - writer.writeInt32( - 18, - f - ); - } - f = message.getWritependingeventsaftercheckpoint(); - if (f !== 0) { - writer.writeInt32( - 19, - f - ); - } -}; - - -/** - * optional int64 coreProcessingTime = 1; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getCoreprocessingtime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setCoreprocessingtime = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional int64 version = 2; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional int64 epoch = 3; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getEpoch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setEpoch = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional string effectiveName = 4; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getEffectivename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setEffectivename = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int32 writesInProgress = 5; - * @return {number} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getWritesinprogress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setWritesinprogress = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int32 readsInProgress = 6; - * @return {number} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getReadsinprogress = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setReadsinprogress = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional int32 partitionsCached = 7; - * @return {number} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getPartitionscached = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setPartitionscached = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional string status = 8; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getStatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setStatus = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string stateReason = 9; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getStatereason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setStatereason = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string name = 10; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string mode = 11; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getMode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setMode = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string position = 12; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getPosition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setPosition = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional float progress = 13; - * @return {number} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getProgress = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setProgress = function(value) { - return jspb.Message.setProto3FloatField(this, 13, value); -}; - - -/** - * optional string lastCheckpoint = 14; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getLastcheckpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setLastcheckpoint = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional int64 eventsProcessedAfterRestart = 15; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getEventsprocessedafterrestart = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setEventsprocessedafterrestart = function(value) { - return jspb.Message.setProto3StringIntField(this, 15, value); -}; - - -/** - * optional string checkpointStatus = 16; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getCheckpointstatus = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setCheckpointstatus = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional int64 bufferedEvents = 17; - * @return {string} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getBufferedevents = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setBufferedevents = function(value) { - return jspb.Message.setProto3StringIntField(this, 17, value); -}; - - -/** - * optional int32 writePendingEventsBeforeCheckpoint = 18; - * @return {number} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getWritependingeventsbeforecheckpoint = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setWritependingeventsbeforecheckpoint = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional int32 writePendingEventsAfterCheckpoint = 19; - * @return {number} - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.getWritependingeventsaftercheckpoint = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.event_store.client.projections.StatisticsResp.Details} returns this - */ -proto.event_store.client.projections.StatisticsResp.Details.prototype.setWritependingeventsaftercheckpoint = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional Details details = 1; - * @return {?proto.event_store.client.projections.StatisticsResp.Details} - */ -proto.event_store.client.projections.StatisticsResp.prototype.getDetails = function() { - return /** @type{?proto.event_store.client.projections.StatisticsResp.Details} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.StatisticsResp.Details, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.StatisticsResp.Details|undefined} value - * @return {!proto.event_store.client.projections.StatisticsResp} returns this -*/ -proto.event_store.client.projections.StatisticsResp.prototype.setDetails = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StatisticsResp} returns this - */ -proto.event_store.client.projections.StatisticsResp.prototype.clearDetails = function() { - return this.setDetails(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StatisticsResp.prototype.hasDetails = 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_, 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.StateReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StateReq.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.StateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StateReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.StateReq.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.StateReq} - */ -proto.event_store.client.projections.StateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StateReq; - return proto.event_store.client.projections.StateReq.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.StateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StateReq} - */ -proto.event_store.client.projections.StateReq.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.StateReq.Options; - reader.readMessage(value,proto.event_store.client.projections.StateReq.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.StateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StateReq.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.StateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.StateReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.StateReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StateReq.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.StateReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StateReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - partition: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - 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.StateReq.Options} - */ -proto.event_store.client.projections.StateReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StateReq.Options; - return proto.event_store.client.projections.StateReq.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.StateReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StateReq.Options} - */ -proto.event_store.client.projections.StateReq.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.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPartition(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.StateReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StateReq.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.StateReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StateReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPartition(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.StateReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StateReq.Options} returns this - */ -proto.event_store.client.projections.StateReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string partition = 2; - * @return {string} - */ -proto.event_store.client.projections.StateReq.Options.prototype.getPartition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.StateReq.Options} returns this - */ -proto.event_store.client.projections.StateReq.Options.prototype.setPartition = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.StateReq.Options} - */ -proto.event_store.client.projections.StateReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.StateReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.StateReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.StateReq.Options|undefined} value - * @return {!proto.event_store.client.projections.StateReq} returns this -*/ -proto.event_store.client.projections.StateReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StateReq} returns this - */ -proto.event_store.client.projections.StateReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StateReq.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_, 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.StateResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.StateResp.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.StateResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StateResp.toObject = function(includeInstance, msg) { - var f, obj = { - state: (f = msg.getState()) && google_protobuf_struct_pb.Value.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.StateResp} - */ -proto.event_store.client.projections.StateResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.StateResp; - return proto.event_store.client.projections.StateResp.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.StateResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.StateResp} - */ -proto.event_store.client.projections.StateResp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_struct_pb.Value; - reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); - msg.setState(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.StateResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.StateResp.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.StateResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.StateResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getState(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_struct_pb.Value.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Value state = 1; - * @return {?proto.google.protobuf.Value} - */ -proto.event_store.client.projections.StateResp.prototype.getState = function() { - return /** @type{?proto.google.protobuf.Value} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Value|undefined} value - * @return {!proto.event_store.client.projections.StateResp} returns this -*/ -proto.event_store.client.projections.StateResp.prototype.setState = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.StateResp} returns this - */ -proto.event_store.client.projections.StateResp.prototype.clearState = function() { - return this.setState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.StateResp.prototype.hasState = 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_, 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.ResultReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.ResultReq.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.ResultReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResultReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.ResultReq.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.ResultReq} - */ -proto.event_store.client.projections.ResultReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.ResultReq; - return proto.event_store.client.projections.ResultReq.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.ResultReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.ResultReq} - */ -proto.event_store.client.projections.ResultReq.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.ResultReq.Options; - reader.readMessage(value,proto.event_store.client.projections.ResultReq.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.ResultReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.ResultReq.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.ResultReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResultReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.ResultReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.ResultReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.ResultReq.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.ResultReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResultReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - partition: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - 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.ResultReq.Options} - */ -proto.event_store.client.projections.ResultReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.ResultReq.Options; - return proto.event_store.client.projections.ResultReq.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.ResultReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.ResultReq.Options} - */ -proto.event_store.client.projections.ResultReq.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.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPartition(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.ResultReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.ResultReq.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.ResultReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResultReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPartition(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.ResultReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.ResultReq.Options} returns this - */ -proto.event_store.client.projections.ResultReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string partition = 2; - * @return {string} - */ -proto.event_store.client.projections.ResultReq.Options.prototype.getPartition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.ResultReq.Options} returns this - */ -proto.event_store.client.projections.ResultReq.Options.prototype.setPartition = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.ResultReq.Options} - */ -proto.event_store.client.projections.ResultReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.ResultReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.ResultReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.ResultReq.Options|undefined} value - * @return {!proto.event_store.client.projections.ResultReq} returns this -*/ -proto.event_store.client.projections.ResultReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.ResultReq} returns this - */ -proto.event_store.client.projections.ResultReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.ResultReq.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_, 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.ResultResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.ResultResp.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.ResultResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResultResp.toObject = function(includeInstance, msg) { - var f, obj = { - result: (f = msg.getResult()) && google_protobuf_struct_pb.Value.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.ResultResp} - */ -proto.event_store.client.projections.ResultResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.ResultResp; - return proto.event_store.client.projections.ResultResp.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.ResultResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.ResultResp} - */ -proto.event_store.client.projections.ResultResp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_struct_pb.Value; - reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); - msg.setResult(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.ResultResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.ResultResp.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.ResultResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResultResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_struct_pb.Value.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Value result = 1; - * @return {?proto.google.protobuf.Value} - */ -proto.event_store.client.projections.ResultResp.prototype.getResult = function() { - return /** @type{?proto.google.protobuf.Value} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Value|undefined} value - * @return {!proto.event_store.client.projections.ResultResp} returns this -*/ -proto.event_store.client.projections.ResultResp.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.ResultResp} returns this - */ -proto.event_store.client.projections.ResultResp.prototype.clearResult = function() { - return this.setResult(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.ResultResp.prototype.hasResult = 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_, 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.ResetReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.ResetReq.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.ResetReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResetReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.ResetReq.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.ResetReq} - */ -proto.event_store.client.projections.ResetReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.ResetReq; - return proto.event_store.client.projections.ResetReq.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.ResetReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.ResetReq} - */ -proto.event_store.client.projections.ResetReq.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.ResetReq.Options; - reader.readMessage(value,proto.event_store.client.projections.ResetReq.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.ResetReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.ResetReq.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.ResetReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResetReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.ResetReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.ResetReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.ResetReq.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.ResetReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResetReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - writeCheckpoint: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.ResetReq.Options} - */ -proto.event_store.client.projections.ResetReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.ResetReq.Options; - return proto.event_store.client.projections.ResetReq.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.ResetReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.ResetReq.Options} - */ -proto.event_store.client.projections.ResetReq.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.setName(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWriteCheckpoint(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.ResetReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.ResetReq.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.ResetReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResetReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getWriteCheckpoint(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.ResetReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.ResetReq.Options} returns this - */ -proto.event_store.client.projections.ResetReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool write_checkpoint = 2; - * @return {boolean} - */ -proto.event_store.client.projections.ResetReq.Options.prototype.getWriteCheckpoint = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.projections.ResetReq.Options} returns this - */ -proto.event_store.client.projections.ResetReq.Options.prototype.setWriteCheckpoint = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.ResetReq.Options} - */ -proto.event_store.client.projections.ResetReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.ResetReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.ResetReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.ResetReq.Options|undefined} value - * @return {!proto.event_store.client.projections.ResetReq} returns this -*/ -proto.event_store.client.projections.ResetReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.ResetReq} returns this - */ -proto.event_store.client.projections.ResetReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.ResetReq.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_, 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.ResetResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.ResetResp.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.ResetResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResetResp.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.projections.ResetResp} - */ -proto.event_store.client.projections.ResetResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.ResetResp; - return proto.event_store.client.projections.ResetResp.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.ResetResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.ResetResp} - */ -proto.event_store.client.projections.ResetResp.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.projections.ResetResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.ResetResp.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.ResetResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.ResetResp.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_, 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.EnableReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.EnableReq.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.EnableReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.EnableReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.EnableReq.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.EnableReq} - */ -proto.event_store.client.projections.EnableReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.EnableReq; - return proto.event_store.client.projections.EnableReq.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.EnableReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.EnableReq} - */ -proto.event_store.client.projections.EnableReq.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.EnableReq.Options; - reader.readMessage(value,proto.event_store.client.projections.EnableReq.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.EnableReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.EnableReq.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.EnableReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.EnableReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.EnableReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.EnableReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.EnableReq.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.EnableReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.EnableReq.Options.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.EnableReq.Options} - */ -proto.event_store.client.projections.EnableReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.EnableReq.Options; - return proto.event_store.client.projections.EnableReq.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.EnableReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.EnableReq.Options} - */ -proto.event_store.client.projections.EnableReq.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.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.EnableReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.EnableReq.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.EnableReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.EnableReq.Options.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.EnableReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.EnableReq.Options} returns this - */ -proto.event_store.client.projections.EnableReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.EnableReq.Options} - */ -proto.event_store.client.projections.EnableReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.EnableReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.EnableReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.EnableReq.Options|undefined} value - * @return {!proto.event_store.client.projections.EnableReq} returns this -*/ -proto.event_store.client.projections.EnableReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.EnableReq} returns this - */ -proto.event_store.client.projections.EnableReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.EnableReq.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_, 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.EnableResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.EnableResp.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.EnableResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.EnableResp.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.projections.EnableResp} - */ -proto.event_store.client.projections.EnableResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.EnableResp; - return proto.event_store.client.projections.EnableResp.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.EnableResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.EnableResp} - */ -proto.event_store.client.projections.EnableResp.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.projections.EnableResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.EnableResp.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.EnableResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.EnableResp.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_, 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.DisableReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.DisableReq.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.DisableReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DisableReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.projections.DisableReq.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.DisableReq} - */ -proto.event_store.client.projections.DisableReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.DisableReq; - return proto.event_store.client.projections.DisableReq.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.DisableReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.DisableReq} - */ -proto.event_store.client.projections.DisableReq.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.DisableReq.Options; - reader.readMessage(value,proto.event_store.client.projections.DisableReq.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.DisableReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.DisableReq.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.DisableReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DisableReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.projections.DisableReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.DisableReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.DisableReq.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.DisableReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DisableReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - writeCheckpoint: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.DisableReq.Options} - */ -proto.event_store.client.projections.DisableReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.DisableReq.Options; - return proto.event_store.client.projections.DisableReq.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.DisableReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.DisableReq.Options} - */ -proto.event_store.client.projections.DisableReq.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.setName(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWriteCheckpoint(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.DisableReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.DisableReq.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.DisableReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DisableReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getWriteCheckpoint(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.event_store.client.projections.DisableReq.Options.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.projections.DisableReq.Options} returns this - */ -proto.event_store.client.projections.DisableReq.Options.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool write_checkpoint = 2; - * @return {boolean} - */ -proto.event_store.client.projections.DisableReq.Options.prototype.getWriteCheckpoint = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.projections.DisableReq.Options} returns this - */ -proto.event_store.client.projections.DisableReq.Options.prototype.setWriteCheckpoint = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.projections.DisableReq.Options} - */ -proto.event_store.client.projections.DisableReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.projections.DisableReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.projections.DisableReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.projections.DisableReq.Options|undefined} value - * @return {!proto.event_store.client.projections.DisableReq} returns this -*/ -proto.event_store.client.projections.DisableReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.projections.DisableReq} returns this - */ -proto.event_store.client.projections.DisableReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.projections.DisableReq.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_, 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.DisableResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.projections.DisableResp.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.DisableResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DisableResp.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.projections.DisableResp} - */ -proto.event_store.client.projections.DisableResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.projections.DisableResp; - return proto.event_store.client.projections.DisableResp.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.DisableResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.projections.DisableResp} - */ -proto.event_store.client.projections.DisableResp.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.projections.DisableResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.projections.DisableResp.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.DisableResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.projections.DisableResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.event_store.client.projections); diff --git a/packages/db-client/generated/serverfeatures_grpc_pb.d.ts b/packages/db-client/generated/serverfeatures_grpc_pb.d.ts deleted file mode 100644 index a253db53..00000000 --- a/packages/db-client/generated/serverfeatures_grpc_pb.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// package: event_store.client.server_features -// file: serverfeatures.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as serverfeatures_pb from "./serverfeatures_pb"; -import * as shared_pb from "./shared_pb"; - -interface IServerFeaturesService extends grpc.ServiceDefinition { - getSupportedMethods: IServerFeaturesService_IGetSupportedMethods; -} - -interface IServerFeaturesService_IGetSupportedMethods extends grpc.MethodDefinition { - path: "/event_store.client.server_features.ServerFeatures/GetSupportedMethods"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const ServerFeaturesService: IServerFeaturesService; - -export interface IServerFeaturesServer extends grpc.UntypedServiceImplementation { - getSupportedMethods: grpc.handleUnaryCall; -} - -export interface IServerFeaturesClient { - getSupportedMethods(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; - getSupportedMethods(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; - getSupportedMethods(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; -} - -export class ServerFeaturesClient extends grpc.Client implements IServerFeaturesClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public getSupportedMethods(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; - public getSupportedMethods(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; - public getSupportedMethods(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: serverfeatures_pb.SupportedMethods) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/streams.v2_grpc_pb.d.ts b/packages/db-client/generated/streams.v2_grpc_pb.d.ts deleted file mode 100644 index bf5abb77..00000000 --- a/packages/db-client/generated/streams.v2_grpc_pb.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -// package: kurrentdb.protocol.v2 -// file: streams.v2.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as streams_v2_pb from "./streams.v2_pb"; -import * as dynamic_value_pb from "./dynamic-value_pb"; - -interface IStreamsServiceService extends grpc.ServiceDefinition { - multiStreamAppend: IStreamsServiceService_IMultiStreamAppend; - multiStreamAppendSession: IStreamsServiceService_IMultiStreamAppendSession; -} - -interface IStreamsServiceService_IMultiStreamAppend extends grpc.MethodDefinition { - path: "/kurrentdb.protocol.v2.StreamsService/MultiStreamAppend"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IStreamsServiceService_IMultiStreamAppendSession extends grpc.MethodDefinition { - path: "/kurrentdb.protocol.v2.StreamsService/MultiStreamAppendSession"; - requestStream: true; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const StreamsServiceService: IStreamsServiceService; - -export interface IStreamsServiceServer extends grpc.UntypedServiceImplementation { - multiStreamAppend: grpc.handleUnaryCall; - multiStreamAppendSession: grpc.handleClientStreamingCall; -} - -export interface IStreamsServiceClient { - multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; - multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; - multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; - multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; - multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; - multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; - multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; -} - -export class StreamsServiceClient extends grpc.Client implements IStreamsServiceClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; - public multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; - public multiStreamAppend(request: streams_v2_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; - public multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; - public multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; - public multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; - public multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_v2_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; -} diff --git a/packages/db-client/generated/streams.v2_grpc_pb.js b/packages/db-client/generated/streams.v2_grpc_pb.js deleted file mode 100644 index 56a86656..00000000 --- a/packages/db-client/generated/streams.v2_grpc_pb.js +++ /dev/null @@ -1,76 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var streams_v2_pb = require('./streams.v2_pb.js'); -var dynamic$value_pb = require('./dynamic-value_pb.js'); - -function serialize_kurrentdb_protocol_v2_AppendStreamRequest(arg) { - if (!(arg instanceof streams_v2_pb.AppendStreamRequest)) { - throw new Error('Expected argument of type kurrentdb.protocol.v2.AppendStreamRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_kurrentdb_protocol_v2_AppendStreamRequest(buffer_arg) { - return streams_v2_pb.AppendStreamRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_kurrentdb_protocol_v2_MultiStreamAppendRequest(arg) { - if (!(arg instanceof streams_v2_pb.MultiStreamAppendRequest)) { - throw new Error('Expected argument of type kurrentdb.protocol.v2.MultiStreamAppendRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_kurrentdb_protocol_v2_MultiStreamAppendRequest(buffer_arg) { - return streams_v2_pb.MultiStreamAppendRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse(arg) { - if (!(arg instanceof streams_v2_pb.MultiStreamAppendResponse)) { - throw new Error('Expected argument of type kurrentdb.protocol.v2.MultiStreamAppendResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse(buffer_arg) { - return streams_v2_pb.MultiStreamAppendResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var StreamsServiceService = exports.StreamsServiceService = { - // Executes an atomic operation to append records to multiple streams. -// This transactional method ensures that all appends either succeed -// completely, or are entirely rolled back, thereby maintaining strict data -// consistency across all involved streams. -multiStreamAppend: { - path: '/kurrentdb.protocol.v2.StreamsService/MultiStreamAppend', - requestStream: false, - responseStream: false, - requestType: streams_v2_pb.MultiStreamAppendRequest, - responseType: streams_v2_pb.MultiStreamAppendResponse, - requestSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendRequest, - requestDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendRequest, - responseSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, - responseDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, - }, - // Streaming version of MultiStreamAppend that allows clients to send multiple -// append requests over a single connection. When the stream completes, all -// records are appended transactionally (all succeed or fail together). -// Provides improved efficiency for high-throughput scenarios while -// maintaining the same transactional guarantees. -multiStreamAppendSession: { - path: '/kurrentdb.protocol.v2.StreamsService/MultiStreamAppendSession', - requestStream: true, - responseStream: false, - requestType: streams_v2_pb.AppendStreamRequest, - responseType: streams_v2_pb.MultiStreamAppendResponse, - requestSerialize: serialize_kurrentdb_protocol_v2_AppendStreamRequest, - requestDeserialize: deserialize_kurrentdb_protocol_v2_AppendStreamRequest, - responseSerialize: serialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, - responseDeserialize: deserialize_kurrentdb_protocol_v2_MultiStreamAppendResponse, - }, -}; - -exports.StreamsServiceClient = grpc.makeGenericClientConstructor(StreamsServiceService, 'StreamsService'); diff --git a/packages/db-client/generated/streams.v2_pb.d.ts b/packages/db-client/generated/streams.v2_pb.d.ts deleted file mode 100644 index b630ae8c..00000000 --- a/packages/db-client/generated/streams.v2_pb.d.ts +++ /dev/null @@ -1,400 +0,0 @@ -// package: kurrentdb.protocol.v2 -// file: streams.v2.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as dynamic_value_pb from "./dynamic-value_pb"; - -export class AppendRecord extends jspb.Message { - - hasRecordId(): boolean; - clearRecordId(): void; - getRecordId(): string | undefined; - setRecordId(value: string): AppendRecord; - - getPropertiesMap(): jspb.Map; - clearPropertiesMap(): void; - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): AppendRecord; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppendRecord.AsObject; - static toObject(includeInstance: boolean, msg: AppendRecord): AppendRecord.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppendRecord, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppendRecord; - static deserializeBinaryFromReader(message: AppendRecord, reader: jspb.BinaryReader): AppendRecord; -} - -export namespace AppendRecord { - export type AsObject = { - recordId?: string, - - propertiesMap: Array<[string, dynamic_value_pb.DynamicValue.AsObject]>, - data: Uint8Array | string, - } -} - -export class AppendStreamRequest extends jspb.Message { - getStream(): string; - setStream(value: string): AppendStreamRequest; - clearRecordsList(): void; - getRecordsList(): Array; - setRecordsList(value: Array): AppendStreamRequest; - addRecords(value?: AppendRecord, index?: number): AppendRecord; - - hasExpectedRevision(): boolean; - clearExpectedRevision(): void; - getExpectedRevision(): string | undefined; - setExpectedRevision(value: string): AppendStreamRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppendStreamRequest.AsObject; - static toObject(includeInstance: boolean, msg: AppendStreamRequest): AppendStreamRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppendStreamRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppendStreamRequest; - static deserializeBinaryFromReader(message: AppendStreamRequest, reader: jspb.BinaryReader): AppendStreamRequest; -} - -export namespace AppendStreamRequest { - export type AsObject = { - stream: string, - recordsList: Array, - expectedRevision?: string, - } -} - -export class AppendStreamSuccess extends jspb.Message { - getStream(): string; - setStream(value: string): AppendStreamSuccess; - getPosition(): string; - setPosition(value: string): AppendStreamSuccess; - getStreamRevision(): string; - setStreamRevision(value: string): AppendStreamSuccess; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppendStreamSuccess.AsObject; - static toObject(includeInstance: boolean, msg: AppendStreamSuccess): AppendStreamSuccess.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppendStreamSuccess, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppendStreamSuccess; - static deserializeBinaryFromReader(message: AppendStreamSuccess, reader: jspb.BinaryReader): AppendStreamSuccess; -} - -export namespace AppendStreamSuccess { - export type AsObject = { - stream: string, - position: string, - streamRevision: string, - } -} - -export class AppendStreamFailure extends jspb.Message { - getStream(): string; - setStream(value: string): AppendStreamFailure; - - hasWrongExpectedRevision(): boolean; - clearWrongExpectedRevision(): void; - getWrongExpectedRevision(): ErrorDetails.WrongExpectedRevision | undefined; - setWrongExpectedRevision(value?: ErrorDetails.WrongExpectedRevision): AppendStreamFailure; - - hasAccessDenied(): boolean; - clearAccessDenied(): void; - getAccessDenied(): ErrorDetails.AccessDenied | undefined; - setAccessDenied(value?: ErrorDetails.AccessDenied): AppendStreamFailure; - - hasStreamDeleted(): boolean; - clearStreamDeleted(): void; - getStreamDeleted(): ErrorDetails.StreamDeleted | undefined; - setStreamDeleted(value?: ErrorDetails.StreamDeleted): AppendStreamFailure; - - hasTransactionMaxSizeExceeded(): boolean; - clearTransactionMaxSizeExceeded(): void; - getTransactionMaxSizeExceeded(): ErrorDetails.TransactionMaxSizeExceeded | undefined; - setTransactionMaxSizeExceeded(value?: ErrorDetails.TransactionMaxSizeExceeded): AppendStreamFailure; - - getErrorCase(): AppendStreamFailure.ErrorCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppendStreamFailure.AsObject; - static toObject(includeInstance: boolean, msg: AppendStreamFailure): AppendStreamFailure.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppendStreamFailure, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppendStreamFailure; - static deserializeBinaryFromReader(message: AppendStreamFailure, reader: jspb.BinaryReader): AppendStreamFailure; -} - -export namespace AppendStreamFailure { - export type AsObject = { - stream: string, - wrongExpectedRevision?: ErrorDetails.WrongExpectedRevision.AsObject, - accessDenied?: ErrorDetails.AccessDenied.AsObject, - streamDeleted?: ErrorDetails.StreamDeleted.AsObject, - transactionMaxSizeExceeded?: ErrorDetails.TransactionMaxSizeExceeded.AsObject, - } - - export enum ErrorCase { - ERROR_NOT_SET = 0, - WRONG_EXPECTED_REVISION = 2, - ACCESS_DENIED = 3, - STREAM_DELETED = 4, - TRANSACTION_MAX_SIZE_EXCEEDED = 5, - } - -} - -export class AppendStreamResponse extends jspb.Message { - - hasSuccess(): boolean; - clearSuccess(): void; - getSuccess(): AppendStreamSuccess | undefined; - setSuccess(value?: AppendStreamSuccess): AppendStreamResponse; - - hasFailure(): boolean; - clearFailure(): void; - getFailure(): AppendStreamFailure | undefined; - setFailure(value?: AppendStreamFailure): AppendStreamResponse; - - getResultCase(): AppendStreamResponse.ResultCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AppendStreamResponse.AsObject; - static toObject(includeInstance: boolean, msg: AppendStreamResponse): AppendStreamResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AppendStreamResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AppendStreamResponse; - static deserializeBinaryFromReader(message: AppendStreamResponse, reader: jspb.BinaryReader): AppendStreamResponse; -} - -export namespace AppendStreamResponse { - export type AsObject = { - success?: AppendStreamSuccess.AsObject, - failure?: AppendStreamFailure.AsObject, - } - - export enum ResultCase { - RESULT_NOT_SET = 0, - SUCCESS = 1, - FAILURE = 2, - } - -} - -export class MultiStreamAppendRequest extends jspb.Message { - clearInputList(): void; - getInputList(): Array; - setInputList(value: Array): MultiStreamAppendRequest; - addInput(value?: AppendStreamRequest, index?: number): AppendStreamRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiStreamAppendRequest.AsObject; - static toObject(includeInstance: boolean, msg: MultiStreamAppendRequest): MultiStreamAppendRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiStreamAppendRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiStreamAppendRequest; - static deserializeBinaryFromReader(message: MultiStreamAppendRequest, reader: jspb.BinaryReader): MultiStreamAppendRequest; -} - -export namespace MultiStreamAppendRequest { - export type AsObject = { - inputList: Array, - } -} - -export class MultiStreamAppendResponse extends jspb.Message { - - hasSuccess(): boolean; - clearSuccess(): void; - getSuccess(): MultiStreamAppendResponse.Success | undefined; - setSuccess(value?: MultiStreamAppendResponse.Success): MultiStreamAppendResponse; - - hasFailure(): boolean; - clearFailure(): void; - getFailure(): MultiStreamAppendResponse.Failure | undefined; - setFailure(value?: MultiStreamAppendResponse.Failure): MultiStreamAppendResponse; - - getResultCase(): MultiStreamAppendResponse.ResultCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiStreamAppendResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiStreamAppendResponse): MultiStreamAppendResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiStreamAppendResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiStreamAppendResponse; - static deserializeBinaryFromReader(message: MultiStreamAppendResponse, reader: jspb.BinaryReader): MultiStreamAppendResponse; -} - -export namespace MultiStreamAppendResponse { - export type AsObject = { - success?: MultiStreamAppendResponse.Success.AsObject, - failure?: MultiStreamAppendResponse.Failure.AsObject, - } - - - export class Success extends jspb.Message { - clearOutputList(): void; - getOutputList(): Array; - setOutputList(value: Array): Success; - addOutput(value?: AppendStreamSuccess, index?: number): AppendStreamSuccess; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Success.AsObject; - static toObject(includeInstance: boolean, msg: Success): Success.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Success, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Success; - static deserializeBinaryFromReader(message: Success, reader: jspb.BinaryReader): Success; - } - - export namespace Success { - export type AsObject = { - outputList: Array, - } - } - - export class Failure extends jspb.Message { - clearOutputList(): void; - getOutputList(): Array; - setOutputList(value: Array): Failure; - addOutput(value?: AppendStreamFailure, index?: number): AppendStreamFailure; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Failure.AsObject; - static toObject(includeInstance: boolean, msg: Failure): Failure.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Failure, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Failure; - static deserializeBinaryFromReader(message: Failure, reader: jspb.BinaryReader): Failure; - } - - export namespace Failure { - export type AsObject = { - outputList: Array, - } - } - - - export enum ResultCase { - RESULT_NOT_SET = 0, - SUCCESS = 1, - FAILURE = 2, - } - -} - -export class ErrorDetails extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ErrorDetails.AsObject; - static toObject(includeInstance: boolean, msg: ErrorDetails): ErrorDetails.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ErrorDetails, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ErrorDetails; - static deserializeBinaryFromReader(message: ErrorDetails, reader: jspb.BinaryReader): ErrorDetails; -} - -export namespace ErrorDetails { - export type AsObject = { - } - - - export class AccessDenied extends jspb.Message { - getReason(): string; - setReason(value: string): AccessDenied; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccessDenied.AsObject; - static toObject(includeInstance: boolean, msg: AccessDenied): AccessDenied.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AccessDenied, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccessDenied; - static deserializeBinaryFromReader(message: AccessDenied, reader: jspb.BinaryReader): AccessDenied; - } - - export namespace AccessDenied { - export type AsObject = { - reason: string, - } - } - - export class StreamDeleted extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamDeleted.AsObject; - static toObject(includeInstance: boolean, msg: StreamDeleted): StreamDeleted.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamDeleted, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamDeleted; - static deserializeBinaryFromReader(message: StreamDeleted, reader: jspb.BinaryReader): StreamDeleted; - } - - export namespace StreamDeleted { - export type AsObject = { - } - } - - export class WrongExpectedRevision extends jspb.Message { - getStreamRevision(): string; - setStreamRevision(value: string): WrongExpectedRevision; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WrongExpectedRevision.AsObject; - static toObject(includeInstance: boolean, msg: WrongExpectedRevision): WrongExpectedRevision.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WrongExpectedRevision, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WrongExpectedRevision; - static deserializeBinaryFromReader(message: WrongExpectedRevision, reader: jspb.BinaryReader): WrongExpectedRevision; - } - - export namespace WrongExpectedRevision { - export type AsObject = { - streamRevision: string, - } - } - - export class TransactionMaxSizeExceeded extends jspb.Message { - getMaxSize(): number; - setMaxSize(value: number): TransactionMaxSizeExceeded; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransactionMaxSizeExceeded.AsObject; - static toObject(includeInstance: boolean, msg: TransactionMaxSizeExceeded): TransactionMaxSizeExceeded.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TransactionMaxSizeExceeded, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransactionMaxSizeExceeded; - static deserializeBinaryFromReader(message: TransactionMaxSizeExceeded, reader: jspb.BinaryReader): TransactionMaxSizeExceeded; - } - - export namespace TransactionMaxSizeExceeded { - export type AsObject = { - maxSize: number, - } - } - -} - -export enum ExpectedRevisionConstants { - EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT = 0, - EXPECTED_REVISION_CONSTANTS_ANY = -2, - EXPECTED_REVISION_CONSTANTS_NO_STREAM = -1, - EXPECTED_REVISION_CONSTANTS_EXISTS = -4, -} diff --git a/packages/db-client/generated/streams_grpc_pb.d.ts b/packages/db-client/generated/streams_grpc_pb.d.ts deleted file mode 100644 index 40bba4a6..00000000 --- a/packages/db-client/generated/streams_grpc_pb.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -// package: event_store.client.streams -// file: streams.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as streams_pb from "./streams_pb"; -import * as shared_pb from "./shared_pb"; -import * as status_pb from "./status_pb"; -import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -interface IStreamsService extends grpc.ServiceDefinition { - read: IStreamsService_IRead; - append: IStreamsService_IAppend; - delete: IStreamsService_IDelete; - tombstone: IStreamsService_ITombstone; - batchAppend: IStreamsService_IBatchAppend; -} - -interface IStreamsService_IRead extends grpc.MethodDefinition { - path: "/event_store.client.streams.Streams/Read"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IStreamsService_IAppend extends grpc.MethodDefinition { - path: "/event_store.client.streams.Streams/Append"; - requestStream: true; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IStreamsService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.streams.Streams/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IStreamsService_ITombstone extends grpc.MethodDefinition { - path: "/event_store.client.streams.Streams/Tombstone"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IStreamsService_IBatchAppend extends grpc.MethodDefinition { - path: "/event_store.client.streams.Streams/BatchAppend"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const StreamsService: IStreamsService; - -export interface IStreamsServer extends grpc.UntypedServiceImplementation { - read: grpc.handleServerStreamingCall; - append: grpc.handleClientStreamingCall; - delete: grpc.handleUnaryCall; - tombstone: grpc.handleUnaryCall; - batchAppend: grpc.handleBidiStreamingCall; -} - -export interface IStreamsClient { - read(request: streams_pb.ReadReq, options?: Partial): grpc.ClientReadableStream; - read(request: streams_pb.ReadReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - append(callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - append(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - append(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - append(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - delete(request: streams_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: streams_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: streams_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; - tombstone(request: streams_pb.TombstoneReq, callback: (error: grpc.ServiceError | null, response: streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; - tombstone(request: streams_pb.TombstoneReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; - tombstone(request: streams_pb.TombstoneReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; - batchAppend(): grpc.ClientDuplexStream; - batchAppend(options: Partial): grpc.ClientDuplexStream; - batchAppend(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; -} - -export class StreamsClient extends grpc.Client implements IStreamsClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public read(request: streams_pb.ReadReq, options?: Partial): grpc.ClientReadableStream; - public read(request: streams_pb.ReadReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public append(callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - public append(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - public append(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - public append(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.AppendResp) => void): grpc.ClientWritableStream; - public delete(request: streams_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: streams_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: streams_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public tombstone(request: streams_pb.TombstoneReq, callback: (error: grpc.ServiceError | null, response: streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; - public tombstone(request: streams_pb.TombstoneReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; - public tombstone(request: streams_pb.TombstoneReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_pb.TombstoneResp) => void): grpc.ClientUnaryCall; - public batchAppend(options?: Partial): grpc.ClientDuplexStream; - public batchAppend(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; -} diff --git a/packages/db-client/generated/usermanagement_grpc_pb.d.ts b/packages/db-client/generated/usermanagement_grpc_pb.d.ts deleted file mode 100644 index 61b7a67c..00000000 --- a/packages/db-client/generated/usermanagement_grpc_pb.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -// package: event_store.client.users -// file: usermanagement.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as usermanagement_pb from "./usermanagement_pb"; - -interface IUsersService extends grpc.ServiceDefinition { - create: IUsersService_ICreate; - update: IUsersService_IUpdate; - delete: IUsersService_IDelete; - disable: IUsersService_IDisable; - enable: IUsersService_IEnable; - details: IUsersService_IDetails; - changePassword: IUsersService_IChangePassword; - resetPassword: IUsersService_IResetPassword; -} - -interface IUsersService_ICreate extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Create"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IDisable extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Disable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IEnable extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Enable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IDetails extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Details"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IChangePassword extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/ChangePassword"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IResetPassword extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/ResetPassword"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const UsersService: IUsersService; - -export interface IUsersServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - disable: grpc.handleUnaryCall; - enable: grpc.handleUnaryCall; - details: grpc.handleServerStreamingCall; - changePassword: grpc.handleUnaryCall; - resetPassword: grpc.handleUnaryCall; -} - -export interface IUsersClient { - create(request: usermanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - update(request: usermanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - delete(request: usermanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - disable(request: usermanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - enable(request: usermanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - details(request: usermanagement_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; - details(request: usermanagement_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - changePassword(request: usermanagement_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - resetPassword(request: usermanagement_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; -} - -export class UsersClient extends grpc.Client implements IUsersClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public create(request: usermanagement_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: usermanagement_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.CreateResp) => void): grpc.ClientUnaryCall; - public update(request: usermanagement_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: usermanagement_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public delete(request: usermanagement_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: usermanagement_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public disable(request: usermanagement_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: usermanagement_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.DisableResp) => void): grpc.ClientUnaryCall; - public enable(request: usermanagement_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: usermanagement_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.EnableResp) => void): grpc.ClientUnaryCall; - public details(request: usermanagement_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; - public details(request: usermanagement_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public changePassword(request: usermanagement_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - public changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - public changePassword(request: usermanagement_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - public resetPassword(request: usermanagement_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - public resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - public resetPassword(request: usermanagement_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: usermanagement_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/users_grpc_pb.d.ts b/packages/db-client/generated/users_grpc_pb.d.ts deleted file mode 100644 index bb07c842..00000000 --- a/packages/db-client/generated/users_grpc_pb.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -// package: event_store.client.users -// file: users.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "@grpc/grpc-js"; -import * as users_pb from "./users_pb"; - -interface IUsersService extends grpc.ServiceDefinition { - create: IUsersService_ICreate; - update: IUsersService_IUpdate; - delete: IUsersService_IDelete; - disable: IUsersService_IDisable; - enable: IUsersService_IEnable; - details: IUsersService_IDetails; - changePassword: IUsersService_IChangePassword; - resetPassword: IUsersService_IResetPassword; -} - -interface IUsersService_ICreate extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Create"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IUpdate extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Update"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IDelete extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Delete"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IDisable extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Disable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IEnable extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Enable"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IDetails extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/Details"; - requestStream: false; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IChangePassword extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/ChangePassword"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IUsersService_IResetPassword extends grpc.MethodDefinition { - path: "/event_store.client.users.Users/ResetPassword"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const UsersService: IUsersService; - -export interface IUsersServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - disable: grpc.handleUnaryCall; - enable: grpc.handleUnaryCall; - details: grpc.handleServerStreamingCall; - changePassword: grpc.handleUnaryCall; - resetPassword: grpc.handleUnaryCall; -} - -export interface IUsersClient { - create(request: users_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: users_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: users_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.CreateResp) => void): grpc.ClientUnaryCall; - create(request: users_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.CreateResp) => void): grpc.ClientUnaryCall; - update(request: users_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: users_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: users_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.UpdateResp) => void): grpc.ClientUnaryCall; - update(request: users_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.UpdateResp) => void): grpc.ClientUnaryCall; - delete(request: users_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: users_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: users_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.DeleteResp) => void): grpc.ClientUnaryCall; - delete(request: users_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.DeleteResp) => void): grpc.ClientUnaryCall; - disable(request: users_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: users_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: users_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.DisableResp) => void): grpc.ClientUnaryCall; - disable(request: users_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.DisableResp) => void): grpc.ClientUnaryCall; - enable(request: users_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: users_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: users_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.EnableResp) => void): grpc.ClientUnaryCall; - enable(request: users_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.EnableResp) => void): grpc.ClientUnaryCall; - details(request: users_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; - details(request: users_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - changePassword(request: users_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: users_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - changePassword(request: users_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - changePassword(request: users_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - resetPassword(request: users_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: users_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - resetPassword(request: users_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - resetPassword(request: users_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; -} - -export class UsersClient extends grpc.Client implements IUsersClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); - public create(request: users_pb.CreateReq, callback: (error: grpc.ServiceError | null, response: users_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: users_pb.CreateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.CreateResp) => void): grpc.ClientUnaryCall; - public create(request: users_pb.CreateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.CreateResp) => void): grpc.ClientUnaryCall; - public update(request: users_pb.UpdateReq, callback: (error: grpc.ServiceError | null, response: users_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: users_pb.UpdateReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public update(request: users_pb.UpdateReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.UpdateResp) => void): grpc.ClientUnaryCall; - public delete(request: users_pb.DeleteReq, callback: (error: grpc.ServiceError | null, response: users_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: users_pb.DeleteReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public delete(request: users_pb.DeleteReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.DeleteResp) => void): grpc.ClientUnaryCall; - public disable(request: users_pb.DisableReq, callback: (error: grpc.ServiceError | null, response: users_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: users_pb.DisableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.DisableResp) => void): grpc.ClientUnaryCall; - public disable(request: users_pb.DisableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.DisableResp) => void): grpc.ClientUnaryCall; - public enable(request: users_pb.EnableReq, callback: (error: grpc.ServiceError | null, response: users_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: users_pb.EnableReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.EnableResp) => void): grpc.ClientUnaryCall; - public enable(request: users_pb.EnableReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.EnableResp) => void): grpc.ClientUnaryCall; - public details(request: users_pb.DetailsReq, options?: Partial): grpc.ClientReadableStream; - public details(request: users_pb.DetailsReq, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; - public changePassword(request: users_pb.ChangePasswordReq, callback: (error: grpc.ServiceError | null, response: users_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - public changePassword(request: users_pb.ChangePasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - public changePassword(request: users_pb.ChangePasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.ChangePasswordResp) => void): grpc.ClientUnaryCall; - public resetPassword(request: users_pb.ResetPasswordReq, callback: (error: grpc.ServiceError | null, response: users_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - public resetPassword(request: users_pb.ResetPasswordReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: users_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; - public resetPassword(request: users_pb.ResetPasswordReq, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: users_pb.ResetPasswordResp) => void): grpc.ClientUnaryCall; -} diff --git a/packages/db-client/generated/users_grpc_pb.js b/packages/db-client/generated/users_grpc_pb.js deleted file mode 100644 index faf0252e..00000000 --- a/packages/db-client/generated/users_grpc_pb.js +++ /dev/null @@ -1,275 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var users_pb = require('./users_pb.js'); - -function serialize_event_store_client_users_ChangePasswordReq(arg) { - if (!(arg instanceof users_pb.ChangePasswordReq)) { - throw new Error('Expected argument of type event_store.client.users.ChangePasswordReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_ChangePasswordReq(buffer_arg) { - return users_pb.ChangePasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_ChangePasswordResp(arg) { - if (!(arg instanceof users_pb.ChangePasswordResp)) { - throw new Error('Expected argument of type event_store.client.users.ChangePasswordResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_ChangePasswordResp(buffer_arg) { - return users_pb.ChangePasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_CreateReq(arg) { - if (!(arg instanceof users_pb.CreateReq)) { - throw new Error('Expected argument of type event_store.client.users.CreateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_CreateReq(buffer_arg) { - return users_pb.CreateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_CreateResp(arg) { - if (!(arg instanceof users_pb.CreateResp)) { - throw new Error('Expected argument of type event_store.client.users.CreateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_CreateResp(buffer_arg) { - return users_pb.CreateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_DeleteReq(arg) { - if (!(arg instanceof users_pb.DeleteReq)) { - throw new Error('Expected argument of type event_store.client.users.DeleteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_DeleteReq(buffer_arg) { - return users_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_DeleteResp(arg) { - if (!(arg instanceof users_pb.DeleteResp)) { - throw new Error('Expected argument of type event_store.client.users.DeleteResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_DeleteResp(buffer_arg) { - return users_pb.DeleteResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_DetailsReq(arg) { - if (!(arg instanceof users_pb.DetailsReq)) { - throw new Error('Expected argument of type event_store.client.users.DetailsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_DetailsReq(buffer_arg) { - return users_pb.DetailsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_DetailsResp(arg) { - if (!(arg instanceof users_pb.DetailsResp)) { - throw new Error('Expected argument of type event_store.client.users.DetailsResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_DetailsResp(buffer_arg) { - return users_pb.DetailsResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_DisableReq(arg) { - if (!(arg instanceof users_pb.DisableReq)) { - throw new Error('Expected argument of type event_store.client.users.DisableReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_DisableReq(buffer_arg) { - return users_pb.DisableReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_DisableResp(arg) { - if (!(arg instanceof users_pb.DisableResp)) { - throw new Error('Expected argument of type event_store.client.users.DisableResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_DisableResp(buffer_arg) { - return users_pb.DisableResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_EnableReq(arg) { - if (!(arg instanceof users_pb.EnableReq)) { - throw new Error('Expected argument of type event_store.client.users.EnableReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_EnableReq(buffer_arg) { - return users_pb.EnableReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_EnableResp(arg) { - if (!(arg instanceof users_pb.EnableResp)) { - throw new Error('Expected argument of type event_store.client.users.EnableResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_EnableResp(buffer_arg) { - return users_pb.EnableResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_ResetPasswordReq(arg) { - if (!(arg instanceof users_pb.ResetPasswordReq)) { - throw new Error('Expected argument of type event_store.client.users.ResetPasswordReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_ResetPasswordReq(buffer_arg) { - return users_pb.ResetPasswordReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_ResetPasswordResp(arg) { - if (!(arg instanceof users_pb.ResetPasswordResp)) { - throw new Error('Expected argument of type event_store.client.users.ResetPasswordResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_ResetPasswordResp(buffer_arg) { - return users_pb.ResetPasswordResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_UpdateReq(arg) { - if (!(arg instanceof users_pb.UpdateReq)) { - throw new Error('Expected argument of type event_store.client.users.UpdateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_UpdateReq(buffer_arg) { - return users_pb.UpdateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_event_store_client_users_UpdateResp(arg) { - if (!(arg instanceof users_pb.UpdateResp)) { - throw new Error('Expected argument of type event_store.client.users.UpdateResp'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_event_store_client_users_UpdateResp(buffer_arg) { - return users_pb.UpdateResp.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var UsersService = exports.UsersService = { - create: { - path: '/event_store.client.users.Users/Create', - requestStream: false, - responseStream: false, - requestType: users_pb.CreateReq, - responseType: users_pb.CreateResp, - requestSerialize: serialize_event_store_client_users_CreateReq, - requestDeserialize: deserialize_event_store_client_users_CreateReq, - responseSerialize: serialize_event_store_client_users_CreateResp, - responseDeserialize: deserialize_event_store_client_users_CreateResp, - }, - update: { - path: '/event_store.client.users.Users/Update', - requestStream: false, - responseStream: false, - requestType: users_pb.UpdateReq, - responseType: users_pb.UpdateResp, - requestSerialize: serialize_event_store_client_users_UpdateReq, - requestDeserialize: deserialize_event_store_client_users_UpdateReq, - responseSerialize: serialize_event_store_client_users_UpdateResp, - responseDeserialize: deserialize_event_store_client_users_UpdateResp, - }, - delete: { - path: '/event_store.client.users.Users/Delete', - requestStream: false, - responseStream: false, - requestType: users_pb.DeleteReq, - responseType: users_pb.DeleteResp, - requestSerialize: serialize_event_store_client_users_DeleteReq, - requestDeserialize: deserialize_event_store_client_users_DeleteReq, - responseSerialize: serialize_event_store_client_users_DeleteResp, - responseDeserialize: deserialize_event_store_client_users_DeleteResp, - }, - disable: { - path: '/event_store.client.users.Users/Disable', - requestStream: false, - responseStream: false, - requestType: users_pb.DisableReq, - responseType: users_pb.DisableResp, - requestSerialize: serialize_event_store_client_users_DisableReq, - requestDeserialize: deserialize_event_store_client_users_DisableReq, - responseSerialize: serialize_event_store_client_users_DisableResp, - responseDeserialize: deserialize_event_store_client_users_DisableResp, - }, - enable: { - path: '/event_store.client.users.Users/Enable', - requestStream: false, - responseStream: false, - requestType: users_pb.EnableReq, - responseType: users_pb.EnableResp, - requestSerialize: serialize_event_store_client_users_EnableReq, - requestDeserialize: deserialize_event_store_client_users_EnableReq, - responseSerialize: serialize_event_store_client_users_EnableResp, - responseDeserialize: deserialize_event_store_client_users_EnableResp, - }, - details: { - path: '/event_store.client.users.Users/Details', - requestStream: false, - responseStream: true, - requestType: users_pb.DetailsReq, - responseType: users_pb.DetailsResp, - requestSerialize: serialize_event_store_client_users_DetailsReq, - requestDeserialize: deserialize_event_store_client_users_DetailsReq, - responseSerialize: serialize_event_store_client_users_DetailsResp, - responseDeserialize: deserialize_event_store_client_users_DetailsResp, - }, - changePassword: { - path: '/event_store.client.users.Users/ChangePassword', - requestStream: false, - responseStream: false, - requestType: users_pb.ChangePasswordReq, - responseType: users_pb.ChangePasswordResp, - requestSerialize: serialize_event_store_client_users_ChangePasswordReq, - requestDeserialize: deserialize_event_store_client_users_ChangePasswordReq, - responseSerialize: serialize_event_store_client_users_ChangePasswordResp, - responseDeserialize: deserialize_event_store_client_users_ChangePasswordResp, - }, - resetPassword: { - path: '/event_store.client.users.Users/ResetPassword', - requestStream: false, - responseStream: false, - requestType: users_pb.ResetPasswordReq, - responseType: users_pb.ResetPasswordResp, - requestSerialize: serialize_event_store_client_users_ResetPasswordReq, - requestDeserialize: deserialize_event_store_client_users_ResetPasswordReq, - responseSerialize: serialize_event_store_client_users_ResetPasswordResp, - responseDeserialize: deserialize_event_store_client_users_ResetPasswordResp, - }, -}; - -exports.UsersClient = grpc.makeGenericClientConstructor(UsersService, 'Users'); diff --git a/packages/db-client/generated/users_pb.d.ts b/packages/db-client/generated/users_pb.d.ts deleted file mode 100644 index 5d4b4a92..00000000 --- a/packages/db-client/generated/users_pb.d.ts +++ /dev/null @@ -1,601 +0,0 @@ -// package: event_store.client.users -// file: users.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; - -export class CreateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): CreateReq.Options | undefined; - setOptions(value?: CreateReq.Options): CreateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateReq.AsObject; - static toObject(includeInstance: boolean, msg: CreateReq): CreateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateReq; - static deserializeBinaryFromReader(message: CreateReq, reader: jspb.BinaryReader): CreateReq; -} - -export namespace CreateReq { - export type AsObject = { - options?: CreateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - getPassword(): string; - setPassword(value: string): Options; - getFullName(): string; - setFullName(value: string): Options; - clearGroupsList(): void; - getGroupsList(): Array; - setGroupsList(value: Array): Options; - addGroups(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - password: string, - fullName: string, - groupsList: Array, - } - } - -} - -export class CreateResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateResp.AsObject; - static toObject(includeInstance: boolean, msg: CreateResp): CreateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateResp; - static deserializeBinaryFromReader(message: CreateResp, reader: jspb.BinaryReader): CreateResp; -} - -export namespace CreateResp { - export type AsObject = { - } -} - -export class UpdateReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): UpdateReq.Options | undefined; - setOptions(value?: UpdateReq.Options): UpdateReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateReq.AsObject; - static toObject(includeInstance: boolean, msg: UpdateReq): UpdateReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateReq; - static deserializeBinaryFromReader(message: UpdateReq, reader: jspb.BinaryReader): UpdateReq; -} - -export namespace UpdateReq { - export type AsObject = { - options?: UpdateReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - getPassword(): string; - setPassword(value: string): Options; - getFullName(): string; - setFullName(value: string): Options; - clearGroupsList(): void; - getGroupsList(): Array; - setGroupsList(value: Array): Options; - addGroups(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - password: string, - fullName: string, - groupsList: Array, - } - } - -} - -export class UpdateResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResp.AsObject; - static toObject(includeInstance: boolean, msg: UpdateResp): UpdateResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateResp; - static deserializeBinaryFromReader(message: UpdateResp, reader: jspb.BinaryReader): UpdateResp; -} - -export namespace UpdateResp { - export type AsObject = { - } -} - -export class DeleteReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DeleteReq.Options | undefined; - setOptions(value?: DeleteReq.Options): DeleteReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteReq.AsObject; - static toObject(includeInstance: boolean, msg: DeleteReq): DeleteReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteReq; - static deserializeBinaryFromReader(message: DeleteReq, reader: jspb.BinaryReader): DeleteReq; -} - -export namespace DeleteReq { - export type AsObject = { - options?: DeleteReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - } - } - -} - -export class DeleteResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResp.AsObject; - static toObject(includeInstance: boolean, msg: DeleteResp): DeleteResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteResp; - static deserializeBinaryFromReader(message: DeleteResp, reader: jspb.BinaryReader): DeleteResp; -} - -export namespace DeleteResp { - export type AsObject = { - } -} - -export class EnableReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): EnableReq.Options | undefined; - setOptions(value?: EnableReq.Options): EnableReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnableReq.AsObject; - static toObject(includeInstance: boolean, msg: EnableReq): EnableReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnableReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnableReq; - static deserializeBinaryFromReader(message: EnableReq, reader: jspb.BinaryReader): EnableReq; -} - -export namespace EnableReq { - export type AsObject = { - options?: EnableReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - } - } - -} - -export class EnableResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnableResp.AsObject; - static toObject(includeInstance: boolean, msg: EnableResp): EnableResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnableResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnableResp; - static deserializeBinaryFromReader(message: EnableResp, reader: jspb.BinaryReader): EnableResp; -} - -export namespace EnableResp { - export type AsObject = { - } -} - -export class DisableReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DisableReq.Options | undefined; - setOptions(value?: DisableReq.Options): DisableReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisableReq.AsObject; - static toObject(includeInstance: boolean, msg: DisableReq): DisableReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DisableReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisableReq; - static deserializeBinaryFromReader(message: DisableReq, reader: jspb.BinaryReader): DisableReq; -} - -export namespace DisableReq { - export type AsObject = { - options?: DisableReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - } - } - -} - -export class DisableResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisableResp.AsObject; - static toObject(includeInstance: boolean, msg: DisableResp): DisableResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DisableResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisableResp; - static deserializeBinaryFromReader(message: DisableResp, reader: jspb.BinaryReader): DisableResp; -} - -export namespace DisableResp { - export type AsObject = { - } -} - -export class DetailsReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): DetailsReq.Options | undefined; - setOptions(value?: DetailsReq.Options): DetailsReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DetailsReq.AsObject; - static toObject(includeInstance: boolean, msg: DetailsReq): DetailsReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DetailsReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DetailsReq; - static deserializeBinaryFromReader(message: DetailsReq, reader: jspb.BinaryReader): DetailsReq; -} - -export namespace DetailsReq { - export type AsObject = { - options?: DetailsReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - } - } - -} - -export class DetailsResp extends jspb.Message { - - hasUserDetails(): boolean; - clearUserDetails(): void; - getUserDetails(): DetailsResp.UserDetails | undefined; - setUserDetails(value?: DetailsResp.UserDetails): DetailsResp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DetailsResp.AsObject; - static toObject(includeInstance: boolean, msg: DetailsResp): DetailsResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DetailsResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DetailsResp; - static deserializeBinaryFromReader(message: DetailsResp, reader: jspb.BinaryReader): DetailsResp; -} - -export namespace DetailsResp { - export type AsObject = { - userDetails?: DetailsResp.UserDetails.AsObject, - } - - - export class UserDetails extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): UserDetails; - getFullName(): string; - setFullName(value: string): UserDetails; - clearGroupsList(): void; - getGroupsList(): Array; - setGroupsList(value: Array): UserDetails; - addGroups(value: string, index?: number): string; - - hasLastUpdated(): boolean; - clearLastUpdated(): void; - getLastUpdated(): DetailsResp.UserDetails.DateTime | undefined; - setLastUpdated(value?: DetailsResp.UserDetails.DateTime): UserDetails; - getDisabled(): boolean; - setDisabled(value: boolean): UserDetails; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserDetails.AsObject; - static toObject(includeInstance: boolean, msg: UserDetails): UserDetails.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UserDetails, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserDetails; - static deserializeBinaryFromReader(message: UserDetails, reader: jspb.BinaryReader): UserDetails; - } - - export namespace UserDetails { - export type AsObject = { - loginName: string, - fullName: string, - groupsList: Array, - lastUpdated?: DetailsResp.UserDetails.DateTime.AsObject, - disabled: boolean, - } - - - export class DateTime extends jspb.Message { - getTicksSinceEpoch(): string; - setTicksSinceEpoch(value: string): DateTime; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DateTime.AsObject; - static toObject(includeInstance: boolean, msg: DateTime): DateTime.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DateTime, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DateTime; - static deserializeBinaryFromReader(message: DateTime, reader: jspb.BinaryReader): DateTime; - } - - export namespace DateTime { - export type AsObject = { - ticksSinceEpoch: string, - } - } - - } - -} - -export class ChangePasswordReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ChangePasswordReq.Options | undefined; - setOptions(value?: ChangePasswordReq.Options): ChangePasswordReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChangePasswordReq.AsObject; - static toObject(includeInstance: boolean, msg: ChangePasswordReq): ChangePasswordReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChangePasswordReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChangePasswordReq; - static deserializeBinaryFromReader(message: ChangePasswordReq, reader: jspb.BinaryReader): ChangePasswordReq; -} - -export namespace ChangePasswordReq { - export type AsObject = { - options?: ChangePasswordReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - getCurrentPassword(): string; - setCurrentPassword(value: string): Options; - getNewPassword(): string; - setNewPassword(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - currentPassword: string, - newPassword: string, - } - } - -} - -export class ChangePasswordResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChangePasswordResp.AsObject; - static toObject(includeInstance: boolean, msg: ChangePasswordResp): ChangePasswordResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChangePasswordResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChangePasswordResp; - static deserializeBinaryFromReader(message: ChangePasswordResp, reader: jspb.BinaryReader): ChangePasswordResp; -} - -export namespace ChangePasswordResp { - export type AsObject = { - } -} - -export class ResetPasswordReq extends jspb.Message { - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ResetPasswordReq.Options | undefined; - setOptions(value?: ResetPasswordReq.Options): ResetPasswordReq; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetPasswordReq.AsObject; - static toObject(includeInstance: boolean, msg: ResetPasswordReq): ResetPasswordReq.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetPasswordReq, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetPasswordReq; - static deserializeBinaryFromReader(message: ResetPasswordReq, reader: jspb.BinaryReader): ResetPasswordReq; -} - -export namespace ResetPasswordReq { - export type AsObject = { - options?: ResetPasswordReq.Options.AsObject, - } - - - export class Options extends jspb.Message { - getLoginName(): string; - setLoginName(value: string): Options; - getNewPassword(): string; - setNewPassword(value: string): Options; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Options.AsObject; - static toObject(includeInstance: boolean, msg: Options): Options.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Options, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Options; - static deserializeBinaryFromReader(message: Options, reader: jspb.BinaryReader): Options; - } - - export namespace Options { - export type AsObject = { - loginName: string, - newPassword: string, - } - } - -} - -export class ResetPasswordResp extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetPasswordResp.AsObject; - static toObject(includeInstance: boolean, msg: ResetPasswordResp): ResetPasswordResp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResetPasswordResp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetPasswordResp; - static deserializeBinaryFromReader(message: ResetPasswordResp, reader: jspb.BinaryReader): ResetPasswordResp; -} - -export namespace ResetPasswordResp { - export type AsObject = { - } -} diff --git a/packages/db-client/generated/users_pb.js b/packages/db-client/generated/users_pb.js deleted file mode 100644 index 5209b466..00000000 --- a/packages/db-client/generated/users_pb.js +++ /dev/null @@ -1,4451 +0,0 @@ -// 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_, 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} - * @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_, 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} - */ -proto.event_store.client.users.CreateReq.Options.prototype.getGroupsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} 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_, 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_, 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} - * @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_, 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} - */ -proto.event_store.client.users.UpdateReq.Options.prototype.getGroupsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} 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.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.users.UpdateReq.Options} returns this - */ -proto.event_store.client.users.UpdateReq.Options.prototype.clearGroupsList = function() { - return this.setGroupsList([]); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.UpdateReq.Options} - */ -proto.event_store.client.users.UpdateReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.UpdateReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.UpdateReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.UpdateReq.Options|undefined} value - * @return {!proto.event_store.client.users.UpdateReq} returns this -*/ -proto.event_store.client.users.UpdateReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.UpdateReq} returns this - */ -proto.event_store.client.users.UpdateReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.UpdateReq.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_, 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.UpdateResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.UpdateResp.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.UpdateResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.UpdateResp.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.UpdateResp} - */ -proto.event_store.client.users.UpdateResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.UpdateResp; - return proto.event_store.client.users.UpdateResp.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.UpdateResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.UpdateResp} - */ -proto.event_store.client.users.UpdateResp.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.UpdateResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.UpdateResp.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.UpdateResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.UpdateResp.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_, 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.DeleteReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DeleteReq.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.DeleteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DeleteReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.users.DeleteReq.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.DeleteReq} - */ -proto.event_store.client.users.DeleteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DeleteReq; - return proto.event_store.client.users.DeleteReq.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.DeleteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DeleteReq} - */ -proto.event_store.client.users.DeleteReq.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.DeleteReq.Options; - reader.readMessage(value,proto.event_store.client.users.DeleteReq.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.DeleteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DeleteReq.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.DeleteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DeleteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.DeleteReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DeleteReq.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.DeleteReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DeleteReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: 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.users.DeleteReq.Options} - */ -proto.event_store.client.users.DeleteReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DeleteReq.Options; - return proto.event_store.client.users.DeleteReq.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.DeleteReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DeleteReq.Options} - */ -proto.event_store.client.users.DeleteReq.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.users.DeleteReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DeleteReq.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.DeleteReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DeleteReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.DeleteReq.Options.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.DeleteReq.Options} returns this - */ -proto.event_store.client.users.DeleteReq.Options.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.DeleteReq.Options} - */ -proto.event_store.client.users.DeleteReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.DeleteReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.DeleteReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.DeleteReq.Options|undefined} value - * @return {!proto.event_store.client.users.DeleteReq} returns this -*/ -proto.event_store.client.users.DeleteReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.DeleteReq} returns this - */ -proto.event_store.client.users.DeleteReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.DeleteReq.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_, 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.DeleteResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DeleteResp.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.DeleteResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DeleteResp.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.DeleteResp} - */ -proto.event_store.client.users.DeleteResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DeleteResp; - return proto.event_store.client.users.DeleteResp.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.DeleteResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DeleteResp} - */ -proto.event_store.client.users.DeleteResp.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.DeleteResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DeleteResp.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.DeleteResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DeleteResp.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_, 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.EnableReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.EnableReq.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.EnableReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.EnableReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.users.EnableReq.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.EnableReq} - */ -proto.event_store.client.users.EnableReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.EnableReq; - return proto.event_store.client.users.EnableReq.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.EnableReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.EnableReq} - */ -proto.event_store.client.users.EnableReq.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.EnableReq.Options; - reader.readMessage(value,proto.event_store.client.users.EnableReq.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.EnableReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.EnableReq.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.EnableReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.EnableReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.EnableReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.EnableReq.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.EnableReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.EnableReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: 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.users.EnableReq.Options} - */ -proto.event_store.client.users.EnableReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.EnableReq.Options; - return proto.event_store.client.users.EnableReq.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.EnableReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.EnableReq.Options} - */ -proto.event_store.client.users.EnableReq.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.users.EnableReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.EnableReq.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.EnableReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.EnableReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.EnableReq.Options.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.EnableReq.Options} returns this - */ -proto.event_store.client.users.EnableReq.Options.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.EnableReq.Options} - */ -proto.event_store.client.users.EnableReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.EnableReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.EnableReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.EnableReq.Options|undefined} value - * @return {!proto.event_store.client.users.EnableReq} returns this -*/ -proto.event_store.client.users.EnableReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.EnableReq} returns this - */ -proto.event_store.client.users.EnableReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.EnableReq.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_, 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.EnableResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.EnableResp.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.EnableResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.EnableResp.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.EnableResp} - */ -proto.event_store.client.users.EnableResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.EnableResp; - return proto.event_store.client.users.EnableResp.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.EnableResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.EnableResp} - */ -proto.event_store.client.users.EnableResp.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.EnableResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.EnableResp.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.EnableResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.EnableResp.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_, 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.DisableReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DisableReq.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.DisableReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DisableReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.users.DisableReq.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.DisableReq} - */ -proto.event_store.client.users.DisableReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DisableReq; - return proto.event_store.client.users.DisableReq.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.DisableReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DisableReq} - */ -proto.event_store.client.users.DisableReq.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.DisableReq.Options; - reader.readMessage(value,proto.event_store.client.users.DisableReq.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.DisableReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DisableReq.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.DisableReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DisableReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.DisableReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DisableReq.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.DisableReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DisableReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: 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.users.DisableReq.Options} - */ -proto.event_store.client.users.DisableReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DisableReq.Options; - return proto.event_store.client.users.DisableReq.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.DisableReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DisableReq.Options} - */ -proto.event_store.client.users.DisableReq.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.users.DisableReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DisableReq.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.DisableReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DisableReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.DisableReq.Options.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.DisableReq.Options} returns this - */ -proto.event_store.client.users.DisableReq.Options.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.DisableReq.Options} - */ -proto.event_store.client.users.DisableReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.DisableReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.DisableReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.DisableReq.Options|undefined} value - * @return {!proto.event_store.client.users.DisableReq} returns this -*/ -proto.event_store.client.users.DisableReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.DisableReq} returns this - */ -proto.event_store.client.users.DisableReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.DisableReq.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_, 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.DisableResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DisableResp.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.DisableResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DisableResp.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.DisableResp} - */ -proto.event_store.client.users.DisableResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DisableResp; - return proto.event_store.client.users.DisableResp.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.DisableResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DisableResp} - */ -proto.event_store.client.users.DisableResp.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.DisableResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DisableResp.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.DisableResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DisableResp.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_, 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.DetailsReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DetailsReq.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.DetailsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.users.DetailsReq.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.DetailsReq} - */ -proto.event_store.client.users.DetailsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DetailsReq; - return proto.event_store.client.users.DetailsReq.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.DetailsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DetailsReq} - */ -proto.event_store.client.users.DetailsReq.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.DetailsReq.Options; - reader.readMessage(value,proto.event_store.client.users.DetailsReq.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.DetailsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DetailsReq.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.DetailsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.DetailsReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DetailsReq.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.DetailsReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: 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.users.DetailsReq.Options} - */ -proto.event_store.client.users.DetailsReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DetailsReq.Options; - return proto.event_store.client.users.DetailsReq.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.DetailsReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DetailsReq.Options} - */ -proto.event_store.client.users.DetailsReq.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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.event_store.client.users.DetailsReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DetailsReq.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.DetailsReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.DetailsReq.Options.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.DetailsReq.Options} returns this - */ -proto.event_store.client.users.DetailsReq.Options.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.DetailsReq.Options} - */ -proto.event_store.client.users.DetailsReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.DetailsReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.DetailsReq.Options|undefined} value - * @return {!proto.event_store.client.users.DetailsReq} returns this -*/ -proto.event_store.client.users.DetailsReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.DetailsReq} returns this - */ -proto.event_store.client.users.DetailsReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.DetailsReq.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_, 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.DetailsResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DetailsResp.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.DetailsResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsResp.toObject = function(includeInstance, msg) { - var f, obj = { - userDetails: (f = msg.getUserDetails()) && proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp} - */ -proto.event_store.client.users.DetailsResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DetailsResp; - return proto.event_store.client.users.DetailsResp.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.DetailsResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DetailsResp} - */ -proto.event_store.client.users.DetailsResp.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.DetailsResp.UserDetails; - reader.readMessage(value,proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinaryFromReader); - msg.setUserDetails(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.DetailsResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DetailsResp.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.DetailsResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserDetails(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.event_store.client.users.DetailsResp.UserDetails.repeatedFields_ = [3]; - - - -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_, 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.DetailsResp.UserDetails.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp.UserDetails} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsResp.UserDetails.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), - fullName: jspb.Message.getFieldWithDefault(msg, 2, ""), - groupsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - lastUpdated: (f = msg.getLastUpdated()) && proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject(includeInstance, f), - disabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, 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.users.DetailsResp.UserDetails} - */ -proto.event_store.client.users.DetailsResp.UserDetails.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DetailsResp.UserDetails; - return proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp.UserDetails} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} - */ -proto.event_store.client.users.DetailsResp.UserDetails.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.setFullName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addGroups(value); - break; - case 4: - var value = new proto.event_store.client.users.DetailsResp.UserDetails.DateTime; - reader.readMessage(value,proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader); - msg.setLastUpdated(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisabled(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.DetailsResp.UserDetails.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DetailsResp.UserDetails.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.DetailsResp.UserDetails} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsResp.UserDetails.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFullName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getGroupsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getLastUpdated(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter - ); - } - f = message.getDisabled(); - if (f) { - writer.writeBool( - 5, - 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_, 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.DetailsResp.UserDetails.DateTime.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.DetailsResp.UserDetails.DateTime.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.DetailsResp.UserDetails.DateTime} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsResp.UserDetails.DateTime.toObject = function(includeInstance, msg) { - var f, obj = { - ticksSinceEpoch: jspb.Message.getFieldWithDefault(msg, 1, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} - */ -proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.DetailsResp.UserDetails.DateTime; - return proto.event_store.client.users.DetailsResp.UserDetails.DateTime.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.DetailsResp.UserDetails.DateTime} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} - */ -proto.event_store.client.users.DetailsResp.UserDetails.DateTime.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setTicksSinceEpoch(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.DetailsResp.UserDetails.DateTime.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.DetailsResp.UserDetails.DateTime.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.DetailsResp.UserDetails.DateTime} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.DetailsResp.UserDetails.DateTime.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTicksSinceEpoch(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 1, - f - ); - } -}; - - -/** - * optional int64 ticks_since_epoch = 1; - * @return {string} - */ -proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.getTicksSinceEpoch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.DetailsResp.UserDetails.DateTime} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.DateTime.prototype.setTicksSinceEpoch = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string full_name = 2; - * @return {string} - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.getFullName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.setFullName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string groups = 3; - * @return {!Array} - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.getGroupsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.setGroupsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.addGroups = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.clearGroupsList = function() { - return this.setGroupsList([]); -}; - - -/** - * optional DateTime last_updated = 4; - * @return {?proto.event_store.client.users.DetailsResp.UserDetails.DateTime} - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.getLastUpdated = function() { - return /** @type{?proto.event_store.client.users.DetailsResp.UserDetails.DateTime} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsResp.UserDetails.DateTime, 4)); -}; - - -/** - * @param {?proto.event_store.client.users.DetailsResp.UserDetails.DateTime|undefined} value - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this -*/ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.setLastUpdated = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.clearLastUpdated = function() { - return this.setLastUpdated(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.hasLastUpdated = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional bool disabled = 5; - * @return {boolean} - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.getDisabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.event_store.client.users.DetailsResp.UserDetails} returns this - */ -proto.event_store.client.users.DetailsResp.UserDetails.prototype.setDisabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional UserDetails user_details = 1; - * @return {?proto.event_store.client.users.DetailsResp.UserDetails} - */ -proto.event_store.client.users.DetailsResp.prototype.getUserDetails = function() { - return /** @type{?proto.event_store.client.users.DetailsResp.UserDetails} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.DetailsResp.UserDetails, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.DetailsResp.UserDetails|undefined} value - * @return {!proto.event_store.client.users.DetailsResp} returns this -*/ -proto.event_store.client.users.DetailsResp.prototype.setUserDetails = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.DetailsResp} returns this - */ -proto.event_store.client.users.DetailsResp.prototype.clearUserDetails = function() { - return this.setUserDetails(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.DetailsResp.prototype.hasUserDetails = 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_, 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.ChangePasswordReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ChangePasswordReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} - */ -proto.event_store.client.users.ChangePasswordReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.ChangePasswordReq; - return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.ChangePasswordReq} - */ -proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options; - reader.readMessage(value,proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ChangePasswordReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.ChangePasswordReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ChangePasswordReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), - currentPassword: jspb.Message.getFieldWithDefault(msg, 2, ""), - newPassword: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - 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.ChangePasswordReq.Options} - */ -proto.event_store.client.users.ChangePasswordReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.ChangePasswordReq.Options; - return proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.ChangePasswordReq.Options} - */ -proto.event_store.client.users.ChangePasswordReq.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.setCurrentPassword(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNewPassword(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.ChangePasswordReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.ChangePasswordReq.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.ChangePasswordReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ChangePasswordReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCurrentPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNewPassword(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.ChangePasswordReq.Options.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this - */ -proto.event_store.client.users.ChangePasswordReq.Options.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string current_password = 2; - * @return {string} - */ -proto.event_store.client.users.ChangePasswordReq.Options.prototype.getCurrentPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this - */ -proto.event_store.client.users.ChangePasswordReq.Options.prototype.setCurrentPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string new_password = 3; - * @return {string} - */ -proto.event_store.client.users.ChangePasswordReq.Options.prototype.getNewPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.ChangePasswordReq.Options} returns this - */ -proto.event_store.client.users.ChangePasswordReq.Options.prototype.setNewPassword = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.ChangePasswordReq.Options} - */ -proto.event_store.client.users.ChangePasswordReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.ChangePasswordReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.ChangePasswordReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.ChangePasswordReq.Options|undefined} value - * @return {!proto.event_store.client.users.ChangePasswordReq} returns this -*/ -proto.event_store.client.users.ChangePasswordReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.ChangePasswordReq} returns this - */ -proto.event_store.client.users.ChangePasswordReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.ChangePasswordReq.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_, 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.ChangePasswordResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} - */ -proto.event_store.client.users.ChangePasswordResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.ChangePasswordResp; - return proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.ChangePasswordResp} - */ -proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.ChangePasswordResp.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.ChangePasswordResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ChangePasswordResp.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_, 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.ResetPasswordReq.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ResetPasswordReq.toObject = function(includeInstance, msg) { - var f, obj = { - options: (f = msg.getOptions()) && proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} - */ -proto.event_store.client.users.ResetPasswordReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.ResetPasswordReq; - return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.ResetPasswordReq} - */ -proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options; - reader.readMessage(value,proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ResetPasswordReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter - ); - } -}; - - - - - -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_, 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.ResetPasswordReq.Options.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ResetPasswordReq.Options.toObject = function(includeInstance, msg) { - var f, obj = { - loginName: jspb.Message.getFieldWithDefault(msg, 1, ""), - newPassword: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - 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.ResetPasswordReq.Options} - */ -proto.event_store.client.users.ResetPasswordReq.Options.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.ResetPasswordReq.Options; - return proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.ResetPasswordReq.Options} - */ -proto.event_store.client.users.ResetPasswordReq.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.setNewPassword(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.ResetPasswordReq.Options.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.ResetPasswordReq.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.ResetPasswordReq.Options} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ResetPasswordReq.Options.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNewPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string login_name = 1; - * @return {string} - */ -proto.event_store.client.users.ResetPasswordReq.Options.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.ResetPasswordReq.Options} returns this - */ -proto.event_store.client.users.ResetPasswordReq.Options.prototype.setLoginName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string new_password = 2; - * @return {string} - */ -proto.event_store.client.users.ResetPasswordReq.Options.prototype.getNewPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.event_store.client.users.ResetPasswordReq.Options} returns this - */ -proto.event_store.client.users.ResetPasswordReq.Options.prototype.setNewPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Options options = 1; - * @return {?proto.event_store.client.users.ResetPasswordReq.Options} - */ -proto.event_store.client.users.ResetPasswordReq.prototype.getOptions = function() { - return /** @type{?proto.event_store.client.users.ResetPasswordReq.Options} */ ( - jspb.Message.getWrapperField(this, proto.event_store.client.users.ResetPasswordReq.Options, 1)); -}; - - -/** - * @param {?proto.event_store.client.users.ResetPasswordReq.Options|undefined} value - * @return {!proto.event_store.client.users.ResetPasswordReq} returns this -*/ -proto.event_store.client.users.ResetPasswordReq.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.event_store.client.users.ResetPasswordReq} returns this - */ -proto.event_store.client.users.ResetPasswordReq.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.event_store.client.users.ResetPasswordReq.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_, 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.ResetPasswordResp.prototype.toObject = function(opt_includeInstance) { - return proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} - */ -proto.event_store.client.users.ResetPasswordResp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.event_store.client.users.ResetPasswordResp; - return proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.event_store.client.users.ResetPasswordResp} - */ -proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.event_store.client.users.ResetPasswordResp.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.ResetPasswordResp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.event_store.client.users.ResetPasswordResp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -goog.object.extend(exports, proto.event_store.client.users); diff --git a/packages/db-client/package.json b/packages/db-client/package.json index 95ca8b68..f7bb5bc7 100644 --- a/packages/db-client/package.json +++ b/packages/db-client/package.json @@ -10,10 +10,10 @@ "build:watch": "yarn generate && yarn build:ts-watch", "build:ts-watch": "tsc --build --watch", "generate": "yarn generate:folder && yarn generate:sed-append && yarn generate:sed-insert && yarn generate:js", - "generate:sed-append": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*) \\[deprecated = true\\];/int64 \\$1 = \\$2 [deprecated = true, jstype = JS_STRING];/g\" ./protos/kurrentdb/protocols/v*/*", - "generate:sed-insert": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*);/int64 \\$1 = \\$2 [jstype = JS_STRING];/g\" ./protos/kurrentdb/protocols/v*/*", + "generate:sed-append": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*) \\[deprecated = true\\];/int64 \\$1 = \\$2 [deprecated = true, jstype = JS_STRING];/g\" ./protos/kurrentdb/protocols/**/*.proto", + "generate:sed-insert": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*);/int64 \\$1 = \\$2 [jstype = JS_STRING];/g\" ./protos/kurrentdb/protocols/**/*.proto", "generate:folder": "shx mkdir -p ./generated", - "generate:js": "grpc_tools_node_protoc ./protos/kurrentdb/protocols/v*/*.proto --proto_path=./protos/kurrentdb/protocols/v1 --proto_path=./protos/kurrentdb/protocols/v2 --grpc_out=grpc_js:./generated --js_out=import_style=commonjs,binary:./generated --ts_out=generate_package_definition:./generated", + "generate:js": "grpc_tools_node_protoc ./protos/kurrentdb/protocols/**/*.proto --proto_path=./protos --grpc_out=grpc_js:./generated --js_out=import_style=commonjs,binary:./generated --ts_out=generate_package_definition:./generated", "clean": "yarn clean:generated && yarn clean:dist && yarn clean:buildinfo", "clean:generated": "shx rm -rf ./generated", "clean:dist": "shx rm -rf ./dist", diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto b/packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto index 63983a03..a58e2428 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/gossip.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package event_store.client.gossip; option java_package = "com.eventstore.dbclient.proto.gossip"; -import "shared.proto"; +import "kurrentdb/protocols/v1/shared.proto"; service Gossip { rpc Read (event_store.client.Empty) returns (ClusterInfo); diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/operations.proto b/packages/db-client/protos/kurrentdb/protocols/v1/operations.proto index 06a815b4..e52c004f 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/operations.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/operations.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package event_store.client.operations; option java_package = "com.eventstore.dbclient.proto.operations"; -import "shared.proto"; +import "kurrentdb/protocols/v1/shared.proto"; service Operations { rpc StartScavenge (StartScavengeReq) returns (ScavengeResp); diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/persistentsubscriptions.proto b/packages/db-client/protos/kurrentdb/protocols/v1/persistentsubscriptions.proto index 8cb38a3a..8acd50f2 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/persistentsubscriptions.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/persistentsubscriptions.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package event_store.client.persistent_subscriptions; option java_package = "com.eventstore.dbclient.proto.persistentsubscriptions"; -import "shared.proto"; +import "kurrentdb/protocols/v1/shared.proto"; service PersistentSubscriptions { rpc Create (CreateReq) returns (CreateResp); diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/projectionmanagement.proto b/packages/db-client/protos/kurrentdb/protocols/v1/projectionmanagement.proto index 9d1be606..08fe1627 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/projectionmanagement.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/projectionmanagement.proto @@ -3,7 +3,7 @@ package event_store.client.projections; option java_package = "com.eventstore.dbclient.proto.projections"; import "google/protobuf/struct.proto"; -import "shared.proto"; +import "kurrentdb/protocols/v1/shared.proto"; service Projections { rpc Create (CreateReq) returns (CreateResp); diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto b/packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto index cba04f2c..3faba7da 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/serverfeatures.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package event_store.client.server_features; option java_package = "com.eventstore.dbclient.proto.serverfeatures"; -import "shared.proto"; +import "kurrentdb/protocols/v1/shared.proto"; service ServerFeatures { rpc GetSupportedMethods (event_store.client.Empty) returns (SupportedMethods); diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/status.proto b/packages/db-client/protos/kurrentdb/protocols/v1/status.proto index 65eced26..c4575173 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/status.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/status.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.rpc; import "google/protobuf/any.proto"; -import "code.proto"; +import "kurrentdb/protocols/v1/code.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; diff --git a/packages/db-client/protos/kurrentdb/protocols/v1/streams.proto b/packages/db-client/protos/kurrentdb/protocols/v1/streams.proto index 800f0768..f1117c08 100644 --- a/packages/db-client/protos/kurrentdb/protocols/v1/streams.proto +++ b/packages/db-client/protos/kurrentdb/protocols/v1/streams.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package event_store.client.streams; option java_package = "com.eventstore.dbclient.proto.streams"; -import "shared.proto"; -import "status.proto"; +import "kurrentdb/protocols/v1/shared.proto"; +import "kurrentdb/protocols/v1/status.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/db-client/protos/kurrentdb/protocols/v2/core.proto b/packages/db-client/protos/kurrentdb/protocols/v2/core.proto new file mode 100644 index 00000000..b4626652 --- /dev/null +++ b/packages/db-client/protos/kurrentdb/protocols/v2/core.proto @@ -0,0 +1,82 @@ +syntax = "proto3"; + +package kurrentdb.protocol; + +option csharp_namespace = "KurrentDB.Protocol"; +option java_package = "io.kurrentdb.protocol"; +option java_multiple_files = true; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/descriptor.proto"; + +//=================================================================== +// Error Annotations +//=================================================================== + +message ErrorAnnotations { + // Identifies the error condition. + string code = 1; + + // Severity of the error. + Severity severity = 2; + + // Human-readable message that describes the error condition. + optional string message = 3; + + enum Severity { + // The error is recoverable, the operation failed but the session can continue. + RECOVERABLE = 0; + // The error is fatal and the session should be terminated. + FATAL = 1; + } +} + +// Extend the MessageOptions to include error information. +extend google.protobuf.MessageOptions { + // Provides additional information about the error condition. + optional ErrorAnnotations error_info = 50000; +} + +//=================================================================== +// Dynamic values map +//=================================================================== + +// Represents a list of dynamically typed values. +message DynamicValueList { + // Repeated property of dynamically typed values. + repeated DynamicValue values = 1; +} + +// Represents a map of dynamically typed values. +message DynamicValueMap { + // A map of string keys to dynamically typed values. + map values = 1; +} + +// Represents a dynamic value +message DynamicValue { + oneof kind { + // Represents a null value. + google.protobuf.NullValue null_value = 1; + // Represents a 32-bit signed integer value. + sint32 int32_value = 2; + // Represents a 64-bit signed integer value. + sint64 int64_value = 3; + // Represents a byte array value. + bytes bytes_value = 4; + // Represents a 64-bit double-precision floating-point value. + double double_value = 5; + // Represents a 32-bit single-precision floating-point value + float float_value = 6; + // Represents a string value. + string string_value = 7; + // Represents a boolean value. + bool boolean_value = 8; + // Represents a timestamp value. + google.protobuf.Timestamp timestamp_value = 9; + // Represents a duration value. + google.protobuf.Duration duration_value = 10; + } +} diff --git a/packages/db-client/protos/kurrentdb/protocols/v2/dynamic-value.proto b/packages/db-client/protos/kurrentdb/protocols/v2/dynamic-value.proto deleted file mode 100644 index 04ce17e5..00000000 --- a/packages/db-client/protos/kurrentdb/protocols/v2/dynamic-value.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; - -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/struct.proto"; - -package kurrentdb.protobuf; -option csharp_namespace = "KurrentDB.Protobuf"; - -message DynamicValue { - oneof kind { - // Represents a null value. - google.protobuf.NullValue null_value = 1; - - // Represents a 32-bit signed integer value. - sint32 int32_value = 2; - - // Represents a 64-bit signed integer value. - sint64 int64_value = 3; - - // Represents a byte array value. - bytes bytes_value = 4; - - // Represents a 64-bit double-precision floating-point value. - double double_value = 5; - - // Represents a 32-bit single-precision floating-point value - float float_value = 6; - - // Represents a string value. - string string_value = 7; - - // Represents a boolean value. - bool boolean_value = 8; - - // Represents a timestamp value. - google.protobuf.Timestamp timestamp_value = 9; - - // Represents a duration value. - google.protobuf.Duration duration_value = 10; - } -} \ No newline at end of file diff --git a/packages/db-client/protos/kurrentdb/protocols/v2/features/service.proto b/packages/db-client/protos/kurrentdb/protocols/v2/features/service.proto new file mode 100644 index 00000000..c7af3a8f --- /dev/null +++ b/packages/db-client/protos/kurrentdb/protocols/v2/features/service.proto @@ -0,0 +1,144 @@ +syntax = "proto3"; + +/** + * KurrentDB Server Features Protocol + * + * This protocol defines services and messages for discovering server features + * in a KurrentDB environment. It enables clients to adapt their behavior based + * on server features, their enablement status, and requirements. + */ +package kurrentdb.protocol.v2; + +option csharp_namespace = "KurrentDB.Protocol.Features.V2"; +option java_package = "io.kurrentdb.protocol.features.v2"; +option java_multiple_files = true; + +import "google/protobuf/timestamp.proto"; +import "kurrentdb/protocols/v2/core.proto"; + +/** + * Service for retrieving information about the server, including features + * and metadata. + */ +service ServerInfoService { + // Retrieves server information and available features + rpc GetServerInfo(ServerInfoRequest) returns (ServerInfoResponse) {} +} + +/** + * Contains server version information, build details, and compatibility requirements. + */ +message ServerMetadata { + // Semantic version of the server software + string version = 1; + + // Build identifier or hash + string build = 2; + + // Minimum client version required for compatibility + string min_compatible_client_version = 3; + + // Unique identifier for this server node + string node_id = 4; +} + +/** + * Request message for retrieving server information. + */ +message ServerInfoRequest { + // Client version making the request + string client_version = 1; + + // Unique client identifier + string client_id = 2; +} + +/** + * Response containing server information. + */ +message ServerInfoResponse { + // Server information and features + ServerInfo info = 1; +} + +/** + * Top-level server information container including metadata + * and available features. + */ +message ServerInfo { + // Server metadata (version, build info, etc.) + ServerMetadata metadata = 1; + + // Features organized by namespace + map features = 2; +} + +/** + * Container for features within a specific namespace. + */ +message FeaturesList { + // Features in this namespace + repeated Feature features = 1; +} + +/** + * Defines a specific server feature with its enablement status, + * requirements, and metadata. + */ +message Feature { + // Unique identifier for this feature + string name = 1; + + // Human-readable description of the feature + optional string description = 2; + + // Whether this feature is currently enabled + bool enabled = 3; + + // Whether this feature is deprecated and may be removed in future versions + bool deprecated = 4; + + // Requirements associated with this feature that clients must satisfy + repeated FeatureRequirement requirements = 5; + + // Whether clients can request changes to this feature's enabled status + bool client_configurable = 6; + + // For temporary features, indicates when the feature will no longer be available + optional google.protobuf.Timestamp available_until = 7; +} + +/** + * Defines a requirement that must be satisfied to use a feature. + * Requirements can be optional, required, or prohibited. + */ +message FeatureRequirement { + // Unique identifier for this requirement + string name = 1; + + // The value of this requirement, which can contain various data types + DynamicValue value = 2; + + // Enforcement level for this requirement + PolicyStatus policy_status = 3; + + // Human-readable description of the requirement + optional string description = 4; + + // Message shown when the requirement is violated + optional string violation_message = 5; +} + +/** + * Defines how requirements are enforced. + */ +enum PolicyStatus { + // Feature is optional with no warnings + OPTIONAL = 0; + + // Feature must be enabled; operations rejected if disabled + REQUIRED = 3; + + // Feature must be disabled; operations rejected if enabled + PROHIBITED = 4; +} diff --git a/packages/db-client/protos/kurrentdb/protocols/v2/streams.v2.proto b/packages/db-client/protos/kurrentdb/protocols/v2/streams.v2.proto deleted file mode 100644 index 6b6615f5..00000000 --- a/packages/db-client/protos/kurrentdb/protocols/v2/streams.v2.proto +++ /dev/null @@ -1,170 +0,0 @@ -syntax = "proto3"; - -// -// This protocol is UNSTABLE in the sense of being subject to change. -// - -package kurrentdb.protocol.v2; - -option csharp_namespace = "KurrentDB.Protocol.V2"; -option java_package = "io.kurrentdb.v2"; -option java_multiple_files = true; - -import "dynamic-value.proto"; - -service StreamsService { - // Executes an atomic operation to append records to multiple streams. - // This transactional method ensures that all appends either succeed - // completely, or are entirely rolled back, thereby maintaining strict data - // consistency across all involved streams. - rpc MultiStreamAppend(MultiStreamAppendRequest) returns (MultiStreamAppendResponse); - - // Streaming version of MultiStreamAppend that allows clients to send multiple - // append requests over a single connection. When the stream completes, all - // records are appended transactionally (all succeed or fail together). - // Provides improved efficiency for high-throughput scenarios while - // maintaining the same transactional guarantees. - rpc MultiStreamAppendSession(stream AppendStreamRequest) returns (MultiStreamAppendResponse); -} - -// Record to be appended to a stream. -message AppendRecord { - // Universally Unique identifier for the record. Must be a guid. - // If not provided, the server will generate a new one. - optional string record_id = 1; - - // A collection of properties providing additional system information about the - // record. - map properties = 2; - - // The actual data payload of the record, stored as bytes. - bytes data = 3; -} - -// Constants that match the expected state of a stream during an -// append operation. It can be used to specify whether the stream should exist, -// not exist, or can be in any state. -enum ExpectedRevisionConstants { - // The stream should exist and have a single event. - EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT = 0; - - // It is not important whether the stream exists or not. - EXPECTED_REVISION_CONSTANTS_ANY = -2; - - // The stream should not exist. If it does, the append will fail. - EXPECTED_REVISION_CONSTANTS_NO_STREAM = -1; - - // The stream should exist - EXPECTED_REVISION_CONSTANTS_EXISTS = -4; -} - -// Represents the input for appending records to a specific stream. -message AppendStreamRequest { - // The name of the stream to append records to. - string stream = 1; - - // The records to append to the stream. - repeated AppendRecord records = 2; - - // The expected revision of the stream. If the stream's current revision does - // not match, the append will fail. - // The expected revision can also be one of the special values - // from ExpectedRevisionConstants. - // missing value means no expectation: same as EXPECTED_REVISION_CONSTANTS_ANY - optional sint64 expected_revision = 3 [jstype = JS_STRING]; -} - -// Success represents the successful outcome of an append operation. -message AppendStreamSuccess { - // The name of the stream to which records were appended. - string stream = 1; - - // The position of the last appended record in the transaction. - int64 position = 2 [jstype = JS_STRING]; - - // The revision of the stream after the append operation. - int64 stream_revision = 3 [jstype = JS_STRING]; -} - -// Failure represents the detailed error information when an append operation fails. -message AppendStreamFailure { - // The name of the stream to which records failed to append. - string stream = 1; - - // The error details - oneof error { - // Failed because the actual stream revision didn't match the expected revision. - ErrorDetails.WrongExpectedRevision wrong_expected_revision = 2; - - // Failed because the client lacks sufficient permissions. - ErrorDetails.AccessDenied access_denied = 3; - - // Failed because the target stream has been deleted. - ErrorDetails.StreamDeleted stream_deleted = 4; - - ErrorDetails.TransactionMaxSizeExceeded transaction_max_size_exceeded = 5; - } -} - -// Represents the output of appending records to a specific stream. -message AppendStreamResponse { - // The result of the append operation. - oneof result { - // Success represents the successful outcome of an append operation. - AppendStreamSuccess success = 1; - - // Failure represents the details of a failed append operation. - AppendStreamFailure failure = 2; - } -} - -// MultiStreamAppendRequest represents a request to append records to multiple streams. -message MultiStreamAppendRequest { - // A list of AppendStreamInput messages, each representing a stream to which records should be appended. - repeated AppendStreamRequest input = 1; -} - -// Response from the MultiStreamAppend operation. -message MultiStreamAppendResponse { - oneof result { - // Success represents the successful outcome of a multi-stream append operation. - Success success = 1; - - // Failure represents the details of a failed multi-stream append operation. - Failure failure = 2; - } - - message Success { - repeated AppendStreamSuccess output = 1; - } - - message Failure { - repeated AppendStreamFailure output = 1; - } -} - -// ErrorDetails provides detailed information about specific error conditions. -message ErrorDetails { - // When the user does not have sufficient permissions to perform the operation. - message AccessDenied { - // The reason for access denial. - string reason = 1; - } - - // When the stream has been deleted. - message StreamDeleted { - } - - // When the expected revision of the stream does not match the actual revision. - message WrongExpectedRevision { - // The actual revision of the stream. - int64 stream_revision = 1 [jstype = JS_STRING]; - } - - // When the transaction exceeds the maximum size allowed - // (it's bigger than the configured chunk size). - message TransactionMaxSizeExceeded { - // The maximum allowed size of the transaction. - int32 max_size = 1; - } -} \ No newline at end of file diff --git a/packages/db-client/protos/kurrentdb/protocols/v2/streams/shared.proto b/packages/db-client/protos/kurrentdb/protocols/v2/streams/shared.proto new file mode 100644 index 00000000..628f681e --- /dev/null +++ b/packages/db-client/protos/kurrentdb/protocols/v2/streams/shared.proto @@ -0,0 +1,118 @@ +syntax = "proto3"; + +package kurrentdb.protocol.v2; + +option csharp_namespace = "KurrentDB.Protocol.Streams.V2"; +option java_package = "io.kurrentdb.protocol.streams.v2"; +option java_multiple_files = true; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/descriptor.proto"; +import "kurrentdb/protocols/v2/core.proto"; + +// ErrorDetails provides detailed information about specific error conditions. +message ErrorDetails { + // When the user does not have sufficient permissions to perform the + // operation. + message AccessDenied { + option (error_info) = { + code : "ACCESS_DENIED", + severity : RECOVERABLE, + message : "The user does not have sufficient permissions to perform the operation." + }; + } + + // When the stream has been deleted. + message StreamDeleted { + option (error_info) = { + code : "STREAM_DELETED", + severity : RECOVERABLE, + message : "The stream has been soft deleted. It will not be visible in the stream list, until it is restored by appending to it again." + }; + + // The name of the stream that was deleted. + optional string stream = 1; + + // The time when the stream was deleted. + google.protobuf.Timestamp deleted_at = 2; + } + + // When the stream has been tombstoned. + message StreamTombstoned { + option (error_info) = { + code : "STREAM_TOMBSTONED", + severity : RECOVERABLE, + message : "The stream has been tombstoned and cannot be used anymore." + }; + + // The name of the stream that was tombstoned. + optional string stream = 1; + + // The time when the stream was tombstoned. + google.protobuf.Timestamp tombstoned_at = 2; + } + + // When the stream is not found. + message StreamNotFound { + option (error_info) = { + code : "STREAM_NOT_FOUND", + severity : RECOVERABLE, + message : "The specified stream was not found." + }; + + // The name of the stream that was not found. + optional string stream = 1; + } + + // When the expected revision of the stream does not match the actual + // revision. + message StreamRevisionConflict { + option (error_info) = { + code : "REVISION_CONFLICT", + severity : RECOVERABLE, + message : "The actual stream revision does not match the expected revision." + }; + + // The actual revision of the stream. + int64 stream_revision = 1 [jstype = JS_STRING]; + } + + // When the transaction exceeds the maximum size allowed + // (its bigger than the configured chunk size). + message TransactionMaxSizeExceeded { + option (error_info) = { + code : "TRANSACTION_MAX_SIZE_EXCEEDED", + severity : FATAL, + message : "The transaction exceeds the maximum size allowed." + }; + + // The maximum allowed size of the transaction. + uint32 max_size = 1; + } + + // When the user is not found. + message UserNotFound { + option (error_info) = { + code : "USER_NOT_FOUND", + severity : RECOVERABLE, + message : "The specified user was not found." + }; + } + + // When the user is not authenticated. + message NotAuthenticated { + option (error_info) = { + code : "NOT_AUTHENTICATED", + severity : RECOVERABLE, + message : "The user is not authenticated." + }; + } + + message LogPositionNotFound { + option (error_info) = { + code : "LOG_POSITION_NOT_FOUND", + severity : RECOVERABLE, + message : "The specified log position was not found." + }; + } +} diff --git a/packages/db-client/protos/kurrentdb/protocols/v2/streams/streams.proto b/packages/db-client/protos/kurrentdb/protocols/v2/streams/streams.proto new file mode 100644 index 00000000..919261ba --- /dev/null +++ b/packages/db-client/protos/kurrentdb/protocols/v2/streams/streams.proto @@ -0,0 +1,481 @@ +syntax = "proto3"; + +package kurrentdb.protocol.v2; + +option csharp_namespace = "KurrentDB.Protocol.Streams.V2"; +option java_package = "io.kurrentdb.protocol.streams.v2"; +option java_multiple_files = true; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/descriptor.proto"; + +import "kurrentdb/protocols/v2/streams/shared.proto"; +import "kurrentdb/protocols/v2/core.proto"; + +service StreamsService { + // Executes an atomic operation to append records to multiple streams. + // This transactional method ensures that all appends either succeed + // completely, or are entirely rolled back, thereby maintaining strict data + // consistency across all involved streams. + rpc MultiStreamAppend(MultiStreamAppendRequest) returns (MultiStreamAppendResponse); + + // Streaming version of MultiStreamAppend that allows clients to send multiple + // append requests over a single connection. When the stream completes, all + // records are appended transactionally (all succeed or fail together). + // Provides improved efficiency for high-throughput scenarios while + // maintaining the same transactional guarantees. + rpc MultiStreamAppendSession(stream AppendStreamRequest) returns (MultiStreamAppendResponse); + +// // Appends records to a specific stream. +// rpc AppendStream(AppendStreamRequest) returns (AppendStreamResponse); + +// // Append batches of records to a stream continuously, while guaranteeing pipelined +// // requests are processed in order. If any request fails, the session is terminated. +// rpc AppendStreamSession(stream AppendStreamRequest) returns (stream AppendStreamResponse); + +// // Retrieve a batch of records +// rpc ReadStream(ReadRequest) returns (ReadResponse); + + // Retrieve batches of records continuously. + rpc ReadSession(ReadRequest) returns (stream ReadResponse); +} + +//=================================================================== +// Append Operations +//=================================================================== + +// Record to be appended to a stream. +message AppendRecord { + // Universally Unique identifier for the record. + // If not provided, the server will generate a new one. + optional string record_id = 1; + +// // The name of the stream to append the record to. +// optional string stream = 6; +// +// // The name of the schema in the registry that defines the structure of the record. +// string schema_name = 4; +// +// // The format of the data in the record. +// SchemaDataFormat data_format = 5; + + // A collection of properties providing additional information about the + // record. This can include user-defined metadata or system properties. + // System properties are prefixed with "$." to avoid conflicts with user-defined properties. + // For example, "$schema.name" or "$schema.data-format". + map properties = 2; + + // The actual data payload of the record, stored as bytes. + bytes data = 3; +} + +// Constants that match the expected state of a stream during an +// append operation. It can be used to specify whether the stream should exist, +// not exist, or can be in any state. +enum ExpectedRevisionConstants { + // The stream should exist and the expected revision should match the current + EXPECTED_REVISION_CONSTANTS_SINGLE_EVENT = 0; + // It is not important whether the stream exists or not. + EXPECTED_REVISION_CONSTANTS_ANY = -2; + // The stream should not exist. If it does, the append will fail. + EXPECTED_REVISION_CONSTANTS_NO_STREAM = -1; + // The stream should exist + EXPECTED_REVISION_CONSTANTS_EXISTS = -4; +} + +// Represents the input for appending records to a specific stream. +message AppendStreamRequest { + // The name of the stream to append records to. + string stream = 1; + // The records to append to the stream. + repeated AppendRecord records = 2; + // The expected revision of the stream. If the stream's current revision does + // not match, the append will fail. + // The expected revision can also be one of the special values + // from ExpectedRevisionConstants. + // Missing value means no expectation, the same as EXPECTED_REVISION_CONSTANTS_ANY + optional sint64 expected_revision = 3 [jstype = JS_STRING]; +} + +// Success represents the successful outcome of an append operation. +message AppendStreamSuccess { + // The name of the stream to which records were appended. + string stream = 1; + // The position of the last appended record in the stream. + int64 position = 2 [jstype = JS_STRING]; + // The expected revision of the stream after the append operation. + int64 stream_revision = 3 [jstype = JS_STRING]; +} + +// Failure represents the detailed error information when an append operation fails. +message AppendStreamFailure { + // The name of the stream to which records were appended. + string stream = 1; + + // The error details + oneof error { + // Failed because the actual stream revision didn't match the expected revision. + ErrorDetails.StreamRevisionConflict stream_revision_conflict = 2; + // Failed because the client lacks sufficient permissions. + ErrorDetails.AccessDenied access_denied = 3; + // Failed because the target stream has been deleted. + ErrorDetails.StreamDeleted stream_deleted = 4; + // Failed because the stream was not found. + ErrorDetails.StreamNotFound stream_not_found = 5; + // Failed because the transaction exceeded the maximum size allowed + ErrorDetails.TransactionMaxSizeExceeded transaction_max_size_exceeded = 6; + } +} + +// AppendStreamResponse represents the output of appending records to a specific +// stream. +message AppendStreamResponse { + // The result of the append operation. + oneof result { + // Success represents the successful outcome of an append operation. + AppendStreamSuccess success = 1; + // Failure represents the details of a failed append operation. + AppendStreamFailure failure = 2; + } +} + +// MultiStreamAppendRequest represents a request to append records to multiple streams. +message MultiStreamAppendRequest { + // A list of AppendStreamInput messages, each representing a stream to which records should be appended. + repeated AppendStreamRequest input = 1; +} + +// Response from the MultiStreamAppend operation. +message MultiStreamAppendResponse { + oneof result { + // Success represents the successful outcome of a multi-stream append operation. + Success success = 1; + // Failure represents the details of a failed multi-stream append operation. + Failure failure = 2; + } + + message Success { + repeated AppendStreamSuccess output = 1; + } + + message Failure { + repeated AppendStreamFailure output = 1; + } +} + +//=================================================================== +// Read Operations +//=================================================================== + +// The scope of the read filter determines where the filter will be applied. +enum ReadFilterScope { + READ_FILTER_SCOPE_UNSPECIFIED = 0; + // The filter will be applied to the record stream name + READ_FILTER_SCOPE_STREAM = 1; + // The filter will be applied to the record schema name + READ_FILTER_SCOPE_SCHEMA_NAME = 2; + // The filter will be applied to the properties of the record + READ_FILTER_SCOPE_PROPERTIES = 3; + // The filter will be applied to all the record properties + // including the stream and schema name + READ_FILTER_SCOPE_RECORD = 4; +} + +// The filter to apply when reading records from the database +// The combination of stream scope and literal expression indicates a direct stream name match, +// while a regex expression indicates a pattern match across multiple streams. +message ReadFilter { + // The scope of the filter. + ReadFilterScope scope = 1; + // The expression can be a regular expression or a literal value. + // If it starts with "~" it will be considered a regex. + string expression = 2; + + // // The optional name of the record property to filter on. + // optional string property_name = 3; + + // The optional property names to filter on. + repeated string property_names = 4; +} + +// Record retrieved from the database. +message Record { + // The unique identifier of the record in the database. + string record_id = 1; + // The position of the record in the database. + int64 position = 5 [jstype = JS_STRING]; + // The actual data payload of the record, stored as bytes. + bytes data = 2; + // Additional information about the record. + map properties = 3; + // When the record was created. + google.protobuf.Timestamp timestamp = 4; + // The stream to which the record belongs. + optional string stream = 6; + // The revision of the stream created when the record was appended. + optional int64 stream_revision = 7 [jstype = JS_STRING]; +} + +// The direction in which to read records from the database (forwards or backwards). +enum ReadDirection { + READ_DIRECTION_FORWARDS = 0; + READ_DIRECTION_BACKWARDS = 1; +} + +// The position from which to start reading records. +// This can be either the earliest or latest position in the stream. +enum ReadPositionConstants { + READ_POSITION_CONSTANTS_UNSPECIFIED = 0; + READ_POSITION_CONSTANTS_EARLIEST = 1; + READ_POSITION_CONSTANTS_LATEST = 2; +} + +// Represents the successful outcome of a read operation. +message ReadSuccess { + repeated Record records = 1; +} + +// Represents the detailed error information when a read operation fails. +message ReadFailure { + // The error details + oneof error { + // Failed because the client lacks sufficient permissions. + ErrorDetails.AccessDenied access_denied = 1; + // Failed because the target stream has been deleted. + ErrorDetails.StreamDeleted stream_deleted = 2; + // Failed because the expected stream revision did not match the actual revision. + ErrorDetails.StreamNotFound stream_not_found = 3; + } +} + +message ReadRequest { + // The filter to apply when reading records. + optional ReadFilter filter = 1; + // The starting position of the log from which to read records. + optional int64 start_position = 2 [jstype = JS_STRING]; + // Limit how many records can be returned. + // This will get capped at the default limit, + // which is up to 1000 records. + optional int64 limit = 3 [jstype = JS_STRING]; + // The direction in which to read the stream (forwards or backwards). + ReadDirection direction = 4; + // Heartbeats can be enabled to monitor end-to-end session health. + HeartbeatOptions heartbeats = 5; + // The number of records to read in a single batch. + int32 batch_size = 6; +} + +//message SubscriptionConfirmed { +// // The subscription ID that was confirmed. +// string subscription_id = 1; +// // The position of the last record read by the server. +// optional int64 position = 2 [jstype = JS_STRING]; +// // When the subscription was confirmed. +// google.protobuf.Timestamp timestamp = 3; +//} + +// Read session response. +message ReadResponse { + oneof result { + // Success represents the successful outcome of an read operation. + ReadSuccess success = 1; + // Failure represents the details of a failed read operation. + ReadFailure failure = 2; + // Heartbeat represents the health check of the read operation when + // the server has not found any records matching the filter for the specified + // period of time or records threshold. + // A heartbeat will be sent when the initial switch to real-time tailing happens. + Heartbeat heartbeat = 3; + } +} + +// A health check will be sent when the server has not found any records +// matching the filter for the specified period of time or records threshold. A +// heartbeat will be sent when the initial switch to real-time tailing happens. +message HeartbeatOptions { + bool enable = 1; + optional google.protobuf.Duration period = 2; // 30 seconds + optional int32 records_threshold = 3; // 500 +} + +enum HeartbeatType { + HEARTBEAT_TYPE_UNSPECIFIED = 0; + HEARTBEAT_TYPE_CHECKPOINT = 1; + HEARTBEAT_TYPE_CAUGHT_UP = 2; + HEARTBEAT_TYPE_FELL_BEHIND = 3; +} + +message Heartbeat { + // This indicates whether the subscription is caught up, fell behind, or + // the filter has not been satisfied after a period of time or records threshold. + HeartbeatType type = 1; + // Checkpoint for resuming reads. + // It will always be populated unless the database is empty. + int64 position = 2 [jstype = JS_STRING]; + // When the heartbeat was sent. + google.protobuf.Timestamp timestamp = 3; +} + +////=================================================================== +//// Read Operations +////=================================================================== +// +//enum ConsumeFilterScope { +// CONSUME_FILTER_SCOPE_UNSPECIFIED = 0; +// // The filter will be applied to the stream name +// CONSUME_FILTER_SCOPE_STREAM = 1; +// // The filter will be applied to the record schema name +// CONSUME_FILTER_SCOPE_RECORD = 2; +// // The filter will be applied to the properties of record +// CONSUME_FILTER_SCOPE_PROPERTIES = 3; +// // The filter will be applied to the record data +// CONSUME_FILTER_SCOPE_DATA = 4; +//} +// +//// The filter to apply when reading records from the database +//// It applies to a stream or a record +//message ConsumeFilter { +// // The scope of the filter. +// ConsumeFilterScope scope = 1; +// // The expression can be a regular expression, a jsonpath expression, or a literal value. +// // if it starts with "~" it will be considered a regex and if it starts with "$" it will be considered a jsonpath filter, else its a literal. +// string expression = 2; +// // The name of the record property to filter on. +// optional string property_name = 3; +//} +// +//// Record retrieved from the database. +//message Record { +// // The unique identifier of the record in the database. +// string record_id = 1; +// // The position of the record in the database. +// int64 position = 5 [jstype = JS_STRING]; +// // The actual data payload of the record, stored as bytes. +// bytes data = 2; +// // Additional information about the record. +// map properties = 3; +// // When the record was created. +// google.protobuf.Timestamp timestamp = 4; +// // The stream to which the record belongs. +// optional string stream = 6; +// // The revision of the stream created when the record was appended. +// optional int64 stream_revision = 7 [jstype = JS_STRING]; +//} +// +////// A batch of records. +////message RecordBatch { +//// repeated Record records = 1; +////} +// +//// The direction in which to read records from the database (forwards or backwards). +//enum ReadDirection { +// READ_DIRECTION_FORWARDS = 0; +// READ_DIRECTION_BACKWARDS = 1; +//} +// +//// The position from which to start reading records. +//// This can be either the earliest or latest position in the stream. +//enum ReadPositionConstants { +// READ_POSITION_CONSTANTS_UNSPECIFIED = 0; +// READ_POSITION_CONSTANTS_EARLIEST = 1; +// READ_POSITION_CONSTANTS_LATEST = 2; +//} +// +//message ReadStreamRequest { +// // The filter to apply when reading records. +// optional ConsumeFilter filter = 1; +// // The starting position of the log from which to read records. +// optional int64 start_position = 2 [jstype = JS_STRING]; +// // Limit how many records can be returned. +// // This will get capped at the default limit, +// // which is up to 1000 records. +// optional int64 limit = 3 [jstype = JS_STRING]; +// // The direction in which to read the stream (forwards or backwards). +// ReadDirection direction = 4; +//} +// +//message ReadStreamSuccess { +// repeated Record records = 1; +//} +// +//// Represents the detailed error information when a read operation fails. +//message ReadStreamFailure { +// // The error details +// oneof error { +// // Failed because the client lacks sufficient permissions. +// ErrorDetails.AccessDenied access_denied = 3; +// // Failed because the target stream has been deleted. +// ErrorDetails.StreamDeleted stream_deleted = 4; +// } +//} +//message ReadStreamResponse { +// // The result of the read operation. +// oneof result { +// // Success represents the successful outcome of an read operation. +// ReadStreamSuccess success = 1; +// // Failure represents the details of a failed read operation. +// ReadStreamFailure failure = 2; +// // Heartbeat represents the health check of the read operation when +// // the server has not found any records matching the filter for the specified +// // period of time or records threshold. +// // A heartbeat will be sent when the initial switch to real-time tailing happens. +// Heartbeat heartbeat = 3; +// } +//} +// +//message ReadSessionRequest { +// // The filter to apply when reading records. +// optional ConsumeFilter filter = 1; +// // The starting position of the log from which to read records. +// optional int64 start_position = 2 [jstype = JS_STRING]; +// // Limit how many records can be returned. +// // This will get capped at the default limit, +// // which is up to 1000 records. +// optional int64 limit = 3 [jstype = JS_STRING]; +// // The direction in which to read the stream (forwards or backwards). +// ReadDirection direction = 4; +// // Heartbeats can be enabled to monitor end-to-end session health. +// HeartbeatOptions heartbeats = 5; +//} +// +//// Read session response. +//message ReadSessionResponse { +// oneof result { +// // Success represents the successful outcome of an read operation. +// ReadStreamSuccess success = 1; +// // Failure represents the details of a failed read operation. +// ReadStreamFailure failure = 2; +// // Heartbeat represents the health check of the read operation when +// // the server has not found any records matching the filter for the specified +// // period of time or records threshold. +// // A heartbeat will be sent when the initial switch to real-time tailing happens. +// Heartbeat heartbeat = 3; +// } +//} +// +//// A health check will be sent when the server has not found any records +//// matching the filter for the specified period of time or records threshold. A +//// heartbeat will be sent when the initial switch to real-time tailing happens. +//message HeartbeatOptions { +// bool enable = 1; +// //optional google.protobuf.Duration period = 2; +// optional int32 records_threshold = 3; // 1000 +//} +// +//enum HeartbeatType { +// HEARTBEAT_TYPE_UNSPECIFIED = 0; +// HEARTBEAT_TYPE_CHECKPOINT = 1; +// HEARTBEAT_TYPE_CAUGHT_UP = 2; +//} +// +//message Heartbeat { +// // This indicates whether the subscription is caught up, fell behind, or +// // the filter has not been satisfied after a period of time or records threshold. +// HeartbeatType type = 1; +// // Checkpoint for resuming reads. +// // It will always be populated unless the database is empty. +// int64 position = 2 [jstype = JS_STRING]; +// // When the heartbeat was sent. +// google.protobuf.Timestamp timestamp = 3; +//} diff --git a/packages/db-client/src/Client/ServerFeatures.ts b/packages/db-client/src/Client/ServerFeatures.ts index 69132751..ce107c95 100644 --- a/packages/db-client/src/Client/ServerFeatures.ts +++ b/packages/db-client/src/Client/ServerFeatures.ts @@ -1,8 +1,8 @@ import type { MethodDefinition, ServiceError } from "@grpc/grpc-js"; -import { Empty } from "../../generated/shared_pb"; -import { ServerFeaturesClient } from "../../generated/serverfeatures_grpc_pb"; -import type { SupportedMethods } from "../../generated/serverfeatures_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { ServerFeaturesClient } from "../../generated/kurrentdb/protocols/v1/serverfeatures_grpc_pb"; +import type { SupportedMethods } from "../../generated/kurrentdb/protocols/v1/serverfeatures_pb"; import { debug } from "../utils"; import type { GRPCClientConstructor } from "../types"; diff --git a/packages/db-client/src/Client/discovery.ts b/packages/db-client/src/Client/discovery.ts index 0c4bdcbf..43965aab 100644 --- a/packages/db-client/src/Client/discovery.ts +++ b/packages/db-client/src/Client/discovery.ts @@ -1,7 +1,7 @@ import { ChannelCredentials, Metadata } from "@grpc/grpc-js"; -import { GossipClient } from "../../generated/gossip_grpc_pb"; -import { Empty } from "../../generated/shared_pb"; +import { GossipClient } from "../../generated/kurrentdb/protocols/v1/gossip_grpc_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import { EndPoint, NodePreference, VNodeState } from "../types"; import { FOLLOWER, LEADER, READ_ONLY_REPLICA } from "../constants"; diff --git a/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToAll.ts b/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToAll.ts index 518bd11e..5f228c26 100644 --- a/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToAll.ts +++ b/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToAll.ts @@ -1,9 +1,9 @@ -import { Empty } from "../../generated/shared_pb"; -import { CreateReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { CreateReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import type { BaseOptions, Filter } from "../types"; import { debug, convertToCommandError, UnsupportedError } from "../utils"; diff --git a/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToStream.ts b/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToStream.ts index a709ca07..da6f64f8 100644 --- a/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToStream.ts +++ b/packages/db-client/src/persistentSubscription/createPersistentSubscriptionToStream.ts @@ -1,5 +1,5 @@ -import { CreateReq } from "../../generated/persistent_pb"; -import { PersistentSubscriptionsClient } from "../../generated/persistent_grpc_pb"; +import { CreateReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import { PersistentSubscriptionsClient } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import type { BaseOptions } from "../types"; import { debug, convertToCommandError, createStreamIdentifier } from "../utils"; diff --git a/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToAll.ts b/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToAll.ts index 558cbbae..bb239be4 100644 --- a/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToAll.ts +++ b/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToAll.ts @@ -1,9 +1,9 @@ -import { Empty } from "../../generated/shared_pb"; -import { DeleteReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { DeleteReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { convertToCommandError, debug, UnsupportedError } from "../utils"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToStream.ts b/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToStream.ts index 444dcecb..75686014 100644 --- a/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToStream.ts +++ b/packages/db-client/src/persistentSubscription/deletePersistentSubscriptionToStream.ts @@ -1,5 +1,5 @@ -import { DeleteReq } from "../../generated/persistent_pb"; -import { PersistentSubscriptionsClient } from "../../generated/persistent_grpc_pb"; +import { DeleteReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import { PersistentSubscriptionsClient } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { convertToCommandError, createStreamIdentifier, debug } from "../utils"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToAllInfo.ts b/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToAllInfo.ts index ab9ba35f..4917fa8e 100644 --- a/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToAllInfo.ts +++ b/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToAllInfo.ts @@ -1,9 +1,9 @@ -import { Empty } from "../../generated/shared_pb"; -import { GetInfoReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { GetInfoReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { convertToCommandError, debug, UnsupportedError } from "../utils"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToStreamInfo.ts b/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToStreamInfo.ts index ee61dd79..8b9fc584 100644 --- a/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToStreamInfo.ts +++ b/packages/db-client/src/persistentSubscription/getPersistentSubscriptionToStreamInfo.ts @@ -1,8 +1,8 @@ -import { GetInfoReq } from "../../generated/persistent_pb"; +import { GetInfoReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { convertToCommandError, diff --git a/packages/db-client/src/persistentSubscription/listAllPersistentSubscriptions.ts b/packages/db-client/src/persistentSubscription/listAllPersistentSubscriptions.ts index 3c4ff766..5ad2e572 100644 --- a/packages/db-client/src/persistentSubscription/listAllPersistentSubscriptions.ts +++ b/packages/db-client/src/persistentSubscription/listAllPersistentSubscriptions.ts @@ -1,9 +1,9 @@ import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; -import { ListReq } from "../../generated/persistent_pb"; -import { Empty } from "../../generated/shared_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; +import { ListReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import type { BaseOptions } from "../types"; import { debug, convertToCommandError } from "../utils"; diff --git a/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToAll.ts b/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToAll.ts index 83c7ff1c..3e5ba77d 100644 --- a/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToAll.ts +++ b/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToAll.ts @@ -1,9 +1,9 @@ import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; -import { ListReq } from "../../generated/persistent_pb"; -import { Empty } from "../../generated/shared_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; +import { ListReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import type { BaseOptions } from "../types"; import { debug, convertToCommandError, UnsupportedError } from "../utils"; diff --git a/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToStream.ts b/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToStream.ts index f51939ff..273d43de 100644 --- a/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToStream.ts +++ b/packages/db-client/src/persistentSubscription/listPersistentSubscriptionsToStream.ts @@ -1,8 +1,8 @@ import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; -import { ListReq } from "../../generated/persistent_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; +import { ListReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import type { BaseOptions } from "../types"; import { diff --git a/packages/db-client/src/persistentSubscription/replayParkedMessagesToAll.ts b/packages/db-client/src/persistentSubscription/replayParkedMessagesToAll.ts index 40d55f6b..eeb6ae8a 100644 --- a/packages/db-client/src/persistentSubscription/replayParkedMessagesToAll.ts +++ b/packages/db-client/src/persistentSubscription/replayParkedMessagesToAll.ts @@ -1,9 +1,9 @@ -import { Empty } from "../../generated/shared_pb"; -import { ReplayParkedReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { ReplayParkedReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { convertToCommandError, debug, UnsupportedError } from "../utils"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/persistentSubscription/replayParkedMessagesToStream.ts b/packages/db-client/src/persistentSubscription/replayParkedMessagesToStream.ts index 4a0d73e6..0b3bc1b2 100644 --- a/packages/db-client/src/persistentSubscription/replayParkedMessagesToStream.ts +++ b/packages/db-client/src/persistentSubscription/replayParkedMessagesToStream.ts @@ -1,9 +1,9 @@ -import { Empty } from "../../generated/shared_pb"; -import { ReplayParkedReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { ReplayParkedReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { convertToCommandError, diff --git a/packages/db-client/src/persistentSubscription/restartPersistentSubscriptionSubsystem.ts b/packages/db-client/src/persistentSubscription/restartPersistentSubscriptionSubsystem.ts index 15eee5d8..ade68a43 100644 --- a/packages/db-client/src/persistentSubscription/restartPersistentSubscriptionSubsystem.ts +++ b/packages/db-client/src/persistentSubscription/restartPersistentSubscriptionSubsystem.ts @@ -1,8 +1,8 @@ import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; -import { Empty } from "../../generated/shared_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToAll.ts b/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToAll.ts index 4bed5b05..152fc8aa 100644 --- a/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToAll.ts +++ b/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToAll.ts @@ -1,11 +1,11 @@ import type { DuplexOptions } from "stream"; -import { Empty } from "../../generated/shared_pb"; -import { ReadReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { ReadReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import type { BaseOptions, PersistentSubscriptionToAll } from "../types"; import { diff --git a/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToStream.ts b/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToStream.ts index c2605f91..80722b9b 100644 --- a/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToStream.ts +++ b/packages/db-client/src/persistentSubscription/subscribeToPersistentSubscriptionToStream.ts @@ -1,8 +1,8 @@ import type { DuplexOptions } from "stream"; -import { Empty } from "../../generated/shared_pb"; -import { ReadReq } from "../../generated/persistent_pb"; -import { PersistentSubscriptionsClient } from "../../generated/persistent_grpc_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { ReadReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import { PersistentSubscriptionsClient } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import type { PersistentSubscriptionToStream, diff --git a/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToAll.ts b/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToAll.ts index d6c15578..17dfa220 100644 --- a/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToAll.ts +++ b/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToAll.ts @@ -1,9 +1,9 @@ -import { Empty } from "../../generated/shared_pb"; -import { UpdateReq } from "../../generated/persistent_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { UpdateReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { PersistentSubscriptionsClient, PersistentSubscriptionsService, -} from "../../generated/persistent_grpc_pb"; +} from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { debug, convertToCommandError, UnsupportedError } from "../utils"; import { END, START } from "../constants"; diff --git a/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToStream.ts b/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToStream.ts index 79c09273..bb77443b 100644 --- a/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToStream.ts +++ b/packages/db-client/src/persistentSubscription/updatePersistentSubscriptionToStream.ts @@ -1,5 +1,5 @@ -import { UpdateReq } from "../../generated/persistent_pb"; -import { PersistentSubscriptionsClient } from "../../generated/persistent_grpc_pb"; +import { UpdateReq } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; +import { PersistentSubscriptionsClient } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_grpc_pb"; import { debug, convertToCommandError, createStreamIdentifier } from "../utils"; import { END, START } from "../constants"; diff --git a/packages/db-client/src/persistentSubscription/utils/PersistentSubscriptionImpl.ts b/packages/db-client/src/persistentSubscription/utils/PersistentSubscriptionImpl.ts index 641700f7..8c459fb7 100644 --- a/packages/db-client/src/persistentSubscription/utils/PersistentSubscriptionImpl.ts +++ b/packages/db-client/src/persistentSubscription/utils/PersistentSubscriptionImpl.ts @@ -2,7 +2,10 @@ import { Transform, TransformCallback, TransformOptions } from "stream"; import type { ClientDuplexStream, ServiceError } from "@grpc/grpc-js"; -import { ReadReq, ReadResp } from "../../../generated/persistent_pb"; +import { + ReadReq, + ReadResp, +} from "../../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { convertToCommandError, diff --git a/packages/db-client/src/persistentSubscription/utils/mapPersistentSubscriptionInfo.ts b/packages/db-client/src/persistentSubscription/utils/mapPersistentSubscriptionInfo.ts index 0ffeb203..18312b52 100644 --- a/packages/db-client/src/persistentSubscription/utils/mapPersistentSubscriptionInfo.ts +++ b/packages/db-client/src/persistentSubscription/utils/mapPersistentSubscriptionInfo.ts @@ -1,4 +1,4 @@ -import type { SubscriptionInfo } from "../../../generated/persistent_pb"; +import type { SubscriptionInfo } from "../../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { END, START, UNBOUNDED } from "../../constants"; import type { Position } from "../../types"; diff --git a/packages/db-client/src/persistentSubscription/utils/settingsToGRPC.ts b/packages/db-client/src/persistentSubscription/utils/settingsToGRPC.ts index 50dfaa80..d9250d15 100644 --- a/packages/db-client/src/persistentSubscription/utils/settingsToGRPC.ts +++ b/packages/db-client/src/persistentSubscription/utils/settingsToGRPC.ts @@ -1,4 +1,7 @@ -import { CreateReq, UpdateReq } from "../../../generated/persistent_pb"; +import { + CreateReq, + UpdateReq, +} from "../../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { DISPATCH_TO_SINGLE, diff --git a/packages/db-client/src/projections/createProjection.ts b/packages/db-client/src/projections/createProjection.ts index 2a218fbf..db1f3483 100644 --- a/packages/db-client/src/projections/createProjection.ts +++ b/packages/db-client/src/projections/createProjection.ts @@ -1,8 +1,8 @@ import { ProjectionsClient, ProjectionsService, -} from "../../generated/projections_grpc_pb"; -import { CreateReq } from "../../generated/projections_pb"; +} from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { CreateReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/deleteProjection.ts b/packages/db-client/src/projections/deleteProjection.ts index 28d9e634..99bf4448 100644 --- a/packages/db-client/src/projections/deleteProjection.ts +++ b/packages/db-client/src/projections/deleteProjection.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { DeleteReq } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { DeleteReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/disableProjection.ts b/packages/db-client/src/projections/disableProjection.ts index 8474fe86..67e634de 100644 --- a/packages/db-client/src/projections/disableProjection.ts +++ b/packages/db-client/src/projections/disableProjection.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { DisableReq } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { DisableReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/enableProjection.ts b/packages/db-client/src/projections/enableProjection.ts index 2f8e52d2..e3bebd08 100644 --- a/packages/db-client/src/projections/enableProjection.ts +++ b/packages/db-client/src/projections/enableProjection.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { EnableReq } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { EnableReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/getProjectionResult.ts b/packages/db-client/src/projections/getProjectionResult.ts index 84935715..8c4172f6 100644 --- a/packages/db-client/src/projections/getProjectionResult.ts +++ b/packages/db-client/src/projections/getProjectionResult.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { ResultReq } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { ResultReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/getProjectionState.ts b/packages/db-client/src/projections/getProjectionState.ts index dbe0dac5..5c0a4b0a 100644 --- a/packages/db-client/src/projections/getProjectionState.ts +++ b/packages/db-client/src/projections/getProjectionState.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { StateReq } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { StateReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/getProjectionStatus.ts b/packages/db-client/src/projections/getProjectionStatus.ts index 233da9c5..273afb1f 100644 --- a/packages/db-client/src/projections/getProjectionStatus.ts +++ b/packages/db-client/src/projections/getProjectionStatus.ts @@ -1,7 +1,10 @@ import type { ServiceError } from "@grpc/grpc-js"; -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { StatisticsReq, StatisticsResp } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { + StatisticsReq, + StatisticsResp, +} from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions, ProjectionDetails } from "../types"; diff --git a/packages/db-client/src/projections/listProjections.ts b/packages/db-client/src/projections/listProjections.ts index bc610a64..11d41d93 100644 --- a/packages/db-client/src/projections/listProjections.ts +++ b/packages/db-client/src/projections/listProjections.ts @@ -1,8 +1,11 @@ import type { ServiceError } from "@grpc/grpc-js"; -import { Empty } from "../../generated/shared_pb"; -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { StatisticsReq, StatisticsResp } from "../../generated/projections_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { + StatisticsReq, + StatisticsResp, +} from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import type { BaseOptions, ProjectionDetails } from "../types"; import { debug, convertToCommandError } from "../utils"; diff --git a/packages/db-client/src/projections/resetProjection.ts b/packages/db-client/src/projections/resetProjection.ts index 045a534b..ee807109 100644 --- a/packages/db-client/src/projections/resetProjection.ts +++ b/packages/db-client/src/projections/resetProjection.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { ResetReq } from "../../generated/projections_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { ResetReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/restartSubsystem.ts b/packages/db-client/src/projections/restartSubsystem.ts index 77e04b91..43ac683d 100644 --- a/packages/db-client/src/projections/restartSubsystem.ts +++ b/packages/db-client/src/projections/restartSubsystem.ts @@ -1,5 +1,5 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { Empty } from "../../generated/shared_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/updateProjection.ts b/packages/db-client/src/projections/updateProjection.ts index c1af49df..0ebce3f5 100644 --- a/packages/db-client/src/projections/updateProjection.ts +++ b/packages/db-client/src/projections/updateProjection.ts @@ -1,6 +1,6 @@ -import { ProjectionsClient } from "../../generated/projections_grpc_pb"; -import { UpdateReq } from "../../generated/projections_pb"; -import { Empty } from "../../generated/shared_pb"; +import { ProjectionsClient } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_grpc_pb"; +import { UpdateReq } from "../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import { Client } from "../Client"; import type { BaseOptions } from "../types"; diff --git a/packages/db-client/src/projections/utils/mapGrpcProjectionDetails.ts b/packages/db-client/src/projections/utils/mapGrpcProjectionDetails.ts index 697bf733..c22a2ab7 100644 --- a/packages/db-client/src/projections/utils/mapGrpcProjectionDetails.ts +++ b/packages/db-client/src/projections/utils/mapGrpcProjectionDetails.ts @@ -1,4 +1,4 @@ -import type { StatisticsResp } from "../../../generated/projections_pb"; +import type { StatisticsResp } from "../../../generated/kurrentdb/protocols/v1/projectionmanagement_pb"; import type { ProcessingStatus, diff --git a/packages/db-client/src/streams/appendToStream/append.ts b/packages/db-client/src/streams/appendToStream/append.ts index 4352b713..f303c0f4 100644 --- a/packages/db-client/src/streams/appendToStream/append.ts +++ b/packages/db-client/src/streams/appendToStream/append.ts @@ -1,6 +1,6 @@ -import { AppendReq } from "../../../generated/streams_pb"; -import { Empty } from "../../../generated/shared_pb"; -import { StreamsClient } from "../../../generated/streams_grpc_pb"; +import { AppendReq } from "../../../generated/kurrentdb/protocols/v1/streams_pb"; +import { Empty } from "../../../generated/kurrentdb/protocols/v1/shared_pb"; +import { StreamsClient } from "../../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; import type { Client } from "../../Client"; import type { AppendResult, AppendStreamState, EventData } from "../../types"; diff --git a/packages/db-client/src/streams/appendToStream/batchAppend.ts b/packages/db-client/src/streams/appendToStream/batchAppend.ts index 4407e261..4bd161d0 100644 --- a/packages/db-client/src/streams/appendToStream/batchAppend.ts +++ b/packages/db-client/src/streams/appendToStream/batchAppend.ts @@ -1,9 +1,15 @@ import { v4 as uuid } from "uuid"; import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; -import { StreamsClient } from "../../../generated/streams_grpc_pb"; -import { BatchAppendReq, BatchAppendResp } from "../../../generated/streams_pb"; -import { Empty, UUID } from "../../../generated/shared_pb"; +import { StreamsClient } from "../../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; +import { + BatchAppendReq, + BatchAppendResp, +} from "../../../generated/kurrentdb/protocols/v1/streams_pb"; +import { + Empty, + UUID, +} from "../../../generated/kurrentdb/protocols/v1/shared_pb"; import type { Client } from "../../Client"; import type { AppendResult, EventData } from "../../types"; diff --git a/packages/db-client/src/streams/appendToStream/index.ts b/packages/db-client/src/streams/appendToStream/index.ts index cbeafebb..cdcf7d6d 100644 --- a/packages/db-client/src/streams/appendToStream/index.ts +++ b/packages/db-client/src/streams/appendToStream/index.ts @@ -1,5 +1,5 @@ -import { StreamsService } from "../../../generated/streams_grpc_pb"; -import { StreamsServiceService } from "../../../generated/streams.v2_grpc_pb"; +import { StreamsService } from "../../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; +import { StreamsServiceService } from "../../../generated/kurrentdb/protocols/v2/streams/streams_grpc_pb"; import { Client } from "../../Client"; import { ANY } from "../../constants"; import type { diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index 547558c6..ca7a91f4 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -6,10 +6,10 @@ import { UnknownErrorDetails, BaseOptions, } from "../../types"; -import grpc from "../../../generated/streams.v2_grpc_pb"; import type { Client } from "../../Client"; -import protobuf from "../../../generated/streams.v2_pb"; -import dynamic from "../../../generated/dynamic-value_pb"; +import grpc from "../../../generated/kurrentdb/protocols/v2/streams/streams_grpc_pb"; +import protobuf from "../../../generated/kurrentdb/protocols/v2/streams/streams_pb"; +import dynamic from "../../../generated/kurrentdb/protocols/v2/core_pb"; import { backpressuredWrite, convertToCommandError } from "../../utils"; export const multiAppend = async function ( @@ -54,7 +54,7 @@ export const multiAppend = async function ( case protobuf.AppendStreamFailure.ErrorCase.ACCESS_DENIED: value.details = { type: "access_denied", - reason: failure.getAccessDenied()!.getReason(), + reason: failure.getAccessDenied()?.toString() ?? "", }; break; @@ -67,11 +67,11 @@ export const multiAppend = async function ( break; case protobuf.AppendStreamFailure.ErrorCase - .WRONG_EXPECTED_REVISION: + .STREAM_REVISION_CONFLICT: value.details = { type: "wrong_expected_revision", revision: BigInt( - failure.getWrongExpectedRevision()!.getStreamRevision() + failure.getStreamRevisionConflict()!.getStreamRevision() ), }; break; diff --git a/packages/db-client/src/streams/appendToStream/unpackError.ts b/packages/db-client/src/streams/appendToStream/unpackError.ts index b321c18e..8f342716 100644 --- a/packages/db-client/src/streams/appendToStream/unpackError.ts +++ b/packages/db-client/src/streams/appendToStream/unpackError.ts @@ -1,4 +1,4 @@ -import type { Status } from "../../../generated/status_pb"; +import type { Status } from "../../../generated/kurrentdb/protocols/v1/status_pb"; import { AccessDenied, MaximumAppendSizeExceeded, @@ -6,7 +6,7 @@ import { Timeout, Unknown, WrongExpectedVersion, -} from "../../../generated/shared_pb"; +} from "../../../generated/kurrentdb/protocols/v1/shared_pb"; import { AccessDeniedError, diff --git a/packages/db-client/src/streams/deleteStream.ts b/packages/db-client/src/streams/deleteStream.ts index cdb32629..e3989427 100644 --- a/packages/db-client/src/streams/deleteStream.ts +++ b/packages/db-client/src/streams/deleteStream.ts @@ -1,6 +1,6 @@ -import { DeleteReq } from "../../generated/streams_pb"; -import { Empty } from "../../generated/shared_pb"; -import { StreamsClient } from "../../generated/streams_grpc_pb"; +import { DeleteReq } from "../../generated/kurrentdb/protocols/v1/streams_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { StreamsClient } from "../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; import { Client } from "../Client"; import type { BaseOptions, DeleteResult, StreamState } from "../types"; diff --git a/packages/db-client/src/streams/subscribeToAll.ts b/packages/db-client/src/streams/subscribeToAll.ts index 1c6921cd..e6f514c1 100644 --- a/packages/db-client/src/streams/subscribeToAll.ts +++ b/packages/db-client/src/streams/subscribeToAll.ts @@ -1,8 +1,8 @@ import type { ReadableOptions } from "stream"; -import { Empty } from "../../generated/shared_pb"; -import { StreamsClient } from "../../generated/streams_grpc_pb"; -import { ReadReq } from "../../generated/streams_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { StreamsClient } from "../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; +import { ReadReq } from "../../generated/kurrentdb/protocols/v1/streams_pb"; import type { ReadPosition, diff --git a/packages/db-client/src/streams/subscribeToStream.ts b/packages/db-client/src/streams/subscribeToStream.ts index e0c6a82a..a4c98f3f 100644 --- a/packages/db-client/src/streams/subscribeToStream.ts +++ b/packages/db-client/src/streams/subscribeToStream.ts @@ -1,8 +1,8 @@ import type { ReadableOptions } from "stream"; -import { StreamsClient } from "../../generated/streams_grpc_pb"; -import { ReadReq } from "../../generated/streams_pb"; -import { Empty } from "../../generated/shared_pb"; +import { StreamsClient } from "../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; +import { ReadReq } from "../../generated/kurrentdb/protocols/v1/streams_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import type { ReadRevision, diff --git a/packages/db-client/src/streams/tombstoneStream.ts b/packages/db-client/src/streams/tombstoneStream.ts index 8ff804a1..5f9c11c3 100644 --- a/packages/db-client/src/streams/tombstoneStream.ts +++ b/packages/db-client/src/streams/tombstoneStream.ts @@ -1,6 +1,6 @@ -import { Empty } from "../../generated/shared_pb"; -import { StreamsClient } from "../../generated/streams_grpc_pb"; -import { TombstoneReq } from "../../generated/streams_pb"; +import { Empty } from "../../generated/kurrentdb/protocols/v1/shared_pb"; +import { StreamsClient } from "../../generated/kurrentdb/protocols/v1/streams_grpc_pb"; +import { TombstoneReq } from "../../generated/kurrentdb/protocols/v1/streams_pb"; import { Client } from "../Client"; import { ANY, NO_STREAM } from "../constants"; diff --git a/packages/db-client/src/streams/utils/ReadStream.ts b/packages/db-client/src/streams/utils/ReadStream.ts index 103ab265..fbc7b547 100644 --- a/packages/db-client/src/streams/utils/ReadStream.ts +++ b/packages/db-client/src/streams/utils/ReadStream.ts @@ -2,7 +2,7 @@ import { Transform, TransformCallback, TransformOptions } from "stream"; import type { ClientReadableStream, ServiceError } from "@grpc/grpc-js"; -import type { ReadResp } from "../../../generated/streams_pb"; +import type { ReadResp } from "../../../generated/kurrentdb/protocols/v1/streams_pb"; import type { StreamingRead } from "../../types"; import { diff --git a/packages/db-client/src/streams/utils/Subscription.ts b/packages/db-client/src/streams/utils/Subscription.ts index e401b159..0dd1693b 100644 --- a/packages/db-client/src/streams/utils/Subscription.ts +++ b/packages/db-client/src/streams/utils/Subscription.ts @@ -2,7 +2,7 @@ import { Transform, TransformCallback, TransformOptions } from "stream"; import type { ClientReadableStream, ServiceError } from "@grpc/grpc-js"; -import type { ReadResp } from "../../../generated/streams_pb"; +import type { ReadResp } from "../../../generated/kurrentdb/protocols/v1/streams_pb"; import type { CaughtUp, diff --git a/packages/db-client/src/types/index.ts b/packages/db-client/src/types/index.ts index 712fcdc5..11a76bf9 100644 --- a/packages/db-client/src/types/index.ts +++ b/packages/db-client/src/types/index.ts @@ -5,7 +5,7 @@ import type { ChannelCredentials, } from "@grpc/grpc-js"; -import { MemberInfo as GrpcMemberInfo } from "../../generated/gossip_pb"; +import { MemberInfo as GrpcMemberInfo } from "../../generated/kurrentdb/protocols/v1/gossip_pb"; import VNodeState = GrpcMemberInfo.VNodeState; import type { diff --git a/packages/db-client/src/utils/CommandError.ts b/packages/db-client/src/utils/CommandError.ts index 7b503947..49d28f62 100644 --- a/packages/db-client/src/utils/CommandError.ts +++ b/packages/db-client/src/utils/CommandError.ts @@ -5,7 +5,7 @@ import { status as StatusCode, ServiceError, Metadata } from "@grpc/grpc-js"; import { isClientCancellationError } from "."; -import type { WrongExpectedVersion } from "../../generated/shared_pb"; +import type { WrongExpectedVersion } from "../../generated/kurrentdb/protocols/v1/shared_pb"; import type { CurrentStreamState, EndPoint, AppendStreamState } from "../types"; export enum ErrorType { diff --git a/packages/db-client/src/utils/convertGrpcEvent.ts b/packages/db-client/src/utils/convertGrpcEvent.ts index b8b52631..7a66f861 100644 --- a/packages/db-client/src/utils/convertGrpcEvent.ts +++ b/packages/db-client/src/utils/convertGrpcEvent.ts @@ -1,5 +1,5 @@ -import type { ReadResp as StreamsReadResp } from "../../generated/streams_pb"; -import type { ReadResp as PersistentReadResp } from "../../generated/persistent_pb"; +import type { ReadResp as StreamsReadResp } from "../../generated/kurrentdb/protocols/v1/streams_pb"; +import type { ReadResp as PersistentReadResp } from "../../generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { debug } from "./debug"; import type { diff --git a/packages/db-client/src/utils/grpcStreamIdentifier.ts b/packages/db-client/src/utils/grpcStreamIdentifier.ts index 8dbd9c73..f0acbe52 100644 --- a/packages/db-client/src/utils/grpcStreamIdentifier.ts +++ b/packages/db-client/src/utils/grpcStreamIdentifier.ts @@ -1,4 +1,4 @@ -import { StreamIdentifier } from "../../generated/shared_pb"; +import { StreamIdentifier } from "../../generated/kurrentdb/protocols/v1/shared_pb"; export const createStreamIdentifier = ( streamName: string diff --git a/packages/db-client/src/utils/grpcUUID.ts b/packages/db-client/src/utils/grpcUUID.ts index aabc53c0..19e53a8c 100644 --- a/packages/db-client/src/utils/grpcUUID.ts +++ b/packages/db-client/src/utils/grpcUUID.ts @@ -1,5 +1,5 @@ import { stringify, v4 } from "uuid"; -import { UUID } from "../../generated/shared_pb"; +import { UUID } from "../../generated/kurrentdb/protocols/v1/shared_pb"; export const createUUID = (id: string = v4()): UUID => { const uuid = new UUID(); diff --git a/packages/opentelemetry/src/instrumentation.ts b/packages/opentelemetry/src/instrumentation.ts index 276a5c1e..db8cc1ca 100644 --- a/packages/opentelemetry/src/instrumentation.ts +++ b/packages/opentelemetry/src/instrumentation.ts @@ -30,8 +30,8 @@ import type { SubscribeToPersistentSubscriptionToStreamOptions, SubscribeToStreamOptions, } from "@kurrent/kurrentdb-client"; -import type { ReadResp as StreamsReadResp } from "@kurrent/kurrentdb-client/generated/streams_pb"; -import type { ReadResp as PersistentReadResp } from "@kurrent/kurrentdb-client/generated/persistent_pb"; +import type { ReadResp as StreamsReadResp } from "@kurrent/kurrentdb-client/generated/kurrentdb/protocols/v1/streams_pb"; +import type { ReadResp as PersistentReadResp } from "@kurrent/kurrentdb-client/generated/kurrentdb/protocols/v1/persistentsubscriptions_pb"; import { KurrentAttributes } from "./attributes"; import type { PersistentSubscriptionImpl } from "@kurrent/kurrentdb-client/src/persistentSubscription/utils/PersistentSubscriptionImpl"; import type { Subscription } from "@kurrent/kurrentdb-client/src/streams/utils/Subscription"; diff --git a/packages/test/src/streams/appendToStream-batch-append.test.ts b/packages/test/src/streams/appendToStream-batch-append.test.ts index 01840217..53834c74 100644 --- a/packages/test/src/streams/appendToStream-batch-append.test.ts +++ b/packages/test/src/streams/appendToStream-batch-append.test.ts @@ -8,7 +8,7 @@ import { optionalDescribe, } from "@test-utils"; import { KurrentDBClient } from "@kurrent/kurrentdb-client"; -import { StreamsClient } from "@kurrent/kurrentdb-client/generated/streams_grpc_pb"; +import { StreamsClient } from "@kurrent/kurrentdb-client/generated/kurrentdb/protocols/v1/streams_grpc_pb"; describe("appendToStream - batch append", () => { const supported = matchServerVersion`>=21.10`; diff --git a/packages/test/src/streams/multiAppendStream.test.ts b/packages/test/src/streams/multiAppendStream.test.ts index 53f32c9f..26e80a3f 100644 --- a/packages/test/src/streams/multiAppendStream.test.ts +++ b/packages/test/src/streams/multiAppendStream.test.ts @@ -16,7 +16,7 @@ import { import { v4 } from "uuid"; -describe("MultiAppendStream", () => { +describe.skip("MultiAppendStream", () => { const supported = matchServerVersion`>=25.0`; const node = createTestNode(); let client!: KurrentDBClient; From 78524ceffcab70019858a881710319d094a7cf9e Mon Sep 17 00:00:00 2001 From: William Chong Date: Mon, 21 Jul 2025 09:49:05 +0400 Subject: [PATCH 17/18] Update proto files --- .../src/streams/appendToStream/multi.ts | 6 ++--- packages/db-client/src/types/index.ts | 2 +- packages/db-client/src/utils/index.ts | 1 + packages/db-client/src/utils/schema.ts | 25 +++++++++++++++++++ .../src/streams/multiAppendStream.test.ts | 2 +- 5 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 packages/db-client/src/utils/schema.ts diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index ca7a91f4..07eee9d9 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -10,7 +10,7 @@ import type { Client } from "../../Client"; import grpc from "../../../generated/kurrentdb/protocols/v2/streams/streams_grpc_pb"; import protobuf from "../../../generated/kurrentdb/protocols/v2/streams/streams_pb"; import dynamic from "../../../generated/kurrentdb/protocols/v2/core_pb"; -import { backpressuredWrite, convertToCommandError } from "../../utils"; +import { backpressuredWrite, convertToCommandError, convertToSchemaDataFormat } from "../../utils"; export const multiAppend = async function ( this: Client, @@ -125,8 +125,8 @@ export const multiAppend = async function ( const schemaName = new dynamic.DynamicValue(); record.setRecordId(event.id); - dataFormat.setBytesValue(event.contentType); - schemaName.setBytesValue(event.type); + dataFormat.setStringValue(convertToSchemaDataFormat(event.contentType)); + schemaName.setStringValue(event.type); record.getPropertiesMap().set("$schema.data-format", dataFormat); record.getPropertiesMap().set("$schema.name", schemaName); diff --git a/packages/db-client/src/types/index.ts b/packages/db-client/src/types/index.ts index 11a76bf9..45f9c29d 100644 --- a/packages/db-client/src/types/index.ts +++ b/packages/db-client/src/types/index.ts @@ -620,4 +620,4 @@ export type AllStreamSubscription = ReadableSubscription & CatchupSubscription; export { VNodeState }; -export * from "./events"; +export * from "./events"; \ No newline at end of file diff --git a/packages/db-client/src/utils/index.ts b/packages/db-client/src/utils/index.ts index a3dcc46e..e2d0c62d 100644 --- a/packages/db-client/src/utils/index.ts +++ b/packages/db-client/src/utils/index.ts @@ -7,3 +7,4 @@ export * from "./grpcStreamIdentifier"; export * from "./grpcUUID"; export * from "./utilityTypes"; export * from "./isClientCancellationError"; +export * from "./schema"; diff --git a/packages/db-client/src/utils/schema.ts b/packages/db-client/src/utils/schema.ts new file mode 100644 index 00000000..308ef45d --- /dev/null +++ b/packages/db-client/src/utils/schema.ts @@ -0,0 +1,25 @@ +/** + * Specifies the data format for schema content. + */ +export enum SchemaDataFormat { + JSON = "Json", + BINARY = "Binary", + PROTOBUF = "Protobuf", + BYTES = "Bytes", +} + +/** + * Converts a content type to a SchemaDataFormat. + * @param format - The content type to convert. + * @returns The corresponding SchemaDataFormat. + */ +export const convertToSchemaDataFormat = (format: "application/json" | "application/octet-stream"): SchemaDataFormat => { + switch (format) { + case "application/json": + return SchemaDataFormat.JSON; + case "application/octet-stream": + return SchemaDataFormat.BINARY; + default: + throw new Error(`Unsupported data format: ${format}`); + } +} \ No newline at end of file diff --git a/packages/test/src/streams/multiAppendStream.test.ts b/packages/test/src/streams/multiAppendStream.test.ts index 26e80a3f..53f32c9f 100644 --- a/packages/test/src/streams/multiAppendStream.test.ts +++ b/packages/test/src/streams/multiAppendStream.test.ts @@ -16,7 +16,7 @@ import { import { v4 } from "uuid"; -describe.skip("MultiAppendStream", () => { +describe("MultiAppendStream", () => { const supported = matchServerVersion`>=25.0`; const node = createTestNode(); let client!: KurrentDBClient; From 44b21ce685e837cb63ac6bccb088ecedd134dbf1 Mon Sep 17 00:00:00 2001 From: William Chong Date: Mon, 21 Jul 2025 09:57:04 +0400 Subject: [PATCH 18/18] Format --- packages/db-client/src/streams/appendToStream/multi.ts | 10 ++++++++-- packages/db-client/src/types/index.ts | 2 +- packages/db-client/src/utils/schema.ts | 6 ++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/db-client/src/streams/appendToStream/multi.ts b/packages/db-client/src/streams/appendToStream/multi.ts index 07eee9d9..22f51398 100644 --- a/packages/db-client/src/streams/appendToStream/multi.ts +++ b/packages/db-client/src/streams/appendToStream/multi.ts @@ -10,7 +10,11 @@ import type { Client } from "../../Client"; import grpc from "../../../generated/kurrentdb/protocols/v2/streams/streams_grpc_pb"; import protobuf from "../../../generated/kurrentdb/protocols/v2/streams/streams_pb"; import dynamic from "../../../generated/kurrentdb/protocols/v2/core_pb"; -import { backpressuredWrite, convertToCommandError, convertToSchemaDataFormat } from "../../utils"; +import { + backpressuredWrite, + convertToCommandError, + convertToSchemaDataFormat, +} from "../../utils"; export const multiAppend = async function ( this: Client, @@ -125,7 +129,9 @@ export const multiAppend = async function ( const schemaName = new dynamic.DynamicValue(); record.setRecordId(event.id); - dataFormat.setStringValue(convertToSchemaDataFormat(event.contentType)); + dataFormat.setStringValue( + convertToSchemaDataFormat(event.contentType) + ); schemaName.setStringValue(event.type); record.getPropertiesMap().set("$schema.data-format", dataFormat); record.getPropertiesMap().set("$schema.name", schemaName); diff --git a/packages/db-client/src/types/index.ts b/packages/db-client/src/types/index.ts index 45f9c29d..11a76bf9 100644 --- a/packages/db-client/src/types/index.ts +++ b/packages/db-client/src/types/index.ts @@ -620,4 +620,4 @@ export type AllStreamSubscription = ReadableSubscription & CatchupSubscription; export { VNodeState }; -export * from "./events"; \ No newline at end of file +export * from "./events"; diff --git a/packages/db-client/src/utils/schema.ts b/packages/db-client/src/utils/schema.ts index 308ef45d..f8b1e5a6 100644 --- a/packages/db-client/src/utils/schema.ts +++ b/packages/db-client/src/utils/schema.ts @@ -13,7 +13,9 @@ export enum SchemaDataFormat { * @param format - The content type to convert. * @returns The corresponding SchemaDataFormat. */ -export const convertToSchemaDataFormat = (format: "application/json" | "application/octet-stream"): SchemaDataFormat => { +export const convertToSchemaDataFormat = ( + format: "application/json" | "application/octet-stream" +): SchemaDataFormat => { switch (format) { case "application/json": return SchemaDataFormat.JSON; @@ -22,4 +24,4 @@ export const convertToSchemaDataFormat = (format: "application/json" | "applicat default: throw new Error(`Unsupported data format: ${format}`); } -} \ No newline at end of file +};